@blackglory/structures 0.3.3 → 0.3.4
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/README.md +1 -0
- package/dist/es2015/index.min.mjs +1 -1
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +194 -104
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +194 -104
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +1 -1
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +1 -1
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +194 -104
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +194 -104
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +1 -1
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/finite-state-machine.d.ts +1 -0
- package/lib/es2015/finite-state-machine.js +4 -1
- package/lib/es2015/finite-state-machine.js.map +1 -1
- package/lib/es2018/finite-state-machine.d.ts +1 -0
- package/lib/es2018/finite-state-machine.js +4 -1
- package/lib/es2018/finite-state-machine.js.map +1 -1
- package/package.json +11 -11
package/dist/es2018/index.umd.js
CHANGED
|
@@ -239,17 +239,17 @@
|
|
|
239
239
|
|
|
240
240
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
241
241
|
|
|
242
|
-
var es2018$
|
|
242
|
+
var es2018$7 = {};
|
|
243
243
|
|
|
244
244
|
var customError$1 = {};
|
|
245
245
|
|
|
246
|
-
var es2018$
|
|
246
|
+
var es2018$6 = {};
|
|
247
247
|
|
|
248
248
|
var middleware = {};
|
|
249
249
|
|
|
250
250
|
var chunkAsync$1 = {};
|
|
251
251
|
|
|
252
|
-
var es2018$
|
|
252
|
+
var es2018$5 = {};
|
|
253
253
|
|
|
254
254
|
var go$1 = {};
|
|
255
255
|
|
|
@@ -271,9 +271,9 @@
|
|
|
271
271
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
272
272
|
};__exportStar(go$1, exports);
|
|
273
273
|
|
|
274
|
-
}(es2018$
|
|
274
|
+
}(es2018$5));
|
|
275
275
|
|
|
276
|
-
var es2018$
|
|
276
|
+
var es2018$4 = {};
|
|
277
277
|
|
|
278
278
|
var customError = {};
|
|
279
279
|
|
|
@@ -351,11 +351,11 @@
|
|
|
351
351
|
__exportStar(refute$1, exports);
|
|
352
352
|
__exportStar(assert$3, exports);
|
|
353
353
|
|
|
354
|
-
}(es2018$
|
|
354
|
+
}(es2018$4));
|
|
355
355
|
|
|
356
356
|
chunkAsync$1.chunkAsync = void 0;
|
|
357
|
-
const go_1$f = es2018$
|
|
358
|
-
const errors_1$f = es2018$
|
|
357
|
+
const go_1$f = es2018$5;
|
|
358
|
+
const errors_1$f = es2018$4;
|
|
359
359
|
function chunkAsync(iterable, size) {
|
|
360
360
|
(0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
361
361
|
(0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
|
|
377
377
|
var chunkByAsync$1 = {};
|
|
378
378
|
|
|
379
|
-
var es2018$
|
|
379
|
+
var es2018$3 = {};
|
|
380
380
|
|
|
381
381
|
var array = {};
|
|
382
382
|
|
|
@@ -873,10 +873,10 @@
|
|
|
873
873
|
__exportStar(_undefined, exports);
|
|
874
874
|
__exportStar(url, exports);
|
|
875
875
|
|
|
876
|
-
}(es2018$
|
|
876
|
+
}(es2018$3));
|
|
877
877
|
|
|
878
878
|
chunkByAsync$1.chunkByAsync = void 0;
|
|
879
|
-
const types_1$k = es2018$
|
|
879
|
+
const types_1$k = es2018$3;
|
|
880
880
|
function chunkByAsync(iterable, predicate) {
|
|
881
881
|
if ((0, types_1$k.isAsyncIterable)(iterable)) {
|
|
882
882
|
return chunkByAsyncIterable(iterable);
|
|
@@ -937,8 +937,8 @@
|
|
|
937
937
|
var chunk$1 = {};
|
|
938
938
|
|
|
939
939
|
chunk$1.chunk = void 0;
|
|
940
|
-
const go_1$e = es2018$
|
|
941
|
-
const errors_1$e = es2018$
|
|
940
|
+
const go_1$e = es2018$5;
|
|
941
|
+
const errors_1$e = es2018$4;
|
|
942
942
|
function chunk(iterable, size) {
|
|
943
943
|
(0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
944
944
|
(0, errors_1$e.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -960,8 +960,8 @@
|
|
|
960
960
|
var concatAsync$1 = {};
|
|
961
961
|
|
|
962
962
|
concatAsync$1.concatAsync = void 0;
|
|
963
|
-
const types_1$j = es2018$
|
|
964
|
-
const go_1$d = es2018$
|
|
963
|
+
const types_1$j = es2018$3;
|
|
964
|
+
const go_1$d = es2018$5;
|
|
965
965
|
function concatAsync(iterable, ...otherIterables) {
|
|
966
966
|
return (0, go_1$d.go)(async function* () {
|
|
967
967
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -983,7 +983,7 @@
|
|
|
983
983
|
var concat$1 = {};
|
|
984
984
|
|
|
985
985
|
concat$1.concat = void 0;
|
|
986
|
-
const go_1$c = es2018$
|
|
986
|
+
const go_1$c = es2018$5;
|
|
987
987
|
function concat(iterable, ...otherIterables) {
|
|
988
988
|
return (0, go_1$c.go)(function* () {
|
|
989
989
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -1012,9 +1012,9 @@
|
|
|
1012
1012
|
utils.copyIterable = copyIterable;
|
|
1013
1013
|
|
|
1014
1014
|
dropAsync$1.dropAsync = void 0;
|
|
1015
|
-
const go_1$b = es2018$
|
|
1015
|
+
const go_1$b = es2018$5;
|
|
1016
1016
|
const utils_1$3 = utils;
|
|
1017
|
-
const errors_1$d = es2018$
|
|
1017
|
+
const errors_1$d = es2018$4;
|
|
1018
1018
|
function dropAsync(iterable, count) {
|
|
1019
1019
|
(0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1020
1020
|
(0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1047,9 +1047,9 @@
|
|
|
1047
1047
|
var dropRightAsync$1 = {};
|
|
1048
1048
|
|
|
1049
1049
|
dropRightAsync$1.dropRightAsync = void 0;
|
|
1050
|
-
const go_1$a = es2018$
|
|
1050
|
+
const go_1$a = es2018$5;
|
|
1051
1051
|
const utils_1$2 = utils;
|
|
1052
|
-
const errors_1$c = es2018$
|
|
1052
|
+
const errors_1$c = es2018$4;
|
|
1053
1053
|
function dropRightAsync(iterable, count) {
|
|
1054
1054
|
(0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1055
1055
|
(0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1075,9 +1075,9 @@
|
|
|
1075
1075
|
var dropRight$1 = {};
|
|
1076
1076
|
|
|
1077
1077
|
dropRight$1.dropRight = void 0;
|
|
1078
|
-
const go_1$9 = es2018$
|
|
1078
|
+
const go_1$9 = es2018$5;
|
|
1079
1079
|
const utils_1$1 = utils;
|
|
1080
|
-
const errors_1$b = es2018$
|
|
1080
|
+
const errors_1$b = es2018$4;
|
|
1081
1081
|
function dropRight(iterable, count) {
|
|
1082
1082
|
(0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1083
1083
|
(0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1093,7 +1093,7 @@
|
|
|
1093
1093
|
var dropUntilAsync$1 = {};
|
|
1094
1094
|
|
|
1095
1095
|
dropUntilAsync$1.dropUntilAsync = void 0;
|
|
1096
|
-
const types_1$i = es2018$
|
|
1096
|
+
const types_1$i = es2018$3;
|
|
1097
1097
|
function dropUntilAsync(iterable, predicate) {
|
|
1098
1098
|
if ((0, types_1$i.isAsyncIterable)(iterable)) {
|
|
1099
1099
|
return dropUntilAsyncIterable(iterable);
|
|
@@ -1175,9 +1175,9 @@
|
|
|
1175
1175
|
var drop$1 = {};
|
|
1176
1176
|
|
|
1177
1177
|
drop$1.drop = void 0;
|
|
1178
|
-
const go_1$8 = es2018$
|
|
1178
|
+
const go_1$8 = es2018$5;
|
|
1179
1179
|
const utils_1 = utils;
|
|
1180
|
-
const errors_1$a = es2018$
|
|
1180
|
+
const errors_1$a = es2018$4;
|
|
1181
1181
|
function drop(iterable, count) {
|
|
1182
1182
|
(0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1183
1183
|
(0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1210,7 +1210,7 @@
|
|
|
1210
1210
|
var filterAsync$1 = {};
|
|
1211
1211
|
|
|
1212
1212
|
filterAsync$1.filterAsync = void 0;
|
|
1213
|
-
const types_1$h = es2018$
|
|
1213
|
+
const types_1$h = es2018$3;
|
|
1214
1214
|
function filterAsync(iterable, predicate) {
|
|
1215
1215
|
if ((0, types_1$h.isAsyncIterable)(iterable)) {
|
|
1216
1216
|
return filterAsyncIterable(iterable);
|
|
@@ -1257,7 +1257,7 @@
|
|
|
1257
1257
|
var flattenByAsync$1 = {};
|
|
1258
1258
|
|
|
1259
1259
|
flattenByAsync$1.flattenByAsync = void 0;
|
|
1260
|
-
const types_1$g = es2018$
|
|
1260
|
+
const types_1$g = es2018$3;
|
|
1261
1261
|
function flattenByAsync(iterable, predicate) {
|
|
1262
1262
|
if ((0, types_1$g.isAsyncIterable)(iterable)) {
|
|
1263
1263
|
return flattenByAsyncIterable(iterable);
|
|
@@ -1297,7 +1297,7 @@
|
|
|
1297
1297
|
|
|
1298
1298
|
flattenDeepAsync$1.flattenDeepAsync = void 0;
|
|
1299
1299
|
const flatten_by_async_1 = flattenByAsync$1;
|
|
1300
|
-
const errors_1$9 = es2018$
|
|
1300
|
+
const errors_1$9 = es2018$4;
|
|
1301
1301
|
function flattenDeepAsync(iterable, depth = Infinity) {
|
|
1302
1302
|
(0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1303
1303
|
(0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1315,7 +1315,7 @@
|
|
|
1315
1315
|
var flattenBy$1 = {};
|
|
1316
1316
|
|
|
1317
1317
|
flattenBy$1.flattenBy = void 0;
|
|
1318
|
-
const types_1$f = es2018$
|
|
1318
|
+
const types_1$f = es2018$3;
|
|
1319
1319
|
function flattenBy(iterable, predicate) {
|
|
1320
1320
|
return flatten(iterable, 1);
|
|
1321
1321
|
function* flatten(iterable, level) {
|
|
@@ -1338,7 +1338,7 @@
|
|
|
1338
1338
|
|
|
1339
1339
|
flattenDeep$1.flattenDeep = void 0;
|
|
1340
1340
|
const flatten_by_1 = flattenBy$1;
|
|
1341
|
-
const errors_1$8 = es2018$
|
|
1341
|
+
const errors_1$8 = es2018$4;
|
|
1342
1342
|
function flattenDeep(iterable, depth = Infinity) {
|
|
1343
1343
|
(0, errors_1$8.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1344
1344
|
(0, errors_1$8.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1358,7 +1358,7 @@
|
|
|
1358
1358
|
var mapAsync$1 = {};
|
|
1359
1359
|
|
|
1360
1360
|
mapAsync$1.mapAsync = void 0;
|
|
1361
|
-
const types_1$e = es2018$
|
|
1361
|
+
const types_1$e = es2018$3;
|
|
1362
1362
|
function mapAsync(iterable, fn) {
|
|
1363
1363
|
if ((0, types_1$e.isAsyncIterable)(iterable)) {
|
|
1364
1364
|
return mapAsyncIterable(iterable);
|
|
@@ -1398,8 +1398,8 @@
|
|
|
1398
1398
|
var repeatAsync$1 = {};
|
|
1399
1399
|
|
|
1400
1400
|
repeatAsync$1.repeatAsync = void 0;
|
|
1401
|
-
const go_1$7 = es2018$
|
|
1402
|
-
const errors_1$7 = es2018$
|
|
1401
|
+
const go_1$7 = es2018$5;
|
|
1402
|
+
const errors_1$7 = es2018$4;
|
|
1403
1403
|
function repeatAsync(iterable, times) {
|
|
1404
1404
|
(0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1405
1405
|
(0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1433,8 +1433,8 @@
|
|
|
1433
1433
|
var repeat$1 = {};
|
|
1434
1434
|
|
|
1435
1435
|
repeat$1.repeat = void 0;
|
|
1436
|
-
const go_1$6 = es2018$
|
|
1437
|
-
const errors_1$6 = es2018$
|
|
1436
|
+
const go_1$6 = es2018$5;
|
|
1437
|
+
const errors_1$6 = es2018$4;
|
|
1438
1438
|
function repeat(iterable, times) {
|
|
1439
1439
|
(0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1440
1440
|
(0, errors_1$6.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1468,8 +1468,8 @@
|
|
|
1468
1468
|
var sliceAsync$1 = {};
|
|
1469
1469
|
|
|
1470
1470
|
sliceAsync$1.sliceAsync = void 0;
|
|
1471
|
-
const go_1$5 = es2018$
|
|
1472
|
-
const errors_1$5 = es2018$
|
|
1471
|
+
const go_1$5 = es2018$5;
|
|
1472
|
+
const errors_1$5 = es2018$4;
|
|
1473
1473
|
function sliceAsync(iterable, start, end = Infinity) {
|
|
1474
1474
|
(0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1475
1475
|
(0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1491,8 +1491,8 @@
|
|
|
1491
1491
|
var slice$1 = {};
|
|
1492
1492
|
|
|
1493
1493
|
slice$1.slice = void 0;
|
|
1494
|
-
const go_1$4 = es2018$
|
|
1495
|
-
const errors_1$4 = es2018$
|
|
1494
|
+
const go_1$4 = es2018$5;
|
|
1495
|
+
const errors_1$4 = es2018$4;
|
|
1496
1496
|
function slice(iterable, start, end = Infinity) {
|
|
1497
1497
|
(0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1498
1498
|
(0, errors_1$4.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1532,7 +1532,7 @@
|
|
|
1532
1532
|
var splitByAsync$1 = {};
|
|
1533
1533
|
|
|
1534
1534
|
splitByAsync$1.splitByAsync = void 0;
|
|
1535
|
-
const types_1$d = es2018$
|
|
1535
|
+
const types_1$d = es2018$3;
|
|
1536
1536
|
function splitByAsync(iterable, predicate) {
|
|
1537
1537
|
if ((0, types_1$d.isAsyncIterable)(iterable)) {
|
|
1538
1538
|
return splitByAsyncIterable(iterable);
|
|
@@ -1614,8 +1614,8 @@
|
|
|
1614
1614
|
var takeAsync$1 = {};
|
|
1615
1615
|
|
|
1616
1616
|
takeAsync$1.takeAsync = void 0;
|
|
1617
|
-
const go_1$3 = es2018$
|
|
1618
|
-
const errors_1$3 = es2018$
|
|
1617
|
+
const go_1$3 = es2018$5;
|
|
1618
|
+
const errors_1$3 = es2018$4;
|
|
1619
1619
|
function takeAsync(iterable, count) {
|
|
1620
1620
|
(0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1621
1621
|
(0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1635,8 +1635,8 @@
|
|
|
1635
1635
|
var takeRightAsync$1 = {};
|
|
1636
1636
|
|
|
1637
1637
|
takeRightAsync$1.takeRightAsync = void 0;
|
|
1638
|
-
const go_1$2 = es2018$
|
|
1639
|
-
const errors_1$2 = es2018$
|
|
1638
|
+
const go_1$2 = es2018$5;
|
|
1639
|
+
const errors_1$2 = es2018$4;
|
|
1640
1640
|
function takeRightAsync(iterable, count) {
|
|
1641
1641
|
(0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1642
1642
|
(0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1665,8 +1665,8 @@
|
|
|
1665
1665
|
var takeRight$1 = {};
|
|
1666
1666
|
|
|
1667
1667
|
takeRight$1.takeRight = void 0;
|
|
1668
|
-
const go_1$1 = es2018$
|
|
1669
|
-
const errors_1$1 = es2018$
|
|
1668
|
+
const go_1$1 = es2018$5;
|
|
1669
|
+
const errors_1$1 = es2018$4;
|
|
1670
1670
|
function takeRight(iterable, count) {
|
|
1671
1671
|
(0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1672
1672
|
(0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1695,7 +1695,7 @@
|
|
|
1695
1695
|
var takeUntilAsync$1 = {};
|
|
1696
1696
|
|
|
1697
1697
|
takeUntilAsync$1.takeUntilAsync = void 0;
|
|
1698
|
-
const types_1$c = es2018$
|
|
1698
|
+
const types_1$c = es2018$3;
|
|
1699
1699
|
function takeUntilAsync(iterable, predicate) {
|
|
1700
1700
|
if ((0, types_1$c.isAsyncIterable)(iterable)) {
|
|
1701
1701
|
return takeUntilAsyncIterable(iterable);
|
|
@@ -1741,8 +1741,8 @@
|
|
|
1741
1741
|
var take$1 = {};
|
|
1742
1742
|
|
|
1743
1743
|
take$1.take = void 0;
|
|
1744
|
-
const go_1 = es2018$
|
|
1745
|
-
const errors_1 = es2018$
|
|
1744
|
+
const go_1 = es2018$5;
|
|
1745
|
+
const errors_1 = es2018$4;
|
|
1746
1746
|
function take(iterable, count) {
|
|
1747
1747
|
(0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1748
1748
|
(0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1762,7 +1762,7 @@
|
|
|
1762
1762
|
var tapAsync$1 = {};
|
|
1763
1763
|
|
|
1764
1764
|
tapAsync$1.tapAsync = void 0;
|
|
1765
|
-
const types_1$b = es2018$
|
|
1765
|
+
const types_1$b = es2018$3;
|
|
1766
1766
|
function tapAsync(iterable, fn) {
|
|
1767
1767
|
if ((0, types_1$b.isAsyncIterable)(iterable)) {
|
|
1768
1768
|
return tapAsyncIterable(iterable);
|
|
@@ -1845,7 +1845,7 @@
|
|
|
1845
1845
|
var uniqByAsync$1 = {};
|
|
1846
1846
|
|
|
1847
1847
|
uniqByAsync$1.uniqByAsync = void 0;
|
|
1848
|
-
const types_1$a = es2018$
|
|
1848
|
+
const types_1$a = es2018$3;
|
|
1849
1849
|
function uniqByAsync(iterable, fn) {
|
|
1850
1850
|
if ((0, types_1$a.isAsyncIterable)(iterable)) {
|
|
1851
1851
|
return uniqByAsyncIterable(iterable);
|
|
@@ -1914,7 +1914,7 @@
|
|
|
1914
1914
|
var zipAsync$1 = {};
|
|
1915
1915
|
|
|
1916
1916
|
zipAsync$1.zipAsync = void 0;
|
|
1917
|
-
const types_1$9 = es2018$
|
|
1917
|
+
const types_1$9 = es2018$3;
|
|
1918
1918
|
var Kind;
|
|
1919
1919
|
(function (Kind) {
|
|
1920
1920
|
Kind[Kind["Sync"] = 0] = "Sync";
|
|
@@ -2074,7 +2074,7 @@
|
|
|
2074
2074
|
var eachAsync$1 = {};
|
|
2075
2075
|
|
|
2076
2076
|
eachAsync$1.eachAsync = void 0;
|
|
2077
|
-
const types_1$8 = es2018$
|
|
2077
|
+
const types_1$8 = es2018$3;
|
|
2078
2078
|
function eachAsync(iterable, fn) {
|
|
2079
2079
|
if ((0, types_1$8.isAsyncIterable)(iterable)) {
|
|
2080
2080
|
return eachAsyncIterable(iterable);
|
|
@@ -2114,7 +2114,7 @@
|
|
|
2114
2114
|
var everyAsync$1 = {};
|
|
2115
2115
|
|
|
2116
2116
|
everyAsync$1.everyAsync = void 0;
|
|
2117
|
-
const types_1$7 = es2018$
|
|
2117
|
+
const types_1$7 = es2018$3;
|
|
2118
2118
|
function everyAsync(iterable, predicate) {
|
|
2119
2119
|
if ((0, types_1$7.isAsyncIterable)(iterable)) {
|
|
2120
2120
|
return everyAsyncIterable(iterable);
|
|
@@ -2160,7 +2160,7 @@
|
|
|
2160
2160
|
var findAsync$1 = {};
|
|
2161
2161
|
|
|
2162
2162
|
findAsync$1.findAsync = void 0;
|
|
2163
|
-
const types_1$6 = es2018$
|
|
2163
|
+
const types_1$6 = es2018$3;
|
|
2164
2164
|
function findAsync(iterable, predicate) {
|
|
2165
2165
|
if ((0, types_1$6.isAsyncIterable)(iterable)) {
|
|
2166
2166
|
return findAsyncIterable(iterable);
|
|
@@ -2284,7 +2284,7 @@
|
|
|
2284
2284
|
var reduceAsync$1 = {};
|
|
2285
2285
|
|
|
2286
2286
|
reduceAsync$1.reduceAsync = void 0;
|
|
2287
|
-
const types_1$5 = es2018$
|
|
2287
|
+
const types_1$5 = es2018$3;
|
|
2288
2288
|
function reduceAsync(iterable, fn, initialValue) {
|
|
2289
2289
|
if ((0, types_1$5.isUndefined)(initialValue)) {
|
|
2290
2290
|
return reduceAsyncWithoutInitialValue(iterable, fn);
|
|
@@ -2380,7 +2380,7 @@
|
|
|
2380
2380
|
var reduce$1 = {};
|
|
2381
2381
|
|
|
2382
2382
|
reduce$1.reduce = void 0;
|
|
2383
|
-
const types_1$4 = es2018$
|
|
2383
|
+
const types_1$4 = es2018$3;
|
|
2384
2384
|
function reduce(iterable, fn, initialValue) {
|
|
2385
2385
|
if ((0, types_1$4.isUndefined)(initialValue)) {
|
|
2386
2386
|
return reduceWithoutInitialValue(iterable, fn);
|
|
@@ -2427,7 +2427,7 @@
|
|
|
2427
2427
|
var someAsync$1 = {};
|
|
2428
2428
|
|
|
2429
2429
|
someAsync$1.someAsync = void 0;
|
|
2430
|
-
const types_1$3 = es2018$
|
|
2430
|
+
const types_1$3 = es2018$3;
|
|
2431
2431
|
function someAsync(iterable, predicate) {
|
|
2432
2432
|
if ((0, types_1$3.isAsyncIterable)(iterable)) {
|
|
2433
2433
|
return someAsyncIterable(iterable);
|
|
@@ -2611,7 +2611,7 @@
|
|
|
2611
2611
|
};__exportStar(middleware, exports);
|
|
2612
2612
|
__exportStar(output, exports);
|
|
2613
2613
|
|
|
2614
|
-
}(es2018$
|
|
2614
|
+
}(es2018$6));
|
|
2615
2615
|
|
|
2616
2616
|
var getErrorNames$1 = {};
|
|
2617
2617
|
|
|
@@ -2629,7 +2629,7 @@
|
|
|
2629
2629
|
traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
|
|
2630
2630
|
|
|
2631
2631
|
getErrorNames$1.getErrorNames = void 0;
|
|
2632
|
-
const types_1$2 = es2018$
|
|
2632
|
+
const types_1$2 = es2018$3;
|
|
2633
2633
|
const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
|
|
2634
2634
|
function* getErrorNames(err) {
|
|
2635
2635
|
var _a;
|
|
@@ -2650,7 +2650,7 @@
|
|
|
2650
2650
|
var serializableError = {};
|
|
2651
2651
|
|
|
2652
2652
|
serializableError.isSerializableError = void 0;
|
|
2653
|
-
const types_1$1 = es2018$
|
|
2653
|
+
const types_1$1 = es2018$3;
|
|
2654
2654
|
function isSerializableError(val) {
|
|
2655
2655
|
return (0, types_1$1.isObject)(val)
|
|
2656
2656
|
&& (0, types_1$1.isString)(val.name)
|
|
@@ -2661,9 +2661,9 @@
|
|
|
2661
2661
|
serializableError.isSerializableError = isSerializableError;
|
|
2662
2662
|
|
|
2663
2663
|
customError$1.CustomError = void 0;
|
|
2664
|
-
const iterable_operator_1$1 = es2018$
|
|
2664
|
+
const iterable_operator_1$1 = es2018$6;
|
|
2665
2665
|
const get_error_names_1$1 = getErrorNames$1;
|
|
2666
|
-
const types_1 = es2018$
|
|
2666
|
+
const types_1 = es2018$3;
|
|
2667
2667
|
const serializable_error_1 = serializableError;
|
|
2668
2668
|
class CustomError extends Error {
|
|
2669
2669
|
get name() {
|
|
@@ -2699,7 +2699,7 @@
|
|
|
2699
2699
|
|
|
2700
2700
|
normalize$1.normalize = void 0;
|
|
2701
2701
|
const get_error_names_1 = getErrorNames$1;
|
|
2702
|
-
const iterable_operator_1 = es2018$
|
|
2702
|
+
const iterable_operator_1 = es2018$6;
|
|
2703
2703
|
function normalize(err) {
|
|
2704
2704
|
var _a;
|
|
2705
2705
|
const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
|
|
@@ -2712,6 +2712,56 @@
|
|
|
2712
2712
|
}
|
|
2713
2713
|
normalize$1.normalize = normalize;
|
|
2714
2714
|
|
|
2715
|
+
var hydrate$1 = {};
|
|
2716
|
+
|
|
2717
|
+
var es2018$2 = {};
|
|
2718
|
+
|
|
2719
|
+
var pass$1 = {};
|
|
2720
|
+
|
|
2721
|
+
pass$1.pass = void 0;
|
|
2722
|
+
function pass() { }
|
|
2723
|
+
pass$1.pass = pass;
|
|
2724
|
+
|
|
2725
|
+
(function (exports) {
|
|
2726
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2727
|
+
if (k2 === undefined) k2 = k;
|
|
2728
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2729
|
+
}) : (function(o, m, k, k2) {
|
|
2730
|
+
if (k2 === undefined) k2 = k;
|
|
2731
|
+
o[k2] = m[k];
|
|
2732
|
+
}));
|
|
2733
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2734
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2735
|
+
};__exportStar(pass$1, exports);
|
|
2736
|
+
|
|
2737
|
+
}(es2018$2));
|
|
2738
|
+
|
|
2739
|
+
hydrate$1.hydrate = void 0;
|
|
2740
|
+
const pass_1 = es2018$2;
|
|
2741
|
+
function hydrate(err) {
|
|
2742
|
+
var _a;
|
|
2743
|
+
const errorNames = [err.name, ...err.ancestors]
|
|
2744
|
+
.slice(0, -1)
|
|
2745
|
+
.reverse();
|
|
2746
|
+
let errorConstructor = Error;
|
|
2747
|
+
for (const name of errorNames) {
|
|
2748
|
+
errorConstructor = createChildErrorConstructor(errorConstructor, name);
|
|
2749
|
+
}
|
|
2750
|
+
const result = new errorConstructor();
|
|
2751
|
+
result.name = err.name;
|
|
2752
|
+
result.message = err.message;
|
|
2753
|
+
result.stack = (_a = err.stack) !== null && _a !== void 0 ? _a : undefined;
|
|
2754
|
+
return result;
|
|
2755
|
+
}
|
|
2756
|
+
hydrate$1.hydrate = hydrate;
|
|
2757
|
+
function createChildErrorConstructor(parentErrorConstructor, name) {
|
|
2758
|
+
const constructor = function () { (0, pass_1.pass)(); };
|
|
2759
|
+
constructor.prototype = Object.create(parentErrorConstructor.prototype);
|
|
2760
|
+
constructor.prototype.constructor = constructor;
|
|
2761
|
+
Object.defineProperty(constructor, 'name', { value: name });
|
|
2762
|
+
return constructor;
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2715
2765
|
var assert$1 = {};
|
|
2716
2766
|
|
|
2717
2767
|
assert$1.assert = void 0;
|
|
@@ -2736,19 +2786,20 @@
|
|
|
2736
2786
|
__exportStar(assertionError, exports);
|
|
2737
2787
|
__exportStar(serializableError, exports);
|
|
2738
2788
|
__exportStar(normalize$1, exports);
|
|
2789
|
+
__exportStar(hydrate$1, exports);
|
|
2739
2790
|
__exportStar(assert$1, exports);
|
|
2740
2791
|
__exportStar(getErrorNames$1, exports);
|
|
2741
2792
|
__exportStar(traverseErrorPrototypeChain$1, exports);
|
|
2742
2793
|
|
|
2743
|
-
}(es2018$
|
|
2794
|
+
}(es2018$7));
|
|
2744
2795
|
|
|
2745
2796
|
var _LRUMap_limit, _LRUMap_map;
|
|
2746
2797
|
class LRUMap {
|
|
2747
2798
|
constructor(limit) {
|
|
2748
2799
|
_LRUMap_limit.set(this, void 0);
|
|
2749
2800
|
_LRUMap_map.set(this, new Map());
|
|
2750
|
-
es2018$
|
|
2751
|
-
es2018$
|
|
2801
|
+
es2018$7.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
|
|
2802
|
+
es2018$7.assert(limit > 0, 'The parameter limit must be a positive value');
|
|
2752
2803
|
__classPrivateFieldSet(this, _LRUMap_limit, limit, "f");
|
|
2753
2804
|
}
|
|
2754
2805
|
get [(_LRUMap_limit = new WeakMap(), _LRUMap_map = new WeakMap(), Symbol.toStringTag)]() {
|
|
@@ -2796,7 +2847,7 @@
|
|
|
2796
2847
|
* Return the earliest key inserted in the Map
|
|
2797
2848
|
*/
|
|
2798
2849
|
getColdestKey() {
|
|
2799
|
-
return es2018$
|
|
2850
|
+
return es2018$6.first(__classPrivateFieldGet(this, _LRUMap_map, "f").keys());
|
|
2800
2851
|
}
|
|
2801
2852
|
}
|
|
2802
2853
|
|
|
@@ -3082,8 +3133,8 @@
|
|
|
3082
3133
|
* 按过期时间升序排列所有项目的元数据
|
|
3083
3134
|
*/
|
|
3084
3135
|
this.itemMetadataSortedByExpirationTime = [];
|
|
3085
|
-
es2018$
|
|
3086
|
-
es2018$
|
|
3136
|
+
es2018$7.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
|
|
3137
|
+
es2018$7.assert(limit > 0, 'The parameter limit must be a positive value');
|
|
3087
3138
|
__classPrivateFieldSet(this, _TLRUMap_limit, limit, "f");
|
|
3088
3139
|
}
|
|
3089
3140
|
get [(_TLRUMap_limit = new WeakMap(), _TLRUMap_map = new WeakMap(), _TLRUMap_cancelClearTimeout = new WeakMap(), Symbol.toStringTag)]() {
|
|
@@ -3202,7 +3253,7 @@
|
|
|
3202
3253
|
* Return the earliest key inserted in the Map
|
|
3203
3254
|
*/
|
|
3204
3255
|
getColdestKey() {
|
|
3205
|
-
return es2018$
|
|
3256
|
+
return es2018$6.first(__classPrivateFieldGet(this, _TLRUMap_map, "f").keys());
|
|
3206
3257
|
}
|
|
3207
3258
|
}
|
|
3208
3259
|
|
|
@@ -3270,7 +3321,7 @@
|
|
|
3270
3321
|
delete node.value;
|
|
3271
3322
|
// 如果节点没有后缀, 则代表这是末端节点, 往前删除其前缀
|
|
3272
3323
|
if (node.children.size === 0) {
|
|
3273
|
-
for (const [part, parentNode] of es2018$
|
|
3324
|
+
for (const [part, parentNode] of es2018$6.toArray(es2018$6.zip(key, parentNodes)).reverse()) {
|
|
3274
3325
|
parentNode.children.delete(part);
|
|
3275
3326
|
if (parentNode.children.size !== 0)
|
|
3276
3327
|
break;
|
|
@@ -3293,11 +3344,14 @@
|
|
|
3293
3344
|
matches(state) {
|
|
3294
3345
|
return __classPrivateFieldGet(this, _FiniteStateMachine_state, "f") === state;
|
|
3295
3346
|
}
|
|
3347
|
+
can(event) {
|
|
3348
|
+
return event in this.schema[this.state];
|
|
3349
|
+
}
|
|
3296
3350
|
/**
|
|
3297
3351
|
* @throws {BadEventError}
|
|
3298
3352
|
*/
|
|
3299
3353
|
send(event) {
|
|
3300
|
-
if (
|
|
3354
|
+
if (this.can(event)) {
|
|
3301
3355
|
__classPrivateFieldSet(this, _FiniteStateMachine_state, this.schema[this.state][event], "f");
|
|
3302
3356
|
}
|
|
3303
3357
|
else {
|
|
@@ -3306,7 +3360,7 @@
|
|
|
3306
3360
|
}
|
|
3307
3361
|
}
|
|
3308
3362
|
_FiniteStateMachine_state = new WeakMap();
|
|
3309
|
-
class BadEventError extends es2018$
|
|
3363
|
+
class BadEventError extends es2018$7.CustomError {
|
|
3310
3364
|
constructor(state, event) {
|
|
3311
3365
|
super(`State ${state} cannot react to event ${event}`);
|
|
3312
3366
|
}
|
|
@@ -3605,52 +3659,88 @@
|
|
|
3605
3659
|
};
|
|
3606
3660
|
return Subscriber;
|
|
3607
3661
|
}(Subscription));
|
|
3662
|
+
var _bind = Function.prototype.bind;
|
|
3663
|
+
function bind(fn, thisArg) {
|
|
3664
|
+
return _bind.call(fn, thisArg);
|
|
3665
|
+
}
|
|
3666
|
+
var ConsumerObserver = (function () {
|
|
3667
|
+
function ConsumerObserver(partialObserver) {
|
|
3668
|
+
this.partialObserver = partialObserver;
|
|
3669
|
+
}
|
|
3670
|
+
ConsumerObserver.prototype.next = function (value) {
|
|
3671
|
+
var partialObserver = this.partialObserver;
|
|
3672
|
+
if (partialObserver.next) {
|
|
3673
|
+
try {
|
|
3674
|
+
partialObserver.next(value);
|
|
3675
|
+
}
|
|
3676
|
+
catch (error) {
|
|
3677
|
+
handleUnhandledError(error);
|
|
3678
|
+
}
|
|
3679
|
+
}
|
|
3680
|
+
};
|
|
3681
|
+
ConsumerObserver.prototype.error = function (err) {
|
|
3682
|
+
var partialObserver = this.partialObserver;
|
|
3683
|
+
if (partialObserver.error) {
|
|
3684
|
+
try {
|
|
3685
|
+
partialObserver.error(err);
|
|
3686
|
+
}
|
|
3687
|
+
catch (error) {
|
|
3688
|
+
handleUnhandledError(error);
|
|
3689
|
+
}
|
|
3690
|
+
}
|
|
3691
|
+
else {
|
|
3692
|
+
handleUnhandledError(err);
|
|
3693
|
+
}
|
|
3694
|
+
};
|
|
3695
|
+
ConsumerObserver.prototype.complete = function () {
|
|
3696
|
+
var partialObserver = this.partialObserver;
|
|
3697
|
+
if (partialObserver.complete) {
|
|
3698
|
+
try {
|
|
3699
|
+
partialObserver.complete();
|
|
3700
|
+
}
|
|
3701
|
+
catch (error) {
|
|
3702
|
+
handleUnhandledError(error);
|
|
3703
|
+
}
|
|
3704
|
+
}
|
|
3705
|
+
};
|
|
3706
|
+
return ConsumerObserver;
|
|
3707
|
+
}());
|
|
3608
3708
|
var SafeSubscriber = (function (_super) {
|
|
3609
3709
|
__extends(SafeSubscriber, _super);
|
|
3610
3710
|
function SafeSubscriber(observerOrNext, error, complete) {
|
|
3611
3711
|
var _this = _super.call(this) || this;
|
|
3612
|
-
var
|
|
3613
|
-
if (isFunction(observerOrNext)) {
|
|
3614
|
-
|
|
3712
|
+
var partialObserver;
|
|
3713
|
+
if (isFunction(observerOrNext) || !observerOrNext) {
|
|
3714
|
+
partialObserver = {
|
|
3715
|
+
next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,
|
|
3716
|
+
error: error !== null && error !== void 0 ? error : undefined,
|
|
3717
|
+
complete: complete !== null && complete !== void 0 ? complete : undefined,
|
|
3718
|
+
};
|
|
3615
3719
|
}
|
|
3616
|
-
else
|
|
3617
|
-
(next = observerOrNext.next, error = observerOrNext.error, complete = observerOrNext.complete);
|
|
3720
|
+
else {
|
|
3618
3721
|
var context_1;
|
|
3619
3722
|
if (_this && config.useDeprecatedNextContext) {
|
|
3620
3723
|
context_1 = Object.create(observerOrNext);
|
|
3621
3724
|
context_1.unsubscribe = function () { return _this.unsubscribe(); };
|
|
3725
|
+
partialObserver = {
|
|
3726
|
+
next: observerOrNext.next && bind(observerOrNext.next, context_1),
|
|
3727
|
+
error: observerOrNext.error && bind(observerOrNext.error, context_1),
|
|
3728
|
+
complete: observerOrNext.complete && bind(observerOrNext.complete, context_1),
|
|
3729
|
+
};
|
|
3622
3730
|
}
|
|
3623
3731
|
else {
|
|
3624
|
-
|
|
3732
|
+
partialObserver = observerOrNext;
|
|
3625
3733
|
}
|
|
3626
|
-
next = next === null || next === void 0 ? void 0 : next.bind(context_1);
|
|
3627
|
-
error = error === null || error === void 0 ? void 0 : error.bind(context_1);
|
|
3628
|
-
complete = complete === null || complete === void 0 ? void 0 : complete.bind(context_1);
|
|
3629
3734
|
}
|
|
3630
|
-
_this.destination =
|
|
3631
|
-
next: next ? wrapForErrorHandling(next) : noop,
|
|
3632
|
-
error: wrapForErrorHandling(error !== null && error !== void 0 ? error : defaultErrorHandler),
|
|
3633
|
-
complete: complete ? wrapForErrorHandling(complete) : noop,
|
|
3634
|
-
};
|
|
3735
|
+
_this.destination = new ConsumerObserver(partialObserver);
|
|
3635
3736
|
return _this;
|
|
3636
3737
|
}
|
|
3637
3738
|
return SafeSubscriber;
|
|
3638
3739
|
}(Subscriber));
|
|
3639
|
-
function
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
args[_i] = arguments[_i];
|
|
3644
|
-
}
|
|
3645
|
-
try {
|
|
3646
|
-
handler.apply(void 0, __spreadArray([], __read(args)));
|
|
3647
|
-
}
|
|
3648
|
-
catch (err) {
|
|
3649
|
-
{
|
|
3650
|
-
reportUnhandledError(err);
|
|
3651
|
-
}
|
|
3652
|
-
}
|
|
3653
|
-
};
|
|
3740
|
+
function handleUnhandledError(error) {
|
|
3741
|
+
{
|
|
3742
|
+
reportUnhandledError(error);
|
|
3743
|
+
}
|
|
3654
3744
|
}
|
|
3655
3745
|
function defaultErrorHandler(err) {
|
|
3656
3746
|
throw err;
|
|
@@ -3942,7 +4032,7 @@
|
|
|
3942
4032
|
super.send(event);
|
|
3943
4033
|
const newState = this.state;
|
|
3944
4034
|
this.stateChanges.next({ event, oldState, newState });
|
|
3945
|
-
if (es2018$
|
|
4035
|
+
if (es2018$3.isEmptyObject(this.schema[newState])) {
|
|
3946
4036
|
this.stateChanges.complete();
|
|
3947
4037
|
}
|
|
3948
4038
|
}
|