@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.
Files changed (52) hide show
  1. package/README.md +20 -3
  2. package/dist/{chunk-JC2SN46B.js → chunk-2UDLYZHT.js} +3 -3
  3. package/dist/{chunk-YXR3WW3Q.js → chunk-4MQ2J6IG.js} +4 -4
  4. package/dist/{chunk-YXR3WW3Q.js.map → chunk-4MQ2J6IG.js.map} +1 -1
  5. package/dist/{chunk-XUOY3YKN.js → chunk-7IGHIFTT.js} +2 -2
  6. package/dist/{chunk-AHRKWMNI.js → chunk-DOSLSFKL.js} +3 -3
  7. package/dist/{chunk-BER7UYLM.js → chunk-ECN37NVS.js} +161 -199
  8. package/dist/chunk-ECN37NVS.js.map +1 -0
  9. package/dist/{chunk-YLR5JUJZ.js → chunk-G66H6ZRK.js} +3 -3
  10. package/dist/{chunk-IRZAGZUB.js → chunk-VOQFK7YN.js} +26 -2
  11. package/dist/chunk-VOQFK7YN.js.map +1 -0
  12. package/dist/{chunk-OO5QOAXI.js → chunk-XWBVAO2R.js} +22 -9
  13. package/dist/chunk-XWBVAO2R.js.map +1 -0
  14. package/dist/{chunk-UW77D7SP.js → chunk-ZTCDY5NQ.js} +3 -3
  15. package/dist/compat/nestjs/index.cjs +15 -6
  16. package/dist/compat/nestjs/index.cjs.map +1 -1
  17. package/dist/compat/nestjs/index.js +7 -7
  18. package/dist/core/index.cjs +3 -3
  19. package/dist/core/index.cjs.map +1 -1
  20. package/dist/core/index.d.cts +1 -1
  21. package/dist/core/index.d.ts +1 -1
  22. package/dist/core/index.js +3 -3
  23. package/dist/extra/index.cjs +183 -199
  24. package/dist/extra/index.cjs.map +1 -1
  25. package/dist/extra/index.d.cts +1 -1
  26. package/dist/extra/index.d.ts +1 -1
  27. package/dist/extra/index.js +7 -3
  28. package/dist/graph/index.cjs +1 -1
  29. package/dist/graph/index.cjs.map +1 -1
  30. package/dist/graph/index.js +4 -4
  31. package/dist/{index-CvKzv0AW.d.ts → index-BHfg_Ez3.d.ts} +1 -1
  32. package/dist/{index-BBUYZfJ1.d.cts → index-Bc_diYYJ.d.cts} +1 -1
  33. package/dist/{index-BnkMgNNa.d.ts → index-DuN3bhtm.d.ts} +47 -2
  34. package/dist/{index-Bjh5C1Tp.d.cts → index-SFzE_KTa.d.cts} +47 -2
  35. package/dist/index.cjs +463 -281
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.cts +275 -10
  38. package/dist/index.d.ts +275 -10
  39. package/dist/index.js +284 -90
  40. package/dist/index.js.map +1 -1
  41. package/dist/patterns/reactive-layout/index.cjs +1 -1
  42. package/dist/patterns/reactive-layout/index.cjs.map +1 -1
  43. package/dist/patterns/reactive-layout/index.js +4 -4
  44. package/package.json +3 -2
  45. package/dist/chunk-BER7UYLM.js.map +0 -1
  46. package/dist/chunk-IRZAGZUB.js.map +0 -1
  47. package/dist/chunk-OO5QOAXI.js.map +0 -1
  48. /package/dist/{chunk-JC2SN46B.js.map → chunk-2UDLYZHT.js.map} +0 -0
  49. /package/dist/{chunk-XUOY3YKN.js.map → chunk-7IGHIFTT.js.map} +0 -0
  50. /package/dist/{chunk-AHRKWMNI.js.map → chunk-DOSLSFKL.js.map} +0 -0
  51. /package/dist/{chunk-YLR5JUJZ.js.map → chunk-G66H6ZRK.js.map} +0 -0
  52. /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-YXR3WW3Q.js";
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-XUOY3YKN.js.map
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-XUOY3YKN.js";
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-YXR3WW3Q.js";
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-AHRKWMNI.js.map
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-IRZAGZUB.js";
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-YXR3WW3Q.js";
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
- [source],
4274
- ([v], a) => {
4275
- if (!attached) attach(v, a);
4276
- return clearInner;
4277
- },
4278
- {
4279
- ...operatorOpts2(opts),
4280
- completeWhenDepsComplete: false,
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
- [source],
4327
- ([v], a) => {
4328
- if (!attached && innerUnsub === void 0) attach(v, a);
4329
- return clearInner;
4330
- },
4331
- {
4332
- ...operatorOpts2(opts),
4333
- completeWhenDepsComplete: false,
4334
- onMessage(msg, _i, a) {
4335
- const t = msg[0];
4336
- if (t === ERROR) {
4337
- clearInner();
4338
- a.down([msg]);
4339
- return true;
4340
- }
4341
- if (t === COMPLETE) {
4342
- sourceDone = true;
4343
- if (innerUnsub === void 0) a.down([[COMPLETE]]);
4344
- return true;
4345
- }
4346
- if (t === DIRTY) {
4347
- a.down([[DIRTY]]);
4348
- return true;
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
- if (t === DATA) {
4355
- if (innerUnsub !== void 0) {
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
- [source],
4397
- ([v], a) => {
4398
- if (!attached) enqueue(v, a);
4399
- return clearInner;
4400
- },
4401
- {
4402
- ...operatorOpts2(concatNodeOpts),
4403
- completeWhenDepsComplete: false,
4404
- onMessage(msg, _i, a) {
4405
- const t = msg[0];
4406
- if (t === ERROR) {
4407
- clearInner();
4408
- queue.length = 0;
4409
- a.down([msg]);
4410
- return true;
4411
- }
4412
- if (t === COMPLETE) {
4413
- sourceDone = true;
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
- let attached = false;
4489
- return node(
4490
- [source],
4491
- ([v], a) => {
4492
- if (!attached) {
4493
- attached = true;
4494
- enqueue(v, a);
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
- return clearAll;
4497
- },
4498
- {
4499
- ...operatorOpts2(mergeNodeOpts),
4500
- completeWhenDepsComplete: false,
4501
- onMessage(msg, _i, a) {
4502
- const t = msg[0];
4503
- if (t === ERROR) {
4504
- clearAll();
4505
- a.down([msg]);
4506
- return true;
4507
- }
4508
- if (t === COMPLETE) {
4509
- sourceDone = true;
4510
- tryComplete(a);
4511
- return true;
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
- let started = false;
4848
- return node(
4849
- [source],
4850
- ([v], a) => {
4851
- if (!started) {
4852
- started = true;
4853
- buf.push(v);
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 void 0;
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 keepalive(node2) {
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
- keepalive(compact);
5472
- keepalive(size);
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-BER7UYLM.js.map
6227
+ //# sourceMappingURL=chunk-ECN37NVS.js.map