@tarojs/taro 2.2.19 → 2.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +44 -25
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +44 -25
- package/dist/index.js.map +1 -1
- package/dist/taro.js +44 -25
- package/dist/taro.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2,35 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
function ownKeys(
|
|
6
|
-
var
|
|
5
|
+
function ownKeys(e, r) {
|
|
6
|
+
var t = Object.keys(e);
|
|
7
7
|
if (Object.getOwnPropertySymbols) {
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
return Object.getOwnPropertyDescriptor(
|
|
11
|
-
})),
|
|
12
|
-
}
|
|
13
|
-
return
|
|
14
|
-
}
|
|
15
|
-
function _objectSpread2(
|
|
16
|
-
for (var
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
_defineProperty(
|
|
20
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
21
|
-
Object.defineProperty(
|
|
8
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
9
|
+
r && (o = o.filter(function (r) {
|
|
10
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
11
|
+
})), t.push.apply(t, o);
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
}
|
|
15
|
+
function _objectSpread2(e) {
|
|
16
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
17
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
18
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
19
|
+
_defineProperty(e, r, t[r]);
|
|
20
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
21
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return e;
|
|
25
25
|
}
|
|
26
|
-
function _typeof(
|
|
26
|
+
function _typeof(o) {
|
|
27
27
|
"@babel/helpers - typeof";
|
|
28
28
|
|
|
29
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
30
|
-
return typeof
|
|
31
|
-
} : function (
|
|
32
|
-
return
|
|
33
|
-
}, _typeof(
|
|
29
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
30
|
+
return typeof o;
|
|
31
|
+
} : function (o) {
|
|
32
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
33
|
+
}, _typeof(o);
|
|
34
34
|
}
|
|
35
35
|
function _classCallCheck(instance, Constructor) {
|
|
36
36
|
if (!(instance instanceof Constructor)) {
|
|
@@ -43,7 +43,7 @@ function _defineProperties(target, props) {
|
|
|
43
43
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
44
44
|
descriptor.configurable = true;
|
|
45
45
|
if ("value" in descriptor) descriptor.writable = true;
|
|
46
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
46
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -55,6 +55,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
55
55
|
return Constructor;
|
|
56
56
|
}
|
|
57
57
|
function _defineProperty(obj, key, value) {
|
|
58
|
+
key = _toPropertyKey(key);
|
|
58
59
|
if (key in obj) {
|
|
59
60
|
Object.defineProperty(obj, key, {
|
|
60
61
|
value: value,
|
|
@@ -123,7 +124,11 @@ function _construct(Parent, args, Class) {
|
|
|
123
124
|
return _construct.apply(null, arguments);
|
|
124
125
|
}
|
|
125
126
|
function _isNativeFunction(fn) {
|
|
126
|
-
|
|
127
|
+
try {
|
|
128
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
129
|
+
} catch (e) {
|
|
130
|
+
return typeof fn === "function";
|
|
131
|
+
}
|
|
127
132
|
}
|
|
128
133
|
function _wrapNativeSuper(Class) {
|
|
129
134
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
@@ -204,6 +209,20 @@ function _arrayLikeToArray(arr, len) {
|
|
|
204
209
|
function _nonIterableSpread() {
|
|
205
210
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
206
211
|
}
|
|
212
|
+
function _toPrimitive(input, hint) {
|
|
213
|
+
if (typeof input !== "object" || input === null) return input;
|
|
214
|
+
var prim = input[Symbol.toPrimitive];
|
|
215
|
+
if (prim !== undefined) {
|
|
216
|
+
var res = prim.call(input, hint || "default");
|
|
217
|
+
if (typeof res !== "object") return res;
|
|
218
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
219
|
+
}
|
|
220
|
+
return (hint === "string" ? String : Number)(input);
|
|
221
|
+
}
|
|
222
|
+
function _toPropertyKey(arg) {
|
|
223
|
+
var key = _toPrimitive(arg, "string");
|
|
224
|
+
return typeof key === "symbol" ? key : String(key);
|
|
225
|
+
}
|
|
207
226
|
|
|
208
227
|
if (typeof Object.assign !== 'function') {
|
|
209
228
|
// Must be writable: true, enumerable: false, configurable: true
|