@tarojs/taro 2.2.21 → 2.2.22
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 +33 -56
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +33 -56
- package/dist/index.js.map +1 -1
- package/dist/taro.js +33 -56
- package/dist/taro.js.map +1 -1
- package/package.json +3 -3
package/dist/taro.js
CHANGED
|
@@ -4,6 +4,24 @@
|
|
|
4
4
|
(factory((global.Taro = {})));
|
|
5
5
|
}(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
|
+
function _callSuper(t, o, e) {
|
|
8
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
9
|
+
}
|
|
10
|
+
function _construct(t, e, r) {
|
|
11
|
+
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
12
|
+
var o = [null];
|
|
13
|
+
o.push.apply(o, e);
|
|
14
|
+
var p = new (t.bind.apply(t, o))();
|
|
15
|
+
return r && _setPrototypeOf(p, r.prototype), p;
|
|
16
|
+
}
|
|
17
|
+
function _isNativeReflectConstruct() {
|
|
18
|
+
try {
|
|
19
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
20
|
+
} catch (t) {}
|
|
21
|
+
return (_isNativeReflectConstruct = function () {
|
|
22
|
+
return !!t;
|
|
23
|
+
})();
|
|
24
|
+
}
|
|
7
25
|
function ownKeys(e, r) {
|
|
8
26
|
var t = Object.keys(e);
|
|
9
27
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -25,6 +43,20 @@
|
|
|
25
43
|
}
|
|
26
44
|
return e;
|
|
27
45
|
}
|
|
46
|
+
function _toPrimitive(t, r) {
|
|
47
|
+
if ("object" != typeof t || !t) return t;
|
|
48
|
+
var e = t[Symbol.toPrimitive];
|
|
49
|
+
if (void 0 !== e) {
|
|
50
|
+
var i = e.call(t, r || "default");
|
|
51
|
+
if ("object" != typeof i) return i;
|
|
52
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
53
|
+
}
|
|
54
|
+
return ("string" === r ? String : Number)(t);
|
|
55
|
+
}
|
|
56
|
+
function _toPropertyKey(t) {
|
|
57
|
+
var i = _toPrimitive(t, "string");
|
|
58
|
+
return "symbol" == typeof i ? i : String(i);
|
|
59
|
+
}
|
|
28
60
|
function _typeof(o) {
|
|
29
61
|
"@babel/helpers - typeof";
|
|
30
62
|
|
|
@@ -99,32 +131,6 @@
|
|
|
99
131
|
};
|
|
100
132
|
return _setPrototypeOf(o, p);
|
|
101
133
|
}
|
|
102
|
-
function _isNativeReflectConstruct() {
|
|
103
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
104
|
-
if (Reflect.construct.sham) return false;
|
|
105
|
-
if (typeof Proxy === "function") return true;
|
|
106
|
-
try {
|
|
107
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
108
|
-
return true;
|
|
109
|
-
} catch (e) {
|
|
110
|
-
return false;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
function _construct(Parent, args, Class) {
|
|
114
|
-
if (_isNativeReflectConstruct()) {
|
|
115
|
-
_construct = Reflect.construct.bind();
|
|
116
|
-
} else {
|
|
117
|
-
_construct = function _construct(Parent, args, Class) {
|
|
118
|
-
var a = [null];
|
|
119
|
-
a.push.apply(a, args);
|
|
120
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
121
|
-
var instance = new Constructor();
|
|
122
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
123
|
-
return instance;
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
return _construct.apply(null, arguments);
|
|
127
|
-
}
|
|
128
134
|
function _isNativeFunction(fn) {
|
|
129
135
|
try {
|
|
130
136
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
@@ -172,20 +178,6 @@
|
|
|
172
178
|
}
|
|
173
179
|
return _assertThisInitialized(self);
|
|
174
180
|
}
|
|
175
|
-
function _createSuper(Derived) {
|
|
176
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
177
|
-
return function _createSuperInternal() {
|
|
178
|
-
var Super = _getPrototypeOf(Derived),
|
|
179
|
-
result;
|
|
180
|
-
if (hasNativeReflectConstruct) {
|
|
181
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
182
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
183
|
-
} else {
|
|
184
|
-
result = Super.apply(this, arguments);
|
|
185
|
-
}
|
|
186
|
-
return _possibleConstructorReturn(this, result);
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
181
|
function _toConsumableArray(arr) {
|
|
190
182
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
191
183
|
}
|
|
@@ -211,20 +203,6 @@
|
|
|
211
203
|
function _nonIterableSpread() {
|
|
212
204
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
213
205
|
}
|
|
214
|
-
function _toPrimitive(input, hint) {
|
|
215
|
-
if (typeof input !== "object" || input === null) return input;
|
|
216
|
-
var prim = input[Symbol.toPrimitive];
|
|
217
|
-
if (prim !== undefined) {
|
|
218
|
-
var res = prim.call(input, hint || "default");
|
|
219
|
-
if (typeof res !== "object") return res;
|
|
220
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
221
|
-
}
|
|
222
|
-
return (hint === "string" ? String : Number)(input);
|
|
223
|
-
}
|
|
224
|
-
function _toPropertyKey(arg) {
|
|
225
|
-
var key = _toPrimitive(arg, "string");
|
|
226
|
-
return typeof key === "symbol" ? key : String(key);
|
|
227
|
-
}
|
|
228
206
|
|
|
229
207
|
if (typeof Object.assign !== 'function') {
|
|
230
208
|
// Must be writable: true, enumerable: false, configurable: true
|
|
@@ -1583,7 +1561,6 @@
|
|
|
1583
1561
|
}
|
|
1584
1562
|
var RefsArray = /*#__PURE__*/function (_Array) {
|
|
1585
1563
|
_inherits(RefsArray, _Array);
|
|
1586
|
-
var _super = _createSuper(RefsArray);
|
|
1587
1564
|
/**
|
|
1588
1565
|
* @param {Array} initList
|
|
1589
1566
|
*/
|
|
@@ -1591,7 +1568,7 @@
|
|
|
1591
1568
|
var _this;
|
|
1592
1569
|
var initList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
1593
1570
|
_classCallCheck(this, RefsArray);
|
|
1594
|
-
_this =
|
|
1571
|
+
_this = _callSuper(this, RefsArray, _toConsumableArray(initList));
|
|
1595
1572
|
_this.inited = false;
|
|
1596
1573
|
return _this;
|
|
1597
1574
|
}
|