@tarojs/taro 2.2.19 → 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 +61 -65
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +61 -65
- package/dist/index.js.map +1 -1
- package/dist/taro.js +61 -65
- package/dist/taro.js.map +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,32 +1,64 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
1
|
+
function _callSuper(t, o, e) {
|
|
2
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
3
|
+
}
|
|
4
|
+
function _construct(t, e, r) {
|
|
5
|
+
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
6
|
+
var o = [null];
|
|
7
|
+
o.push.apply(o, e);
|
|
8
|
+
var p = new (t.bind.apply(t, o))();
|
|
9
|
+
return r && _setPrototypeOf(p, r.prototype), p;
|
|
10
|
+
}
|
|
11
|
+
function _isNativeReflectConstruct() {
|
|
12
|
+
try {
|
|
13
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
14
|
+
} catch (t) {}
|
|
15
|
+
return (_isNativeReflectConstruct = function () {
|
|
16
|
+
return !!t;
|
|
17
|
+
})();
|
|
18
|
+
}
|
|
19
|
+
function ownKeys(e, r) {
|
|
20
|
+
var t = Object.keys(e);
|
|
3
21
|
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(
|
|
22
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
23
|
+
r && (o = o.filter(function (r) {
|
|
24
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
25
|
+
})), t.push.apply(t, o);
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
}
|
|
29
|
+
function _objectSpread2(e) {
|
|
30
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
31
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
32
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
33
|
+
_defineProperty(e, r, t[r]);
|
|
34
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
35
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
18
36
|
});
|
|
19
37
|
}
|
|
20
|
-
return
|
|
38
|
+
return e;
|
|
39
|
+
}
|
|
40
|
+
function _toPrimitive(t, r) {
|
|
41
|
+
if ("object" != typeof t || !t) return t;
|
|
42
|
+
var e = t[Symbol.toPrimitive];
|
|
43
|
+
if (void 0 !== e) {
|
|
44
|
+
var i = e.call(t, r || "default");
|
|
45
|
+
if ("object" != typeof i) return i;
|
|
46
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
47
|
+
}
|
|
48
|
+
return ("string" === r ? String : Number)(t);
|
|
21
49
|
}
|
|
22
|
-
function
|
|
50
|
+
function _toPropertyKey(t) {
|
|
51
|
+
var i = _toPrimitive(t, "string");
|
|
52
|
+
return "symbol" == typeof i ? i : String(i);
|
|
53
|
+
}
|
|
54
|
+
function _typeof(o) {
|
|
23
55
|
"@babel/helpers - typeof";
|
|
24
56
|
|
|
25
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
26
|
-
return typeof
|
|
27
|
-
} : function (
|
|
28
|
-
return
|
|
29
|
-
}, _typeof(
|
|
57
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
58
|
+
return typeof o;
|
|
59
|
+
} : function (o) {
|
|
60
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
61
|
+
}, _typeof(o);
|
|
30
62
|
}
|
|
31
63
|
function _classCallCheck(instance, Constructor) {
|
|
32
64
|
if (!(instance instanceof Constructor)) {
|
|
@@ -39,7 +71,7 @@ function _defineProperties(target, props) {
|
|
|
39
71
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
40
72
|
descriptor.configurable = true;
|
|
41
73
|
if ("value" in descriptor) descriptor.writable = true;
|
|
42
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
74
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
43
75
|
}
|
|
44
76
|
}
|
|
45
77
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -51,6 +83,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
51
83
|
return Constructor;
|
|
52
84
|
}
|
|
53
85
|
function _defineProperty(obj, key, value) {
|
|
86
|
+
key = _toPropertyKey(key);
|
|
54
87
|
if (key in obj) {
|
|
55
88
|
Object.defineProperty(obj, key, {
|
|
56
89
|
value: value,
|
|
@@ -92,35 +125,13 @@ function _setPrototypeOf(o, p) {
|
|
|
92
125
|
};
|
|
93
126
|
return _setPrototypeOf(o, p);
|
|
94
127
|
}
|
|
95
|
-
function
|
|
96
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
97
|
-
if (Reflect.construct.sham) return false;
|
|
98
|
-
if (typeof Proxy === "function") return true;
|
|
128
|
+
function _isNativeFunction(fn) {
|
|
99
129
|
try {
|
|
100
|
-
|
|
101
|
-
return true;
|
|
130
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
102
131
|
} catch (e) {
|
|
103
|
-
return
|
|
132
|
+
return typeof fn === "function";
|
|
104
133
|
}
|
|
105
134
|
}
|
|
106
|
-
function _construct(Parent, args, Class) {
|
|
107
|
-
if (_isNativeReflectConstruct()) {
|
|
108
|
-
_construct = Reflect.construct.bind();
|
|
109
|
-
} else {
|
|
110
|
-
_construct = function _construct(Parent, args, Class) {
|
|
111
|
-
var a = [null];
|
|
112
|
-
a.push.apply(a, args);
|
|
113
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
114
|
-
var instance = new Constructor();
|
|
115
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
116
|
-
return instance;
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
return _construct.apply(null, arguments);
|
|
120
|
-
}
|
|
121
|
-
function _isNativeFunction(fn) {
|
|
122
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
123
|
-
}
|
|
124
135
|
function _wrapNativeSuper(Class) {
|
|
125
136
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
126
137
|
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
@@ -161,20 +172,6 @@ function _possibleConstructorReturn(self, call) {
|
|
|
161
172
|
}
|
|
162
173
|
return _assertThisInitialized(self);
|
|
163
174
|
}
|
|
164
|
-
function _createSuper(Derived) {
|
|
165
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
166
|
-
return function _createSuperInternal() {
|
|
167
|
-
var Super = _getPrototypeOf(Derived),
|
|
168
|
-
result;
|
|
169
|
-
if (hasNativeReflectConstruct) {
|
|
170
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
171
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
172
|
-
} else {
|
|
173
|
-
result = Super.apply(this, arguments);
|
|
174
|
-
}
|
|
175
|
-
return _possibleConstructorReturn(this, result);
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
175
|
function _toConsumableArray(arr) {
|
|
179
176
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
180
177
|
}
|
|
@@ -1558,7 +1555,6 @@ function detachAllRef(component) {
|
|
|
1558
1555
|
}
|
|
1559
1556
|
var RefsArray = /*#__PURE__*/function (_Array) {
|
|
1560
1557
|
_inherits(RefsArray, _Array);
|
|
1561
|
-
var _super = _createSuper(RefsArray);
|
|
1562
1558
|
/**
|
|
1563
1559
|
* @param {Array} initList
|
|
1564
1560
|
*/
|
|
@@ -1566,7 +1562,7 @@ var RefsArray = /*#__PURE__*/function (_Array) {
|
|
|
1566
1562
|
var _this;
|
|
1567
1563
|
var initList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
1568
1564
|
_classCallCheck(this, RefsArray);
|
|
1569
|
-
_this =
|
|
1565
|
+
_this = _callSuper(this, RefsArray, _toConsumableArray(initList));
|
|
1570
1566
|
_this.inited = false;
|
|
1571
1567
|
return _this;
|
|
1572
1568
|
}
|