@tarojs/taro-h5 3.5.0-beta.4 → 3.5.0-theta.0
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.cjs.js +34 -64
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +20 -50
- package/dist/index.esm.js.map +1 -1
- package/package.json +7 -8
- package/LICENSE +0 -21
package/dist/index.cjs.js
CHANGED
|
@@ -250,7 +250,7 @@ const getLogManager = temporarilyNotSupport('getLogManager');
|
|
|
250
250
|
const reportPerformance = temporarilyNotSupport('reportPerformance');
|
|
251
251
|
const getPerformance = temporarilyNotSupport('getPerformance');
|
|
252
252
|
|
|
253
|
-
|
|
253
|
+
/*! *****************************************************************************
|
|
254
254
|
Copyright (c) Microsoft Corporation.
|
|
255
255
|
|
|
256
256
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -269,13 +269,11 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
269
269
|
var extendStatics = function(d, b) {
|
|
270
270
|
extendStatics = Object.setPrototypeOf ||
|
|
271
271
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
272
|
-
function (d, b) { for (var p in b) if (
|
|
272
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
273
273
|
return extendStatics(d, b);
|
|
274
274
|
};
|
|
275
275
|
|
|
276
276
|
function __extends(d, b) {
|
|
277
|
-
if (typeof b !== "function" && b !== null)
|
|
278
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
279
277
|
extendStatics(d, b);
|
|
280
278
|
function __() { this.constructor = d; }
|
|
281
279
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -357,20 +355,13 @@ function __generator(thisArg, body) {
|
|
|
357
355
|
}
|
|
358
356
|
}
|
|
359
357
|
|
|
360
|
-
|
|
361
|
-
if (k2 === undefined) k2 = k;
|
|
362
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
363
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
364
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
365
|
-
}
|
|
366
|
-
Object.defineProperty(o, k2, desc);
|
|
367
|
-
}) : (function(o, m, k, k2) {
|
|
358
|
+
function __createBinding(o, m, k, k2) {
|
|
368
359
|
if (k2 === undefined) k2 = k;
|
|
369
360
|
o[k2] = m[k];
|
|
370
|
-
}
|
|
361
|
+
}
|
|
371
362
|
|
|
372
|
-
function __exportStar(m,
|
|
373
|
-
for (var p in m) if (p !== "default" && !
|
|
363
|
+
function __exportStar(m, exports) {
|
|
364
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
374
365
|
}
|
|
375
366
|
|
|
376
367
|
function __values(o) {
|
|
@@ -402,31 +393,19 @@ function __read(o, n) {
|
|
|
402
393
|
return ar;
|
|
403
394
|
}
|
|
404
395
|
|
|
405
|
-
/** @deprecated */
|
|
406
396
|
function __spread() {
|
|
407
397
|
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
408
398
|
ar = ar.concat(__read(arguments[i]));
|
|
409
399
|
return ar;
|
|
410
400
|
}
|
|
411
401
|
|
|
412
|
-
/** @deprecated */
|
|
413
402
|
function __spreadArrays() {
|
|
414
403
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
415
404
|
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
416
405
|
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
417
406
|
r[k] = a[j];
|
|
418
407
|
return r;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
function __spreadArray(to, from, pack) {
|
|
422
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
423
|
-
if (ar || !(i in from)) {
|
|
424
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
425
|
-
ar[i] = from[i];
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
429
|
-
}
|
|
408
|
+
};
|
|
430
409
|
|
|
431
410
|
function __await(v) {
|
|
432
411
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -463,17 +442,11 @@ function __makeTemplateObject(cooked, raw) {
|
|
|
463
442
|
return cooked;
|
|
464
443
|
};
|
|
465
444
|
|
|
466
|
-
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
467
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
468
|
-
}) : function(o, v) {
|
|
469
|
-
o["default"] = v;
|
|
470
|
-
};
|
|
471
|
-
|
|
472
445
|
function __importStar(mod) {
|
|
473
446
|
if (mod && mod.__esModule) return mod;
|
|
474
447
|
var result = {};
|
|
475
|
-
if (mod != null) for (var k in mod) if (
|
|
476
|
-
|
|
448
|
+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
449
|
+
result.default = mod;
|
|
477
450
|
return result;
|
|
478
451
|
}
|
|
479
452
|
|
|
@@ -481,22 +454,19 @@ function __importDefault(mod) {
|
|
|
481
454
|
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
482
455
|
}
|
|
483
456
|
|
|
484
|
-
function __classPrivateFieldGet(receiver,
|
|
485
|
-
if (
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
491
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
492
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
493
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
494
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
457
|
+
function __classPrivateFieldGet(receiver, privateMap) {
|
|
458
|
+
if (!privateMap.has(receiver)) {
|
|
459
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
460
|
+
}
|
|
461
|
+
return privateMap.get(receiver);
|
|
495
462
|
}
|
|
496
463
|
|
|
497
|
-
function
|
|
498
|
-
if (
|
|
499
|
-
|
|
464
|
+
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
465
|
+
if (!privateMap.has(receiver)) {
|
|
466
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
467
|
+
}
|
|
468
|
+
privateMap.set(receiver, value);
|
|
469
|
+
return value;
|
|
500
470
|
}
|
|
501
471
|
|
|
502
472
|
class MethodHandler {
|
|
@@ -5232,32 +5202,32 @@ taro.initPxTransform = initPxTransform;
|
|
|
5232
5202
|
taro.canIUseWebp = canIUseWebp;
|
|
5233
5203
|
|
|
5234
5204
|
Object.defineProperty(exports, 'getCurrentPages', {
|
|
5235
|
-
|
|
5236
|
-
|
|
5205
|
+
enumerable: true,
|
|
5206
|
+
get: function () { return router.getCurrentPages; }
|
|
5237
5207
|
});
|
|
5238
5208
|
Object.defineProperty(exports, 'history', {
|
|
5239
|
-
|
|
5240
|
-
|
|
5209
|
+
enumerable: true,
|
|
5210
|
+
get: function () { return router.history; }
|
|
5241
5211
|
});
|
|
5242
5212
|
Object.defineProperty(exports, 'navigateBack', {
|
|
5243
|
-
|
|
5244
|
-
|
|
5213
|
+
enumerable: true,
|
|
5214
|
+
get: function () { return router.navigateBack; }
|
|
5245
5215
|
});
|
|
5246
5216
|
Object.defineProperty(exports, 'navigateTo', {
|
|
5247
|
-
|
|
5248
|
-
|
|
5217
|
+
enumerable: true,
|
|
5218
|
+
get: function () { return router.navigateTo; }
|
|
5249
5219
|
});
|
|
5250
5220
|
Object.defineProperty(exports, 'reLaunch', {
|
|
5251
|
-
|
|
5252
|
-
|
|
5221
|
+
enumerable: true,
|
|
5222
|
+
get: function () { return router.reLaunch; }
|
|
5253
5223
|
});
|
|
5254
5224
|
Object.defineProperty(exports, 'redirectTo', {
|
|
5255
|
-
|
|
5256
|
-
|
|
5225
|
+
enumerable: true,
|
|
5226
|
+
get: function () { return router.redirectTo; }
|
|
5257
5227
|
});
|
|
5258
5228
|
Object.defineProperty(exports, 'switchTab', {
|
|
5259
|
-
|
|
5260
|
-
|
|
5229
|
+
enumerable: true,
|
|
5230
|
+
get: function () { return router.switchTab; }
|
|
5261
5231
|
});
|
|
5262
5232
|
exports.Behavior = Behavior;
|
|
5263
5233
|
exports.Current = Current;
|