@extra-memoize/memory-cache 0.2.1 → 0.2.2
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 +262 -320
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +262 -320
- 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 +262 -320
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +262 -320
- 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 +11 -11
package/dist/es2015/index.mjs
CHANGED
@@ -825,9 +825,9 @@ url$4.isAbsoluteURL = isAbsoluteURL$4;
|
|
825
825
|
} (es2018$f));
|
826
826
|
|
827
827
|
chunkByAsync$5.chunkByAsync = void 0;
|
828
|
-
const types_1
|
828
|
+
const types_1$$ = es2018$f;
|
829
829
|
function chunkByAsync$4(iterable, predicate) {
|
830
|
-
if ((0, types_1
|
830
|
+
if ((0, types_1$$.isAsyncIterable)(iterable)) {
|
831
831
|
return chunkByAsyncIterable(iterable);
|
832
832
|
}
|
833
833
|
else {
|
@@ -917,12 +917,12 @@ chunk$4.chunk = void 0;
|
|
917
917
|
var concatAsync$5 = {};
|
918
918
|
|
919
919
|
concatAsync$5.concatAsync = void 0;
|
920
|
-
const types_1
|
920
|
+
const types_1$_ = es2018$f;
|
921
921
|
const go_1$x = es2018$g;
|
922
922
|
function concatAsync$4(iterable, ...otherIterables) {
|
923
923
|
return (0, go_1$x.go)(async function* () {
|
924
924
|
for (const iter of [iterable, ...otherIterables]) {
|
925
|
-
if ((0, types_1
|
925
|
+
if ((0, types_1$_.isAsyncIterable)(iter)) {
|
926
926
|
for await (const element of iter) {
|
927
927
|
yield element;
|
928
928
|
}
|
@@ -1074,9 +1074,9 @@ dropRight$4.dropRight = void 0;
|
|
1074
1074
|
var dropUntilAsync$5 = {};
|
1075
1075
|
|
1076
1076
|
dropUntilAsync$5.dropUntilAsync = void 0;
|
1077
|
-
const types_1$
|
1077
|
+
const types_1$Z = es2018$f;
|
1078
1078
|
function dropUntilAsync$4(iterable, predicate) {
|
1079
|
-
if ((0, types_1$
|
1079
|
+
if ((0, types_1$Z.isAsyncIterable)(iterable)) {
|
1080
1080
|
return dropUntilAsyncIterable(iterable);
|
1081
1081
|
}
|
1082
1082
|
else {
|
@@ -1199,9 +1199,9 @@ drop$4.drop = void 0;
|
|
1199
1199
|
var filterAsync$5 = {};
|
1200
1200
|
|
1201
1201
|
filterAsync$5.filterAsync = void 0;
|
1202
|
-
const types_1$
|
1202
|
+
const types_1$Y = es2018$f;
|
1203
1203
|
function filterAsync$4(iterable, predicate) {
|
1204
|
-
if ((0, types_1$
|
1204
|
+
if ((0, types_1$Y.isAsyncIterable)(iterable)) {
|
1205
1205
|
return filterAsyncIterable(iterable);
|
1206
1206
|
}
|
1207
1207
|
else {
|
@@ -1246,9 +1246,9 @@ var flattenDeepAsync$4 = {};
|
|
1246
1246
|
var flattenByAsync$5 = {};
|
1247
1247
|
|
1248
1248
|
flattenByAsync$5.flattenByAsync = void 0;
|
1249
|
-
const types_1$
|
1249
|
+
const types_1$X = es2018$f;
|
1250
1250
|
function flattenByAsync$4(iterable, predicate) {
|
1251
|
-
if ((0, types_1$
|
1251
|
+
if ((0, types_1$X.isAsyncIterable)(iterable)) {
|
1252
1252
|
return flattenByAsyncIterable(iterable);
|
1253
1253
|
}
|
1254
1254
|
else {
|
@@ -1281,7 +1281,7 @@ function flattenByAsync$4(iterable, predicate) {
|
|
1281
1281
|
}
|
1282
1282
|
flattenByAsync$5.flattenByAsync = flattenByAsync$4;
|
1283
1283
|
function isFiniteIterable$5(val) {
|
1284
|
-
return (0, types_1$
|
1284
|
+
return (0, types_1$X.isIterable)(val) && (0, types_1$X.isntChar)(val);
|
1285
1285
|
}
|
1286
1286
|
|
1287
1287
|
var hasRequiredFlattenDeepAsync;
|
@@ -1320,7 +1320,7 @@ flattenAsync$4.flattenAsync = void 0;
|
|
1320
1320
|
var flattenBy$5 = {};
|
1321
1321
|
|
1322
1322
|
flattenBy$5.flattenBy = void 0;
|
1323
|
-
const types_1$
|
1323
|
+
const types_1$W = es2018$f;
|
1324
1324
|
function flattenBy$4(iterable, predicate) {
|
1325
1325
|
return flatten(iterable, 1);
|
1326
1326
|
function* flatten(iterable, level) {
|
@@ -1336,7 +1336,7 @@ function flattenBy$4(iterable, predicate) {
|
|
1336
1336
|
}
|
1337
1337
|
flattenBy$5.flattenBy = flattenBy$4;
|
1338
1338
|
function isFiniteIterable$4(val) {
|
1339
|
-
return (0, types_1$
|
1339
|
+
return (0, types_1$W.isIterable)(val) && (0, types_1$W.isntChar)(val);
|
1340
1340
|
}
|
1341
1341
|
|
1342
1342
|
var flattenDeep$4 = {};
|
@@ -1379,9 +1379,9 @@ flatten$4.flatten = void 0;
|
|
1379
1379
|
var mapAsync$5 = {};
|
1380
1380
|
|
1381
1381
|
mapAsync$5.mapAsync = void 0;
|
1382
|
-
const types_1$
|
1382
|
+
const types_1$V = es2018$f;
|
1383
1383
|
function mapAsync$4(iterable, fn) {
|
1384
|
-
if ((0, types_1$
|
1384
|
+
if ((0, types_1$V.isAsyncIterable)(iterable)) {
|
1385
1385
|
return mapAsyncIterable(iterable);
|
1386
1386
|
}
|
1387
1387
|
else {
|
@@ -1585,9 +1585,9 @@ splitAsync$5.splitAsync = splitAsync$4;
|
|
1585
1585
|
var splitByAsync$5 = {};
|
1586
1586
|
|
1587
1587
|
splitByAsync$5.splitByAsync = void 0;
|
1588
|
-
const types_1$
|
1588
|
+
const types_1$U = es2018$f;
|
1589
1589
|
function splitByAsync$4(iterable, predicate) {
|
1590
|
-
if ((0, types_1$
|
1590
|
+
if ((0, types_1$U.isAsyncIterable)(iterable)) {
|
1591
1591
|
return splitByAsyncIterable(iterable);
|
1592
1592
|
}
|
1593
1593
|
else {
|
@@ -1772,9 +1772,9 @@ takeRight$4.takeRight = void 0;
|
|
1772
1772
|
var takeUntilAsync$5 = {};
|
1773
1773
|
|
1774
1774
|
takeUntilAsync$5.takeUntilAsync = void 0;
|
1775
|
-
const types_1$
|
1775
|
+
const types_1$T = es2018$f;
|
1776
1776
|
function takeUntilAsync$4(iterable, predicate) {
|
1777
|
-
if ((0, types_1$
|
1777
|
+
if ((0, types_1$T.isAsyncIterable)(iterable)) {
|
1778
1778
|
return takeUntilAsyncIterable(iterable);
|
1779
1779
|
}
|
1780
1780
|
else {
|
@@ -1847,9 +1847,9 @@ take$6.take = void 0;
|
|
1847
1847
|
var tapAsync$5 = {};
|
1848
1848
|
|
1849
1849
|
tapAsync$5.tapAsync = void 0;
|
1850
|
-
const types_1$
|
1850
|
+
const types_1$S = es2018$f;
|
1851
1851
|
function tapAsync$4(iterable, fn) {
|
1852
|
-
if ((0, types_1$
|
1852
|
+
if ((0, types_1$S.isAsyncIterable)(iterable)) {
|
1853
1853
|
return tapAsyncIterable(iterable);
|
1854
1854
|
}
|
1855
1855
|
else {
|
@@ -1930,9 +1930,9 @@ uniqAsync$5.uniqAsync = uniqAsync$4;
|
|
1930
1930
|
var uniqByAsync$5 = {};
|
1931
1931
|
|
1932
1932
|
uniqByAsync$5.uniqByAsync = void 0;
|
1933
|
-
const types_1$
|
1933
|
+
const types_1$R = es2018$f;
|
1934
1934
|
function uniqByAsync$4(iterable, fn) {
|
1935
|
-
if ((0, types_1$
|
1935
|
+
if ((0, types_1$R.isAsyncIterable)(iterable)) {
|
1936
1936
|
return uniqByAsyncIterable(iterable);
|
1937
1937
|
}
|
1938
1938
|
else {
|
@@ -1999,7 +1999,7 @@ uniq$5.uniq = uniq$4;
|
|
1999
1999
|
var zipAsync$5 = {};
|
2000
2000
|
|
2001
2001
|
zipAsync$5.zipAsync = void 0;
|
2002
|
-
const types_1$
|
2002
|
+
const types_1$Q = es2018$f;
|
2003
2003
|
var Kind$2;
|
2004
2004
|
(function (Kind) {
|
2005
2005
|
Kind[Kind["Sync"] = 0] = "Sync";
|
@@ -2013,7 +2013,7 @@ async function* zipWithSize$5(...iterables) {
|
|
2013
2013
|
var _a, _b, _c, _d;
|
2014
2014
|
const length = iterables.length;
|
2015
2015
|
const iterators = iterables.map(iterable => {
|
2016
|
-
if ((0, types_1$
|
2016
|
+
if ((0, types_1$Q.isAsyncIterable)(iterable)) {
|
2017
2017
|
return [Kind$2.Async, iterable[Symbol.asyncIterator]()];
|
2018
2018
|
}
|
2019
2019
|
else {
|
@@ -2170,9 +2170,9 @@ consume$5.consume = consume$4;
|
|
2170
2170
|
var eachAsync$5 = {};
|
2171
2171
|
|
2172
2172
|
eachAsync$5.eachAsync = void 0;
|
2173
|
-
const types_1$
|
2173
|
+
const types_1$P = es2018$f;
|
2174
2174
|
function eachAsync$4(iterable, fn) {
|
2175
|
-
if ((0, types_1$
|
2175
|
+
if ((0, types_1$P.isAsyncIterable)(iterable)) {
|
2176
2176
|
return eachAsyncIterable(iterable);
|
2177
2177
|
}
|
2178
2178
|
else {
|
@@ -2210,9 +2210,9 @@ each$5.each = each$4;
|
|
2210
2210
|
var everyAsync$5 = {};
|
2211
2211
|
|
2212
2212
|
everyAsync$5.everyAsync = void 0;
|
2213
|
-
const types_1$
|
2213
|
+
const types_1$O = es2018$f;
|
2214
2214
|
function everyAsync$4(iterable, predicate) {
|
2215
|
-
if ((0, types_1$
|
2215
|
+
if ((0, types_1$O.isAsyncIterable)(iterable)) {
|
2216
2216
|
return everyAsyncIterable(iterable);
|
2217
2217
|
}
|
2218
2218
|
else {
|
@@ -2256,9 +2256,9 @@ every$7.every = every$6;
|
|
2256
2256
|
var findAsync$5 = {};
|
2257
2257
|
|
2258
2258
|
findAsync$5.findAsync = void 0;
|
2259
|
-
const types_1$
|
2259
|
+
const types_1$N = es2018$f;
|
2260
2260
|
function findAsync$4(iterable, predicate) {
|
2261
|
-
if ((0, types_1$
|
2261
|
+
if ((0, types_1$N.isAsyncIterable)(iterable)) {
|
2262
2262
|
return findAsyncIterable(iterable);
|
2263
2263
|
}
|
2264
2264
|
else {
|
@@ -2380,9 +2380,9 @@ match$5.match = match$4;
|
|
2380
2380
|
var reduceAsync$5 = {};
|
2381
2381
|
|
2382
2382
|
reduceAsync$5.reduceAsync = void 0;
|
2383
|
-
const types_1$
|
2383
|
+
const types_1$M = es2018$f;
|
2384
2384
|
function reduceAsync$4(iterable, fn, initialValue) {
|
2385
|
-
if ((0, types_1$
|
2385
|
+
if ((0, types_1$M.isUndefined)(initialValue)) {
|
2386
2386
|
return reduceAsyncWithoutInitialValue$2(iterable, fn);
|
2387
2387
|
}
|
2388
2388
|
else {
|
@@ -2391,7 +2391,7 @@ function reduceAsync$4(iterable, fn, initialValue) {
|
|
2391
2391
|
}
|
2392
2392
|
reduceAsync$5.reduceAsync = reduceAsync$4;
|
2393
2393
|
function reduceAsyncWithInitialValue$2(iterable, fn, initialValue) {
|
2394
|
-
if ((0, types_1$
|
2394
|
+
if ((0, types_1$M.isAsyncIterable)(iterable)) {
|
2395
2395
|
return reduceAsyncIterable(iterable);
|
2396
2396
|
}
|
2397
2397
|
else {
|
@@ -2413,7 +2413,7 @@ function reduceAsyncWithInitialValue$2(iterable, fn, initialValue) {
|
|
2413
2413
|
}
|
2414
2414
|
}
|
2415
2415
|
function reduceAsyncWithoutInitialValue$2(iterable, fn) {
|
2416
|
-
if ((0, types_1$
|
2416
|
+
if ((0, types_1$M.isAsyncIterable)(iterable)) {
|
2417
2417
|
return reduceAsyncIterable(iterable);
|
2418
2418
|
}
|
2419
2419
|
else {
|
@@ -2476,9 +2476,9 @@ function reduceAsyncWithoutInitialValue$2(iterable, fn) {
|
|
2476
2476
|
var reduce$7 = {};
|
2477
2477
|
|
2478
2478
|
reduce$7.reduce = void 0;
|
2479
|
-
const types_1$
|
2479
|
+
const types_1$L = es2018$f;
|
2480
2480
|
function reduce$6(iterable, fn, initialValue) {
|
2481
|
-
if ((0, types_1$
|
2481
|
+
if ((0, types_1$L.isUndefined)(initialValue)) {
|
2482
2482
|
return reduceWithoutInitialValue$2(iterable, fn);
|
2483
2483
|
}
|
2484
2484
|
else {
|
@@ -2523,9 +2523,9 @@ function reduceWithoutInitialValue$2(iterable, fn) {
|
|
2523
2523
|
var someAsync$5 = {};
|
2524
2524
|
|
2525
2525
|
someAsync$5.someAsync = void 0;
|
2526
|
-
const types_1$
|
2526
|
+
const types_1$K = es2018$f;
|
2527
2527
|
function someAsync$4(iterable, predicate) {
|
2528
|
-
if ((0, types_1$
|
2528
|
+
if ((0, types_1$K.isAsyncIterable)(iterable)) {
|
2529
2529
|
return someAsyncIterable(iterable);
|
2530
2530
|
}
|
2531
2531
|
else {
|
@@ -2740,11 +2740,11 @@ function* traverseErrorPrototypeChain(err) {
|
|
2740
2740
|
traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
|
2741
2741
|
|
2742
2742
|
getErrorNames$1.getErrorNames = void 0;
|
2743
|
-
const types_1$
|
2743
|
+
const types_1$J = es2018$f;
|
2744
2744
|
const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
|
2745
2745
|
function* getErrorNames(err) {
|
2746
2746
|
var _a;
|
2747
|
-
if ((0, types_1$
|
2747
|
+
if ((0, types_1$J.isError)(err)) {
|
2748
2748
|
for (const prototype of (0, traverse_error_prototype_chain_1.traverseErrorPrototypeChain)(err)) {
|
2749
2749
|
if ((_a = prototype.constructor) === null || _a === void 0 ? void 0 : _a.name) {
|
2750
2750
|
yield prototype.constructor.name;
|
@@ -2761,13 +2761,13 @@ getErrorNames$1.getErrorNames = getErrorNames;
|
|
2761
2761
|
var serializableError = {};
|
2762
2762
|
|
2763
2763
|
serializableError.isSerializableError = void 0;
|
2764
|
-
const types_1$
|
2764
|
+
const types_1$I = es2018$f;
|
2765
2765
|
function isSerializableError(val) {
|
2766
|
-
return (0, types_1$
|
2767
|
-
&& (0, types_1$
|
2768
|
-
&& (0, types_1$
|
2769
|
-
&& ((0, types_1$
|
2770
|
-
&& ((0, types_1$
|
2766
|
+
return (0, types_1$I.isObject)(val)
|
2767
|
+
&& (0, types_1$I.isString)(val.name)
|
2768
|
+
&& (0, types_1$I.isString)(val.message)
|
2769
|
+
&& ((0, types_1$I.isString)(val.stack) || (0, types_1$I.isNull)(val.stack))
|
2770
|
+
&& ((0, types_1$I.isArray)(val.ancestors) && val.ancestors.every(types_1$I.isString));
|
2771
2771
|
}
|
2772
2772
|
serializableError.isSerializableError = isSerializableError;
|
2773
2773
|
|
@@ -3337,9 +3337,9 @@ url$3.isAbsoluteURL = isAbsoluteURL$3;
|
|
3337
3337
|
} (es2018$c));
|
3338
3338
|
|
3339
3339
|
chunkByAsync$3.chunkByAsync = void 0;
|
3340
|
-
const types_1$
|
3340
|
+
const types_1$H = es2018$c;
|
3341
3341
|
function chunkByAsync$2(iterable, predicate) {
|
3342
|
-
if ((0, types_1$
|
3342
|
+
if ((0, types_1$H.isAsyncIterable)(iterable)) {
|
3343
3343
|
return chunkByAsyncIterable(iterable);
|
3344
3344
|
}
|
3345
3345
|
else {
|
@@ -3421,12 +3421,12 @@ chunk$3.chunk = chunk$2;
|
|
3421
3421
|
var concatAsync$3 = {};
|
3422
3422
|
|
3423
3423
|
concatAsync$3.concatAsync = void 0;
|
3424
|
-
const types_1$
|
3424
|
+
const types_1$G = es2018$c;
|
3425
3425
|
const go_1$t = es2018$g;
|
3426
3426
|
function concatAsync$2(iterable, ...otherIterables) {
|
3427
3427
|
return (0, go_1$t.go)(async function* () {
|
3428
3428
|
for (const iter of [iterable, ...otherIterables]) {
|
3429
|
-
if ((0, types_1$
|
3429
|
+
if ((0, types_1$G.isAsyncIterable)(iter)) {
|
3430
3430
|
for await (const element of iter) {
|
3431
3431
|
yield element;
|
3432
3432
|
}
|
@@ -3554,9 +3554,9 @@ dropRight$3.dropRight = dropRight$2;
|
|
3554
3554
|
var dropUntilAsync$3 = {};
|
3555
3555
|
|
3556
3556
|
dropUntilAsync$3.dropUntilAsync = void 0;
|
3557
|
-
const types_1$
|
3557
|
+
const types_1$F = es2018$c;
|
3558
3558
|
function dropUntilAsync$2(iterable, predicate) {
|
3559
|
-
if ((0, types_1$
|
3559
|
+
if ((0, types_1$F.isAsyncIterable)(iterable)) {
|
3560
3560
|
return dropUntilAsyncIterable(iterable);
|
3561
3561
|
}
|
3562
3562
|
else {
|
@@ -3671,9 +3671,9 @@ drop$3.drop = drop$2;
|
|
3671
3671
|
var filterAsync$3 = {};
|
3672
3672
|
|
3673
3673
|
filterAsync$3.filterAsync = void 0;
|
3674
|
-
const types_1$
|
3674
|
+
const types_1$E = es2018$c;
|
3675
3675
|
function filterAsync$2(iterable, predicate) {
|
3676
|
-
if ((0, types_1$
|
3676
|
+
if ((0, types_1$E.isAsyncIterable)(iterable)) {
|
3677
3677
|
return filterAsyncIterable(iterable);
|
3678
3678
|
}
|
3679
3679
|
else {
|
@@ -3718,9 +3718,9 @@ var flattenDeepAsync$3 = {};
|
|
3718
3718
|
var flattenByAsync$3 = {};
|
3719
3719
|
|
3720
3720
|
flattenByAsync$3.flattenByAsync = void 0;
|
3721
|
-
const types_1$
|
3721
|
+
const types_1$D = es2018$c;
|
3722
3722
|
function flattenByAsync$2(iterable, predicate) {
|
3723
|
-
if ((0, types_1$
|
3723
|
+
if ((0, types_1$D.isAsyncIterable)(iterable)) {
|
3724
3724
|
return flattenByAsyncIterable(iterable);
|
3725
3725
|
}
|
3726
3726
|
else {
|
@@ -3753,7 +3753,7 @@ function flattenByAsync$2(iterable, predicate) {
|
|
3753
3753
|
}
|
3754
3754
|
flattenByAsync$3.flattenByAsync = flattenByAsync$2;
|
3755
3755
|
function isFiniteIterable$3(val) {
|
3756
|
-
return (0, types_1$
|
3756
|
+
return (0, types_1$D.isIterable)(val) && (0, types_1$D.isntChar)(val);
|
3757
3757
|
}
|
3758
3758
|
|
3759
3759
|
flattenDeepAsync$3.flattenDeepAsync = void 0;
|
@@ -3776,7 +3776,7 @@ flattenAsync$3.flattenAsync = flattenAsync$2;
|
|
3776
3776
|
var flattenBy$3 = {};
|
3777
3777
|
|
3778
3778
|
flattenBy$3.flattenBy = void 0;
|
3779
|
-
const types_1$
|
3779
|
+
const types_1$C = es2018$c;
|
3780
3780
|
function flattenBy$2(iterable, predicate) {
|
3781
3781
|
return flatten(iterable, 1);
|
3782
3782
|
function* flatten(iterable, level) {
|
@@ -3792,7 +3792,7 @@ function flattenBy$2(iterable, predicate) {
|
|
3792
3792
|
}
|
3793
3793
|
flattenBy$3.flattenBy = flattenBy$2;
|
3794
3794
|
function isFiniteIterable$2(val) {
|
3795
|
-
return (0, types_1$
|
3795
|
+
return (0, types_1$C.isIterable)(val) && (0, types_1$C.isntChar)(val);
|
3796
3796
|
}
|
3797
3797
|
|
3798
3798
|
var flattenDeep$3 = {};
|
@@ -3819,9 +3819,9 @@ flatten$3.flatten = flatten$2;
|
|
3819
3819
|
var mapAsync$3 = {};
|
3820
3820
|
|
3821
3821
|
mapAsync$3.mapAsync = void 0;
|
3822
|
-
const types_1$
|
3822
|
+
const types_1$B = es2018$c;
|
3823
3823
|
function mapAsync$2(iterable, fn) {
|
3824
|
-
if ((0, types_1$
|
3824
|
+
if ((0, types_1$B.isAsyncIterable)(iterable)) {
|
3825
3825
|
return mapAsyncIterable(iterable);
|
3826
3826
|
}
|
3827
3827
|
else {
|
@@ -3993,9 +3993,9 @@ splitAsync$3.splitAsync = splitAsync$2;
|
|
3993
3993
|
var splitByAsync$3 = {};
|
3994
3994
|
|
3995
3995
|
splitByAsync$3.splitByAsync = void 0;
|
3996
|
-
const types_1$
|
3996
|
+
const types_1$A = es2018$c;
|
3997
3997
|
function splitByAsync$2(iterable, predicate) {
|
3998
|
-
if ((0, types_1$
|
3998
|
+
if ((0, types_1$A.isAsyncIterable)(iterable)) {
|
3999
3999
|
return splitByAsyncIterable(iterable);
|
4000
4000
|
}
|
4001
4001
|
else {
|
@@ -4156,9 +4156,9 @@ takeRight$3.takeRight = takeRight$2;
|
|
4156
4156
|
var takeUntilAsync$3 = {};
|
4157
4157
|
|
4158
4158
|
takeUntilAsync$3.takeUntilAsync = void 0;
|
4159
|
-
const types_1$
|
4159
|
+
const types_1$z = es2018$c;
|
4160
4160
|
function takeUntilAsync$2(iterable, predicate) {
|
4161
|
-
if ((0, types_1$
|
4161
|
+
if ((0, types_1$z.isAsyncIterable)(iterable)) {
|
4162
4162
|
return takeUntilAsyncIterable(iterable);
|
4163
4163
|
}
|
4164
4164
|
else {
|
@@ -4223,9 +4223,9 @@ take$5.take = take$4;
|
|
4223
4223
|
var tapAsync$3 = {};
|
4224
4224
|
|
4225
4225
|
tapAsync$3.tapAsync = void 0;
|
4226
|
-
const types_1$
|
4226
|
+
const types_1$y = es2018$c;
|
4227
4227
|
function tapAsync$2(iterable, fn) {
|
4228
|
-
if ((0, types_1$
|
4228
|
+
if ((0, types_1$y.isAsyncIterable)(iterable)) {
|
4229
4229
|
return tapAsyncIterable(iterable);
|
4230
4230
|
}
|
4231
4231
|
else {
|
@@ -4306,9 +4306,9 @@ uniqAsync$3.uniqAsync = uniqAsync$2;
|
|
4306
4306
|
var uniqByAsync$3 = {};
|
4307
4307
|
|
4308
4308
|
uniqByAsync$3.uniqByAsync = void 0;
|
4309
|
-
const types_1$
|
4309
|
+
const types_1$x = es2018$c;
|
4310
4310
|
function uniqByAsync$2(iterable, fn) {
|
4311
|
-
if ((0, types_1$
|
4311
|
+
if ((0, types_1$x.isAsyncIterable)(iterable)) {
|
4312
4312
|
return uniqByAsyncIterable(iterable);
|
4313
4313
|
}
|
4314
4314
|
else {
|
@@ -4375,7 +4375,7 @@ uniq$3.uniq = uniq$2;
|
|
4375
4375
|
var zipAsync$3 = {};
|
4376
4376
|
|
4377
4377
|
zipAsync$3.zipAsync = void 0;
|
4378
|
-
const types_1$
|
4378
|
+
const types_1$w = es2018$c;
|
4379
4379
|
var Kind$1;
|
4380
4380
|
(function (Kind) {
|
4381
4381
|
Kind[Kind["Sync"] = 0] = "Sync";
|
@@ -4389,7 +4389,7 @@ async function* zipWithSize$3(...iterables) {
|
|
4389
4389
|
var _a, _b, _c, _d;
|
4390
4390
|
const length = iterables.length;
|
4391
4391
|
const iterators = iterables.map(iterable => {
|
4392
|
-
if ((0, types_1$
|
4392
|
+
if ((0, types_1$w.isAsyncIterable)(iterable)) {
|
4393
4393
|
return [Kind$1.Async, iterable[Symbol.asyncIterator]()];
|
4394
4394
|
}
|
4395
4395
|
else {
|
@@ -4539,9 +4539,9 @@ consume$3.consume = consume$2;
|
|
4539
4539
|
var eachAsync$3 = {};
|
4540
4540
|
|
4541
4541
|
eachAsync$3.eachAsync = void 0;
|
4542
|
-
const types_1$
|
4542
|
+
const types_1$v = es2018$c;
|
4543
4543
|
function eachAsync$2(iterable, fn) {
|
4544
|
-
if ((0, types_1$
|
4544
|
+
if ((0, types_1$v.isAsyncIterable)(iterable)) {
|
4545
4545
|
return eachAsyncIterable(iterable);
|
4546
4546
|
}
|
4547
4547
|
else {
|
@@ -4579,9 +4579,9 @@ each$3.each = each$2;
|
|
4579
4579
|
var everyAsync$3 = {};
|
4580
4580
|
|
4581
4581
|
everyAsync$3.everyAsync = void 0;
|
4582
|
-
const types_1$
|
4582
|
+
const types_1$u = es2018$c;
|
4583
4583
|
function everyAsync$2(iterable, predicate) {
|
4584
|
-
if ((0, types_1$
|
4584
|
+
if ((0, types_1$u.isAsyncIterable)(iterable)) {
|
4585
4585
|
return everyAsyncIterable(iterable);
|
4586
4586
|
}
|
4587
4587
|
else {
|
@@ -4625,9 +4625,9 @@ every$5.every = every$4;
|
|
4625
4625
|
var findAsync$3 = {};
|
4626
4626
|
|
4627
4627
|
findAsync$3.findAsync = void 0;
|
4628
|
-
const types_1$
|
4628
|
+
const types_1$t = es2018$c;
|
4629
4629
|
function findAsync$2(iterable, predicate) {
|
4630
|
-
if ((0, types_1$
|
4630
|
+
if ((0, types_1$t.isAsyncIterable)(iterable)) {
|
4631
4631
|
return findAsyncIterable(iterable);
|
4632
4632
|
}
|
4633
4633
|
else {
|
@@ -4749,9 +4749,9 @@ match$3.match = match$2;
|
|
4749
4749
|
var reduceAsync$3 = {};
|
4750
4750
|
|
4751
4751
|
reduceAsync$3.reduceAsync = void 0;
|
4752
|
-
const types_1$
|
4752
|
+
const types_1$s = es2018$c;
|
4753
4753
|
function reduceAsync$2(iterable, fn, initialValue) {
|
4754
|
-
if ((0, types_1$
|
4754
|
+
if ((0, types_1$s.isUndefined)(initialValue)) {
|
4755
4755
|
return reduceAsyncWithoutInitialValue$1(iterable, fn);
|
4756
4756
|
}
|
4757
4757
|
else {
|
@@ -4760,7 +4760,7 @@ function reduceAsync$2(iterable, fn, initialValue) {
|
|
4760
4760
|
}
|
4761
4761
|
reduceAsync$3.reduceAsync = reduceAsync$2;
|
4762
4762
|
function reduceAsyncWithInitialValue$1(iterable, fn, initialValue) {
|
4763
|
-
if ((0, types_1$
|
4763
|
+
if ((0, types_1$s.isAsyncIterable)(iterable)) {
|
4764
4764
|
return reduceAsyncIterable(iterable);
|
4765
4765
|
}
|
4766
4766
|
else {
|
@@ -4782,7 +4782,7 @@ function reduceAsyncWithInitialValue$1(iterable, fn, initialValue) {
|
|
4782
4782
|
}
|
4783
4783
|
}
|
4784
4784
|
function reduceAsyncWithoutInitialValue$1(iterable, fn) {
|
4785
|
-
if ((0, types_1$
|
4785
|
+
if ((0, types_1$s.isAsyncIterable)(iterable)) {
|
4786
4786
|
return reduceAsyncIterable(iterable);
|
4787
4787
|
}
|
4788
4788
|
else {
|
@@ -4845,9 +4845,9 @@ function reduceAsyncWithoutInitialValue$1(iterable, fn) {
|
|
4845
4845
|
var reduce$5 = {};
|
4846
4846
|
|
4847
4847
|
reduce$5.reduce = void 0;
|
4848
|
-
const types_1$
|
4848
|
+
const types_1$r = es2018$c;
|
4849
4849
|
function reduce$4(iterable, fn, initialValue) {
|
4850
|
-
if ((0, types_1$
|
4850
|
+
if ((0, types_1$r.isUndefined)(initialValue)) {
|
4851
4851
|
return reduceWithoutInitialValue$1(iterable, fn);
|
4852
4852
|
}
|
4853
4853
|
else {
|
@@ -4892,9 +4892,9 @@ function reduceWithoutInitialValue$1(iterable, fn) {
|
|
4892
4892
|
var someAsync$3 = {};
|
4893
4893
|
|
4894
4894
|
someAsync$3.someAsync = void 0;
|
4895
|
-
const types_1$
|
4895
|
+
const types_1$q = es2018$c;
|
4896
4896
|
function someAsync$2(iterable, predicate) {
|
4897
|
-
if ((0, types_1$
|
4897
|
+
if ((0, types_1$q.isAsyncIterable)(iterable)) {
|
4898
4898
|
return someAsyncIterable(iterable);
|
4899
4899
|
}
|
4900
4900
|
else {
|
@@ -5558,6 +5558,7 @@ var trieMap = {};
|
|
5558
5558
|
|
5559
5559
|
trieMap.TrieMap = void 0;
|
5560
5560
|
const iterable_operator_1 = es2018$d;
|
5561
|
+
const types_1$p = es2018$c;
|
5561
5562
|
class TrieNode {
|
5562
5563
|
constructor(value) {
|
5563
5564
|
this.value = value;
|
@@ -5571,6 +5572,24 @@ class TrieMap {
|
|
5571
5572
|
get [Symbol.toStringTag]() {
|
5572
5573
|
return this.constructor.name;
|
5573
5574
|
}
|
5575
|
+
*entries() {
|
5576
|
+
yield* dfs(this.root, []);
|
5577
|
+
function* dfs(node, paths) {
|
5578
|
+
for (const [path, childNode] of node.children) {
|
5579
|
+
const newPaths = [...paths, path];
|
5580
|
+
if ((0, types_1$p.isntUndefined)(childNode.value)) {
|
5581
|
+
yield [newPaths, childNode.value];
|
5582
|
+
}
|
5583
|
+
yield* dfs(childNode, newPaths);
|
5584
|
+
}
|
5585
|
+
}
|
5586
|
+
}
|
5587
|
+
keys() {
|
5588
|
+
return (0, iterable_operator_1.map)(this.entries(), ([key]) => key);
|
5589
|
+
}
|
5590
|
+
values() {
|
5591
|
+
return (0, iterable_operator_1.map)(this.entries(), ([_, value]) => value);
|
5592
|
+
}
|
5574
5593
|
set(key, value) {
|
5575
5594
|
let node = this.root;
|
5576
5595
|
for (const part of key) {
|
@@ -13146,6 +13165,7 @@ exports.State = void 0;
|
|
13146
13165
|
(function (State) {
|
13147
13166
|
State["Miss"] = "miss";
|
13148
13167
|
State["Hit"] = "hit";
|
13168
|
+
State["Reuse"] = "reuse";
|
13149
13169
|
State["StaleWhileRevalidate"] = "stale-while-revalidate";
|
13150
13170
|
State["StaleIfError"] = "state-if-error";
|
13151
13171
|
})(exports.State || (exports.State = {}));
|
@@ -13221,20 +13241,33 @@ function defaultCreateKey(args, name) {
|
|
13221
13241
|
}
|
13222
13242
|
defaultCreateKey$1.defaultCreateKey = defaultCreateKey;
|
13223
13243
|
|
13244
|
+
var createVerboseResult$1 = {};
|
13245
|
+
|
13246
|
+
createVerboseResult$1.createVerboseResult = void 0;
|
13247
|
+
function createVerboseResult(value, state) {
|
13248
|
+
return [value, state];
|
13249
|
+
}
|
13250
|
+
createVerboseResult$1.createVerboseResult = createVerboseResult;
|
13251
|
+
|
13224
13252
|
memoize$1.memoize = void 0;
|
13225
|
-
const types_1$
|
13226
|
-
const default_create_key_1$
|
13227
|
-
|
13253
|
+
const types_1$o = types;
|
13254
|
+
const default_create_key_1$5 = defaultCreateKey$1;
|
13255
|
+
const create_verbose_result_1$5 = createVerboseResult$1;
|
13256
|
+
function memoize({ cache, name, createKey = default_create_key_1$5.defaultCreateKey, executionTimeThreshold = 0, verbose = false }, fn) {
|
13228
13257
|
return function (...args) {
|
13258
|
+
const [value, state] = memoizedFunction.apply(this, args);
|
13259
|
+
return verbose ? [value, state] : value;
|
13260
|
+
};
|
13261
|
+
function memoizedFunction(...args) {
|
13229
13262
|
const key = createKey(args, name);
|
13230
13263
|
const [state, value] = cache.get(key);
|
13231
|
-
if (state === types_1$
|
13232
|
-
return value;
|
13264
|
+
if (state === types_1$o.State.Hit) {
|
13265
|
+
return (0, create_verbose_result_1$5.createVerboseResult)(value, state);
|
13233
13266
|
}
|
13234
13267
|
else {
|
13235
|
-
return refresh.call(this, key, args);
|
13268
|
+
return (0, create_verbose_result_1$5.createVerboseResult)(refresh.call(this, key, args), state);
|
13236
13269
|
}
|
13237
|
-
}
|
13270
|
+
}
|
13238
13271
|
function refresh(key, args) {
|
13239
13272
|
const startTime = Date.now();
|
13240
13273
|
const result = fn.apply(this, args);
|
@@ -13255,65 +13288,30 @@ memoize$1.memoize = memoize;
|
|
13255
13288
|
var memoizeAsync$1 = {};
|
13256
13289
|
|
13257
13290
|
memoizeAsync$1.memoizeAsync = void 0;
|
13258
|
-
const types_1$
|
13259
|
-
const default_create_key_1$
|
13260
|
-
|
13291
|
+
const types_1$n = types;
|
13292
|
+
const default_create_key_1$4 = defaultCreateKey$1;
|
13293
|
+
const create_verbose_result_1$4 = createVerboseResult$1;
|
13294
|
+
function memoizeAsync({ cache, name, createKey = default_create_key_1$4.defaultCreateKey, executionTimeThreshold = 0, verbose = false }, fn) {
|
13261
13295
|
const pendings = new Map();
|
13262
13296
|
return async function (...args) {
|
13263
|
-
const
|
13264
|
-
|
13265
|
-
if (state === types_1$p.State.Hit) {
|
13266
|
-
return value;
|
13267
|
-
}
|
13268
|
-
else {
|
13269
|
-
if (pendings.has(key))
|
13270
|
-
return pendings.get(key);
|
13271
|
-
return await refresh.call(this, key, args);
|
13272
|
-
}
|
13297
|
+
const [value, state] = await memoizedFunction.apply(this, args);
|
13298
|
+
return verbose ? [value, state] : value;
|
13273
13299
|
};
|
13274
|
-
async function
|
13275
|
-
const startTime = Date.now();
|
13276
|
-
const pending = Promise.resolve(fn.apply(this, args));
|
13277
|
-
pendings.set(key, pending);
|
13278
|
-
try {
|
13279
|
-
const result = await pending;
|
13280
|
-
if (isSlowExecution(startTime)) {
|
13281
|
-
cache.set(key, result);
|
13282
|
-
}
|
13283
|
-
return result;
|
13284
|
-
}
|
13285
|
-
finally {
|
13286
|
-
pendings.delete(key);
|
13287
|
-
}
|
13288
|
-
}
|
13289
|
-
function isSlowExecution(startTime) {
|
13290
|
-
return getElapsed() >= executionTimeThreshold;
|
13291
|
-
function getElapsed() {
|
13292
|
-
return Date.now() - startTime;
|
13293
|
-
}
|
13294
|
-
}
|
13295
|
-
}
|
13296
|
-
memoizeAsync$1.memoizeAsync = memoizeAsync;
|
13297
|
-
|
13298
|
-
var memoizeWithAsyncCache$1 = {};
|
13299
|
-
|
13300
|
-
memoizeWithAsyncCache$1.memoizeWithAsyncCache = void 0;
|
13301
|
-
const types_1$o = types;
|
13302
|
-
const default_create_key_1$5 = defaultCreateKey$1;
|
13303
|
-
function memoizeWithAsyncCache({ cache, name, createKey = default_create_key_1$5.defaultCreateKey, executionTimeThreshold = 0 }, fn) {
|
13304
|
-
const pendings = new Map();
|
13305
|
-
return async function (...args) {
|
13300
|
+
async function memoizedFunction(...args) {
|
13306
13301
|
const key = createKey(args, name);
|
13307
13302
|
const [state, value] = await cache.get(key);
|
13308
|
-
if (state === types_1$
|
13309
|
-
return value;
|
13303
|
+
if (state === types_1$n.State.Hit) {
|
13304
|
+
return (0, create_verbose_result_1$4.createVerboseResult)(value, state);
|
13310
13305
|
}
|
13311
13306
|
else {
|
13312
|
-
if (pendings.has(key))
|
13313
|
-
return pendings.get(key);
|
13314
|
-
|
13307
|
+
if (pendings.has(key)) {
|
13308
|
+
return (0, create_verbose_result_1$4.createVerboseResult)(await pendings.get(key), types_1$n.State.Reuse);
|
13309
|
+
}
|
13310
|
+
else {
|
13311
|
+
return (0, create_verbose_result_1$4.createVerboseResult)(await refresh.call(this, key, args), state);
|
13312
|
+
}
|
13315
13313
|
}
|
13316
|
-
}
|
13314
|
+
}
|
13317
13315
|
async function refresh(key, args) {
|
13318
13316
|
const startTime = Date.now();
|
13319
13317
|
const pending = Promise.resolve(fn.apply(this, args));
|
@@ -13321,7 +13319,7 @@ function memoizeWithAsyncCache({ cache, name, createKey = default_create_key_1$5
|
|
13321
13319
|
try {
|
13322
13320
|
const result = await pending;
|
13323
13321
|
if (isSlowExecution(startTime)) {
|
13324
|
-
|
13322
|
+
cache.set(key, result);
|
13325
13323
|
}
|
13326
13324
|
return result;
|
13327
13325
|
}
|
@@ -13336,7 +13334,7 @@ function memoizeWithAsyncCache({ cache, name, createKey = default_create_key_1$5
|
|
13336
13334
|
}
|
13337
13335
|
}
|
13338
13336
|
}
|
13339
|
-
|
13337
|
+
memoizeAsync$1.memoizeAsync = memoizeAsync;
|
13340
13338
|
|
13341
13339
|
var memoizeStaleWhileRevalidate$1 = {};
|
13342
13340
|
|
@@ -13794,11 +13792,11 @@ url$2.isAbsoluteURL = isAbsoluteURL$2;
|
|
13794
13792
|
|
13795
13793
|
time$1.time = void 0;
|
13796
13794
|
const high_resolution_timestamp_1$2 = highResolutionTimestamp_browser;
|
13797
|
-
const types_1$
|
13795
|
+
const types_1$m = es2018$5;
|
13798
13796
|
function time(message, fn) {
|
13799
13797
|
const startTime = (0, high_resolution_timestamp_1$2.now)();
|
13800
13798
|
const result = fn();
|
13801
|
-
if ((0, types_1$
|
13799
|
+
if ((0, types_1$m.isPromiseLike)(result)) {
|
13802
13800
|
return result.then(() => {
|
13803
13801
|
const endTime = (0, high_resolution_timestamp_1$2.now)();
|
13804
13802
|
console.log(message, (0, high_resolution_timestamp_1$2.elapsed)(startTime, endTime));
|
@@ -14339,9 +14337,9 @@ url$1.isAbsoluteURL = isAbsoluteURL$1;
|
|
14339
14337
|
} (es2018$1));
|
14340
14338
|
|
14341
14339
|
chunkByAsync$1.chunkByAsync = void 0;
|
14342
|
-
const types_1$
|
14340
|
+
const types_1$l = es2018$1;
|
14343
14341
|
function chunkByAsync(iterable, predicate) {
|
14344
|
-
if ((0, types_1$
|
14342
|
+
if ((0, types_1$l.isAsyncIterable)(iterable)) {
|
14345
14343
|
return chunkByAsyncIterable(iterable);
|
14346
14344
|
}
|
14347
14345
|
else {
|
@@ -14423,12 +14421,12 @@ chunk$1.chunk = chunk;
|
|
14423
14421
|
var concatAsync$1 = {};
|
14424
14422
|
|
14425
14423
|
concatAsync$1.concatAsync = void 0;
|
14426
|
-
const types_1$
|
14424
|
+
const types_1$k = es2018$1;
|
14427
14425
|
const go_1$d = es2018$2;
|
14428
14426
|
function concatAsync(iterable, ...otherIterables) {
|
14429
14427
|
return (0, go_1$d.go)(async function* () {
|
14430
14428
|
for (const iter of [iterable, ...otherIterables]) {
|
14431
|
-
if ((0, types_1$
|
14429
|
+
if ((0, types_1$k.isAsyncIterable)(iter)) {
|
14432
14430
|
for await (const element of iter) {
|
14433
14431
|
yield element;
|
14434
14432
|
}
|
@@ -14556,9 +14554,9 @@ dropRight$1.dropRight = dropRight;
|
|
14556
14554
|
var dropUntilAsync$1 = {};
|
14557
14555
|
|
14558
14556
|
dropUntilAsync$1.dropUntilAsync = void 0;
|
14559
|
-
const types_1$
|
14557
|
+
const types_1$j = es2018$1;
|
14560
14558
|
function dropUntilAsync(iterable, predicate) {
|
14561
|
-
if ((0, types_1$
|
14559
|
+
if ((0, types_1$j.isAsyncIterable)(iterable)) {
|
14562
14560
|
return dropUntilAsyncIterable(iterable);
|
14563
14561
|
}
|
14564
14562
|
else {
|
@@ -14673,9 +14671,9 @@ drop$1.drop = drop;
|
|
14673
14671
|
var filterAsync$1 = {};
|
14674
14672
|
|
14675
14673
|
filterAsync$1.filterAsync = void 0;
|
14676
|
-
const types_1$
|
14674
|
+
const types_1$i = es2018$1;
|
14677
14675
|
function filterAsync(iterable, predicate) {
|
14678
|
-
if ((0, types_1$
|
14676
|
+
if ((0, types_1$i.isAsyncIterable)(iterable)) {
|
14679
14677
|
return filterAsyncIterable(iterable);
|
14680
14678
|
}
|
14681
14679
|
else {
|
@@ -14720,9 +14718,9 @@ var flattenDeepAsync$1 = {};
|
|
14720
14718
|
var flattenByAsync$1 = {};
|
14721
14719
|
|
14722
14720
|
flattenByAsync$1.flattenByAsync = void 0;
|
14723
|
-
const types_1$
|
14721
|
+
const types_1$h = es2018$1;
|
14724
14722
|
function flattenByAsync(iterable, predicate) {
|
14725
|
-
if ((0, types_1$
|
14723
|
+
if ((0, types_1$h.isAsyncIterable)(iterable)) {
|
14726
14724
|
return flattenByAsyncIterable(iterable);
|
14727
14725
|
}
|
14728
14726
|
else {
|
@@ -14755,7 +14753,7 @@ function flattenByAsync(iterable, predicate) {
|
|
14755
14753
|
}
|
14756
14754
|
flattenByAsync$1.flattenByAsync = flattenByAsync;
|
14757
14755
|
function isFiniteIterable$1(val) {
|
14758
|
-
return (0, types_1$
|
14756
|
+
return (0, types_1$h.isIterable)(val) && (0, types_1$h.isntChar)(val);
|
14759
14757
|
}
|
14760
14758
|
|
14761
14759
|
flattenDeepAsync$1.flattenDeepAsync = void 0;
|
@@ -14778,7 +14776,7 @@ flattenAsync$1.flattenAsync = flattenAsync;
|
|
14778
14776
|
var flattenBy$1 = {};
|
14779
14777
|
|
14780
14778
|
flattenBy$1.flattenBy = void 0;
|
14781
|
-
const types_1$
|
14779
|
+
const types_1$g = es2018$1;
|
14782
14780
|
function flattenBy(iterable, predicate) {
|
14783
14781
|
return flatten(iterable, 1);
|
14784
14782
|
function* flatten(iterable, level) {
|
@@ -14794,7 +14792,7 @@ function flattenBy(iterable, predicate) {
|
|
14794
14792
|
}
|
14795
14793
|
flattenBy$1.flattenBy = flattenBy;
|
14796
14794
|
function isFiniteIterable(val) {
|
14797
|
-
return (0, types_1$
|
14795
|
+
return (0, types_1$g.isIterable)(val) && (0, types_1$g.isntChar)(val);
|
14798
14796
|
}
|
14799
14797
|
|
14800
14798
|
var flattenDeep$1 = {};
|
@@ -14821,9 +14819,9 @@ flatten$1.flatten = flatten;
|
|
14821
14819
|
var mapAsync$1 = {};
|
14822
14820
|
|
14823
14821
|
mapAsync$1.mapAsync = void 0;
|
14824
|
-
const types_1$
|
14822
|
+
const types_1$f = es2018$1;
|
14825
14823
|
function mapAsync(iterable, fn) {
|
14826
|
-
if ((0, types_1$
|
14824
|
+
if ((0, types_1$f.isAsyncIterable)(iterable)) {
|
14827
14825
|
return mapAsyncIterable(iterable);
|
14828
14826
|
}
|
14829
14827
|
else {
|
@@ -14995,9 +14993,9 @@ splitAsync$1.splitAsync = splitAsync;
|
|
14995
14993
|
var splitByAsync$1 = {};
|
14996
14994
|
|
14997
14995
|
splitByAsync$1.splitByAsync = void 0;
|
14998
|
-
const types_1$
|
14996
|
+
const types_1$e = es2018$1;
|
14999
14997
|
function splitByAsync(iterable, predicate) {
|
15000
|
-
if ((0, types_1$
|
14998
|
+
if ((0, types_1$e.isAsyncIterable)(iterable)) {
|
15001
14999
|
return splitByAsyncIterable(iterable);
|
15002
15000
|
}
|
15003
15001
|
else {
|
@@ -15158,9 +15156,9 @@ takeRight$1.takeRight = takeRight;
|
|
15158
15156
|
var takeUntilAsync$1 = {};
|
15159
15157
|
|
15160
15158
|
takeUntilAsync$1.takeUntilAsync = void 0;
|
15161
|
-
const types_1$
|
15159
|
+
const types_1$d = es2018$1;
|
15162
15160
|
function takeUntilAsync(iterable, predicate) {
|
15163
|
-
if ((0, types_1$
|
15161
|
+
if ((0, types_1$d.isAsyncIterable)(iterable)) {
|
15164
15162
|
return takeUntilAsyncIterable(iterable);
|
15165
15163
|
}
|
15166
15164
|
else {
|
@@ -15225,9 +15223,9 @@ take$1.take = take;
|
|
15225
15223
|
var tapAsync$1 = {};
|
15226
15224
|
|
15227
15225
|
tapAsync$1.tapAsync = void 0;
|
15228
|
-
const types_1$
|
15226
|
+
const types_1$c = es2018$1;
|
15229
15227
|
function tapAsync(iterable, fn) {
|
15230
|
-
if ((0, types_1$
|
15228
|
+
if ((0, types_1$c.isAsyncIterable)(iterable)) {
|
15231
15229
|
return tapAsyncIterable(iterable);
|
15232
15230
|
}
|
15233
15231
|
else {
|
@@ -15308,9 +15306,9 @@ uniqAsync$1.uniqAsync = uniqAsync;
|
|
15308
15306
|
var uniqByAsync$1 = {};
|
15309
15307
|
|
15310
15308
|
uniqByAsync$1.uniqByAsync = void 0;
|
15311
|
-
const types_1$
|
15309
|
+
const types_1$b = es2018$1;
|
15312
15310
|
function uniqByAsync(iterable, fn) {
|
15313
|
-
if ((0, types_1$
|
15311
|
+
if ((0, types_1$b.isAsyncIterable)(iterable)) {
|
15314
15312
|
return uniqByAsyncIterable(iterable);
|
15315
15313
|
}
|
15316
15314
|
else {
|
@@ -15377,7 +15375,7 @@ uniq$1.uniq = uniq;
|
|
15377
15375
|
var zipAsync$1 = {};
|
15378
15376
|
|
15379
15377
|
zipAsync$1.zipAsync = void 0;
|
15380
|
-
const types_1$
|
15378
|
+
const types_1$a = es2018$1;
|
15381
15379
|
var Kind;
|
15382
15380
|
(function (Kind) {
|
15383
15381
|
Kind[Kind["Sync"] = 0] = "Sync";
|
@@ -15391,7 +15389,7 @@ async function* zipWithSize$1(...iterables) {
|
|
15391
15389
|
var _a, _b, _c, _d;
|
15392
15390
|
const length = iterables.length;
|
15393
15391
|
const iterators = iterables.map(iterable => {
|
15394
|
-
if ((0, types_1$
|
15392
|
+
if ((0, types_1$a.isAsyncIterable)(iterable)) {
|
15395
15393
|
return [Kind.Async, iterable[Symbol.asyncIterator]()];
|
15396
15394
|
}
|
15397
15395
|
else {
|
@@ -15541,9 +15539,9 @@ consume$1.consume = consume;
|
|
15541
15539
|
var eachAsync$1 = {};
|
15542
15540
|
|
15543
15541
|
eachAsync$1.eachAsync = void 0;
|
15544
|
-
const types_1$
|
15542
|
+
const types_1$9 = es2018$1;
|
15545
15543
|
function eachAsync(iterable, fn) {
|
15546
|
-
if ((0, types_1$
|
15544
|
+
if ((0, types_1$9.isAsyncIterable)(iterable)) {
|
15547
15545
|
return eachAsyncIterable(iterable);
|
15548
15546
|
}
|
15549
15547
|
else {
|
@@ -15581,9 +15579,9 @@ each$1.each = each;
|
|
15581
15579
|
var everyAsync$1 = {};
|
15582
15580
|
|
15583
15581
|
everyAsync$1.everyAsync = void 0;
|
15584
|
-
const types_1$
|
15582
|
+
const types_1$8 = es2018$1;
|
15585
15583
|
function everyAsync(iterable, predicate) {
|
15586
|
-
if ((0, types_1$
|
15584
|
+
if ((0, types_1$8.isAsyncIterable)(iterable)) {
|
15587
15585
|
return everyAsyncIterable(iterable);
|
15588
15586
|
}
|
15589
15587
|
else {
|
@@ -15627,9 +15625,9 @@ every$1.every = every;
|
|
15627
15625
|
var findAsync$1 = {};
|
15628
15626
|
|
15629
15627
|
findAsync$1.findAsync = void 0;
|
15630
|
-
const types_1$
|
15628
|
+
const types_1$7 = es2018$1;
|
15631
15629
|
function findAsync(iterable, predicate) {
|
15632
|
-
if ((0, types_1$
|
15630
|
+
if ((0, types_1$7.isAsyncIterable)(iterable)) {
|
15633
15631
|
return findAsyncIterable(iterable);
|
15634
15632
|
}
|
15635
15633
|
else {
|
@@ -15751,9 +15749,9 @@ match$1.match = match;
|
|
15751
15749
|
var reduceAsync$1 = {};
|
15752
15750
|
|
15753
15751
|
reduceAsync$1.reduceAsync = void 0;
|
15754
|
-
const types_1$
|
15752
|
+
const types_1$6 = es2018$1;
|
15755
15753
|
function reduceAsync(iterable, fn, initialValue) {
|
15756
|
-
if ((0, types_1$
|
15754
|
+
if ((0, types_1$6.isUndefined)(initialValue)) {
|
15757
15755
|
return reduceAsyncWithoutInitialValue(iterable, fn);
|
15758
15756
|
}
|
15759
15757
|
else {
|
@@ -15762,7 +15760,7 @@ function reduceAsync(iterable, fn, initialValue) {
|
|
15762
15760
|
}
|
15763
15761
|
reduceAsync$1.reduceAsync = reduceAsync;
|
15764
15762
|
function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
|
15765
|
-
if ((0, types_1$
|
15763
|
+
if ((0, types_1$6.isAsyncIterable)(iterable)) {
|
15766
15764
|
return reduceAsyncIterable(iterable);
|
15767
15765
|
}
|
15768
15766
|
else {
|
@@ -15784,7 +15782,7 @@ function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
|
|
15784
15782
|
}
|
15785
15783
|
}
|
15786
15784
|
function reduceAsyncWithoutInitialValue(iterable, fn) {
|
15787
|
-
if ((0, types_1$
|
15785
|
+
if ((0, types_1$6.isAsyncIterable)(iterable)) {
|
15788
15786
|
return reduceAsyncIterable(iterable);
|
15789
15787
|
}
|
15790
15788
|
else {
|
@@ -15847,9 +15845,9 @@ function reduceAsyncWithoutInitialValue(iterable, fn) {
|
|
15847
15845
|
var reduce$1 = {};
|
15848
15846
|
|
15849
15847
|
reduce$1.reduce = void 0;
|
15850
|
-
const types_1$
|
15848
|
+
const types_1$5 = es2018$1;
|
15851
15849
|
function reduce(iterable, fn, initialValue) {
|
15852
|
-
if ((0, types_1$
|
15850
|
+
if ((0, types_1$5.isUndefined)(initialValue)) {
|
15853
15851
|
return reduceWithoutInitialValue(iterable, fn);
|
15854
15852
|
}
|
15855
15853
|
else {
|
@@ -15894,9 +15892,9 @@ function reduceWithoutInitialValue(iterable, fn) {
|
|
15894
15892
|
var someAsync$1 = {};
|
15895
15893
|
|
15896
15894
|
someAsync$1.someAsync = void 0;
|
15897
|
-
const types_1$
|
15895
|
+
const types_1$4 = es2018$1;
|
15898
15896
|
function someAsync(iterable, predicate) {
|
15899
|
-
if ((0, types_1$
|
15897
|
+
if ((0, types_1$4.isAsyncIterable)(iterable)) {
|
15900
15898
|
return someAsyncIterable(iterable);
|
15901
15899
|
}
|
15902
15900
|
else {
|
@@ -16557,31 +16555,37 @@ exports.isntObject = exports.isntNumber = exports.isntNull = exports.isntJson =
|
|
16557
16555
|
} (es2018$8));
|
16558
16556
|
|
16559
16557
|
memoizeStaleWhileRevalidate$1.memoizeStaleWhileRevalidate = void 0;
|
16560
|
-
const types_1$
|
16558
|
+
const types_1$3 = types;
|
16561
16559
|
const prelude_1$1 = es2018$8;
|
16562
|
-
const default_create_key_1$
|
16563
|
-
|
16560
|
+
const default_create_key_1$3 = defaultCreateKey$1;
|
16561
|
+
const create_verbose_result_1$3 = createVerboseResult$1;
|
16562
|
+
function memoizeStaleWhileRevalidate({ cache, name, createKey = default_create_key_1$3.defaultCreateKey, executionTimeThreshold = 0, verbose = false }, fn) {
|
16564
16563
|
const pendings = new Map();
|
16565
16564
|
return async function (...args) {
|
16565
|
+
const [value, state] = await memoizedFunction.apply(this, args);
|
16566
|
+
return verbose ? [value, state] : value;
|
16567
|
+
};
|
16568
|
+
async function memoizedFunction(...args) {
|
16566
16569
|
const key = createKey(args, name);
|
16567
16570
|
const [state, value] = await cache.get(key);
|
16568
|
-
if (state === types_1$
|
16569
|
-
return value;
|
16571
|
+
if (state === types_1$3.State.Hit) {
|
16572
|
+
return (0, create_verbose_result_1$3.createVerboseResult)(value, state);
|
16570
16573
|
}
|
16571
|
-
else if (state === types_1$
|
16574
|
+
else if (state === types_1$3.State.StaleWhileRevalidate) {
|
16572
16575
|
queueMicrotask(async () => {
|
16573
16576
|
if (!pendings.has(key)) {
|
16574
16577
|
refresh.call(this, key, args).catch(prelude_1$1.pass);
|
16575
16578
|
}
|
16576
16579
|
});
|
16577
|
-
return value;
|
16580
|
+
return (0, create_verbose_result_1$3.createVerboseResult)(value, state);
|
16578
16581
|
}
|
16579
16582
|
else {
|
16580
|
-
if (pendings.has(key))
|
16581
|
-
return await pendings.get(key);
|
16582
|
-
|
16583
|
+
if (pendings.has(key)) {
|
16584
|
+
return (0, create_verbose_result_1$3.createVerboseResult)(await pendings.get(key), types_1$3.State.Reuse);
|
16585
|
+
}
|
16586
|
+
return (0, create_verbose_result_1$3.createVerboseResult)(await refresh.call(this, key, args), state);
|
16583
16587
|
}
|
16584
|
-
}
|
16588
|
+
}
|
16585
16589
|
async function refresh(key, args) {
|
16586
16590
|
const startTime = Date.now();
|
16587
16591
|
const promise = Promise.resolve(fn.apply(this, args));
|
@@ -16609,49 +16613,57 @@ memoizeStaleWhileRevalidate$1.memoizeStaleWhileRevalidate = memoizeStaleWhileRev
|
|
16609
16613
|
var memoizeStaleWhileRevalidateAndStaleIfError$1 = {};
|
16610
16614
|
|
16611
16615
|
memoizeStaleWhileRevalidateAndStaleIfError$1.memoizeStaleWhileRevalidateAndStaleIfError = void 0;
|
16612
|
-
const types_1$
|
16616
|
+
const types_1$2 = types;
|
16613
16617
|
const prelude_1 = es2018$8;
|
16614
|
-
const default_create_key_1$
|
16615
|
-
|
16618
|
+
const default_create_key_1$2 = defaultCreateKey$1;
|
16619
|
+
const create_verbose_result_1$2 = createVerboseResult$1;
|
16620
|
+
function memoizeStaleWhileRevalidateAndStaleIfError({ cache, name, createKey = default_create_key_1$2.defaultCreateKey, executionTimeThreshold = 0, verbose = false }, fn) {
|
16616
16621
|
const pendings = new Map();
|
16617
16622
|
return async function (...args) {
|
16623
|
+
const [value, state] = await memoizedFunction.apply(this, args);
|
16624
|
+
return verbose ? [value, state] : value;
|
16625
|
+
};
|
16626
|
+
async function memoizedFunction(...args) {
|
16618
16627
|
const key = createKey(args, name);
|
16619
16628
|
const [state, value] = await cache.get(key);
|
16620
|
-
if (state === types_1$
|
16621
|
-
return value;
|
16629
|
+
if (state === types_1$2.State.Hit) {
|
16630
|
+
return (0, create_verbose_result_1$2.createVerboseResult)(value, state);
|
16622
16631
|
}
|
16623
|
-
else if (state === types_1$
|
16632
|
+
else if (state === types_1$2.State.StaleWhileRevalidate) {
|
16624
16633
|
queueMicrotask(async () => {
|
16625
16634
|
if (!pendings.has(key)) {
|
16626
16635
|
refresh.call(this, key, args).catch(prelude_1.pass);
|
16627
16636
|
}
|
16628
16637
|
});
|
16629
|
-
return value;
|
16638
|
+
return (0, create_verbose_result_1$2.createVerboseResult)(value, state);
|
16630
16639
|
}
|
16631
|
-
else if (state === types_1$
|
16640
|
+
else if (state === types_1$2.State.StaleIfError) {
|
16632
16641
|
if (pendings.has(key)) {
|
16633
16642
|
try {
|
16634
|
-
return await pendings.get(key);
|
16643
|
+
return (0, create_verbose_result_1$2.createVerboseResult)(await pendings.get(key), types_1$2.State.Reuse);
|
16635
16644
|
}
|
16636
16645
|
catch (_a) {
|
16637
|
-
return value;
|
16646
|
+
return (0, create_verbose_result_1$2.createVerboseResult)(value, state);
|
16638
16647
|
}
|
16639
16648
|
}
|
16640
16649
|
else {
|
16641
16650
|
try {
|
16642
|
-
return await refresh.call(this, key, args);
|
16651
|
+
return (0, create_verbose_result_1$2.createVerboseResult)(await refresh.call(this, key, args), state);
|
16643
16652
|
}
|
16644
16653
|
catch (_b) {
|
16645
|
-
return value;
|
16654
|
+
return (0, create_verbose_result_1$2.createVerboseResult)(value, state);
|
16646
16655
|
}
|
16647
16656
|
}
|
16648
16657
|
}
|
16649
16658
|
else {
|
16650
|
-
if (pendings.has(key))
|
16651
|
-
return await pendings.get(key);
|
16652
|
-
|
16659
|
+
if (pendings.has(key)) {
|
16660
|
+
return (0, create_verbose_result_1$2.createVerboseResult)(await pendings.get(key), types_1$2.State.Reuse);
|
16661
|
+
}
|
16662
|
+
else {
|
16663
|
+
return (0, create_verbose_result_1$2.createVerboseResult)(await refresh.call(this, key, args), state);
|
16664
|
+
}
|
16653
16665
|
}
|
16654
|
-
}
|
16666
|
+
}
|
16655
16667
|
async function refresh(key, args) {
|
16656
16668
|
const startTime = Date.now();
|
16657
16669
|
const promise = Promise.resolve(fn.apply(this, args));
|
@@ -16676,32 +16688,35 @@ function memoizeStaleWhileRevalidateAndStaleIfError({ cache, name, createKey = d
|
|
16676
16688
|
}
|
16677
16689
|
memoizeStaleWhileRevalidateAndStaleIfError$1.memoizeStaleWhileRevalidateAndStaleIfError = memoizeStaleWhileRevalidateAndStaleIfError;
|
16678
16690
|
|
16679
|
-
var staleIfError = {};
|
16680
|
-
|
16681
16691
|
var memoizeStaleIfError$1 = {};
|
16682
16692
|
|
16683
16693
|
memoizeStaleIfError$1.memoizeStaleIfError = void 0;
|
16684
|
-
const types_1$
|
16685
|
-
const default_create_key_1$
|
16686
|
-
|
16694
|
+
const types_1$1 = types;
|
16695
|
+
const default_create_key_1$1 = defaultCreateKey$1;
|
16696
|
+
const create_verbose_result_1$1 = createVerboseResult$1;
|
16697
|
+
function memoizeStaleIfError({ cache, name, createKey = default_create_key_1$1.defaultCreateKey, executionTimeThreshold = 0, verbose = false }, fn) {
|
16687
16698
|
return function (...args) {
|
16699
|
+
const [value, state] = memoizedFunction.apply(this, args);
|
16700
|
+
return verbose ? [value, state] : value;
|
16701
|
+
};
|
16702
|
+
function memoizedFunction(...args) {
|
16688
16703
|
const key = createKey(args, name);
|
16689
16704
|
const [state, value] = cache.get(key);
|
16690
|
-
if (state === types_1$
|
16691
|
-
return value;
|
16705
|
+
if (state === types_1$1.State.Hit) {
|
16706
|
+
return (0, create_verbose_result_1$1.createVerboseResult)(value, state);
|
16692
16707
|
}
|
16693
|
-
else if (state === types_1$
|
16708
|
+
else if (state === types_1$1.State.StaleIfError) {
|
16694
16709
|
try {
|
16695
|
-
return refresh.call(this, key, args);
|
16710
|
+
return (0, create_verbose_result_1$1.createVerboseResult)(refresh.call(this, key, args), state);
|
16696
16711
|
}
|
16697
16712
|
catch (_a) {
|
16698
|
-
return value;
|
16713
|
+
return (0, create_verbose_result_1$1.createVerboseResult)(value, state);
|
16699
16714
|
}
|
16700
16715
|
}
|
16701
16716
|
else {
|
16702
|
-
return refresh.call(this, key, args);
|
16717
|
+
return (0, create_verbose_result_1$1.createVerboseResult)(refresh.call(this, key, args), state);
|
16703
16718
|
}
|
16704
|
-
}
|
16719
|
+
}
|
16705
16720
|
function refresh(key, args) {
|
16706
16721
|
const startTime = Date.now();
|
16707
16722
|
const result = fn.apply(this, args);
|
@@ -16722,101 +16737,48 @@ memoizeStaleIfError$1.memoizeStaleIfError = memoizeStaleIfError;
|
|
16722
16737
|
var memoizeAsyncStaleIfError$1 = {};
|
16723
16738
|
|
16724
16739
|
memoizeAsyncStaleIfError$1.memoizeAsyncStaleIfError = void 0;
|
16725
|
-
const types_1$1 = types;
|
16726
|
-
const default_create_key_1$1 = defaultCreateKey$1;
|
16727
|
-
function memoizeAsyncStaleIfError({ cache, name, createKey = default_create_key_1$1.defaultCreateKey, executionTimeThreshold = 0 }, fn) {
|
16728
|
-
const pendings = new Map();
|
16729
|
-
return async function (...args) {
|
16730
|
-
const key = createKey(args, name);
|
16731
|
-
const [state, value] = cache.get(key);
|
16732
|
-
if (state === types_1$1.State.Hit) {
|
16733
|
-
return value;
|
16734
|
-
}
|
16735
|
-
else if (state === types_1$1.State.StaleIfError) {
|
16736
|
-
if (pendings.has(key)) {
|
16737
|
-
try {
|
16738
|
-
return await pendings.get(key);
|
16739
|
-
}
|
16740
|
-
catch (_a) {
|
16741
|
-
return value;
|
16742
|
-
}
|
16743
|
-
}
|
16744
|
-
else {
|
16745
|
-
try {
|
16746
|
-
return await refresh.call(this, key, args);
|
16747
|
-
}
|
16748
|
-
catch (_b) {
|
16749
|
-
return value;
|
16750
|
-
}
|
16751
|
-
}
|
16752
|
-
}
|
16753
|
-
else {
|
16754
|
-
if (pendings.has(key))
|
16755
|
-
return await pendings.get(key);
|
16756
|
-
return await refresh.call(this, key, args);
|
16757
|
-
}
|
16758
|
-
};
|
16759
|
-
async function refresh(key, args) {
|
16760
|
-
const startTime = Date.now();
|
16761
|
-
const promise = Promise.resolve(fn.apply(this, args));
|
16762
|
-
pendings.set(key, promise);
|
16763
|
-
try {
|
16764
|
-
const result = await promise;
|
16765
|
-
if (isSlowExecution(startTime)) {
|
16766
|
-
cache.set(key, result);
|
16767
|
-
}
|
16768
|
-
return result;
|
16769
|
-
}
|
16770
|
-
finally {
|
16771
|
-
pendings.delete(key);
|
16772
|
-
}
|
16773
|
-
}
|
16774
|
-
function isSlowExecution(startTime) {
|
16775
|
-
return getElapsed() >= executionTimeThreshold;
|
16776
|
-
function getElapsed() {
|
16777
|
-
return Date.now() - startTime;
|
16778
|
-
}
|
16779
|
-
}
|
16780
|
-
}
|
16781
|
-
memoizeAsyncStaleIfError$1.memoizeAsyncStaleIfError = memoizeAsyncStaleIfError;
|
16782
|
-
|
16783
|
-
var memoizeStaleIfErrorWithAsyncCache$1 = {};
|
16784
|
-
|
16785
|
-
memoizeStaleIfErrorWithAsyncCache$1.memoizeStaleIfErrorWithAsyncCache = void 0;
|
16786
16740
|
const types_1 = types;
|
16787
16741
|
const default_create_key_1 = defaultCreateKey$1;
|
16788
|
-
|
16742
|
+
const create_verbose_result_1 = createVerboseResult$1;
|
16743
|
+
function memoizeAsyncStaleIfError({ cache, name, createKey = default_create_key_1.defaultCreateKey, executionTimeThreshold = 0, verbose = false }, fn) {
|
16789
16744
|
const pendings = new Map();
|
16790
16745
|
return async function (...args) {
|
16746
|
+
const [value, state] = await memoizedFunction.apply(this, args);
|
16747
|
+
return verbose ? [value, state] : value;
|
16748
|
+
};
|
16749
|
+
async function memoizedFunction(...args) {
|
16791
16750
|
const key = createKey(args, name);
|
16792
16751
|
const [state, value] = await cache.get(key);
|
16793
16752
|
if (state === types_1.State.Hit) {
|
16794
|
-
return value;
|
16753
|
+
return (0, create_verbose_result_1.createVerboseResult)(value, state);
|
16795
16754
|
}
|
16796
16755
|
else if (state === types_1.State.StaleIfError) {
|
16797
16756
|
if (pendings.has(key)) {
|
16798
16757
|
try {
|
16799
|
-
return await pendings.get(key);
|
16758
|
+
return (0, create_verbose_result_1.createVerboseResult)(await pendings.get(key), types_1.State.Reuse);
|
16800
16759
|
}
|
16801
16760
|
catch (_a) {
|
16802
|
-
return value;
|
16761
|
+
return (0, create_verbose_result_1.createVerboseResult)(value, state);
|
16803
16762
|
}
|
16804
16763
|
}
|
16805
16764
|
else {
|
16806
16765
|
try {
|
16807
|
-
return await refresh.call(this, key, args);
|
16766
|
+
return (0, create_verbose_result_1.createVerboseResult)(await refresh.call(this, key, args), state);
|
16808
16767
|
}
|
16809
16768
|
catch (_b) {
|
16810
|
-
return value;
|
16769
|
+
return (0, create_verbose_result_1.createVerboseResult)(value, state);
|
16811
16770
|
}
|
16812
16771
|
}
|
16813
16772
|
}
|
16814
16773
|
else {
|
16815
|
-
if (pendings.has(key))
|
16816
|
-
return await pendings.get(key);
|
16817
|
-
|
16774
|
+
if (pendings.has(key)) {
|
16775
|
+
return (0, create_verbose_result_1.createVerboseResult)(await pendings.get(key), types_1.State.Reuse);
|
16776
|
+
}
|
16777
|
+
else {
|
16778
|
+
return (0, create_verbose_result_1.createVerboseResult)(await refresh.call(this, key, args), state);
|
16779
|
+
}
|
16818
16780
|
}
|
16819
|
-
}
|
16781
|
+
}
|
16820
16782
|
async function refresh(key, args) {
|
16821
16783
|
const startTime = Date.now();
|
16822
16784
|
const promise = Promise.resolve(fn.apply(this, args));
|
@@ -16839,27 +16801,7 @@ function memoizeStaleIfErrorWithAsyncCache({ cache, name, createKey = default_cr
|
|
16839
16801
|
}
|
16840
16802
|
}
|
16841
16803
|
}
|
16842
|
-
|
16843
|
-
|
16844
|
-
(function (exports) {
|
16845
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
16846
|
-
if (k2 === undefined) k2 = k;
|
16847
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
16848
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
16849
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
16850
|
-
}
|
16851
|
-
Object.defineProperty(o, k2, desc);
|
16852
|
-
}) : (function(o, m, k, k2) {
|
16853
|
-
if (k2 === undefined) k2 = k;
|
16854
|
-
o[k2] = m[k];
|
16855
|
-
}));
|
16856
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
16857
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
16858
|
-
};__exportStar(memoizeStaleIfError$1, exports);
|
16859
|
-
__exportStar(memoizeAsyncStaleIfError$1, exports);
|
16860
|
-
__exportStar(memoizeStaleIfErrorWithAsyncCache$1, exports);
|
16861
|
-
|
16862
|
-
} (staleIfError));
|
16804
|
+
memoizeAsyncStaleIfError$1.memoizeAsyncStaleIfError = memoizeAsyncStaleIfError;
|
16863
16805
|
|
16864
16806
|
(function (exports) {
|
16865
16807
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
@@ -16877,10 +16819,10 @@ memoizeStaleIfErrorWithAsyncCache$1.memoizeStaleIfErrorWithAsyncCache = memoizeS
|
|
16877
16819
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
16878
16820
|
};__exportStar(memoize$1, exports);
|
16879
16821
|
__exportStar(memoizeAsync$1, exports);
|
16880
|
-
__exportStar(memoizeWithAsyncCache$1, exports);
|
16881
16822
|
__exportStar(memoizeStaleWhileRevalidate$1, exports);
|
16882
16823
|
__exportStar(memoizeStaleWhileRevalidateAndStaleIfError$1, exports);
|
16883
|
-
__exportStar(
|
16824
|
+
__exportStar(memoizeStaleIfError$1, exports);
|
16825
|
+
__exportStar(memoizeAsyncStaleIfError$1, exports);
|
16884
16826
|
|
16885
16827
|
} (memoizes));
|
16886
16828
|
|