@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.esm.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
function ownKeys(
|
|
2
|
-
var
|
|
1
|
+
function ownKeys(e, r) {
|
|
2
|
+
var t = Object.keys(e);
|
|
3
3
|
if (Object.getOwnPropertySymbols) {
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
return Object.getOwnPropertyDescriptor(
|
|
7
|
-
})),
|
|
8
|
-
}
|
|
9
|
-
return
|
|
10
|
-
}
|
|
11
|
-
function _objectSpread2(
|
|
12
|
-
for (var
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
_defineProperty(
|
|
16
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
17
|
-
Object.defineProperty(
|
|
4
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
5
|
+
r && (o = o.filter(function (r) {
|
|
6
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
7
|
+
})), t.push.apply(t, o);
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
}
|
|
11
|
+
function _objectSpread2(e) {
|
|
12
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
13
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
14
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
15
|
+
_defineProperty(e, r, t[r]);
|
|
16
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
17
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
return
|
|
20
|
+
return e;
|
|
21
21
|
}
|
|
22
|
-
function _typeof(
|
|
22
|
+
function _typeof(o) {
|
|
23
23
|
"@babel/helpers - typeof";
|
|
24
24
|
|
|
25
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
26
|
-
return typeof
|
|
27
|
-
} : function (
|
|
28
|
-
return
|
|
29
|
-
}, _typeof(
|
|
25
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
26
|
+
return typeof o;
|
|
27
|
+
} : function (o) {
|
|
28
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
29
|
+
}, _typeof(o);
|
|
30
30
|
}
|
|
31
31
|
function _classCallCheck(instance, Constructor) {
|
|
32
32
|
if (!(instance instanceof Constructor)) {
|
|
@@ -39,7 +39,7 @@ function _defineProperties(target, props) {
|
|
|
39
39
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
40
40
|
descriptor.configurable = true;
|
|
41
41
|
if ("value" in descriptor) descriptor.writable = true;
|
|
42
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
42
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -51,6 +51,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
51
51
|
return Constructor;
|
|
52
52
|
}
|
|
53
53
|
function _defineProperty(obj, key, value) {
|
|
54
|
+
key = _toPropertyKey(key);
|
|
54
55
|
if (key in obj) {
|
|
55
56
|
Object.defineProperty(obj, key, {
|
|
56
57
|
value: value,
|
|
@@ -119,7 +120,11 @@ function _construct(Parent, args, Class) {
|
|
|
119
120
|
return _construct.apply(null, arguments);
|
|
120
121
|
}
|
|
121
122
|
function _isNativeFunction(fn) {
|
|
122
|
-
|
|
123
|
+
try {
|
|
124
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
125
|
+
} catch (e) {
|
|
126
|
+
return typeof fn === "function";
|
|
127
|
+
}
|
|
123
128
|
}
|
|
124
129
|
function _wrapNativeSuper(Class) {
|
|
125
130
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
@@ -200,6 +205,20 @@ function _arrayLikeToArray(arr, len) {
|
|
|
200
205
|
function _nonIterableSpread() {
|
|
201
206
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
202
207
|
}
|
|
208
|
+
function _toPrimitive(input, hint) {
|
|
209
|
+
if (typeof input !== "object" || input === null) return input;
|
|
210
|
+
var prim = input[Symbol.toPrimitive];
|
|
211
|
+
if (prim !== undefined) {
|
|
212
|
+
var res = prim.call(input, hint || "default");
|
|
213
|
+
if (typeof res !== "object") return res;
|
|
214
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
215
|
+
}
|
|
216
|
+
return (hint === "string" ? String : Number)(input);
|
|
217
|
+
}
|
|
218
|
+
function _toPropertyKey(arg) {
|
|
219
|
+
var key = _toPrimitive(arg, "string");
|
|
220
|
+
return typeof key === "symbol" ? key : String(key);
|
|
221
|
+
}
|
|
203
222
|
|
|
204
223
|
if (typeof Object.assign !== 'function') {
|
|
205
224
|
// Must be writable: true, enumerable: false, configurable: true
|