提交 d220540d 编写于 作者: fxy060608's avatar fxy060608

chore: build

上级 0d1be8f3
...@@ -625,7 +625,7 @@ const offPushMessage = (fn) => { ...@@ -625,7 +625,7 @@ const offPushMessage = (fn) => {
} }
}; };
const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo/; const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/;
const CONTEXT_API_RE = /^create|Manager$/; const CONTEXT_API_RE = /^create|Manager$/;
// Context例外情况 // Context例外情况
const CONTEXT_API_RE_EXC = ['createBLEConnection']; const CONTEXT_API_RE_EXC = ['createBLEConnection'];
......
...@@ -625,7 +625,7 @@ const offPushMessage = (fn) => { ...@@ -625,7 +625,7 @@ const offPushMessage = (fn) => {
} }
}; };
const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo/; const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/;
const CONTEXT_API_RE = /^create|Manager$/; const CONTEXT_API_RE = /^create|Manager$/;
// Context例外情况 // Context例外情况
const CONTEXT_API_RE_EXC = ['createBLEConnection']; const CONTEXT_API_RE_EXC = ['createBLEConnection'];
......
...@@ -625,7 +625,7 @@ const offPushMessage = (fn) => { ...@@ -625,7 +625,7 @@ const offPushMessage = (fn) => {
} }
}; };
const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo/; const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/;
const CONTEXT_API_RE = /^create|Manager$/; const CONTEXT_API_RE = /^create|Manager$/;
// Context例外情况 // Context例外情况
const CONTEXT_API_RE_EXC = ['createBLEConnection']; const CONTEXT_API_RE_EXC = ['createBLEConnection'];
......
...@@ -625,7 +625,7 @@ const offPushMessage = (fn) => { ...@@ -625,7 +625,7 @@ const offPushMessage = (fn) => {
} }
}; };
const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo/; const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/;
const CONTEXT_API_RE = /^create|Manager$/; const CONTEXT_API_RE = /^create|Manager$/;
// Context例外情况 // Context例外情况
const CONTEXT_API_RE_EXC = ['createBLEConnection']; const CONTEXT_API_RE_EXC = ['createBLEConnection'];
......
...@@ -625,7 +625,7 @@ const offPushMessage = (fn) => { ...@@ -625,7 +625,7 @@ const offPushMessage = (fn) => {
} }
}; };
const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo/; const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/;
const CONTEXT_API_RE = /^create|Manager$/; const CONTEXT_API_RE = /^create|Manager$/;
// Context例外情况 // Context例外情况
const CONTEXT_API_RE_EXC = ['createBLEConnection']; const CONTEXT_API_RE_EXC = ['createBLEConnection'];
......
...@@ -625,7 +625,7 @@ const offPushMessage = (fn) => { ...@@ -625,7 +625,7 @@ const offPushMessage = (fn) => {
} }
}; };
const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo/; const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/;
const CONTEXT_API_RE = /^create|Manager$/; const CONTEXT_API_RE = /^create|Manager$/;
// Context例外情况 // Context例外情况
const CONTEXT_API_RE_EXC = ['createBLEConnection']; const CONTEXT_API_RE_EXC = ['createBLEConnection'];
......
...@@ -4820,12 +4820,18 @@ function setRef$1(instance, isUnmount = false) { ...@@ -4820,12 +4820,18 @@ function setRef$1(instance, isUnmount = false) {
return false; return false;
}); });
}; };
const retry = (refs, count = 3, timeout = 20) => {
setTimeout(() => {
refs = doSetByRefs(refs);
if (refs.length && count > 1) {
retry(refs, count - 1);
}
}, timeout);
};
const doSet = () => { const doSet = () => {
const refs = doSetByRefs($templateRefs); const refs = doSetByRefs($templateRefs);
if (refs.length) { if (refs.length) {
setTimeout(() => { retry(refs);
doSetByRefs(refs);
}, 10);
} }
}; };
if ($scope._$setRef) { if ($scope._$setRef) {
......
...@@ -589,7 +589,7 @@ const offPushMessage = (fn) => { ...@@ -589,7 +589,7 @@ const offPushMessage = (fn) => {
} }
}; };
const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo/; const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/;
const CONTEXT_API_RE = /^create|Manager$/; const CONTEXT_API_RE = /^create|Manager$/;
// Context例外情况 // Context例外情况
const CONTEXT_API_RE_EXC = ['createBLEConnection']; const CONTEXT_API_RE_EXC = ['createBLEConnection'];
......
...@@ -625,7 +625,7 @@ const offPushMessage = (fn) => { ...@@ -625,7 +625,7 @@ const offPushMessage = (fn) => {
} }
}; };
const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo/; const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/;
const CONTEXT_API_RE = /^create|Manager$/; const CONTEXT_API_RE = /^create|Manager$/;
// Context例外情况 // Context例外情况
const CONTEXT_API_RE_EXC = ['createBLEConnection']; const CONTEXT_API_RE_EXC = ['createBLEConnection'];
......
'use strict'; 'use strict';
Object.defineProperty(exports, '__esModule', { value: true }); Object.defineProperty(exports, '__esModule', { value: true });
var fs = require('fs'); var fs = require('fs');
var sourceMap = require('source-map'); var sourceMap = require('source-map');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs); var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
/* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */
const O = Object, isBrowser = typeof window !== 'undefined' && const O = Object, isBrowser =
/* eslint-disable */
typeof window !== 'undefined' &&
/* eslint-disable */
window.window === window && window.window === window &&
/* eslint-disable */
window.navigator, nodeRequire = isBrowser ? null : module.require, // to prevent bundlers from expanding the require call window.navigator, nodeRequire = isBrowser ? null : module.require, // to prevent bundlers from expanding the require call
lastOf = (x) => x[x.length - 1], nixSlashes$1 = (x) => x.replace(/\\/g, '/'), pathRoot = isBrowser ? window.location.href : nixSlashes$1(process.cwd()) + '/'; lastOf = (x) => x[x.length - 1], nixSlashes$1 = (x) => x.replace(/\\/g, '/'), pathRoot = isBrowser ? window.location.href : nixSlashes$1(process.cwd()) + '/';
/* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */
...@@ -141,6 +145,7 @@ class StackTracey { ...@@ -141,6 +145,7 @@ class StackTracey {
return { return {
beforeParse: line, beforeParse: line,
callee: callee || '', callee: callee || '',
/* eslint-disable */
index: isBrowser && fileLineColumn[0] === window.location.href, index: isBrowser && fileLineColumn[0] === window.location.href,
native: native || false, native: native || false,
file: nixSlashes$1(fileLineColumn[0] || ''), file: nixSlashes$1(fileLineColumn[0] || ''),
...@@ -190,8 +195,8 @@ function parseItem(e, maxColumnWidths, isMP) { ...@@ -190,8 +195,8 @@ function parseItem(e, maxColumnWidths, isMP) {
}; };
}); });
/* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */
var StackTracey$1 = StackTracey; var StackTracey$1 = StackTracey;
const nixSlashes = (x) => x.replace(/\\/g, '/'); const nixSlashes = (x) => x.replace(/\\/g, '/');
const sourcemapCatch = {}; const sourcemapCatch = {};
function stacktracey(stacktrace, opts) { function stacktracey(stacktrace, opts) {
...@@ -482,8 +487,8 @@ function utsStracktraceyPreset(opts) { ...@@ -482,8 +487,8 @@ function utsStracktraceyPreset(opts) {
.join('\n'); .join('\n');
}, },
}; };
} }
exports.stacktracey = stacktracey; exports.stacktracey = stacktracey;
exports.uniStracktraceyPreset = uniStracktraceyPreset; exports.uniStracktraceyPreset = uniStracktraceyPreset;
exports.utsStracktraceyPreset = utsStracktraceyPreset; exports.utsStracktraceyPreset = utsStracktraceyPreset;
...@@ -2,8 +2,12 @@ import fs from 'fs'; ...@@ -2,8 +2,12 @@ import fs from 'fs';
import { SourceMapConsumer } from 'source-map'; import { SourceMapConsumer } from 'source-map';
/* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */
const O = Object, isBrowser = typeof window !== 'undefined' && const O = Object, isBrowser =
/* eslint-disable */
typeof window !== 'undefined' &&
/* eslint-disable */
window.window === window && window.window === window &&
/* eslint-disable */
window.navigator, nodeRequire = isBrowser ? null : module.require, // to prevent bundlers from expanding the require call window.navigator, nodeRequire = isBrowser ? null : module.require, // to prevent bundlers from expanding the require call
lastOf = (x) => x[x.length - 1], nixSlashes$1 = (x) => x.replace(/\\/g, '/'), pathRoot = isBrowser ? window.location.href : nixSlashes$1(process.cwd()) + '/'; lastOf = (x) => x[x.length - 1], nixSlashes$1 = (x) => x.replace(/\\/g, '/'), pathRoot = isBrowser ? window.location.href : nixSlashes$1(process.cwd()) + '/';
/* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */
...@@ -133,6 +137,7 @@ class StackTracey { ...@@ -133,6 +137,7 @@ class StackTracey {
return { return {
beforeParse: line, beforeParse: line,
callee: callee || '', callee: callee || '',
/* eslint-disable */
index: isBrowser && fileLineColumn[0] === window.location.href, index: isBrowser && fileLineColumn[0] === window.location.href,
native: native || false, native: native || false,
file: nixSlashes$1(fileLineColumn[0] || ''), file: nixSlashes$1(fileLineColumn[0] || ''),
...@@ -362,7 +367,7 @@ function uniStracktraceyPreset(opts) { ...@@ -362,7 +367,7 @@ function uniStracktraceyPreset(opts) {
if (fileRelative.indexOf('app-service.js') !== -1) { if (fileRelative.indexOf('app-service.js') !== -1) {
baseAfter = (base.match(/\w$/) ? '/' : '') + 'weixin'; baseAfter = (base.match(/\w$/) ? '/' : '') + 'weixin';
if (fileRelative === fileName) { if (fileRelative === fileName) {
baseAfter += '__APP__'; baseAfter += '/__APP__';
} }
fileRelative = fileRelative.replace('.js', '.map'); fileRelative = fileRelative.replace('.js', '.map');
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册