@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/es2015/index.mjs
CHANGED
|
@@ -233,17 +233,17 @@ class Queue {
|
|
|
233
233
|
|
|
234
234
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
235
235
|
|
|
236
|
-
var es2018$
|
|
236
|
+
var es2018$7 = {};
|
|
237
237
|
|
|
238
238
|
var customError$1 = {};
|
|
239
239
|
|
|
240
|
-
var es2018$
|
|
240
|
+
var es2018$6 = {};
|
|
241
241
|
|
|
242
242
|
var middleware = {};
|
|
243
243
|
|
|
244
244
|
var chunkAsync$1 = {};
|
|
245
245
|
|
|
246
|
-
var es2018$
|
|
246
|
+
var es2018$5 = {};
|
|
247
247
|
|
|
248
248
|
var go$1 = {};
|
|
249
249
|
|
|
@@ -265,9 +265,9 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
|
|
|
265
265
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
266
266
|
};__exportStar(go$1, exports);
|
|
267
267
|
|
|
268
|
-
}(es2018$
|
|
268
|
+
}(es2018$5));
|
|
269
269
|
|
|
270
|
-
var es2018$
|
|
270
|
+
var es2018$4 = {};
|
|
271
271
|
|
|
272
272
|
var customError = {};
|
|
273
273
|
|
|
@@ -345,11 +345,11 @@ __exportStar(normalize$3, exports);
|
|
|
345
345
|
__exportStar(refute$1, exports);
|
|
346
346
|
__exportStar(assert$3, exports);
|
|
347
347
|
|
|
348
|
-
}(es2018$
|
|
348
|
+
}(es2018$4));
|
|
349
349
|
|
|
350
350
|
chunkAsync$1.chunkAsync = void 0;
|
|
351
|
-
const go_1$f = es2018$
|
|
352
|
-
const errors_1$f = es2018$
|
|
351
|
+
const go_1$f = es2018$5;
|
|
352
|
+
const errors_1$f = es2018$4;
|
|
353
353
|
function chunkAsync(iterable, size) {
|
|
354
354
|
(0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
355
355
|
(0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -370,7 +370,7 @@ chunkAsync$1.chunkAsync = chunkAsync;
|
|
|
370
370
|
|
|
371
371
|
var chunkByAsync$1 = {};
|
|
372
372
|
|
|
373
|
-
var es2018$
|
|
373
|
+
var es2018$3 = {};
|
|
374
374
|
|
|
375
375
|
var array = {};
|
|
376
376
|
|
|
@@ -867,10 +867,10 @@ __exportStar(string, exports);
|
|
|
867
867
|
__exportStar(_undefined, exports);
|
|
868
868
|
__exportStar(url, exports);
|
|
869
869
|
|
|
870
|
-
}(es2018$
|
|
870
|
+
}(es2018$3));
|
|
871
871
|
|
|
872
872
|
chunkByAsync$1.chunkByAsync = void 0;
|
|
873
|
-
const types_1$k = es2018$
|
|
873
|
+
const types_1$k = es2018$3;
|
|
874
874
|
function chunkByAsync(iterable, predicate) {
|
|
875
875
|
if ((0, types_1$k.isAsyncIterable)(iterable)) {
|
|
876
876
|
return chunkByAsyncIterable(iterable);
|
|
@@ -931,8 +931,8 @@ chunkBy$1.chunkBy = chunkBy;
|
|
|
931
931
|
var chunk$1 = {};
|
|
932
932
|
|
|
933
933
|
chunk$1.chunk = void 0;
|
|
934
|
-
const go_1$e = es2018$
|
|
935
|
-
const errors_1$e = es2018$
|
|
934
|
+
const go_1$e = es2018$5;
|
|
935
|
+
const errors_1$e = es2018$4;
|
|
936
936
|
function chunk(iterable, size) {
|
|
937
937
|
(0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
938
938
|
(0, errors_1$e.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -954,8 +954,8 @@ chunk$1.chunk = chunk;
|
|
|
954
954
|
var concatAsync$1 = {};
|
|
955
955
|
|
|
956
956
|
concatAsync$1.concatAsync = void 0;
|
|
957
|
-
const types_1$j = es2018$
|
|
958
|
-
const go_1$d = es2018$
|
|
957
|
+
const types_1$j = es2018$3;
|
|
958
|
+
const go_1$d = es2018$5;
|
|
959
959
|
function concatAsync(iterable, ...otherIterables) {
|
|
960
960
|
return (0, go_1$d.go)(async function* () {
|
|
961
961
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -977,7 +977,7 @@ concatAsync$1.concatAsync = concatAsync;
|
|
|
977
977
|
var concat$1 = {};
|
|
978
978
|
|
|
979
979
|
concat$1.concat = void 0;
|
|
980
|
-
const go_1$c = es2018$
|
|
980
|
+
const go_1$c = es2018$5;
|
|
981
981
|
function concat(iterable, ...otherIterables) {
|
|
982
982
|
return (0, go_1$c.go)(function* () {
|
|
983
983
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -1006,9 +1006,9 @@ function* copyIterable(iterable) {
|
|
|
1006
1006
|
utils.copyIterable = copyIterable;
|
|
1007
1007
|
|
|
1008
1008
|
dropAsync$1.dropAsync = void 0;
|
|
1009
|
-
const go_1$b = es2018$
|
|
1009
|
+
const go_1$b = es2018$5;
|
|
1010
1010
|
const utils_1$3 = utils;
|
|
1011
|
-
const errors_1$d = es2018$
|
|
1011
|
+
const errors_1$d = es2018$4;
|
|
1012
1012
|
function dropAsync(iterable, count) {
|
|
1013
1013
|
(0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1014
1014
|
(0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1041,9 +1041,9 @@ dropAsync$1.dropAsync = dropAsync;
|
|
|
1041
1041
|
var dropRightAsync$1 = {};
|
|
1042
1042
|
|
|
1043
1043
|
dropRightAsync$1.dropRightAsync = void 0;
|
|
1044
|
-
const go_1$a = es2018$
|
|
1044
|
+
const go_1$a = es2018$5;
|
|
1045
1045
|
const utils_1$2 = utils;
|
|
1046
|
-
const errors_1$c = es2018$
|
|
1046
|
+
const errors_1$c = es2018$4;
|
|
1047
1047
|
function dropRightAsync(iterable, count) {
|
|
1048
1048
|
(0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1049
1049
|
(0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1069,9 +1069,9 @@ async function toArrayAsync$2(iterable) {
|
|
|
1069
1069
|
var dropRight$1 = {};
|
|
1070
1070
|
|
|
1071
1071
|
dropRight$1.dropRight = void 0;
|
|
1072
|
-
const go_1$9 = es2018$
|
|
1072
|
+
const go_1$9 = es2018$5;
|
|
1073
1073
|
const utils_1$1 = utils;
|
|
1074
|
-
const errors_1$b = es2018$
|
|
1074
|
+
const errors_1$b = es2018$4;
|
|
1075
1075
|
function dropRight(iterable, count) {
|
|
1076
1076
|
(0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1077
1077
|
(0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1087,7 +1087,7 @@ dropRight$1.dropRight = dropRight;
|
|
|
1087
1087
|
var dropUntilAsync$1 = {};
|
|
1088
1088
|
|
|
1089
1089
|
dropUntilAsync$1.dropUntilAsync = void 0;
|
|
1090
|
-
const types_1$i = es2018$
|
|
1090
|
+
const types_1$i = es2018$3;
|
|
1091
1091
|
function dropUntilAsync(iterable, predicate) {
|
|
1092
1092
|
if ((0, types_1$i.isAsyncIterable)(iterable)) {
|
|
1093
1093
|
return dropUntilAsyncIterable(iterable);
|
|
@@ -1169,9 +1169,9 @@ dropUntil$1.dropUntil = dropUntil;
|
|
|
1169
1169
|
var drop$1 = {};
|
|
1170
1170
|
|
|
1171
1171
|
drop$1.drop = void 0;
|
|
1172
|
-
const go_1$8 = es2018$
|
|
1172
|
+
const go_1$8 = es2018$5;
|
|
1173
1173
|
const utils_1 = utils;
|
|
1174
|
-
const errors_1$a = es2018$
|
|
1174
|
+
const errors_1$a = es2018$4;
|
|
1175
1175
|
function drop(iterable, count) {
|
|
1176
1176
|
(0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1177
1177
|
(0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1204,7 +1204,7 @@ drop$1.drop = drop;
|
|
|
1204
1204
|
var filterAsync$1 = {};
|
|
1205
1205
|
|
|
1206
1206
|
filterAsync$1.filterAsync = void 0;
|
|
1207
|
-
const types_1$h = es2018$
|
|
1207
|
+
const types_1$h = es2018$3;
|
|
1208
1208
|
function filterAsync(iterable, predicate) {
|
|
1209
1209
|
if ((0, types_1$h.isAsyncIterable)(iterable)) {
|
|
1210
1210
|
return filterAsyncIterable(iterable);
|
|
@@ -1251,7 +1251,7 @@ var flattenDeepAsync$1 = {};
|
|
|
1251
1251
|
var flattenByAsync$1 = {};
|
|
1252
1252
|
|
|
1253
1253
|
flattenByAsync$1.flattenByAsync = void 0;
|
|
1254
|
-
const types_1$g = es2018$
|
|
1254
|
+
const types_1$g = es2018$3;
|
|
1255
1255
|
function flattenByAsync(iterable, predicate) {
|
|
1256
1256
|
if ((0, types_1$g.isAsyncIterable)(iterable)) {
|
|
1257
1257
|
return flattenByAsyncIterable(iterable);
|
|
@@ -1291,7 +1291,7 @@ function isFiniteIterable$1(val) {
|
|
|
1291
1291
|
|
|
1292
1292
|
flattenDeepAsync$1.flattenDeepAsync = void 0;
|
|
1293
1293
|
const flatten_by_async_1 = flattenByAsync$1;
|
|
1294
|
-
const errors_1$9 = es2018$
|
|
1294
|
+
const errors_1$9 = es2018$4;
|
|
1295
1295
|
function flattenDeepAsync(iterable, depth = Infinity) {
|
|
1296
1296
|
(0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1297
1297
|
(0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1309,7 +1309,7 @@ flattenAsync$1.flattenAsync = flattenAsync;
|
|
|
1309
1309
|
var flattenBy$1 = {};
|
|
1310
1310
|
|
|
1311
1311
|
flattenBy$1.flattenBy = void 0;
|
|
1312
|
-
const types_1$f = es2018$
|
|
1312
|
+
const types_1$f = es2018$3;
|
|
1313
1313
|
function flattenBy(iterable, predicate) {
|
|
1314
1314
|
return flatten(iterable, 1);
|
|
1315
1315
|
function* flatten(iterable, level) {
|
|
@@ -1332,7 +1332,7 @@ var flattenDeep$1 = {};
|
|
|
1332
1332
|
|
|
1333
1333
|
flattenDeep$1.flattenDeep = void 0;
|
|
1334
1334
|
const flatten_by_1 = flattenBy$1;
|
|
1335
|
-
const errors_1$8 = es2018$
|
|
1335
|
+
const errors_1$8 = es2018$4;
|
|
1336
1336
|
function flattenDeep(iterable, depth = Infinity) {
|
|
1337
1337
|
(0, errors_1$8.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1338
1338
|
(0, errors_1$8.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1352,7 +1352,7 @@ flatten$1.flatten = flatten;
|
|
|
1352
1352
|
var mapAsync$1 = {};
|
|
1353
1353
|
|
|
1354
1354
|
mapAsync$1.mapAsync = void 0;
|
|
1355
|
-
const types_1$e = es2018$
|
|
1355
|
+
const types_1$e = es2018$3;
|
|
1356
1356
|
function mapAsync(iterable, fn) {
|
|
1357
1357
|
if ((0, types_1$e.isAsyncIterable)(iterable)) {
|
|
1358
1358
|
return mapAsyncIterable(iterable);
|
|
@@ -1392,8 +1392,8 @@ map$1.map = map;
|
|
|
1392
1392
|
var repeatAsync$1 = {};
|
|
1393
1393
|
|
|
1394
1394
|
repeatAsync$1.repeatAsync = void 0;
|
|
1395
|
-
const go_1$7 = es2018$
|
|
1396
|
-
const errors_1$7 = es2018$
|
|
1395
|
+
const go_1$7 = es2018$5;
|
|
1396
|
+
const errors_1$7 = es2018$4;
|
|
1397
1397
|
function repeatAsync(iterable, times) {
|
|
1398
1398
|
(0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1399
1399
|
(0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1427,8 +1427,8 @@ function isProduction$1() {
|
|
|
1427
1427
|
var repeat$1 = {};
|
|
1428
1428
|
|
|
1429
1429
|
repeat$1.repeat = void 0;
|
|
1430
|
-
const go_1$6 = es2018$
|
|
1431
|
-
const errors_1$6 = es2018$
|
|
1430
|
+
const go_1$6 = es2018$5;
|
|
1431
|
+
const errors_1$6 = es2018$4;
|
|
1432
1432
|
function repeat(iterable, times) {
|
|
1433
1433
|
(0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1434
1434
|
(0, errors_1$6.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1462,8 +1462,8 @@ function isProduction() {
|
|
|
1462
1462
|
var sliceAsync$1 = {};
|
|
1463
1463
|
|
|
1464
1464
|
sliceAsync$1.sliceAsync = void 0;
|
|
1465
|
-
const go_1$5 = es2018$
|
|
1466
|
-
const errors_1$5 = es2018$
|
|
1465
|
+
const go_1$5 = es2018$5;
|
|
1466
|
+
const errors_1$5 = es2018$4;
|
|
1467
1467
|
function sliceAsync(iterable, start, end = Infinity) {
|
|
1468
1468
|
(0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1469
1469
|
(0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1485,8 +1485,8 @@ sliceAsync$1.sliceAsync = sliceAsync;
|
|
|
1485
1485
|
var slice$1 = {};
|
|
1486
1486
|
|
|
1487
1487
|
slice$1.slice = void 0;
|
|
1488
|
-
const go_1$4 = es2018$
|
|
1489
|
-
const errors_1$4 = es2018$
|
|
1488
|
+
const go_1$4 = es2018$5;
|
|
1489
|
+
const errors_1$4 = es2018$4;
|
|
1490
1490
|
function slice(iterable, start, end = Infinity) {
|
|
1491
1491
|
(0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1492
1492
|
(0, errors_1$4.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1526,7 +1526,7 @@ splitAsync$1.splitAsync = splitAsync;
|
|
|
1526
1526
|
var splitByAsync$1 = {};
|
|
1527
1527
|
|
|
1528
1528
|
splitByAsync$1.splitByAsync = void 0;
|
|
1529
|
-
const types_1$d = es2018$
|
|
1529
|
+
const types_1$d = es2018$3;
|
|
1530
1530
|
function splitByAsync(iterable, predicate) {
|
|
1531
1531
|
if ((0, types_1$d.isAsyncIterable)(iterable)) {
|
|
1532
1532
|
return splitByAsyncIterable(iterable);
|
|
@@ -1608,8 +1608,8 @@ split$1.split = split;
|
|
|
1608
1608
|
var takeAsync$1 = {};
|
|
1609
1609
|
|
|
1610
1610
|
takeAsync$1.takeAsync = void 0;
|
|
1611
|
-
const go_1$3 = es2018$
|
|
1612
|
-
const errors_1$3 = es2018$
|
|
1611
|
+
const go_1$3 = es2018$5;
|
|
1612
|
+
const errors_1$3 = es2018$4;
|
|
1613
1613
|
function takeAsync(iterable, count) {
|
|
1614
1614
|
(0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1615
1615
|
(0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1629,8 +1629,8 @@ takeAsync$1.takeAsync = takeAsync;
|
|
|
1629
1629
|
var takeRightAsync$1 = {};
|
|
1630
1630
|
|
|
1631
1631
|
takeRightAsync$1.takeRightAsync = void 0;
|
|
1632
|
-
const go_1$2 = es2018$
|
|
1633
|
-
const errors_1$2 = es2018$
|
|
1632
|
+
const go_1$2 = es2018$5;
|
|
1633
|
+
const errors_1$2 = es2018$4;
|
|
1634
1634
|
function takeRightAsync(iterable, count) {
|
|
1635
1635
|
(0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1636
1636
|
(0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1659,8 +1659,8 @@ takeRightAsync$1.takeRightAsync = takeRightAsync;
|
|
|
1659
1659
|
var takeRight$1 = {};
|
|
1660
1660
|
|
|
1661
1661
|
takeRight$1.takeRight = void 0;
|
|
1662
|
-
const go_1$1 = es2018$
|
|
1663
|
-
const errors_1$1 = es2018$
|
|
1662
|
+
const go_1$1 = es2018$5;
|
|
1663
|
+
const errors_1$1 = es2018$4;
|
|
1664
1664
|
function takeRight(iterable, count) {
|
|
1665
1665
|
(0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1666
1666
|
(0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1689,7 +1689,7 @@ takeRight$1.takeRight = takeRight;
|
|
|
1689
1689
|
var takeUntilAsync$1 = {};
|
|
1690
1690
|
|
|
1691
1691
|
takeUntilAsync$1.takeUntilAsync = void 0;
|
|
1692
|
-
const types_1$c = es2018$
|
|
1692
|
+
const types_1$c = es2018$3;
|
|
1693
1693
|
function takeUntilAsync(iterable, predicate) {
|
|
1694
1694
|
if ((0, types_1$c.isAsyncIterable)(iterable)) {
|
|
1695
1695
|
return takeUntilAsyncIterable(iterable);
|
|
@@ -1735,8 +1735,8 @@ takeUntil$1.takeUntil = takeUntil;
|
|
|
1735
1735
|
var take$1 = {};
|
|
1736
1736
|
|
|
1737
1737
|
take$1.take = void 0;
|
|
1738
|
-
const go_1 = es2018$
|
|
1739
|
-
const errors_1 = es2018$
|
|
1738
|
+
const go_1 = es2018$5;
|
|
1739
|
+
const errors_1 = es2018$4;
|
|
1740
1740
|
function take(iterable, count) {
|
|
1741
1741
|
(0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1742
1742
|
(0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1756,7 +1756,7 @@ take$1.take = take;
|
|
|
1756
1756
|
var tapAsync$1 = {};
|
|
1757
1757
|
|
|
1758
1758
|
tapAsync$1.tapAsync = void 0;
|
|
1759
|
-
const types_1$b = es2018$
|
|
1759
|
+
const types_1$b = es2018$3;
|
|
1760
1760
|
function tapAsync(iterable, fn) {
|
|
1761
1761
|
if ((0, types_1$b.isAsyncIterable)(iterable)) {
|
|
1762
1762
|
return tapAsyncIterable(iterable);
|
|
@@ -1839,7 +1839,7 @@ uniqAsync$1.uniqAsync = uniqAsync;
|
|
|
1839
1839
|
var uniqByAsync$1 = {};
|
|
1840
1840
|
|
|
1841
1841
|
uniqByAsync$1.uniqByAsync = void 0;
|
|
1842
|
-
const types_1$a = es2018$
|
|
1842
|
+
const types_1$a = es2018$3;
|
|
1843
1843
|
function uniqByAsync(iterable, fn) {
|
|
1844
1844
|
if ((0, types_1$a.isAsyncIterable)(iterable)) {
|
|
1845
1845
|
return uniqByAsyncIterable(iterable);
|
|
@@ -1908,7 +1908,7 @@ uniq$1.uniq = uniq;
|
|
|
1908
1908
|
var zipAsync$1 = {};
|
|
1909
1909
|
|
|
1910
1910
|
zipAsync$1.zipAsync = void 0;
|
|
1911
|
-
const types_1$9 = es2018$
|
|
1911
|
+
const types_1$9 = es2018$3;
|
|
1912
1912
|
var Kind;
|
|
1913
1913
|
(function (Kind) {
|
|
1914
1914
|
Kind[Kind["Sync"] = 0] = "Sync";
|
|
@@ -2068,7 +2068,7 @@ consume$1.consume = consume;
|
|
|
2068
2068
|
var eachAsync$1 = {};
|
|
2069
2069
|
|
|
2070
2070
|
eachAsync$1.eachAsync = void 0;
|
|
2071
|
-
const types_1$8 = es2018$
|
|
2071
|
+
const types_1$8 = es2018$3;
|
|
2072
2072
|
function eachAsync(iterable, fn) {
|
|
2073
2073
|
if ((0, types_1$8.isAsyncIterable)(iterable)) {
|
|
2074
2074
|
return eachAsyncIterable(iterable);
|
|
@@ -2108,7 +2108,7 @@ each$1.each = each;
|
|
|
2108
2108
|
var everyAsync$1 = {};
|
|
2109
2109
|
|
|
2110
2110
|
everyAsync$1.everyAsync = void 0;
|
|
2111
|
-
const types_1$7 = es2018$
|
|
2111
|
+
const types_1$7 = es2018$3;
|
|
2112
2112
|
function everyAsync(iterable, predicate) {
|
|
2113
2113
|
if ((0, types_1$7.isAsyncIterable)(iterable)) {
|
|
2114
2114
|
return everyAsyncIterable(iterable);
|
|
@@ -2154,7 +2154,7 @@ every$1.every = every;
|
|
|
2154
2154
|
var findAsync$1 = {};
|
|
2155
2155
|
|
|
2156
2156
|
findAsync$1.findAsync = void 0;
|
|
2157
|
-
const types_1$6 = es2018$
|
|
2157
|
+
const types_1$6 = es2018$3;
|
|
2158
2158
|
function findAsync(iterable, predicate) {
|
|
2159
2159
|
if ((0, types_1$6.isAsyncIterable)(iterable)) {
|
|
2160
2160
|
return findAsyncIterable(iterable);
|
|
@@ -2278,7 +2278,7 @@ match$1.match = match;
|
|
|
2278
2278
|
var reduceAsync$1 = {};
|
|
2279
2279
|
|
|
2280
2280
|
reduceAsync$1.reduceAsync = void 0;
|
|
2281
|
-
const types_1$5 = es2018$
|
|
2281
|
+
const types_1$5 = es2018$3;
|
|
2282
2282
|
function reduceAsync(iterable, fn, initialValue) {
|
|
2283
2283
|
if ((0, types_1$5.isUndefined)(initialValue)) {
|
|
2284
2284
|
return reduceAsyncWithoutInitialValue(iterable, fn);
|
|
@@ -2374,7 +2374,7 @@ function reduceAsyncWithoutInitialValue(iterable, fn) {
|
|
|
2374
2374
|
var reduce$1 = {};
|
|
2375
2375
|
|
|
2376
2376
|
reduce$1.reduce = void 0;
|
|
2377
|
-
const types_1$4 = es2018$
|
|
2377
|
+
const types_1$4 = es2018$3;
|
|
2378
2378
|
function reduce(iterable, fn, initialValue) {
|
|
2379
2379
|
if ((0, types_1$4.isUndefined)(initialValue)) {
|
|
2380
2380
|
return reduceWithoutInitialValue(iterable, fn);
|
|
@@ -2421,7 +2421,7 @@ function reduceWithoutInitialValue(iterable, fn) {
|
|
|
2421
2421
|
var someAsync$1 = {};
|
|
2422
2422
|
|
|
2423
2423
|
someAsync$1.someAsync = void 0;
|
|
2424
|
-
const types_1$3 = es2018$
|
|
2424
|
+
const types_1$3 = es2018$3;
|
|
2425
2425
|
function someAsync(iterable, predicate) {
|
|
2426
2426
|
if ((0, types_1$3.isAsyncIterable)(iterable)) {
|
|
2427
2427
|
return someAsyncIterable(iterable);
|
|
@@ -2605,7 +2605,7 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
|
|
|
2605
2605
|
};__exportStar(middleware, exports);
|
|
2606
2606
|
__exportStar(output, exports);
|
|
2607
2607
|
|
|
2608
|
-
}(es2018$
|
|
2608
|
+
}(es2018$6));
|
|
2609
2609
|
|
|
2610
2610
|
var getErrorNames$1 = {};
|
|
2611
2611
|
|
|
@@ -2623,7 +2623,7 @@ function* traverseErrorPrototypeChain(err) {
|
|
|
2623
2623
|
traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
|
|
2624
2624
|
|
|
2625
2625
|
getErrorNames$1.getErrorNames = void 0;
|
|
2626
|
-
const types_1$2 = es2018$
|
|
2626
|
+
const types_1$2 = es2018$3;
|
|
2627
2627
|
const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
|
|
2628
2628
|
function* getErrorNames(err) {
|
|
2629
2629
|
var _a;
|
|
@@ -2644,7 +2644,7 @@ getErrorNames$1.getErrorNames = getErrorNames;
|
|
|
2644
2644
|
var serializableError = {};
|
|
2645
2645
|
|
|
2646
2646
|
serializableError.isSerializableError = void 0;
|
|
2647
|
-
const types_1$1 = es2018$
|
|
2647
|
+
const types_1$1 = es2018$3;
|
|
2648
2648
|
function isSerializableError(val) {
|
|
2649
2649
|
return (0, types_1$1.isObject)(val)
|
|
2650
2650
|
&& (0, types_1$1.isString)(val.name)
|
|
@@ -2655,9 +2655,9 @@ function isSerializableError(val) {
|
|
|
2655
2655
|
serializableError.isSerializableError = isSerializableError;
|
|
2656
2656
|
|
|
2657
2657
|
customError$1.CustomError = void 0;
|
|
2658
|
-
const iterable_operator_1$1 = es2018$
|
|
2658
|
+
const iterable_operator_1$1 = es2018$6;
|
|
2659
2659
|
const get_error_names_1$1 = getErrorNames$1;
|
|
2660
|
-
const types_1 = es2018$
|
|
2660
|
+
const types_1 = es2018$3;
|
|
2661
2661
|
const serializable_error_1 = serializableError;
|
|
2662
2662
|
class CustomError extends Error {
|
|
2663
2663
|
get name() {
|
|
@@ -2693,7 +2693,7 @@ var normalize$1 = {};
|
|
|
2693
2693
|
|
|
2694
2694
|
normalize$1.normalize = void 0;
|
|
2695
2695
|
const get_error_names_1 = getErrorNames$1;
|
|
2696
|
-
const iterable_operator_1 = es2018$
|
|
2696
|
+
const iterable_operator_1 = es2018$6;
|
|
2697
2697
|
function normalize(err) {
|
|
2698
2698
|
var _a;
|
|
2699
2699
|
const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
|
|
@@ -2706,6 +2706,56 @@ function normalize(err) {
|
|
|
2706
2706
|
}
|
|
2707
2707
|
normalize$1.normalize = normalize;
|
|
2708
2708
|
|
|
2709
|
+
var hydrate$1 = {};
|
|
2710
|
+
|
|
2711
|
+
var es2018$2 = {};
|
|
2712
|
+
|
|
2713
|
+
var pass$1 = {};
|
|
2714
|
+
|
|
2715
|
+
pass$1.pass = void 0;
|
|
2716
|
+
function pass() { }
|
|
2717
|
+
pass$1.pass = pass;
|
|
2718
|
+
|
|
2719
|
+
(function (exports) {
|
|
2720
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2721
|
+
if (k2 === undefined) k2 = k;
|
|
2722
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2723
|
+
}) : (function(o, m, k, k2) {
|
|
2724
|
+
if (k2 === undefined) k2 = k;
|
|
2725
|
+
o[k2] = m[k];
|
|
2726
|
+
}));
|
|
2727
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2728
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2729
|
+
};__exportStar(pass$1, exports);
|
|
2730
|
+
|
|
2731
|
+
}(es2018$2));
|
|
2732
|
+
|
|
2733
|
+
hydrate$1.hydrate = void 0;
|
|
2734
|
+
const pass_1 = es2018$2;
|
|
2735
|
+
function hydrate(err) {
|
|
2736
|
+
var _a;
|
|
2737
|
+
const errorNames = [err.name, ...err.ancestors]
|
|
2738
|
+
.slice(0, -1)
|
|
2739
|
+
.reverse();
|
|
2740
|
+
let errorConstructor = Error;
|
|
2741
|
+
for (const name of errorNames) {
|
|
2742
|
+
errorConstructor = createChildErrorConstructor(errorConstructor, name);
|
|
2743
|
+
}
|
|
2744
|
+
const result = new errorConstructor();
|
|
2745
|
+
result.name = err.name;
|
|
2746
|
+
result.message = err.message;
|
|
2747
|
+
result.stack = (_a = err.stack) !== null && _a !== void 0 ? _a : undefined;
|
|
2748
|
+
return result;
|
|
2749
|
+
}
|
|
2750
|
+
hydrate$1.hydrate = hydrate;
|
|
2751
|
+
function createChildErrorConstructor(parentErrorConstructor, name) {
|
|
2752
|
+
const constructor = function () { (0, pass_1.pass)(); };
|
|
2753
|
+
constructor.prototype = Object.create(parentErrorConstructor.prototype);
|
|
2754
|
+
constructor.prototype.constructor = constructor;
|
|
2755
|
+
Object.defineProperty(constructor, 'name', { value: name });
|
|
2756
|
+
return constructor;
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2709
2759
|
var assert$1 = {};
|
|
2710
2760
|
|
|
2711
2761
|
assert$1.assert = void 0;
|
|
@@ -2730,19 +2780,20 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
|
|
|
2730
2780
|
__exportStar(assertionError, exports);
|
|
2731
2781
|
__exportStar(serializableError, exports);
|
|
2732
2782
|
__exportStar(normalize$1, exports);
|
|
2783
|
+
__exportStar(hydrate$1, exports);
|
|
2733
2784
|
__exportStar(assert$1, exports);
|
|
2734
2785
|
__exportStar(getErrorNames$1, exports);
|
|
2735
2786
|
__exportStar(traverseErrorPrototypeChain$1, exports);
|
|
2736
2787
|
|
|
2737
|
-
}(es2018$
|
|
2788
|
+
}(es2018$7));
|
|
2738
2789
|
|
|
2739
2790
|
var _LRUMap_limit, _LRUMap_map;
|
|
2740
2791
|
class LRUMap {
|
|
2741
2792
|
constructor(limit) {
|
|
2742
2793
|
_LRUMap_limit.set(this, void 0);
|
|
2743
2794
|
_LRUMap_map.set(this, new Map());
|
|
2744
|
-
es2018$
|
|
2745
|
-
es2018$
|
|
2795
|
+
es2018$7.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
|
|
2796
|
+
es2018$7.assert(limit > 0, 'The parameter limit must be a positive value');
|
|
2746
2797
|
__classPrivateFieldSet(this, _LRUMap_limit, limit, "f");
|
|
2747
2798
|
}
|
|
2748
2799
|
get [(_LRUMap_limit = new WeakMap(), _LRUMap_map = new WeakMap(), Symbol.toStringTag)]() {
|
|
@@ -2790,7 +2841,7 @@ class LRUMap {
|
|
|
2790
2841
|
* Return the earliest key inserted in the Map
|
|
2791
2842
|
*/
|
|
2792
2843
|
getColdestKey() {
|
|
2793
|
-
return es2018$
|
|
2844
|
+
return es2018$6.first(__classPrivateFieldGet(this, _LRUMap_map, "f").keys());
|
|
2794
2845
|
}
|
|
2795
2846
|
}
|
|
2796
2847
|
|
|
@@ -3076,8 +3127,8 @@ class TLRUMap {
|
|
|
3076
3127
|
* 按过期时间升序排列所有项目的元数据
|
|
3077
3128
|
*/
|
|
3078
3129
|
this.itemMetadataSortedByExpirationTime = [];
|
|
3079
|
-
es2018$
|
|
3080
|
-
es2018$
|
|
3130
|
+
es2018$7.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
|
|
3131
|
+
es2018$7.assert(limit > 0, 'The parameter limit must be a positive value');
|
|
3081
3132
|
__classPrivateFieldSet(this, _TLRUMap_limit, limit, "f");
|
|
3082
3133
|
}
|
|
3083
3134
|
get [(_TLRUMap_limit = new WeakMap(), _TLRUMap_map = new WeakMap(), _TLRUMap_cancelClearTimeout = new WeakMap(), Symbol.toStringTag)]() {
|
|
@@ -3196,7 +3247,7 @@ class TLRUMap {
|
|
|
3196
3247
|
* Return the earliest key inserted in the Map
|
|
3197
3248
|
*/
|
|
3198
3249
|
getColdestKey() {
|
|
3199
|
-
return es2018$
|
|
3250
|
+
return es2018$6.first(__classPrivateFieldGet(this, _TLRUMap_map, "f").keys());
|
|
3200
3251
|
}
|
|
3201
3252
|
}
|
|
3202
3253
|
|
|
@@ -3264,7 +3315,7 @@ class TrieMap {
|
|
|
3264
3315
|
delete node.value;
|
|
3265
3316
|
// 如果节点没有后缀, 则代表这是末端节点, 往前删除其前缀
|
|
3266
3317
|
if (node.children.size === 0) {
|
|
3267
|
-
for (const [part, parentNode] of es2018$
|
|
3318
|
+
for (const [part, parentNode] of es2018$6.toArray(es2018$6.zip(key, parentNodes)).reverse()) {
|
|
3268
3319
|
parentNode.children.delete(part);
|
|
3269
3320
|
if (parentNode.children.size !== 0)
|
|
3270
3321
|
break;
|
|
@@ -3287,11 +3338,14 @@ class FiniteStateMachine {
|
|
|
3287
3338
|
matches(state) {
|
|
3288
3339
|
return __classPrivateFieldGet(this, _FiniteStateMachine_state, "f") === state;
|
|
3289
3340
|
}
|
|
3341
|
+
can(event) {
|
|
3342
|
+
return event in this.schema[this.state];
|
|
3343
|
+
}
|
|
3290
3344
|
/**
|
|
3291
3345
|
* @throws {BadEventError}
|
|
3292
3346
|
*/
|
|
3293
3347
|
send(event) {
|
|
3294
|
-
if (
|
|
3348
|
+
if (this.can(event)) {
|
|
3295
3349
|
__classPrivateFieldSet(this, _FiniteStateMachine_state, this.schema[this.state][event], "f");
|
|
3296
3350
|
}
|
|
3297
3351
|
else {
|
|
@@ -3300,7 +3354,7 @@ class FiniteStateMachine {
|
|
|
3300
3354
|
}
|
|
3301
3355
|
}
|
|
3302
3356
|
_FiniteStateMachine_state = new WeakMap();
|
|
3303
|
-
class BadEventError extends es2018$
|
|
3357
|
+
class BadEventError extends es2018$7.CustomError {
|
|
3304
3358
|
constructor(state, event) {
|
|
3305
3359
|
super(`State ${state} cannot react to event ${event}`);
|
|
3306
3360
|
}
|
|
@@ -3599,52 +3653,88 @@ var Subscriber = (function (_super) {
|
|
|
3599
3653
|
};
|
|
3600
3654
|
return Subscriber;
|
|
3601
3655
|
}(Subscription));
|
|
3656
|
+
var _bind = Function.prototype.bind;
|
|
3657
|
+
function bind(fn, thisArg) {
|
|
3658
|
+
return _bind.call(fn, thisArg);
|
|
3659
|
+
}
|
|
3660
|
+
var ConsumerObserver = (function () {
|
|
3661
|
+
function ConsumerObserver(partialObserver) {
|
|
3662
|
+
this.partialObserver = partialObserver;
|
|
3663
|
+
}
|
|
3664
|
+
ConsumerObserver.prototype.next = function (value) {
|
|
3665
|
+
var partialObserver = this.partialObserver;
|
|
3666
|
+
if (partialObserver.next) {
|
|
3667
|
+
try {
|
|
3668
|
+
partialObserver.next(value);
|
|
3669
|
+
}
|
|
3670
|
+
catch (error) {
|
|
3671
|
+
handleUnhandledError(error);
|
|
3672
|
+
}
|
|
3673
|
+
}
|
|
3674
|
+
};
|
|
3675
|
+
ConsumerObserver.prototype.error = function (err) {
|
|
3676
|
+
var partialObserver = this.partialObserver;
|
|
3677
|
+
if (partialObserver.error) {
|
|
3678
|
+
try {
|
|
3679
|
+
partialObserver.error(err);
|
|
3680
|
+
}
|
|
3681
|
+
catch (error) {
|
|
3682
|
+
handleUnhandledError(error);
|
|
3683
|
+
}
|
|
3684
|
+
}
|
|
3685
|
+
else {
|
|
3686
|
+
handleUnhandledError(err);
|
|
3687
|
+
}
|
|
3688
|
+
};
|
|
3689
|
+
ConsumerObserver.prototype.complete = function () {
|
|
3690
|
+
var partialObserver = this.partialObserver;
|
|
3691
|
+
if (partialObserver.complete) {
|
|
3692
|
+
try {
|
|
3693
|
+
partialObserver.complete();
|
|
3694
|
+
}
|
|
3695
|
+
catch (error) {
|
|
3696
|
+
handleUnhandledError(error);
|
|
3697
|
+
}
|
|
3698
|
+
}
|
|
3699
|
+
};
|
|
3700
|
+
return ConsumerObserver;
|
|
3701
|
+
}());
|
|
3602
3702
|
var SafeSubscriber = (function (_super) {
|
|
3603
3703
|
__extends(SafeSubscriber, _super);
|
|
3604
3704
|
function SafeSubscriber(observerOrNext, error, complete) {
|
|
3605
3705
|
var _this = _super.call(this) || this;
|
|
3606
|
-
var
|
|
3607
|
-
if (isFunction(observerOrNext)) {
|
|
3608
|
-
|
|
3706
|
+
var partialObserver;
|
|
3707
|
+
if (isFunction(observerOrNext) || !observerOrNext) {
|
|
3708
|
+
partialObserver = {
|
|
3709
|
+
next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,
|
|
3710
|
+
error: error !== null && error !== void 0 ? error : undefined,
|
|
3711
|
+
complete: complete !== null && complete !== void 0 ? complete : undefined,
|
|
3712
|
+
};
|
|
3609
3713
|
}
|
|
3610
|
-
else
|
|
3611
|
-
(next = observerOrNext.next, error = observerOrNext.error, complete = observerOrNext.complete);
|
|
3714
|
+
else {
|
|
3612
3715
|
var context_1;
|
|
3613
3716
|
if (_this && config.useDeprecatedNextContext) {
|
|
3614
3717
|
context_1 = Object.create(observerOrNext);
|
|
3615
3718
|
context_1.unsubscribe = function () { return _this.unsubscribe(); };
|
|
3719
|
+
partialObserver = {
|
|
3720
|
+
next: observerOrNext.next && bind(observerOrNext.next, context_1),
|
|
3721
|
+
error: observerOrNext.error && bind(observerOrNext.error, context_1),
|
|
3722
|
+
complete: observerOrNext.complete && bind(observerOrNext.complete, context_1),
|
|
3723
|
+
};
|
|
3616
3724
|
}
|
|
3617
3725
|
else {
|
|
3618
|
-
|
|
3726
|
+
partialObserver = observerOrNext;
|
|
3619
3727
|
}
|
|
3620
|
-
next = next === null || next === void 0 ? void 0 : next.bind(context_1);
|
|
3621
|
-
error = error === null || error === void 0 ? void 0 : error.bind(context_1);
|
|
3622
|
-
complete = complete === null || complete === void 0 ? void 0 : complete.bind(context_1);
|
|
3623
3728
|
}
|
|
3624
|
-
_this.destination =
|
|
3625
|
-
next: next ? wrapForErrorHandling(next) : noop,
|
|
3626
|
-
error: wrapForErrorHandling(error !== null && error !== void 0 ? error : defaultErrorHandler),
|
|
3627
|
-
complete: complete ? wrapForErrorHandling(complete) : noop,
|
|
3628
|
-
};
|
|
3729
|
+
_this.destination = new ConsumerObserver(partialObserver);
|
|
3629
3730
|
return _this;
|
|
3630
3731
|
}
|
|
3631
3732
|
return SafeSubscriber;
|
|
3632
3733
|
}(Subscriber));
|
|
3633
|
-
function
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
args[_i] = arguments[_i];
|
|
3638
|
-
}
|
|
3639
|
-
try {
|
|
3640
|
-
handler.apply(void 0, __spreadArray([], __read(args)));
|
|
3641
|
-
}
|
|
3642
|
-
catch (err) {
|
|
3643
|
-
{
|
|
3644
|
-
reportUnhandledError(err);
|
|
3645
|
-
}
|
|
3646
|
-
}
|
|
3647
|
-
};
|
|
3734
|
+
function handleUnhandledError(error) {
|
|
3735
|
+
{
|
|
3736
|
+
reportUnhandledError(error);
|
|
3737
|
+
}
|
|
3648
3738
|
}
|
|
3649
3739
|
function defaultErrorHandler(err) {
|
|
3650
3740
|
throw err;
|
|
@@ -3936,7 +4026,7 @@ class ObservableFiniteStateMachine extends FiniteStateMachine {
|
|
|
3936
4026
|
super.send(event);
|
|
3937
4027
|
const newState = this.state;
|
|
3938
4028
|
this.stateChanges.next({ event, oldState, newState });
|
|
3939
|
-
if (es2018$
|
|
4029
|
+
if (es2018$3.isEmptyObject(this.schema[newState])) {
|
|
3940
4030
|
this.stateChanges.complete();
|
|
3941
4031
|
}
|
|
3942
4032
|
}
|