extra-react-hooks 0.3.2 → 0.3.3
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/es2015/index.min.mjs +1 -1
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +175 -166
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +175 -166
- 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 +175 -166
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +175 -166
- 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/package.json +8 -8
package/dist/es2015/index.umd.js
CHANGED
|
@@ -2566,7 +2566,7 @@
|
|
|
2566
2566
|
|
|
2567
2567
|
var es2018$a = {};
|
|
2568
2568
|
|
|
2569
|
-
var middleware
|
|
2569
|
+
var middleware = {};
|
|
2570
2570
|
|
|
2571
2571
|
var chunkAsync$2 = {};
|
|
2572
2572
|
|
|
@@ -4718,7 +4718,7 @@
|
|
|
4718
4718
|
var hasRequiredMiddleware;
|
|
4719
4719
|
|
|
4720
4720
|
function requireMiddleware () {
|
|
4721
|
-
if (hasRequiredMiddleware) return middleware
|
|
4721
|
+
if (hasRequiredMiddleware) return middleware;
|
|
4722
4722
|
hasRequiredMiddleware = 1;
|
|
4723
4723
|
(function (exports) {
|
|
4724
4724
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -4782,11 +4782,11 @@
|
|
|
4782
4782
|
__exportStar(zipAsync$3, exports);
|
|
4783
4783
|
__exportStar(zip$7, exports);
|
|
4784
4784
|
|
|
4785
|
-
} (middleware
|
|
4786
|
-
return middleware
|
|
4785
|
+
} (middleware));
|
|
4786
|
+
return middleware;
|
|
4787
4787
|
}
|
|
4788
4788
|
|
|
4789
|
-
var output
|
|
4789
|
+
var output = {};
|
|
4790
4790
|
|
|
4791
4791
|
var consume$3 = {};
|
|
4792
4792
|
|
|
@@ -4974,10 +4974,10 @@
|
|
|
4974
4974
|
}
|
|
4975
4975
|
includes$3.includes = includes$2;
|
|
4976
4976
|
|
|
4977
|
-
var matchAsync$
|
|
4977
|
+
var matchAsync$1 = {};
|
|
4978
4978
|
|
|
4979
|
-
matchAsync$
|
|
4980
|
-
async function matchAsync
|
|
4979
|
+
matchAsync$1.matchAsync = void 0;
|
|
4980
|
+
async function matchAsync(iterable, sequence) {
|
|
4981
4981
|
const sequenceLength = sequence.length;
|
|
4982
4982
|
let matchCount = 0;
|
|
4983
4983
|
for await (const element of iterable) {
|
|
@@ -4988,12 +4988,12 @@
|
|
|
4988
4988
|
}
|
|
4989
4989
|
return false;
|
|
4990
4990
|
}
|
|
4991
|
-
matchAsync$
|
|
4991
|
+
matchAsync$1.matchAsync = matchAsync;
|
|
4992
4992
|
|
|
4993
|
-
var match$
|
|
4993
|
+
var match$1 = {};
|
|
4994
4994
|
|
|
4995
|
-
match$
|
|
4996
|
-
function match
|
|
4995
|
+
match$1.match = void 0;
|
|
4996
|
+
function match(iterable, sequence) {
|
|
4997
4997
|
const sequenceLength = sequence.length;
|
|
4998
4998
|
let matchCount = 0;
|
|
4999
4999
|
for (const element of iterable) {
|
|
@@ -5004,7 +5004,7 @@
|
|
|
5004
5004
|
}
|
|
5005
5005
|
return false;
|
|
5006
5006
|
}
|
|
5007
|
-
match$
|
|
5007
|
+
match$1.match = match;
|
|
5008
5008
|
|
|
5009
5009
|
var reduceAsync$3 = {};
|
|
5010
5010
|
|
|
@@ -5239,12 +5239,12 @@
|
|
|
5239
5239
|
}
|
|
5240
5240
|
last$6.last = last$5;
|
|
5241
5241
|
|
|
5242
|
-
var toArrayAsync$
|
|
5242
|
+
var toArrayAsync$3 = {};
|
|
5243
5243
|
|
|
5244
|
-
toArrayAsync$
|
|
5245
|
-
const consume_1$
|
|
5246
|
-
function toArrayAsync$
|
|
5247
|
-
return (0, consume_1$
|
|
5244
|
+
toArrayAsync$3.toArrayAsync = void 0;
|
|
5245
|
+
const consume_1$3 = consume$3;
|
|
5246
|
+
function toArrayAsync$2(iterable) {
|
|
5247
|
+
return (0, consume_1$3.consume)(iterable, async (iterable) => {
|
|
5248
5248
|
const result = [];
|
|
5249
5249
|
for await (const element of iterable) {
|
|
5250
5250
|
result.push(element);
|
|
@@ -5252,23 +5252,23 @@
|
|
|
5252
5252
|
return result;
|
|
5253
5253
|
});
|
|
5254
5254
|
}
|
|
5255
|
-
toArrayAsync$
|
|
5255
|
+
toArrayAsync$3.toArrayAsync = toArrayAsync$2;
|
|
5256
5256
|
|
|
5257
5257
|
var toArray$5 = {};
|
|
5258
5258
|
|
|
5259
5259
|
toArray$5.toArray = void 0;
|
|
5260
|
-
const consume_1$
|
|
5260
|
+
const consume_1$2 = consume$3;
|
|
5261
5261
|
function toArray$4(iterable) {
|
|
5262
|
-
return (0, consume_1$
|
|
5262
|
+
return (0, consume_1$2.consume)(iterable, iterable => Array.from(iterable));
|
|
5263
5263
|
}
|
|
5264
5264
|
toArray$5.toArray = toArray$4;
|
|
5265
5265
|
|
|
5266
5266
|
var toSetAsync$3 = {};
|
|
5267
5267
|
|
|
5268
5268
|
toSetAsync$3.toSetAsync = void 0;
|
|
5269
|
-
const consume_1$
|
|
5269
|
+
const consume_1$1 = consume$3;
|
|
5270
5270
|
function toSetAsync$2(iterable) {
|
|
5271
|
-
return (0, consume_1$
|
|
5271
|
+
return (0, consume_1$1.consume)(iterable, async (iterable) => {
|
|
5272
5272
|
const result = new Set();
|
|
5273
5273
|
for await (const element of iterable) {
|
|
5274
5274
|
result.add(element);
|
|
@@ -5281,9 +5281,9 @@
|
|
|
5281
5281
|
var toSet$3 = {};
|
|
5282
5282
|
|
|
5283
5283
|
toSet$3.toSet = void 0;
|
|
5284
|
-
const consume_1
|
|
5284
|
+
const consume_1 = consume$3;
|
|
5285
5285
|
function toSet$2(iterable) {
|
|
5286
|
-
return (0, consume_1
|
|
5286
|
+
return (0, consume_1.consume)(iterable, iterable => new Set(iterable));
|
|
5287
5287
|
}
|
|
5288
5288
|
toSet$3.toSet = toSet$2;
|
|
5289
5289
|
|
|
@@ -5336,22 +5336,22 @@
|
|
|
5336
5336
|
__exportStar(first$5, exports);
|
|
5337
5337
|
__exportStar(includesAsync$3, exports);
|
|
5338
5338
|
__exportStar(includes$3, exports);
|
|
5339
|
-
__exportStar(matchAsync$
|
|
5340
|
-
__exportStar(match$
|
|
5339
|
+
__exportStar(matchAsync$1, exports);
|
|
5340
|
+
__exportStar(match$1, exports);
|
|
5341
5341
|
__exportStar(reduceAsync$3, exports);
|
|
5342
5342
|
__exportStar(reduce$5, exports);
|
|
5343
5343
|
__exportStar(someAsync$3, exports);
|
|
5344
5344
|
__exportStar(some$3, exports);
|
|
5345
5345
|
__exportStar(lastAsync$3, exports);
|
|
5346
5346
|
__exportStar(last$6, exports);
|
|
5347
|
-
__exportStar(toArrayAsync$
|
|
5347
|
+
__exportStar(toArrayAsync$3, exports);
|
|
5348
5348
|
__exportStar(toArray$5, exports);
|
|
5349
5349
|
__exportStar(toSetAsync$3, exports);
|
|
5350
5350
|
__exportStar(toSet$3, exports);
|
|
5351
5351
|
__exportStar(count$5, exports);
|
|
5352
5352
|
__exportStar(countAsync$3, exports);
|
|
5353
5353
|
|
|
5354
|
-
} (output
|
|
5354
|
+
} (output));
|
|
5355
5355
|
|
|
5356
5356
|
var hasRequiredEs2018;
|
|
5357
5357
|
|
|
@@ -5373,7 +5373,7 @@
|
|
|
5373
5373
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
5374
5374
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5375
5375
|
};__exportStar(requireMiddleware(), exports);
|
|
5376
|
-
__exportStar(output
|
|
5376
|
+
__exportStar(output, exports);
|
|
5377
5377
|
|
|
5378
5378
|
} (es2018$a));
|
|
5379
5379
|
return es2018$a;
|
|
@@ -5582,7 +5582,7 @@
|
|
|
5582
5582
|
|
|
5583
5583
|
var es2018$5 = {};
|
|
5584
5584
|
|
|
5585
|
-
var
|
|
5585
|
+
var intermediate = {};
|
|
5586
5586
|
|
|
5587
5587
|
var chunkAsync$1 = {};
|
|
5588
5588
|
|
|
@@ -6346,6 +6346,91 @@
|
|
|
6346
6346
|
}
|
|
6347
6347
|
concat$5.concat = concat$4;
|
|
6348
6348
|
|
|
6349
|
+
var differenceAsync$1 = {};
|
|
6350
|
+
|
|
6351
|
+
var filterAsync$1 = {};
|
|
6352
|
+
|
|
6353
|
+
filterAsync$1.filterAsync = void 0;
|
|
6354
|
+
const types_1$g = es2018$1;
|
|
6355
|
+
function filterAsync(iterable, predicate) {
|
|
6356
|
+
if ((0, types_1$g.isAsyncIterable)(iterable)) {
|
|
6357
|
+
return filterAsyncIterable(iterable, predicate);
|
|
6358
|
+
}
|
|
6359
|
+
else {
|
|
6360
|
+
return filterIterable(iterable, predicate);
|
|
6361
|
+
}
|
|
6362
|
+
}
|
|
6363
|
+
filterAsync$1.filterAsync = filterAsync;
|
|
6364
|
+
async function* filterAsyncIterable(iterable, predicate) {
|
|
6365
|
+
let index = 0;
|
|
6366
|
+
for await (const element of iterable) {
|
|
6367
|
+
if (await predicate(element, index))
|
|
6368
|
+
yield element;
|
|
6369
|
+
index++;
|
|
6370
|
+
}
|
|
6371
|
+
}
|
|
6372
|
+
async function* filterIterable(iterable, predicate) {
|
|
6373
|
+
let index = 0;
|
|
6374
|
+
for (const element of iterable) {
|
|
6375
|
+
if (await predicate(element, index))
|
|
6376
|
+
yield element;
|
|
6377
|
+
index++;
|
|
6378
|
+
}
|
|
6379
|
+
}
|
|
6380
|
+
|
|
6381
|
+
var toSetAsync$1 = {};
|
|
6382
|
+
|
|
6383
|
+
toSetAsync$1.toSetAsync = void 0;
|
|
6384
|
+
async function toSetAsync(iterable) {
|
|
6385
|
+
const result = new Set();
|
|
6386
|
+
for await (const element of iterable) {
|
|
6387
|
+
result.add(await element);
|
|
6388
|
+
}
|
|
6389
|
+
return result;
|
|
6390
|
+
}
|
|
6391
|
+
toSetAsync$1.toSetAsync = toSetAsync;
|
|
6392
|
+
|
|
6393
|
+
differenceAsync$1.differenceAsync = void 0;
|
|
6394
|
+
const filter_async_1$1 = filterAsync$1;
|
|
6395
|
+
const to_set_async_1$1 = toSetAsync$1;
|
|
6396
|
+
async function* differenceAsync(left, right) {
|
|
6397
|
+
const rightSet = await (0, to_set_async_1$1.toSetAsync)(right);
|
|
6398
|
+
yield* (0, filter_async_1$1.filterAsync)(left, async (x) => !rightSet.has(await x));
|
|
6399
|
+
}
|
|
6400
|
+
differenceAsync$1.differenceAsync = differenceAsync;
|
|
6401
|
+
|
|
6402
|
+
var difference$1 = {};
|
|
6403
|
+
|
|
6404
|
+
var filter$3 = {};
|
|
6405
|
+
|
|
6406
|
+
filter$3.filter = void 0;
|
|
6407
|
+
function* filter$2(iterable, predicate) {
|
|
6408
|
+
let index = 0;
|
|
6409
|
+
for (const element of iterable) {
|
|
6410
|
+
if (predicate(element, index))
|
|
6411
|
+
yield element;
|
|
6412
|
+
index++;
|
|
6413
|
+
}
|
|
6414
|
+
}
|
|
6415
|
+
filter$3.filter = filter$2;
|
|
6416
|
+
|
|
6417
|
+
var toSet$1 = {};
|
|
6418
|
+
|
|
6419
|
+
toSet$1.toSet = void 0;
|
|
6420
|
+
function toSet(iterable) {
|
|
6421
|
+
return new Set(iterable);
|
|
6422
|
+
}
|
|
6423
|
+
toSet$1.toSet = toSet;
|
|
6424
|
+
|
|
6425
|
+
difference$1.difference = void 0;
|
|
6426
|
+
const filter_1$6 = filter$3;
|
|
6427
|
+
const to_set_1$1 = toSet$1;
|
|
6428
|
+
function difference(left, right) {
|
|
6429
|
+
const rightSet = (0, to_set_1$1.toSet)(right);
|
|
6430
|
+
return (0, filter_1$6.filter)(left, x => !rightSet.has(x));
|
|
6431
|
+
}
|
|
6432
|
+
difference$1.difference = difference;
|
|
6433
|
+
|
|
6349
6434
|
var dropAsync$1 = {};
|
|
6350
6435
|
|
|
6351
6436
|
var utils = {};
|
|
@@ -6399,17 +6484,30 @@
|
|
|
6399
6484
|
|
|
6400
6485
|
var dropRightAsync$1 = {};
|
|
6401
6486
|
|
|
6487
|
+
var toArrayAsync$1 = {};
|
|
6488
|
+
|
|
6489
|
+
toArrayAsync$1.toArrayAsync = void 0;
|
|
6490
|
+
async function toArrayAsync(iterable) {
|
|
6491
|
+
const result = [];
|
|
6492
|
+
for await (const element of iterable) {
|
|
6493
|
+
result.push(element);
|
|
6494
|
+
}
|
|
6495
|
+
return result;
|
|
6496
|
+
}
|
|
6497
|
+
toArrayAsync$1.toArrayAsync = toArrayAsync;
|
|
6498
|
+
|
|
6402
6499
|
dropRightAsync$1.dropRightAsync = void 0;
|
|
6403
6500
|
const go_1$a = es2018$4;
|
|
6404
6501
|
const utils_1$2 = utils;
|
|
6405
6502
|
const errors_1$f = es2018$b;
|
|
6503
|
+
const to_array_async_1 = toArrayAsync$1;
|
|
6406
6504
|
function dropRightAsync(iterable, count) {
|
|
6407
6505
|
(0, errors_1$f.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
6408
6506
|
(0, errors_1$f.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
6409
6507
|
if (count === 0)
|
|
6410
6508
|
return (0, utils_1$2.copyAsyncIterable)(iterable);
|
|
6411
6509
|
return (0, go_1$a.go)(async function* () {
|
|
6412
|
-
const arr = await toArrayAsync
|
|
6510
|
+
const arr = await (0, to_array_async_1.toArrayAsync)(iterable);
|
|
6413
6511
|
const result = arr.slice(0, -count);
|
|
6414
6512
|
for (const value of result) {
|
|
6415
6513
|
yield value;
|
|
@@ -6417,13 +6515,6 @@
|
|
|
6417
6515
|
});
|
|
6418
6516
|
}
|
|
6419
6517
|
dropRightAsync$1.dropRightAsync = dropRightAsync;
|
|
6420
|
-
async function toArrayAsync$2(iterable) {
|
|
6421
|
-
const result = [];
|
|
6422
|
-
for await (const element of iterable) {
|
|
6423
|
-
result.push(element);
|
|
6424
|
-
}
|
|
6425
|
-
return result;
|
|
6426
|
-
}
|
|
6427
6518
|
|
|
6428
6519
|
var dropRight$1 = {};
|
|
6429
6520
|
|
|
@@ -6446,9 +6537,9 @@
|
|
|
6446
6537
|
var dropUntilAsync$1 = {};
|
|
6447
6538
|
|
|
6448
6539
|
dropUntilAsync$1.dropUntilAsync = void 0;
|
|
6449
|
-
const types_1$
|
|
6540
|
+
const types_1$f = es2018$1;
|
|
6450
6541
|
function dropUntilAsync(iterable, predicate) {
|
|
6451
|
-
if ((0, types_1$
|
|
6542
|
+
if ((0, types_1$f.isAsyncIterable)(iterable)) {
|
|
6452
6543
|
return dropUntilAsyncIterable(iterable, predicate);
|
|
6453
6544
|
}
|
|
6454
6545
|
else {
|
|
@@ -6560,49 +6651,6 @@
|
|
|
6560
6651
|
}
|
|
6561
6652
|
drop$1.drop = drop;
|
|
6562
6653
|
|
|
6563
|
-
var filterAsync$1 = {};
|
|
6564
|
-
|
|
6565
|
-
filterAsync$1.filterAsync = void 0;
|
|
6566
|
-
const types_1$f = es2018$1;
|
|
6567
|
-
function filterAsync(iterable, predicate) {
|
|
6568
|
-
if ((0, types_1$f.isAsyncIterable)(iterable)) {
|
|
6569
|
-
return filterAsyncIterable(iterable, predicate);
|
|
6570
|
-
}
|
|
6571
|
-
else {
|
|
6572
|
-
return filterIterable(iterable, predicate);
|
|
6573
|
-
}
|
|
6574
|
-
}
|
|
6575
|
-
filterAsync$1.filterAsync = filterAsync;
|
|
6576
|
-
async function* filterAsyncIterable(iterable, predicate) {
|
|
6577
|
-
let index = 0;
|
|
6578
|
-
for await (const element of iterable) {
|
|
6579
|
-
if (await predicate(element, index))
|
|
6580
|
-
yield element;
|
|
6581
|
-
index++;
|
|
6582
|
-
}
|
|
6583
|
-
}
|
|
6584
|
-
async function* filterIterable(iterable, predicate) {
|
|
6585
|
-
let index = 0;
|
|
6586
|
-
for (const element of iterable) {
|
|
6587
|
-
if (await predicate(element, index))
|
|
6588
|
-
yield element;
|
|
6589
|
-
index++;
|
|
6590
|
-
}
|
|
6591
|
-
}
|
|
6592
|
-
|
|
6593
|
-
var filter$3 = {};
|
|
6594
|
-
|
|
6595
|
-
filter$3.filter = void 0;
|
|
6596
|
-
function* filter$2(iterable, predicate) {
|
|
6597
|
-
let index = 0;
|
|
6598
|
-
for (const element of iterable) {
|
|
6599
|
-
if (predicate(element, index))
|
|
6600
|
-
yield element;
|
|
6601
|
-
index++;
|
|
6602
|
-
}
|
|
6603
|
-
}
|
|
6604
|
-
filter$3.filter = filter$2;
|
|
6605
|
-
|
|
6606
6654
|
var flattenAsync$1 = {};
|
|
6607
6655
|
|
|
6608
6656
|
var flattenDeepAsync$1 = {};
|
|
@@ -6708,6 +6756,28 @@
|
|
|
6708
6756
|
}
|
|
6709
6757
|
flatten$1.flatten = flatten;
|
|
6710
6758
|
|
|
6759
|
+
var intersectionAsync$1 = {};
|
|
6760
|
+
|
|
6761
|
+
intersectionAsync$1.intersectionAsync = void 0;
|
|
6762
|
+
const filter_async_1 = filterAsync$1;
|
|
6763
|
+
const to_set_async_1 = toSetAsync$1;
|
|
6764
|
+
async function* intersectionAsync(left, right) {
|
|
6765
|
+
const rightSet = await (0, to_set_async_1.toSetAsync)(right);
|
|
6766
|
+
yield* (0, filter_async_1.filterAsync)(left, async (x) => rightSet.has(await x));
|
|
6767
|
+
}
|
|
6768
|
+
intersectionAsync$1.intersectionAsync = intersectionAsync;
|
|
6769
|
+
|
|
6770
|
+
var intersection$1 = {};
|
|
6771
|
+
|
|
6772
|
+
intersection$1.intersection = void 0;
|
|
6773
|
+
const filter_1$5 = filter$3;
|
|
6774
|
+
const to_set_1 = toSet$1;
|
|
6775
|
+
function intersection(left, right) {
|
|
6776
|
+
const rightSet = (0, to_set_1.toSet)(right);
|
|
6777
|
+
return (0, filter_1$5.filter)(left, x => rightSet.has(x));
|
|
6778
|
+
}
|
|
6779
|
+
intersection$1.intersection = intersection;
|
|
6780
|
+
|
|
6711
6781
|
var mapAsync$1 = {};
|
|
6712
6782
|
|
|
6713
6783
|
mapAsync$1.mapAsync = void 0;
|
|
@@ -7160,7 +7230,7 @@
|
|
|
7160
7230
|
toAsyncIterable$1.toAsyncIterable = void 0;
|
|
7161
7231
|
async function* toAsyncIterable(iterable) {
|
|
7162
7232
|
for (const value of iterable) {
|
|
7163
|
-
yield value;
|
|
7233
|
+
yield await value;
|
|
7164
7234
|
}
|
|
7165
7235
|
}
|
|
7166
7236
|
toAsyncIterable$1.toAsyncIterable = toAsyncIterable;
|
|
@@ -7305,7 +7375,7 @@
|
|
|
7305
7375
|
dones[i] = true;
|
|
7306
7376
|
return;
|
|
7307
7377
|
}
|
|
7308
|
-
result[i] = temp.value;
|
|
7378
|
+
result[i] = await temp.value;
|
|
7309
7379
|
}
|
|
7310
7380
|
yield result;
|
|
7311
7381
|
}
|
|
@@ -7374,6 +7444,8 @@
|
|
|
7374
7444
|
__exportStar(chunk$1, exports);
|
|
7375
7445
|
__exportStar(concatAsync$1, exports);
|
|
7376
7446
|
__exportStar(concat$5, exports);
|
|
7447
|
+
__exportStar(differenceAsync$1, exports);
|
|
7448
|
+
__exportStar(difference$1, exports);
|
|
7377
7449
|
__exportStar(dropAsync$1, exports);
|
|
7378
7450
|
__exportStar(dropRightAsync$1, exports);
|
|
7379
7451
|
__exportStar(dropRight$1, exports);
|
|
@@ -7388,6 +7460,8 @@
|
|
|
7388
7460
|
__exportStar(flattenDeepAsync$1, exports);
|
|
7389
7461
|
__exportStar(flattenDeep$1, exports);
|
|
7390
7462
|
__exportStar(flatten$1, exports);
|
|
7463
|
+
__exportStar(intersectionAsync$1, exports);
|
|
7464
|
+
__exportStar(intersection$1, exports);
|
|
7391
7465
|
__exportStar(mapAsync$1, exports);
|
|
7392
7466
|
__exportStar(map$3, exports);
|
|
7393
7467
|
__exportStar(repeatAsync$1, exports);
|
|
@@ -7416,9 +7490,9 @@
|
|
|
7416
7490
|
__exportStar(zipAsync$1, exports);
|
|
7417
7491
|
__exportStar(zip$5, exports);
|
|
7418
7492
|
|
|
7419
|
-
} (
|
|
7493
|
+
} (intermediate));
|
|
7420
7494
|
|
|
7421
|
-
var
|
|
7495
|
+
var terminal = {};
|
|
7422
7496
|
|
|
7423
7497
|
var consume$1 = {};
|
|
7424
7498
|
|
|
@@ -7428,6 +7502,14 @@
|
|
|
7428
7502
|
}
|
|
7429
7503
|
consume$1.consume = consume;
|
|
7430
7504
|
|
|
7505
|
+
var consumeAsync$1 = {};
|
|
7506
|
+
|
|
7507
|
+
consumeAsync$1.consumeAsync = void 0;
|
|
7508
|
+
async function consumeAsync(iterable, consumer) {
|
|
7509
|
+
return await consumer(iterable);
|
|
7510
|
+
}
|
|
7511
|
+
consumeAsync$1.consumeAsync = consumeAsync;
|
|
7512
|
+
|
|
7431
7513
|
var eachAsync$1 = {};
|
|
7432
7514
|
|
|
7433
7515
|
eachAsync$1.eachAsync = void 0;
|
|
@@ -7606,38 +7688,6 @@
|
|
|
7606
7688
|
}
|
|
7607
7689
|
includes$1.includes = includes;
|
|
7608
7690
|
|
|
7609
|
-
var matchAsync$1 = {};
|
|
7610
|
-
|
|
7611
|
-
matchAsync$1.matchAsync = void 0;
|
|
7612
|
-
async function matchAsync(iterable, sequence) {
|
|
7613
|
-
const sequenceLength = sequence.length;
|
|
7614
|
-
let matchCount = 0;
|
|
7615
|
-
for await (const element of iterable) {
|
|
7616
|
-
if (element === sequence[matchCount])
|
|
7617
|
-
matchCount++;
|
|
7618
|
-
if (matchCount === sequenceLength)
|
|
7619
|
-
return true;
|
|
7620
|
-
}
|
|
7621
|
-
return false;
|
|
7622
|
-
}
|
|
7623
|
-
matchAsync$1.matchAsync = matchAsync;
|
|
7624
|
-
|
|
7625
|
-
var match$1 = {};
|
|
7626
|
-
|
|
7627
|
-
match$1.match = void 0;
|
|
7628
|
-
function match(iterable, sequence) {
|
|
7629
|
-
const sequenceLength = sequence.length;
|
|
7630
|
-
let matchCount = 0;
|
|
7631
|
-
for (const element of iterable) {
|
|
7632
|
-
if (element === sequence[matchCount])
|
|
7633
|
-
matchCount++;
|
|
7634
|
-
if (matchCount === sequenceLength)
|
|
7635
|
-
return true;
|
|
7636
|
-
}
|
|
7637
|
-
return false;
|
|
7638
|
-
}
|
|
7639
|
-
match$1.match = match;
|
|
7640
|
-
|
|
7641
7691
|
var reduceAsync$1 = {};
|
|
7642
7692
|
|
|
7643
7693
|
reduceAsync$1.reduceAsync = void 0;
|
|
@@ -7871,54 +7921,14 @@
|
|
|
7871
7921
|
}
|
|
7872
7922
|
last$4.last = last$3;
|
|
7873
7923
|
|
|
7874
|
-
var toArrayAsync$1 = {};
|
|
7875
|
-
|
|
7876
|
-
toArrayAsync$1.toArrayAsync = void 0;
|
|
7877
|
-
const consume_1$3 = consume$1;
|
|
7878
|
-
function toArrayAsync(iterable) {
|
|
7879
|
-
return (0, consume_1$3.consume)(iterable, async (iterable) => {
|
|
7880
|
-
const result = [];
|
|
7881
|
-
for await (const element of iterable) {
|
|
7882
|
-
result.push(element);
|
|
7883
|
-
}
|
|
7884
|
-
return result;
|
|
7885
|
-
});
|
|
7886
|
-
}
|
|
7887
|
-
toArrayAsync$1.toArrayAsync = toArrayAsync;
|
|
7888
|
-
|
|
7889
7924
|
var toArray$3 = {};
|
|
7890
7925
|
|
|
7891
7926
|
toArray$3.toArray = void 0;
|
|
7892
|
-
const consume_1$2 = consume$1;
|
|
7893
7927
|
function toArray$2(iterable) {
|
|
7894
|
-
return
|
|
7928
|
+
return Array.from(iterable);
|
|
7895
7929
|
}
|
|
7896
7930
|
toArray$3.toArray = toArray$2;
|
|
7897
7931
|
|
|
7898
|
-
var toSetAsync$1 = {};
|
|
7899
|
-
|
|
7900
|
-
toSetAsync$1.toSetAsync = void 0;
|
|
7901
|
-
const consume_1$1 = consume$1;
|
|
7902
|
-
function toSetAsync(iterable) {
|
|
7903
|
-
return (0, consume_1$1.consume)(iterable, async (iterable) => {
|
|
7904
|
-
const result = new Set();
|
|
7905
|
-
for await (const element of iterable) {
|
|
7906
|
-
result.add(element);
|
|
7907
|
-
}
|
|
7908
|
-
return result;
|
|
7909
|
-
});
|
|
7910
|
-
}
|
|
7911
|
-
toSetAsync$1.toSetAsync = toSetAsync;
|
|
7912
|
-
|
|
7913
|
-
var toSet$1 = {};
|
|
7914
|
-
|
|
7915
|
-
toSet$1.toSet = void 0;
|
|
7916
|
-
const consume_1 = consume$1;
|
|
7917
|
-
function toSet(iterable) {
|
|
7918
|
-
return (0, consume_1.consume)(iterable, iterable => new Set(iterable));
|
|
7919
|
-
}
|
|
7920
|
-
toSet$1.toSet = toSet;
|
|
7921
|
-
|
|
7922
7932
|
var count$3 = {};
|
|
7923
7933
|
|
|
7924
7934
|
count$3.count = void 0;
|
|
@@ -7992,6 +8002,7 @@
|
|
|
7992
8002
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
7993
8003
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
7994
8004
|
};__exportStar(consume$1, exports);
|
|
8005
|
+
__exportStar(consumeAsync$1, exports);
|
|
7995
8006
|
__exportStar(eachAsync$1, exports);
|
|
7996
8007
|
__exportStar(each$1, exports);
|
|
7997
8008
|
__exportStar(everyAsync$1, exports);
|
|
@@ -8002,8 +8013,6 @@
|
|
|
8002
8013
|
__exportStar(first$3, exports);
|
|
8003
8014
|
__exportStar(includesAsync$1, exports);
|
|
8004
8015
|
__exportStar(includes$1, exports);
|
|
8005
|
-
__exportStar(matchAsync$1, exports);
|
|
8006
|
-
__exportStar(match$1, exports);
|
|
8007
8016
|
__exportStar(reduceAsync$1, exports);
|
|
8008
8017
|
__exportStar(reduce$3, exports);
|
|
8009
8018
|
__exportStar(someAsync$1, exports);
|
|
@@ -8019,7 +8028,7 @@
|
|
|
8019
8028
|
__exportStar(groupBy$3, exports);
|
|
8020
8029
|
__exportStar(groupByAsync$1, exports);
|
|
8021
8030
|
|
|
8022
|
-
} (
|
|
8031
|
+
} (terminal));
|
|
8023
8032
|
|
|
8024
8033
|
(function (exports) {
|
|
8025
8034
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -8035,8 +8044,8 @@
|
|
|
8035
8044
|
}));
|
|
8036
8045
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
8037
8046
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8038
|
-
};__exportStar(
|
|
8039
|
-
__exportStar(
|
|
8047
|
+
};__exportStar(intermediate, exports);
|
|
8048
|
+
__exportStar(terminal, exports);
|
|
8040
8049
|
|
|
8041
8050
|
} (es2018$5));
|
|
8042
8051
|
|