@graphrefly/graphrefly 0.19.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -3
- package/dist/{chunk-JC2SN46B.js → chunk-2UDLYZHT.js} +3 -3
- package/dist/{chunk-YXR3WW3Q.js → chunk-4MQ2J6IG.js} +4 -4
- package/dist/{chunk-YXR3WW3Q.js.map → chunk-4MQ2J6IG.js.map} +1 -1
- package/dist/{chunk-XUOY3YKN.js → chunk-7IGHIFTT.js} +2 -2
- package/dist/{chunk-AHRKWMNI.js → chunk-DOSLSFKL.js} +3 -3
- package/dist/{chunk-BER7UYLM.js → chunk-ECN37NVS.js} +161 -199
- package/dist/chunk-ECN37NVS.js.map +1 -0
- package/dist/{chunk-YLR5JUJZ.js → chunk-G66H6ZRK.js} +3 -3
- package/dist/{chunk-IRZAGZUB.js → chunk-VOQFK7YN.js} +26 -2
- package/dist/chunk-VOQFK7YN.js.map +1 -0
- package/dist/{chunk-OO5QOAXI.js → chunk-XWBVAO2R.js} +22 -9
- package/dist/chunk-XWBVAO2R.js.map +1 -0
- package/dist/{chunk-UW77D7SP.js → chunk-ZTCDY5NQ.js} +3 -3
- package/dist/compat/nestjs/index.cjs +15 -6
- package/dist/compat/nestjs/index.cjs.map +1 -1
- package/dist/compat/nestjs/index.js +7 -7
- package/dist/core/index.cjs +3 -3
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +3 -3
- package/dist/extra/index.cjs +183 -199
- package/dist/extra/index.cjs.map +1 -1
- package/dist/extra/index.d.cts +1 -1
- package/dist/extra/index.d.ts +1 -1
- package/dist/extra/index.js +7 -3
- package/dist/graph/index.cjs +1 -1
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.js +4 -4
- package/dist/{index-CvKzv0AW.d.ts → index-BHfg_Ez3.d.ts} +1 -1
- package/dist/{index-BBUYZfJ1.d.cts → index-Bc_diYYJ.d.cts} +1 -1
- package/dist/{index-BnkMgNNa.d.ts → index-DuN3bhtm.d.ts} +47 -2
- package/dist/{index-Bjh5C1Tp.d.cts → index-SFzE_KTa.d.cts} +47 -2
- package/dist/index.cjs +463 -281
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +275 -10
- package/dist/index.d.ts +275 -10
- package/dist/index.js +284 -90
- package/dist/index.js.map +1 -1
- package/dist/patterns/reactive-layout/index.cjs +1 -1
- package/dist/patterns/reactive-layout/index.cjs.map +1 -1
- package/dist/patterns/reactive-layout/index.js +4 -4
- package/package.json +3 -2
- package/dist/chunk-BER7UYLM.js.map +0 -1
- package/dist/chunk-IRZAGZUB.js.map +0 -1
- package/dist/chunk-OO5QOAXI.js.map +0 -1
- /package/dist/{chunk-JC2SN46B.js.map → chunk-2UDLYZHT.js.map} +0 -0
- /package/dist/{chunk-XUOY3YKN.js.map → chunk-7IGHIFTT.js.map} +0 -0
- /package/dist/{chunk-AHRKWMNI.js.map → chunk-DOSLSFKL.js.map} +0 -0
- /package/dist/{chunk-YLR5JUJZ.js.map → chunk-G66H6ZRK.js.map} +0 -0
- /package/dist/{chunk-UW77D7SP.js.map → chunk-ZTCDY5NQ.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
NO_VALUE,
|
|
4
4
|
NodeImpl,
|
|
5
5
|
accessHintForGuard
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4MQ2J6IG.js";
|
|
7
7
|
|
|
8
8
|
// src/core/meta.ts
|
|
9
9
|
function resolveDescribeFields(detail, fields) {
|
|
@@ -106,4 +106,4 @@ export {
|
|
|
106
106
|
resolveDescribeFields,
|
|
107
107
|
describeNode
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=chunk-
|
|
109
|
+
//# sourceMappingURL=chunk-7IGHIFTT.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-WZ2Z2CRV.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveDescribeFields
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7IGHIFTT.js";
|
|
7
7
|
import {
|
|
8
8
|
CLEANUP_RESULT,
|
|
9
9
|
COMPLETE,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
propagatesToMeta,
|
|
50
50
|
state,
|
|
51
51
|
wallClockNs
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-4MQ2J6IG.js";
|
|
53
53
|
|
|
54
54
|
// src/core/index.ts
|
|
55
55
|
var core_exports = {};
|
|
@@ -159,4 +159,4 @@ export {
|
|
|
159
159
|
bridge,
|
|
160
160
|
core_exports
|
|
161
161
|
};
|
|
162
|
-
//# sourceMappingURL=chunk-
|
|
162
|
+
//# sourceMappingURL=chunk-DOSLSFKL.js.map
|
|
@@ -15,12 +15,14 @@ import {
|
|
|
15
15
|
fromPromise,
|
|
16
16
|
fromTimer,
|
|
17
17
|
globToRegExp,
|
|
18
|
+
keepalive,
|
|
18
19
|
logSlice,
|
|
19
20
|
matchesAnyPattern,
|
|
20
21
|
matchesCron,
|
|
21
22
|
never,
|
|
22
23
|
of,
|
|
23
24
|
parseCron,
|
|
25
|
+
reactiveCounter,
|
|
24
26
|
reactiveLog,
|
|
25
27
|
replay,
|
|
26
28
|
share,
|
|
@@ -28,7 +30,7 @@ import {
|
|
|
28
30
|
throwError,
|
|
29
31
|
toArray,
|
|
30
32
|
toObservable
|
|
31
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-VOQFK7YN.js";
|
|
32
34
|
import {
|
|
33
35
|
ResettableTimer
|
|
34
36
|
} from "./chunk-WZ2Z2CRV.js";
|
|
@@ -57,7 +59,7 @@ import {
|
|
|
57
59
|
producer,
|
|
58
60
|
state,
|
|
59
61
|
wallClockNs
|
|
60
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-4MQ2J6IG.js";
|
|
61
63
|
|
|
62
64
|
// src/extra/index.ts
|
|
63
65
|
var extra_exports = {};
|
|
@@ -143,6 +145,7 @@ __export(extra_exports, {
|
|
|
143
145
|
fromWebhook: () => fromWebhook,
|
|
144
146
|
globToRegExp: () => globToRegExp,
|
|
145
147
|
interval: () => interval,
|
|
148
|
+
keepalive: () => keepalive,
|
|
146
149
|
last: () => last,
|
|
147
150
|
linear: () => linear,
|
|
148
151
|
logSlice: () => logSlice,
|
|
@@ -164,6 +167,7 @@ __export(extra_exports, {
|
|
|
164
167
|
pubsub: () => pubsub,
|
|
165
168
|
race: () => race,
|
|
166
169
|
rateLimiter: () => rateLimiter,
|
|
170
|
+
reactiveCounter: () => reactiveCounter,
|
|
167
171
|
reactiveIndex: () => reactiveIndex,
|
|
168
172
|
reactiveList: () => reactiveList,
|
|
169
173
|
reactiveLog: () => reactiveLog,
|
|
@@ -3659,9 +3663,11 @@ function scan(source, reducer, seed, opts) {
|
|
|
3659
3663
|
function reduce(source, reducer, seed, opts) {
|
|
3660
3664
|
let acc = seed;
|
|
3661
3665
|
let sawData = false;
|
|
3666
|
+
let depHasData = false;
|
|
3662
3667
|
return node(
|
|
3663
3668
|
[source],
|
|
3664
3669
|
([v]) => {
|
|
3670
|
+
if (!depHasData) return void 0;
|
|
3665
3671
|
sawData = true;
|
|
3666
3672
|
acc = reducer(acc, v);
|
|
3667
3673
|
return void 0;
|
|
@@ -3672,8 +3678,10 @@ function reduce(source, reducer, seed, opts) {
|
|
|
3672
3678
|
onResubscribe: opts?.resubscribable === true ? () => {
|
|
3673
3679
|
acc = seed;
|
|
3674
3680
|
sawData = false;
|
|
3681
|
+
depHasData = false;
|
|
3675
3682
|
} : void 0,
|
|
3676
3683
|
onMessage(msg, _i, a) {
|
|
3684
|
+
if (msg[0] === DATA) depHasData = true;
|
|
3677
3685
|
if (msg[0] === COMPLETE) {
|
|
3678
3686
|
if (!sawData) acc = seed;
|
|
3679
3687
|
a.emit(acc);
|
|
@@ -3792,9 +3800,11 @@ function skip(source, count, opts) {
|
|
|
3792
3800
|
}
|
|
3793
3801
|
function takeWhile(source, predicate, opts) {
|
|
3794
3802
|
let done = false;
|
|
3803
|
+
let depHasData = false;
|
|
3795
3804
|
return node(
|
|
3796
3805
|
[source],
|
|
3797
3806
|
([v], a) => {
|
|
3807
|
+
if (!depHasData) return void 0;
|
|
3798
3808
|
if (done) return void 0;
|
|
3799
3809
|
if (!predicate(v)) {
|
|
3800
3810
|
done = true;
|
|
@@ -3807,6 +3817,7 @@ function takeWhile(source, predicate, opts) {
|
|
|
3807
3817
|
...operatorOpts2(opts),
|
|
3808
3818
|
completeWhenDepsComplete: false,
|
|
3809
3819
|
onMessage(msg, _i, a) {
|
|
3820
|
+
if (msg[0] === DATA) depHasData = true;
|
|
3810
3821
|
if (done) {
|
|
3811
3822
|
if (msg[0] === COMPLETE) {
|
|
3812
3823
|
a.down([[COMPLETE]]);
|
|
@@ -3859,9 +3870,11 @@ function last(source, options) {
|
|
|
3859
3870
|
const useDefault = options != null && Object.hasOwn(options, "defaultValue");
|
|
3860
3871
|
let lastVal;
|
|
3861
3872
|
let has = false;
|
|
3873
|
+
let depHasData = false;
|
|
3862
3874
|
return node(
|
|
3863
3875
|
[source],
|
|
3864
3876
|
([v]) => {
|
|
3877
|
+
if (!depHasData) return void 0;
|
|
3865
3878
|
lastVal = v;
|
|
3866
3879
|
has = true;
|
|
3867
3880
|
return void 0;
|
|
@@ -3870,6 +3883,7 @@ function last(source, options) {
|
|
|
3870
3883
|
...operatorOpts2(rest),
|
|
3871
3884
|
completeWhenDepsComplete: false,
|
|
3872
3885
|
onMessage(msg, _i, a) {
|
|
3886
|
+
if (msg[0] === DATA) depHasData = true;
|
|
3873
3887
|
if (msg[0] === COMPLETE) {
|
|
3874
3888
|
if (has) {
|
|
3875
3889
|
a.emit(lastVal);
|
|
@@ -4256,120 +4270,101 @@ function forwardInner(inner, a, onInnerComplete) {
|
|
|
4256
4270
|
function switchMap(source, project, opts) {
|
|
4257
4271
|
let innerUnsub;
|
|
4258
4272
|
let sourceDone = false;
|
|
4259
|
-
let attached = false;
|
|
4260
4273
|
function clearInner() {
|
|
4261
4274
|
innerUnsub?.();
|
|
4262
4275
|
innerUnsub = void 0;
|
|
4263
4276
|
}
|
|
4264
4277
|
function attach(v, a) {
|
|
4265
|
-
attached = true;
|
|
4266
4278
|
clearInner();
|
|
4267
4279
|
innerUnsub = forwardInner(fromAny(project(v)), a, () => {
|
|
4268
4280
|
clearInner();
|
|
4269
4281
|
if (sourceDone) a.down([[COMPLETE]]);
|
|
4270
4282
|
});
|
|
4271
4283
|
}
|
|
4272
|
-
return node(
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
onMessage(msg, _i, a) {
|
|
4282
|
-
const t = msg[0];
|
|
4283
|
-
if (t === ERROR) {
|
|
4284
|
-
clearInner();
|
|
4285
|
-
a.down([msg]);
|
|
4286
|
-
return true;
|
|
4287
|
-
}
|
|
4288
|
-
if (t === COMPLETE) {
|
|
4289
|
-
sourceDone = true;
|
|
4290
|
-
if (innerUnsub === void 0) a.down([[COMPLETE]]);
|
|
4291
|
-
return true;
|
|
4292
|
-
}
|
|
4293
|
-
if (t === DIRTY) {
|
|
4294
|
-
a.down([[DIRTY]]);
|
|
4295
|
-
return true;
|
|
4296
|
-
}
|
|
4297
|
-
if (t === RESOLVED) {
|
|
4298
|
-
a.down([[RESOLVED]]);
|
|
4299
|
-
return true;
|
|
4300
|
-
}
|
|
4301
|
-
if (t === DATA) {
|
|
4302
|
-
attach(msg[1], a);
|
|
4303
|
-
return true;
|
|
4304
|
-
}
|
|
4305
|
-
return false;
|
|
4284
|
+
return node([source], () => clearInner, {
|
|
4285
|
+
...operatorOpts2(opts),
|
|
4286
|
+
completeWhenDepsComplete: false,
|
|
4287
|
+
onMessage(msg, _i, a) {
|
|
4288
|
+
const t = msg[0];
|
|
4289
|
+
if (t === ERROR) {
|
|
4290
|
+
clearInner();
|
|
4291
|
+
a.down([msg]);
|
|
4292
|
+
return true;
|
|
4306
4293
|
}
|
|
4294
|
+
if (t === COMPLETE) {
|
|
4295
|
+
sourceDone = true;
|
|
4296
|
+
if (innerUnsub === void 0) a.down([[COMPLETE]]);
|
|
4297
|
+
return true;
|
|
4298
|
+
}
|
|
4299
|
+
if (t === DIRTY) {
|
|
4300
|
+
a.down([[DIRTY]]);
|
|
4301
|
+
return true;
|
|
4302
|
+
}
|
|
4303
|
+
if (t === RESOLVED) {
|
|
4304
|
+
a.down([[RESOLVED]]);
|
|
4305
|
+
return true;
|
|
4306
|
+
}
|
|
4307
|
+
if (t === DATA) {
|
|
4308
|
+
attach(msg[1], a);
|
|
4309
|
+
return true;
|
|
4310
|
+
}
|
|
4311
|
+
return false;
|
|
4307
4312
|
}
|
|
4308
|
-
);
|
|
4313
|
+
});
|
|
4309
4314
|
}
|
|
4310
4315
|
function exhaustMap(source, project, opts) {
|
|
4311
4316
|
let innerUnsub;
|
|
4312
4317
|
let sourceDone = false;
|
|
4313
|
-
let attached = false;
|
|
4314
4318
|
function clearInner() {
|
|
4315
4319
|
innerUnsub?.();
|
|
4316
4320
|
innerUnsub = void 0;
|
|
4317
4321
|
}
|
|
4318
4322
|
function attach(v, a) {
|
|
4319
|
-
attached = true;
|
|
4320
4323
|
innerUnsub = forwardInner(fromAny(project(v)), a, () => {
|
|
4321
4324
|
clearInner();
|
|
4322
4325
|
if (sourceDone) a.down([[COMPLETE]]);
|
|
4323
4326
|
});
|
|
4324
4327
|
}
|
|
4325
|
-
return node(
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
if (t === RESOLVED) {
|
|
4328
|
+
return node([source], () => clearInner, {
|
|
4329
|
+
...operatorOpts2(opts),
|
|
4330
|
+
completeWhenDepsComplete: false,
|
|
4331
|
+
onMessage(msg, _i, a) {
|
|
4332
|
+
const t = msg[0];
|
|
4333
|
+
if (t === ERROR) {
|
|
4334
|
+
clearInner();
|
|
4335
|
+
a.down([msg]);
|
|
4336
|
+
return true;
|
|
4337
|
+
}
|
|
4338
|
+
if (t === COMPLETE) {
|
|
4339
|
+
sourceDone = true;
|
|
4340
|
+
if (innerUnsub === void 0) a.down([[COMPLETE]]);
|
|
4341
|
+
return true;
|
|
4342
|
+
}
|
|
4343
|
+
if (t === DIRTY) {
|
|
4344
|
+
a.down([[DIRTY]]);
|
|
4345
|
+
return true;
|
|
4346
|
+
}
|
|
4347
|
+
if (t === RESOLVED) {
|
|
4348
|
+
a.down([[RESOLVED]]);
|
|
4349
|
+
return true;
|
|
4350
|
+
}
|
|
4351
|
+
if (t === DATA) {
|
|
4352
|
+
if (innerUnsub !== void 0) {
|
|
4351
4353
|
a.down([[RESOLVED]]);
|
|
4352
4354
|
return true;
|
|
4353
4355
|
}
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
a.down([[RESOLVED]]);
|
|
4357
|
-
return true;
|
|
4358
|
-
}
|
|
4359
|
-
attach(msg[1], a);
|
|
4360
|
-
return true;
|
|
4361
|
-
}
|
|
4362
|
-
return false;
|
|
4356
|
+
attach(msg[1], a);
|
|
4357
|
+
return true;
|
|
4363
4358
|
}
|
|
4359
|
+
return false;
|
|
4364
4360
|
}
|
|
4365
|
-
);
|
|
4361
|
+
});
|
|
4366
4362
|
}
|
|
4367
4363
|
function concatMap(source, project, opts) {
|
|
4368
4364
|
const { maxBuffer: maxBuf, ...concatNodeOpts } = opts ?? {};
|
|
4369
4365
|
const queue = [];
|
|
4370
4366
|
let innerUnsub;
|
|
4371
4367
|
let sourceDone = false;
|
|
4372
|
-
let attached = false;
|
|
4373
4368
|
function clearInner() {
|
|
4374
4369
|
innerUnsub?.();
|
|
4375
4370
|
innerUnsub = void 0;
|
|
@@ -4387,49 +4382,41 @@ function concatMap(source, project, opts) {
|
|
|
4387
4382
|
});
|
|
4388
4383
|
}
|
|
4389
4384
|
function enqueue(v, a) {
|
|
4390
|
-
attached = true;
|
|
4391
4385
|
if (maxBuf && maxBuf > 0 && queue.length >= maxBuf) queue.shift();
|
|
4392
4386
|
queue.push(v);
|
|
4393
4387
|
tryPump(a);
|
|
4394
4388
|
}
|
|
4395
|
-
return node(
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
tryPump(a);
|
|
4415
|
-
return true;
|
|
4416
|
-
}
|
|
4417
|
-
if (t === DIRTY) {
|
|
4418
|
-
a.down([[DIRTY]]);
|
|
4419
|
-
return true;
|
|
4420
|
-
}
|
|
4421
|
-
if (t === RESOLVED) {
|
|
4422
|
-
a.down([[RESOLVED]]);
|
|
4423
|
-
return true;
|
|
4424
|
-
}
|
|
4425
|
-
if (t === DATA) {
|
|
4426
|
-
enqueue(msg[1], a);
|
|
4427
|
-
return true;
|
|
4428
|
-
}
|
|
4429
|
-
return false;
|
|
4389
|
+
return node([source], () => clearInner, {
|
|
4390
|
+
...operatorOpts2(concatNodeOpts),
|
|
4391
|
+
completeWhenDepsComplete: false,
|
|
4392
|
+
onMessage(msg, _i, a) {
|
|
4393
|
+
const t = msg[0];
|
|
4394
|
+
if (t === ERROR) {
|
|
4395
|
+
clearInner();
|
|
4396
|
+
queue.length = 0;
|
|
4397
|
+
a.down([msg]);
|
|
4398
|
+
return true;
|
|
4399
|
+
}
|
|
4400
|
+
if (t === COMPLETE) {
|
|
4401
|
+
sourceDone = true;
|
|
4402
|
+
tryPump(a);
|
|
4403
|
+
return true;
|
|
4404
|
+
}
|
|
4405
|
+
if (t === DIRTY) {
|
|
4406
|
+
a.down([[DIRTY]]);
|
|
4407
|
+
return true;
|
|
4430
4408
|
}
|
|
4409
|
+
if (t === RESOLVED) {
|
|
4410
|
+
a.down([[RESOLVED]]);
|
|
4411
|
+
return true;
|
|
4412
|
+
}
|
|
4413
|
+
if (t === DATA) {
|
|
4414
|
+
enqueue(msg[1], a);
|
|
4415
|
+
return true;
|
|
4416
|
+
}
|
|
4417
|
+
return false;
|
|
4431
4418
|
}
|
|
4432
|
-
);
|
|
4419
|
+
});
|
|
4433
4420
|
}
|
|
4434
4421
|
function mergeMap(source, project, opts) {
|
|
4435
4422
|
const { concurrent: concurrentOpt, ...mergeNodeOpts } = opts ?? {};
|
|
@@ -4485,47 +4472,36 @@ function mergeMap(source, project, opts) {
|
|
|
4485
4472
|
active = 0;
|
|
4486
4473
|
buffer2.length = 0;
|
|
4487
4474
|
}
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
(
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4475
|
+
return node([source], () => clearAll, {
|
|
4476
|
+
...operatorOpts2(mergeNodeOpts),
|
|
4477
|
+
completeWhenDepsComplete: false,
|
|
4478
|
+
onMessage(msg, _i, a) {
|
|
4479
|
+
const t = msg[0];
|
|
4480
|
+
if (t === ERROR) {
|
|
4481
|
+
clearAll();
|
|
4482
|
+
a.down([msg]);
|
|
4483
|
+
return true;
|
|
4495
4484
|
}
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
}
|
|
4513
|
-
if (t === DIRTY) {
|
|
4514
|
-
a.down([[DIRTY]]);
|
|
4515
|
-
return true;
|
|
4516
|
-
}
|
|
4517
|
-
if (t === RESOLVED) {
|
|
4518
|
-
a.down([[RESOLVED]]);
|
|
4519
|
-
return true;
|
|
4520
|
-
}
|
|
4521
|
-
if (t === DATA) {
|
|
4522
|
-
enqueue(msg[1], a);
|
|
4523
|
-
return true;
|
|
4524
|
-
}
|
|
4525
|
-
return false;
|
|
4485
|
+
if (t === COMPLETE) {
|
|
4486
|
+
sourceDone = true;
|
|
4487
|
+
tryComplete(a);
|
|
4488
|
+
return true;
|
|
4489
|
+
}
|
|
4490
|
+
if (t === DIRTY) {
|
|
4491
|
+
a.down([[DIRTY]]);
|
|
4492
|
+
return true;
|
|
4493
|
+
}
|
|
4494
|
+
if (t === RESOLVED) {
|
|
4495
|
+
a.down([[RESOLVED]]);
|
|
4496
|
+
return true;
|
|
4497
|
+
}
|
|
4498
|
+
if (t === DATA) {
|
|
4499
|
+
enqueue(msg[1], a);
|
|
4500
|
+
return true;
|
|
4526
4501
|
}
|
|
4502
|
+
return false;
|
|
4527
4503
|
}
|
|
4528
|
-
);
|
|
4504
|
+
});
|
|
4529
4505
|
}
|
|
4530
4506
|
var flatMap = mergeMap;
|
|
4531
4507
|
function delay(source, ms, opts) {
|
|
@@ -4844,53 +4820,39 @@ function buffer(source, notifier, opts) {
|
|
|
4844
4820
|
function bufferCount(source, count, opts) {
|
|
4845
4821
|
if (count <= 0) throw new RangeError("bufferCount expects count > 0");
|
|
4846
4822
|
const buf = [];
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
(
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4823
|
+
return node([source], () => void 0, {
|
|
4824
|
+
...operatorOpts2(opts),
|
|
4825
|
+
completeWhenDepsComplete: false,
|
|
4826
|
+
onMessage(msg, _i, a) {
|
|
4827
|
+
const t = msg[0];
|
|
4828
|
+
if (t === ERROR) {
|
|
4829
|
+
a.down([msg]);
|
|
4830
|
+
return true;
|
|
4831
|
+
}
|
|
4832
|
+
if (t === COMPLETE) {
|
|
4833
|
+
if (buf.length > 0) a.emit([...buf]);
|
|
4834
|
+
buf.length = 0;
|
|
4835
|
+
a.down([[COMPLETE]]);
|
|
4836
|
+
return true;
|
|
4837
|
+
}
|
|
4838
|
+
if (t === DIRTY) {
|
|
4839
|
+
a.down([[DIRTY]]);
|
|
4840
|
+
return true;
|
|
4841
|
+
}
|
|
4842
|
+
if (t === RESOLVED) {
|
|
4843
|
+
a.down([[RESOLVED]]);
|
|
4844
|
+
return true;
|
|
4845
|
+
}
|
|
4846
|
+
if (t === DATA) {
|
|
4847
|
+
buf.push(msg[1]);
|
|
4854
4848
|
if (buf.length >= count) {
|
|
4855
4849
|
a.emit(buf.splice(0, buf.length));
|
|
4856
4850
|
}
|
|
4851
|
+
return true;
|
|
4857
4852
|
}
|
|
4858
|
-
return
|
|
4859
|
-
},
|
|
4860
|
-
{
|
|
4861
|
-
...operatorOpts2(opts),
|
|
4862
|
-
completeWhenDepsComplete: false,
|
|
4863
|
-
onMessage(msg, _i, a) {
|
|
4864
|
-
const t = msg[0];
|
|
4865
|
-
if (t === ERROR) {
|
|
4866
|
-
a.down([msg]);
|
|
4867
|
-
return true;
|
|
4868
|
-
}
|
|
4869
|
-
if (t === COMPLETE) {
|
|
4870
|
-
if (buf.length > 0) a.emit([...buf]);
|
|
4871
|
-
buf.length = 0;
|
|
4872
|
-
a.down([[COMPLETE]]);
|
|
4873
|
-
return true;
|
|
4874
|
-
}
|
|
4875
|
-
if (t === DIRTY) {
|
|
4876
|
-
a.down([[DIRTY]]);
|
|
4877
|
-
return true;
|
|
4878
|
-
}
|
|
4879
|
-
if (t === RESOLVED) {
|
|
4880
|
-
a.down([[RESOLVED]]);
|
|
4881
|
-
return true;
|
|
4882
|
-
}
|
|
4883
|
-
if (t === DATA) {
|
|
4884
|
-
buf.push(msg[1]);
|
|
4885
|
-
if (buf.length >= count) {
|
|
4886
|
-
a.emit(buf.splice(0, buf.length));
|
|
4887
|
-
}
|
|
4888
|
-
return true;
|
|
4889
|
-
}
|
|
4890
|
-
return false;
|
|
4891
|
-
}
|
|
4853
|
+
return false;
|
|
4892
4854
|
}
|
|
4893
|
-
);
|
|
4855
|
+
});
|
|
4894
4856
|
}
|
|
4895
4857
|
function windowCount(source, count, opts) {
|
|
4896
4858
|
if (count <= 0) throw new RangeError("windowCount expects count > 0");
|
|
@@ -5383,7 +5345,7 @@ function verifiable(source, verifyFn, opts) {
|
|
|
5383
5345
|
}
|
|
5384
5346
|
return { node: sourceNode, verified, trigger: triggerNode };
|
|
5385
5347
|
}
|
|
5386
|
-
function
|
|
5348
|
+
function keepalive2(node2) {
|
|
5387
5349
|
node2.subscribe(() => void 0);
|
|
5388
5350
|
}
|
|
5389
5351
|
function mapFromSnapshot(snapshot) {
|
|
@@ -5468,8 +5430,8 @@ function distill(source, extractFn, opts) {
|
|
|
5468
5430
|
return packed;
|
|
5469
5431
|
});
|
|
5470
5432
|
const size = derived([store.entries], ([snapshot]) => mapFromSnapshot(snapshot).size);
|
|
5471
|
-
|
|
5472
|
-
|
|
5433
|
+
keepalive2(compact);
|
|
5434
|
+
keepalive2(size);
|
|
5473
5435
|
return { store, compact, size };
|
|
5474
5436
|
}
|
|
5475
5437
|
|
|
@@ -6262,4 +6224,4 @@ export {
|
|
|
6262
6224
|
workerSelf,
|
|
6263
6225
|
extra_exports
|
|
6264
6226
|
};
|
|
6265
|
-
//# sourceMappingURL=chunk-
|
|
6227
|
+
//# sourceMappingURL=chunk-ECN37NVS.js.map
|