@graphrefly/graphrefly 0.27.0 → 0.29.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/dist/backoff-HPZMEZNF.js +1 -0
- package/dist/cascading-Bp99ckMJ.d.ts +180 -0
- package/dist/cascading-CcAgRacD.d.cts +180 -0
- package/dist/chunk-22F4K3G7.js +1 -0
- package/dist/chunk-22SVXUPB.js +64 -0
- package/dist/chunk-2GQREQ6C.js +1 -0
- package/dist/chunk-3JXNEPCD.js +2 -0
- package/dist/chunk-4JJCCD5S.js +2 -0
- package/dist/chunk-4OFIQ66T.js +1 -0
- package/dist/chunk-4V4C7K56.js +1 -0
- package/dist/chunk-4VVTGLXJ.js +1 -0
- package/dist/chunk-567NWZ3T.js +1 -0
- package/dist/chunk-5JDE5JHE.js +1 -0
- package/dist/chunk-5QDBSZBV.js +1 -0
- package/dist/chunk-5Z4HDCO6.js +1 -0
- package/dist/chunk-63FFOHLA.js +1 -0
- package/dist/chunk-6QZNQS5B.js +1 -0
- package/dist/chunk-7JDLFI6N.js +1 -0
- package/dist/chunk-7TDOES3L.js +1 -0
- package/dist/chunk-A7IAQQ63.js +1 -0
- package/dist/chunk-AMG5VBHW.js +1 -0
- package/dist/chunk-AUY2YKCO.js +1 -0
- package/dist/chunk-AV3PIDFQ.js +1 -0
- package/dist/chunk-BA5URFYW.js +1 -0
- package/dist/chunk-BKPLTBL5.js +1 -0
- package/dist/chunk-BZP5T4X6.js +1 -0
- package/dist/chunk-CK2E7BTU.js +1 -0
- package/dist/chunk-CSJE2EKV.js +1 -0
- package/dist/chunk-E3AXATVZ.js +9 -0
- package/dist/chunk-ESMPEKEV.js +1 -0
- package/dist/chunk-GJR3P6JG.js +1 -0
- package/dist/chunk-GNCBXARM.js +1 -0
- package/dist/chunk-GPW2V3RE.js +1 -0
- package/dist/chunk-HSIEYSDY.js +1 -0
- package/dist/chunk-I6VIH3VA.js +1 -0
- package/dist/chunk-ISCENNXS.js +1 -0
- package/dist/chunk-JYOUF6UQ.js +1 -0
- package/dist/chunk-KASHOCF5.js +1 -0
- package/dist/chunk-LGSNR4LU.js +5 -0
- package/dist/chunk-LVGBLZM2.js +1 -0
- package/dist/chunk-MGKAO4EK.js +7 -0
- package/dist/chunk-NSG4C6BF.js +23 -0
- package/dist/chunk-OL33ZI6R.js +1 -0
- package/dist/chunk-PCZ35NXD.js +78 -0
- package/dist/chunk-PGMUCUHG.js +43 -0
- package/dist/chunk-QYADASLV.js +1 -0
- package/dist/chunk-RD52SNH2.js +1 -0
- package/dist/chunk-SLMYTGTU.js +1 -0
- package/dist/chunk-TWMEGG45.js +1 -0
- package/dist/chunk-UVJQ35G2.js +1 -0
- package/dist/chunk-VGTCGNRX.js +18 -0
- package/dist/chunk-VIMF6LGM.js +1 -0
- package/dist/chunk-VJLMUKOI.js +1 -0
- package/dist/chunk-VWPRPPKR.js +1 -0
- package/dist/chunk-W4TSQ6RJ.js +1 -0
- package/dist/chunk-WM7H7WTY.js +3 -0
- package/dist/chunk-Y32RJO24.js +1 -0
- package/dist/chunk-Y53B6NS4.js +1 -0
- package/dist/compat/index.cjs +15 -7656
- package/dist/compat/index.d.cts +15 -14
- package/dist/compat/index.d.ts +15 -14
- package/dist/compat/index.js +1 -50
- package/dist/compat/jotai/index.cjs +1 -2048
- package/dist/compat/jotai/index.d.cts +2 -2
- package/dist/compat/jotai/index.d.ts +2 -2
- package/dist/compat/jotai/index.js +1 -9
- package/dist/compat/nanostores/index.cjs +1 -2175
- package/dist/compat/nanostores/index.d.cts +2 -2
- package/dist/compat/nanostores/index.d.ts +2 -2
- package/dist/compat/nanostores/index.js +1 -23
- package/dist/compat/nestjs/index.cjs +15 -6782
- package/dist/compat/nestjs/index.d.cts +7 -6
- package/dist/compat/nestjs/index.d.ts +7 -6
- package/dist/compat/nestjs/index.js +1 -83
- package/dist/compat/react/index.cjs +1 -141
- package/dist/compat/react/index.d.cts +2 -2
- package/dist/compat/react/index.d.ts +2 -2
- package/dist/compat/react/index.js +1 -12
- package/dist/compat/solid/index.cjs +1 -128
- package/dist/compat/solid/index.d.cts +2 -2
- package/dist/compat/solid/index.d.ts +2 -2
- package/dist/compat/solid/index.js +1 -12
- package/dist/compat/svelte/index.cjs +1 -131
- package/dist/compat/svelte/index.d.cts +2 -2
- package/dist/compat/svelte/index.d.ts +2 -2
- package/dist/compat/svelte/index.js +1 -12
- package/dist/compat/vue/index.cjs +1 -146
- package/dist/compat/vue/index.d.cts +2 -2
- package/dist/compat/vue/index.d.ts +2 -2
- package/dist/compat/vue/index.js +1 -12
- package/dist/compat/zustand/index.cjs +7 -4931
- package/dist/compat/zustand/index.d.cts +5 -5
- package/dist/compat/zustand/index.d.ts +5 -5
- package/dist/compat/zustand/index.js +1 -12
- package/dist/composite-BL-llbnE.d.ts +69 -0
- package/dist/composite-Dze--DaA.d.cts +69 -0
- package/dist/core/index.cjs +1 -2271
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +1 -110
- package/dist/extra/browser.cjs +1 -0
- package/dist/extra/browser.d.cts +3 -0
- package/dist/extra/browser.d.ts +3 -0
- package/dist/extra/browser.js +1 -0
- package/dist/extra/index.cjs +24 -9971
- package/dist/extra/index.d.cts +13 -6
- package/dist/extra/index.d.ts +13 -6
- package/dist/extra/index.js +1 -381
- package/dist/extra/node.cjs +3 -0
- package/dist/extra/node.d.cts +81 -0
- package/dist/extra/node.d.ts +81 -0
- package/dist/extra/node.js +2 -0
- package/dist/extra/operators.cjs +1 -0
- package/dist/extra/operators.d.cts +910 -0
- package/dist/extra/operators.d.ts +910 -0
- package/dist/extra/operators.js +1 -0
- package/dist/extra/reactive.cjs +1 -0
- package/dist/extra/reactive.d.cts +352 -0
- package/dist/extra/reactive.d.ts +352 -0
- package/dist/extra/reactive.js +1 -0
- package/dist/extra/sources.cjs +1 -2486
- package/dist/extra/sources.d.cts +6 -2
- package/dist/extra/sources.d.ts +6 -2
- package/dist/extra/sources.js +1 -57
- package/dist/extra/storage-browser.cjs +1 -0
- package/dist/extra/storage-browser.d.cts +71 -0
- package/dist/extra/storage-browser.d.ts +71 -0
- package/dist/extra/storage-browser.js +1 -0
- package/dist/extra/storage-core.cjs +1 -0
- package/dist/extra/storage-core.d.cts +98 -0
- package/dist/extra/storage-core.d.ts +98 -0
- package/dist/extra/storage-core.js +1 -0
- package/dist/extra/storage-node.cjs +2 -0
- package/dist/extra/storage-node.d.cts +60 -0
- package/dist/extra/storage-node.d.ts +60 -0
- package/dist/extra/storage-node.js +1 -0
- package/dist/fallback-BaTS7vVY.d.cts +258 -0
- package/dist/fallback-eOm3LNxP.d.ts +258 -0
- package/dist/graph/index.cjs +7 -5030
- package/dist/graph/index.d.cts +6 -5
- package/dist/graph/index.d.ts +6 -5
- package/dist/graph/index.js +1 -50
- package/dist/{graph-DNCrvZSn.d.cts → graph-DgohqXK-.d.cts} +151 -32
- package/dist/{graph-CCwGKLCm.d.ts → graph-Qjg9gWHI.d.ts} +151 -32
- package/dist/{index-BwfLUNw4.d.ts → index-2BVuRCI4.d.ts} +173 -2040
- package/dist/{index-BPVt8kqc.d.ts → index-2NvguqQA.d.ts} +10 -195
- package/dist/index-A65LZhoM.d.ts +186 -0
- package/dist/{index-DlLp-2Xn.d.cts → index-B-8FCEua.d.cts} +10 -195
- package/dist/index-B-gqvYel.d.ts +135 -0
- package/dist/index-B2PRuolf.d.cts +86 -0
- package/dist/index-BJqt9EwW.d.ts +231 -0
- package/dist/{index-BHlKbUwO.d.cts → index-BKjT5DiZ.d.cts} +173 -2040
- package/dist/{index-C0svESO4.d.ts → index-BM8BU4q6.d.ts} +1 -1
- package/dist/{index-VdHQMPy1.d.ts → index-BQaEnxBf.d.ts} +1 -1
- package/dist/index-BSfwiy5B.d.ts +192 -0
- package/dist/index-BTSkeCZs.d.cts +291 -0
- package/dist/index-BUVtw1Ay.d.cts +186 -0
- package/dist/index-BUi57v_p.d.ts +163 -0
- package/dist/{messaging-Gt4LPbyA.d.cts → index-BanNUILp.d.cts} +31 -93
- package/dist/{audit-DRlSzBu9.d.ts → index-BayHDRx6.d.cts} +27 -21
- package/dist/{index-B6D3QNSA.d.ts → index-BiyjsZ0m.d.ts} +148 -20
- package/dist/index-BqZ6vB2A.d.ts +2057 -0
- package/dist/{memory-li6FL5RM.d.ts → index-BuVidq3D.d.cts} +26 -26
- package/dist/index-Byh-xTyp.d.ts +105 -0
- package/dist/index-C08QPDcV.d.cts +321 -0
- package/dist/{demo-shell-BDkOptd6.d.ts → index-C66RJiX8.d.ts} +14 -14
- package/dist/index-C8RfjffH.d.ts +291 -0
- package/dist/index-CA1Cu7Ud.d.ts +873 -0
- package/dist/{index-ByQxazQJ.d.cts → index-CABbltIu.d.cts} +1 -1
- package/dist/{index-VHqptjhu.d.cts → index-CHEBsnYv.d.cts} +1 -1
- package/dist/{index-BuEoe-Qu.d.ts → index-CI0yDnLp.d.ts} +9 -9
- package/dist/{index-B9B7_HEY.d.ts → index-CJ45TW-h.d.ts} +1 -1
- package/dist/{index-CO8uBlUh.d.cts → index-CJZKZoo4.d.cts} +148 -20
- package/dist/{index-wEn0eFe8.d.ts → index-CX2tFJL1.d.ts} +1 -1
- package/dist/{index-BaSM3aYt.d.ts → index-CcWOJ6F0.d.ts} +3 -3
- package/dist/{audit-ClmqGOCx.d.cts → index-CiaVoZGo.d.ts} +27 -21
- package/dist/{index-Dzk2hrlR.d.ts → index-Ct5CWc4E.d.ts} +1 -1
- package/dist/index-D38duMCv.d.cts +357 -0
- package/dist/{index-C8oil6M6.d.ts → index-D5XJ2tSx.d.ts} +30 -6
- package/dist/{index-DO_6JN9Z.d.cts → index-D80do5jX.d.cts} +1 -1
- package/dist/index-D9HKAH_-.d.cts +231 -0
- package/dist/index-DBe_8XW5.d.cts +143 -0
- package/dist/{memory-C6Z2tGpC.d.cts → index-DCeTyFlB.d.ts} +26 -26
- package/dist/index-DDy8eeXS.d.ts +321 -0
- package/dist/index-DJ5oNBc8.d.ts +143 -0
- package/dist/{index-CI3DprxP.d.cts → index-DP0_O3ls.d.cts} +30 -6
- package/dist/{demo-shell-Crid1WdR.d.cts → index-DX8xS-yB.d.cts} +14 -14
- package/dist/index-DiZejfCI.d.cts +2057 -0
- package/dist/index-DknyJ2Fu.d.cts +163 -0
- package/dist/index-DoWMs-Kk.d.cts +135 -0
- package/dist/{messaging-XDoYablx.d.ts → index-DuB5aO4-.d.ts} +31 -93
- package/dist/index-DwjJGKxV.d.ts +357 -0
- package/dist/{index-B6EhDnjH.d.cts → index-H_oxVec5.d.cts} +1 -1
- package/dist/{index-3lsddbbS.d.ts → index-IMAHq-ia.d.ts} +1 -1
- package/dist/{index-B1tloyhO.d.cts → index-U1nir7MX.d.cts} +1 -1
- package/dist/index-Vg7tORgk.d.ts +86 -0
- package/dist/index-dig-r2tQ.d.cts +873 -0
- package/dist/{index-CxFrXH4m.d.ts → index-gsT79Xu9.d.ts} +1 -1
- package/dist/{index-D8wS_PeY.d.cts → index-i99Ka8s7.d.cts} +9 -9
- package/dist/index-iKkyJosF.d.cts +105 -0
- package/dist/{index-Xi3u0HCQ.d.cts → index-jleeotBT.d.cts} +1 -1
- package/dist/{index-DVGiGFGT.d.cts → index-kykKWwV-.d.cts} +3 -3
- package/dist/index-vgcLF5TH.d.cts +192 -0
- package/dist/{index-DYme44FM.d.cts → index-y1RllPn4.d.cts} +1 -1
- package/dist/index.cjs +151 -24142
- package/dist/index.d.cts +69 -2099
- package/dist/index.d.ts +69 -2099
- package/dist/index.js +1 -3868
- package/dist/{meta-CbznRPYJ.d.ts → meta-CX7YsOzp.d.cts} +5 -5
- package/dist/{meta-BxCA7rcr.d.cts → meta-CckhhFRd.d.ts} +5 -5
- package/dist/{node-BmerH3kS.d.cts → node-Dd6wHSib.d.cts} +71 -11
- package/dist/{node-BmerH3kS.d.ts → node-Dd6wHSib.d.ts} +71 -11
- package/dist/{observable-BgGUwcqp.d.ts → observable-BZJgo616.d.ts} +1 -1
- package/dist/{observable-DJt_AxzQ.d.cts → observable-kwzpLvbi.d.cts} +1 -1
- package/dist/patterns/ai/browser.cjs +25 -0
- package/dist/patterns/ai/browser.d.cts +127 -0
- package/dist/patterns/ai/browser.d.ts +127 -0
- package/dist/patterns/ai/browser.js +3 -0
- package/dist/patterns/ai/index.cjs +92 -0
- package/dist/patterns/ai/index.d.cts +17 -0
- package/dist/patterns/ai/index.d.ts +17 -0
- package/dist/patterns/ai/index.js +1 -0
- package/dist/patterns/ai/node.cjs +2 -0
- package/dist/patterns/ai/node.d.cts +58 -0
- package/dist/patterns/ai/node.d.ts +58 -0
- package/dist/patterns/ai/node.js +1 -0
- package/dist/patterns/audit/index.cjs +7 -0
- package/dist/patterns/audit/index.d.cts +6 -0
- package/dist/patterns/audit/index.d.ts +6 -0
- package/dist/patterns/audit/index.js +1 -0
- package/dist/patterns/cqrs/index.cjs +7 -0
- package/dist/patterns/cqrs/index.d.cts +5 -0
- package/dist/patterns/cqrs/index.d.ts +5 -0
- package/dist/patterns/cqrs/index.js +1 -0
- package/dist/patterns/demo-shell/index.cjs +8 -0
- package/dist/patterns/demo-shell/index.d.cts +6 -0
- package/dist/patterns/demo-shell/index.d.ts +6 -0
- package/dist/patterns/demo-shell/index.js +1 -0
- package/dist/patterns/domain-templates/index.cjs +7 -0
- package/dist/patterns/domain-templates/index.d.cts +5 -0
- package/dist/patterns/domain-templates/index.d.ts +5 -0
- package/dist/patterns/domain-templates/index.js +1 -0
- package/dist/patterns/graphspec/index.cjs +84 -0
- package/dist/patterns/graphspec/index.d.cts +7 -0
- package/dist/patterns/graphspec/index.d.ts +7 -0
- package/dist/patterns/graphspec/index.js +1 -0
- package/dist/patterns/guarded-execution/index.cjs +7 -0
- package/dist/patterns/guarded-execution/index.d.cts +7 -0
- package/dist/patterns/guarded-execution/index.d.ts +7 -0
- package/dist/patterns/guarded-execution/index.js +1 -0
- package/dist/patterns/harness/index.cjs +49 -0
- package/dist/patterns/harness/index.d.cts +11 -0
- package/dist/patterns/harness/index.d.ts +11 -0
- package/dist/patterns/harness/index.js +1 -0
- package/dist/patterns/job-queue/index.cjs +7 -0
- package/dist/patterns/job-queue/index.d.cts +5 -0
- package/dist/patterns/job-queue/index.d.ts +5 -0
- package/dist/patterns/job-queue/index.js +1 -0
- package/dist/patterns/lens/index.cjs +7 -0
- package/dist/patterns/lens/index.d.cts +7 -0
- package/dist/patterns/lens/index.d.ts +7 -0
- package/dist/patterns/lens/index.js +1 -0
- package/dist/patterns/memory/index.cjs +7 -0
- package/dist/patterns/memory/index.d.cts +5 -0
- package/dist/patterns/memory/index.d.ts +5 -0
- package/dist/patterns/memory/index.js +1 -0
- package/dist/patterns/messaging/index.cjs +7 -0
- package/dist/patterns/messaging/index.d.cts +5 -0
- package/dist/patterns/messaging/index.d.ts +5 -0
- package/dist/patterns/messaging/index.js +1 -0
- package/dist/patterns/orchestration/index.cjs +7 -0
- package/dist/patterns/orchestration/index.d.cts +6 -0
- package/dist/patterns/orchestration/index.d.ts +6 -0
- package/dist/patterns/orchestration/index.js +1 -0
- package/dist/patterns/reactive-layout/index.cjs +8 -6444
- package/dist/patterns/reactive-layout/index.d.cts +6 -6
- package/dist/patterns/reactive-layout/index.d.ts +6 -6
- package/dist/patterns/reactive-layout/index.js +1 -56
- package/dist/patterns/reduction/index.cjs +7 -0
- package/dist/patterns/reduction/index.d.cts +5 -0
- package/dist/patterns/reduction/index.d.ts +5 -0
- package/dist/patterns/reduction/index.js +1 -0
- package/dist/patterns/refine-loop/index.cjs +9 -0
- package/dist/patterns/refine-loop/index.d.cts +7 -0
- package/dist/patterns/refine-loop/index.d.ts +7 -0
- package/dist/patterns/refine-loop/index.js +1 -0
- package/dist/patterns/resilient-pipeline/index.cjs +1 -0
- package/dist/patterns/resilient-pipeline/index.d.cts +7 -0
- package/dist/patterns/resilient-pipeline/index.d.ts +7 -0
- package/dist/patterns/resilient-pipeline/index.js +1 -0
- package/dist/patterns/surface/index.cjs +15 -0
- package/dist/patterns/surface/index.d.cts +8 -0
- package/dist/patterns/surface/index.d.ts +8 -0
- package/dist/patterns/surface/index.js +1 -0
- package/dist/{reactive-layout-u5Ulnqag.d.ts → reactive-layout-BkBwVvwm.d.ts} +2 -2
- package/dist/{reactive-layout-MQP--J3F.d.cts → reactive-layout-PiFwVaWS.d.cts} +2 -2
- package/dist/reactive-log-1QTyx10a.d.ts +190 -0
- package/dist/reactive-log-BiVoSxke.d.cts +190 -0
- package/dist/{composite-aUCvjZVR.d.ts → reactive-map-CwO_COHy.d.cts} +2 -67
- package/dist/{composite-C7PcQvcs.d.cts → reactive-map-FeuTVAJb.d.ts} +2 -67
- package/dist/resilience-CBfYJW5C.d.ts +493 -0
- package/dist/resilience-XRUF267O.js +1 -0
- package/dist/resilience-uBz4yvYB.d.cts +493 -0
- package/dist/{sugar-CCOxXK1e.d.ts → sugar-CY-MCfZ9.d.ts} +17 -15
- package/dist/{sugar-D02n5JjF.d.cts → sugar-DHttV0LX.d.cts} +17 -15
- package/dist/topology-tree-CVjt2gp7.d.cts +25 -0
- package/dist/topology-tree-one6oSKY.d.ts +25 -0
- package/dist/types-O3GzJY2U.d.cts +401 -0
- package/dist/types-u64Ose53.d.ts +401 -0
- package/package.json +252 -22
- package/dist/ai-CaR_912Q.d.cts +0 -1033
- package/dist/ai-WlRltJV7.d.ts +0 -1033
- package/dist/chunk-3ZWCKRHX.js +0 -117
- package/dist/chunk-3ZWCKRHX.js.map +0 -1
- package/dist/chunk-7TAQJHQV.js +0 -103
- package/dist/chunk-7TAQJHQV.js.map +0 -1
- package/dist/chunk-APFNLIRG.js +0 -62
- package/dist/chunk-APFNLIRG.js.map +0 -1
- package/dist/chunk-AT5LKYNL.js +0 -395
- package/dist/chunk-AT5LKYNL.js.map +0 -1
- package/dist/chunk-BQ6RQQFF.js +0 -5087
- package/dist/chunk-BQ6RQQFF.js.map +0 -1
- package/dist/chunk-BVZYTZ5H.js +0 -599
- package/dist/chunk-BVZYTZ5H.js.map +0 -1
- package/dist/chunk-DST5DKZS.js +0 -1371
- package/dist/chunk-DST5DKZS.js.map +0 -1
- package/dist/chunk-GTE6PWRZ.js +0 -866
- package/dist/chunk-GTE6PWRZ.js.map +0 -1
- package/dist/chunk-HXZEYDUR.js +0 -94
- package/dist/chunk-HXZEYDUR.js.map +0 -1
- package/dist/chunk-J22W6HV3.js +0 -107
- package/dist/chunk-J22W6HV3.js.map +0 -1
- package/dist/chunk-J2VBW3DZ.js +0 -302
- package/dist/chunk-J2VBW3DZ.js.map +0 -1
- package/dist/chunk-JSCT3CR4.js +0 -38
- package/dist/chunk-JSCT3CR4.js.map +0 -1
- package/dist/chunk-JWBCY4NC.js +0 -330
- package/dist/chunk-JWBCY4NC.js.map +0 -1
- package/dist/chunk-K2AUJHVP.js +0 -2251
- package/dist/chunk-K2AUJHVP.js.map +0 -1
- package/dist/chunk-MJ2NKQQL.js +0 -119
- package/dist/chunk-MJ2NKQQL.js.map +0 -1
- package/dist/chunk-N6UR7YVY.js +0 -198
- package/dist/chunk-N6UR7YVY.js.map +0 -1
- package/dist/chunk-NC6S43JJ.js +0 -456
- package/dist/chunk-NC6S43JJ.js.map +0 -1
- package/dist/chunk-OFVJBJXR.js +0 -98
- package/dist/chunk-OFVJBJXR.js.map +0 -1
- package/dist/chunk-OHISZPOJ.js +0 -97
- package/dist/chunk-OHISZPOJ.js.map +0 -1
- package/dist/chunk-OU5CQKNW.js +0 -102
- package/dist/chunk-OU5CQKNW.js.map +0 -1
- package/dist/chunk-PF7GRZMW.js +0 -2712
- package/dist/chunk-PF7GRZMW.js.map +0 -1
- package/dist/chunk-PHOUUNK7.js +0 -2291
- package/dist/chunk-PHOUUNK7.js.map +0 -1
- package/dist/chunk-RNHBMHKA.js +0 -1665
- package/dist/chunk-RNHBMHKA.js.map +0 -1
- package/dist/chunk-SX52TAR4.js +0 -110
- package/dist/chunk-SX52TAR4.js.map +0 -1
- package/dist/chunk-VYPWMZ6H.js +0 -98
- package/dist/chunk-VYPWMZ6H.js.map +0 -1
- package/dist/chunk-WBZOVTYK.js +0 -171
- package/dist/chunk-WBZOVTYK.js.map +0 -1
- package/dist/chunk-WKNUIZOY.js +0 -354
- package/dist/chunk-WKNUIZOY.js.map +0 -1
- package/dist/chunk-X3VMZYBT.js +0 -713
- package/dist/chunk-X3VMZYBT.js.map +0 -1
- package/dist/chunk-X5R3GL6H.js +0 -525
- package/dist/chunk-X5R3GL6H.js.map +0 -1
- package/dist/chunk-XGPU467M.js +0 -136
- package/dist/chunk-XGPU467M.js.map +0 -1
- package/dist/compat/index.cjs.map +0 -1
- package/dist/compat/index.js.map +0 -1
- package/dist/compat/jotai/index.cjs.map +0 -1
- package/dist/compat/jotai/index.js.map +0 -1
- package/dist/compat/nanostores/index.cjs.map +0 -1
- package/dist/compat/nanostores/index.js.map +0 -1
- package/dist/compat/nestjs/index.cjs.map +0 -1
- package/dist/compat/nestjs/index.js.map +0 -1
- package/dist/compat/react/index.cjs.map +0 -1
- package/dist/compat/react/index.js.map +0 -1
- package/dist/compat/solid/index.cjs.map +0 -1
- package/dist/compat/solid/index.js.map +0 -1
- package/dist/compat/svelte/index.cjs.map +0 -1
- package/dist/compat/svelte/index.js.map +0 -1
- package/dist/compat/vue/index.cjs.map +0 -1
- package/dist/compat/vue/index.js.map +0 -1
- package/dist/compat/zustand/index.cjs.map +0 -1
- package/dist/compat/zustand/index.js.map +0 -1
- package/dist/core/index.cjs.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/extra/index.cjs.map +0 -1
- package/dist/extra/index.js.map +0 -1
- package/dist/extra/sources.cjs.map +0 -1
- package/dist/extra/sources.js.map +0 -1
- package/dist/graph/index.cjs.map +0 -1
- package/dist/graph/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/patterns/ai.cjs +0 -7930
- package/dist/patterns/ai.cjs.map +0 -1
- package/dist/patterns/ai.d.cts +0 -10
- package/dist/patterns/ai.d.ts +0 -10
- package/dist/patterns/ai.js +0 -71
- package/dist/patterns/ai.js.map +0 -1
- package/dist/patterns/audit.cjs +0 -5805
- package/dist/patterns/audit.cjs.map +0 -1
- package/dist/patterns/audit.d.cts +0 -6
- package/dist/patterns/audit.d.ts +0 -6
- package/dist/patterns/audit.js +0 -29
- package/dist/patterns/audit.js.map +0 -1
- package/dist/patterns/demo-shell.cjs +0 -5604
- package/dist/patterns/demo-shell.cjs.map +0 -1
- package/dist/patterns/demo-shell.d.cts +0 -6
- package/dist/patterns/demo-shell.d.ts +0 -6
- package/dist/patterns/demo-shell.js +0 -15
- package/dist/patterns/demo-shell.js.map +0 -1
- package/dist/patterns/memory.cjs +0 -5283
- package/dist/patterns/memory.cjs.map +0 -1
- package/dist/patterns/memory.d.cts +0 -5
- package/dist/patterns/memory.d.ts +0 -5
- package/dist/patterns/memory.js +0 -20
- package/dist/patterns/memory.js.map +0 -1
- package/dist/patterns/reactive-layout/index.cjs.map +0 -1
- package/dist/patterns/reactive-layout/index.js.map +0 -1
- package/dist/storage-CMjUUuxn.d.ts +0 -190
- package/dist/storage-DdWlZo6U.d.cts +0 -190
package/dist/chunk-BVZYTZ5H.js
DELETED
|
@@ -1,599 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
node,
|
|
3
|
-
producer,
|
|
4
|
-
state,
|
|
5
|
-
wallClockNs
|
|
6
|
-
} from "./chunk-PHOUUNK7.js";
|
|
7
|
-
import {
|
|
8
|
-
COMPLETE,
|
|
9
|
-
DATA,
|
|
10
|
-
DIRTY,
|
|
11
|
-
ERROR,
|
|
12
|
-
RESOLVED
|
|
13
|
-
} from "./chunk-SX52TAR4.js";
|
|
14
|
-
|
|
15
|
-
// src/extra/cron.ts
|
|
16
|
-
function parseField(field, min, max) {
|
|
17
|
-
const result = /* @__PURE__ */ new Set();
|
|
18
|
-
for (const part of field.split(",")) {
|
|
19
|
-
const [range, stepStr] = part.split("/");
|
|
20
|
-
const step = stepStr ? Number.parseInt(stepStr, 10) : 1;
|
|
21
|
-
if (Number.isNaN(step) || step < 1) throw new Error(`Invalid cron step: ${part}`);
|
|
22
|
-
let start;
|
|
23
|
-
let end;
|
|
24
|
-
if (range === "*") {
|
|
25
|
-
start = min;
|
|
26
|
-
end = max;
|
|
27
|
-
} else if (range.includes("-")) {
|
|
28
|
-
const [a, b] = range.split("-");
|
|
29
|
-
start = Number.parseInt(a, 10);
|
|
30
|
-
end = Number.parseInt(b, 10);
|
|
31
|
-
} else {
|
|
32
|
-
start = Number.parseInt(range, 10);
|
|
33
|
-
end = start;
|
|
34
|
-
}
|
|
35
|
-
if (Number.isNaN(start) || Number.isNaN(end)) throw new Error(`Invalid cron field: ${field}`);
|
|
36
|
-
if (start < min || end > max)
|
|
37
|
-
throw new Error(`Cron field out of range: ${field} (${min}-${max})`);
|
|
38
|
-
if (start > end) throw new Error(`Invalid cron range: ${start}-${end} in ${field}`);
|
|
39
|
-
for (let i = start; i <= end; i += step) result.add(i);
|
|
40
|
-
}
|
|
41
|
-
return result;
|
|
42
|
-
}
|
|
43
|
-
function parseCron(expr) {
|
|
44
|
-
const parts = expr.trim().split(/\s+/);
|
|
45
|
-
if (parts.length !== 5) throw new Error(`Invalid cron: expected 5 fields, got ${parts.length}`);
|
|
46
|
-
return {
|
|
47
|
-
minutes: parseField(parts[0], 0, 59),
|
|
48
|
-
hours: parseField(parts[1], 0, 23),
|
|
49
|
-
daysOfMonth: parseField(parts[2], 1, 31),
|
|
50
|
-
months: parseField(parts[3], 1, 12),
|
|
51
|
-
daysOfWeek: parseField(parts[4], 0, 6)
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
function matchesCron(schedule, date) {
|
|
55
|
-
return schedule.minutes.has(date.getMinutes()) && schedule.hours.has(date.getHours()) && schedule.daysOfMonth.has(date.getDate()) && schedule.months.has(date.getMonth() + 1) && schedule.daysOfWeek.has(date.getDay());
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// src/extra/sources.ts
|
|
59
|
-
function sourceOpts(opts) {
|
|
60
|
-
return { describeKind: "producer", ...opts };
|
|
61
|
-
}
|
|
62
|
-
function escapeRegexChar(ch) {
|
|
63
|
-
return /[\\^$+?.()|[\]{}]/.test(ch) ? `\\${ch}` : ch;
|
|
64
|
-
}
|
|
65
|
-
function globToRegExp(glob) {
|
|
66
|
-
let out = "^";
|
|
67
|
-
for (let i = 0; i < glob.length; i += 1) {
|
|
68
|
-
const ch = glob[i];
|
|
69
|
-
if (ch === "*") {
|
|
70
|
-
const next = glob[i + 1];
|
|
71
|
-
if (next === "*") {
|
|
72
|
-
out += ".*";
|
|
73
|
-
i += 1;
|
|
74
|
-
} else {
|
|
75
|
-
out += "[^/]*";
|
|
76
|
-
}
|
|
77
|
-
continue;
|
|
78
|
-
}
|
|
79
|
-
out += escapeRegexChar(ch);
|
|
80
|
-
}
|
|
81
|
-
out += "$";
|
|
82
|
-
return new RegExp(out);
|
|
83
|
-
}
|
|
84
|
-
function matchesAnyPattern(path, patterns) {
|
|
85
|
-
for (const pattern of patterns) {
|
|
86
|
-
if (pattern.test(path)) return true;
|
|
87
|
-
}
|
|
88
|
-
return false;
|
|
89
|
-
}
|
|
90
|
-
function wrapSubscribeHook(inner, before) {
|
|
91
|
-
const wrapper = node(
|
|
92
|
-
[inner],
|
|
93
|
-
(data, a) => {
|
|
94
|
-
const batch0 = data[0];
|
|
95
|
-
if (batch0 == null || batch0.length === 0) {
|
|
96
|
-
a.down([[RESOLVED]]);
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
for (const v of batch0) a.emit(v);
|
|
100
|
-
},
|
|
101
|
-
{ describeKind: "derived", initial: inner.cache }
|
|
102
|
-
);
|
|
103
|
-
const origSubscribe = wrapper.subscribe.bind(wrapper);
|
|
104
|
-
wrapper.subscribe = (sink, actor) => {
|
|
105
|
-
before(sink);
|
|
106
|
-
return origSubscribe(sink, actor);
|
|
107
|
-
};
|
|
108
|
-
return wrapper;
|
|
109
|
-
}
|
|
110
|
-
function fromTimer(ms, opts) {
|
|
111
|
-
const { signal, period, ...rest } = opts ?? {};
|
|
112
|
-
return producer((a) => {
|
|
113
|
-
let done = false;
|
|
114
|
-
let count = 0;
|
|
115
|
-
let t;
|
|
116
|
-
let iv;
|
|
117
|
-
const cleanup = () => {
|
|
118
|
-
done = true;
|
|
119
|
-
if (t !== void 0) clearTimeout(t);
|
|
120
|
-
if (iv !== void 0) clearInterval(iv);
|
|
121
|
-
signal?.removeEventListener("abort", onAbort);
|
|
122
|
-
};
|
|
123
|
-
const finish = () => {
|
|
124
|
-
if (done) return;
|
|
125
|
-
if (period != null) {
|
|
126
|
-
a.emit(count++);
|
|
127
|
-
iv = setInterval(() => {
|
|
128
|
-
if (done) return;
|
|
129
|
-
a.emit(count++);
|
|
130
|
-
}, period);
|
|
131
|
-
} else {
|
|
132
|
-
done = true;
|
|
133
|
-
signal?.removeEventListener("abort", onAbort);
|
|
134
|
-
a.emit(count++);
|
|
135
|
-
a.down([[COMPLETE]]);
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
const onAbort = () => {
|
|
139
|
-
if (done) return;
|
|
140
|
-
cleanup();
|
|
141
|
-
a.down([[ERROR, signal.reason]]);
|
|
142
|
-
};
|
|
143
|
-
if (signal?.aborted) {
|
|
144
|
-
onAbort();
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
t = setTimeout(finish, ms);
|
|
148
|
-
signal?.addEventListener("abort", onAbort, { once: true });
|
|
149
|
-
return cleanup;
|
|
150
|
-
}, sourceOpts(rest));
|
|
151
|
-
}
|
|
152
|
-
function fromRaf(opts) {
|
|
153
|
-
const { signal, ...rest } = opts ?? {};
|
|
154
|
-
return producer((a) => {
|
|
155
|
-
let done = false;
|
|
156
|
-
let rafId;
|
|
157
|
-
let fallbackTimer;
|
|
158
|
-
let abortListenerAdded = false;
|
|
159
|
-
let visibilityListenerAdded = false;
|
|
160
|
-
const raf = typeof requestAnimationFrame === "function" ? requestAnimationFrame : void 0;
|
|
161
|
-
const caf = typeof cancelAnimationFrame === "function" ? cancelAnimationFrame : void 0;
|
|
162
|
-
const doc = typeof document !== "undefined" ? document : void 0;
|
|
163
|
-
const clearPending = () => {
|
|
164
|
-
if (rafId !== void 0 && caf) caf(rafId);
|
|
165
|
-
if (fallbackTimer !== void 0) clearTimeout(fallbackTimer);
|
|
166
|
-
rafId = void 0;
|
|
167
|
-
fallbackTimer = void 0;
|
|
168
|
-
};
|
|
169
|
-
const cleanup = () => {
|
|
170
|
-
done = true;
|
|
171
|
-
clearPending();
|
|
172
|
-
if (abortListenerAdded) {
|
|
173
|
-
signal?.removeEventListener("abort", onAbort);
|
|
174
|
-
abortListenerAdded = false;
|
|
175
|
-
}
|
|
176
|
-
if (visibilityListenerAdded && doc) {
|
|
177
|
-
doc.removeEventListener("visibilitychange", onVisibilityChange);
|
|
178
|
-
visibilityListenerAdded = false;
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
const onAbort = () => {
|
|
182
|
-
if (done) return;
|
|
183
|
-
cleanup();
|
|
184
|
-
a.down([[ERROR, signal.reason]]);
|
|
185
|
-
};
|
|
186
|
-
const tick = (now) => {
|
|
187
|
-
if (done) return;
|
|
188
|
-
a.emit(now);
|
|
189
|
-
scheduleNext();
|
|
190
|
-
};
|
|
191
|
-
const scheduleNext = () => {
|
|
192
|
-
if (done) return;
|
|
193
|
-
if (raf && (!doc || doc.visibilityState !== "hidden")) {
|
|
194
|
-
rafId = raf(tick);
|
|
195
|
-
} else {
|
|
196
|
-
fallbackTimer = setTimeout(() => tick(performance.now()), 16);
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
const onVisibilityChange = () => {
|
|
200
|
-
if (done) return;
|
|
201
|
-
clearPending();
|
|
202
|
-
scheduleNext();
|
|
203
|
-
};
|
|
204
|
-
if (signal?.aborted) {
|
|
205
|
-
onAbort();
|
|
206
|
-
return cleanup;
|
|
207
|
-
}
|
|
208
|
-
signal?.addEventListener("abort", onAbort, { once: true });
|
|
209
|
-
abortListenerAdded = signal !== void 0;
|
|
210
|
-
if (doc && raf) {
|
|
211
|
-
doc.addEventListener("visibilitychange", onVisibilityChange);
|
|
212
|
-
visibilityListenerAdded = true;
|
|
213
|
-
}
|
|
214
|
-
scheduleNext();
|
|
215
|
-
return cleanup;
|
|
216
|
-
}, sourceOpts(rest));
|
|
217
|
-
}
|
|
218
|
-
function fromCron(expr, opts) {
|
|
219
|
-
const schedule = parseCron(expr);
|
|
220
|
-
const { tickMs: tickOpt, output, ...rest } = opts ?? {};
|
|
221
|
-
const tickMs = tickOpt ?? 6e4;
|
|
222
|
-
const emitDate = output === "date";
|
|
223
|
-
return producer(
|
|
224
|
-
(a) => {
|
|
225
|
-
let lastFiredKey = -1;
|
|
226
|
-
const check = () => {
|
|
227
|
-
const now = /* @__PURE__ */ new Date();
|
|
228
|
-
const key = now.getFullYear() * 1e8 + (now.getMonth() + 1) * 1e6 + now.getDate() * 1e4 + now.getHours() * 100 + now.getMinutes();
|
|
229
|
-
if (key !== lastFiredKey && matchesCron(schedule, now)) {
|
|
230
|
-
lastFiredKey = key;
|
|
231
|
-
a.emit(emitDate ? now : wallClockNs());
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
check();
|
|
235
|
-
const id = setInterval(check, tickMs);
|
|
236
|
-
return () => clearInterval(id);
|
|
237
|
-
},
|
|
238
|
-
{ ...sourceOpts(rest), name: rest.name ?? `cron:${expr}` }
|
|
239
|
-
);
|
|
240
|
-
}
|
|
241
|
-
function fromEvent(target, type, opts) {
|
|
242
|
-
const { capture, passive, once, ...rest } = opts ?? {};
|
|
243
|
-
return producer((a) => {
|
|
244
|
-
const handler = (e) => {
|
|
245
|
-
a.emit(e);
|
|
246
|
-
};
|
|
247
|
-
const options = { capture, passive, once };
|
|
248
|
-
target.addEventListener(type, handler, options);
|
|
249
|
-
return () => target.removeEventListener(type, handler, options);
|
|
250
|
-
}, sourceOpts(rest));
|
|
251
|
-
}
|
|
252
|
-
function fromIter(iterable, opts) {
|
|
253
|
-
return producer((a) => {
|
|
254
|
-
let cancelled = false;
|
|
255
|
-
try {
|
|
256
|
-
for (const x of iterable) {
|
|
257
|
-
if (cancelled) return;
|
|
258
|
-
a.emit(x);
|
|
259
|
-
}
|
|
260
|
-
if (!cancelled) a.down([[COMPLETE]]);
|
|
261
|
-
} catch (e) {
|
|
262
|
-
if (!cancelled) a.down([[ERROR, e]]);
|
|
263
|
-
}
|
|
264
|
-
return () => {
|
|
265
|
-
cancelled = true;
|
|
266
|
-
};
|
|
267
|
-
}, sourceOpts(opts));
|
|
268
|
-
}
|
|
269
|
-
function isThenable(x) {
|
|
270
|
-
return x != null && typeof x.then === "function";
|
|
271
|
-
}
|
|
272
|
-
function fromPromise(p, opts) {
|
|
273
|
-
const { signal, ...rest } = opts ?? {};
|
|
274
|
-
return producer((a) => {
|
|
275
|
-
let settled = false;
|
|
276
|
-
const onAbort = () => {
|
|
277
|
-
if (settled) return;
|
|
278
|
-
settled = true;
|
|
279
|
-
a.down([[ERROR, signal.reason]]);
|
|
280
|
-
};
|
|
281
|
-
if (signal?.aborted) {
|
|
282
|
-
onAbort();
|
|
283
|
-
return;
|
|
284
|
-
}
|
|
285
|
-
signal?.addEventListener("abort", onAbort, { once: true });
|
|
286
|
-
void Promise.resolve(p).then(
|
|
287
|
-
(v) => {
|
|
288
|
-
if (settled) return;
|
|
289
|
-
settled = true;
|
|
290
|
-
signal?.removeEventListener("abort", onAbort);
|
|
291
|
-
a.emit(v);
|
|
292
|
-
a.down([[COMPLETE]]);
|
|
293
|
-
},
|
|
294
|
-
(e) => {
|
|
295
|
-
if (settled) return;
|
|
296
|
-
settled = true;
|
|
297
|
-
signal?.removeEventListener("abort", onAbort);
|
|
298
|
-
a.down([[ERROR, e]]);
|
|
299
|
-
}
|
|
300
|
-
);
|
|
301
|
-
return () => {
|
|
302
|
-
settled = true;
|
|
303
|
-
signal?.removeEventListener("abort", onAbort);
|
|
304
|
-
};
|
|
305
|
-
}, sourceOpts(rest));
|
|
306
|
-
}
|
|
307
|
-
function fromAsyncIter(iterable, opts) {
|
|
308
|
-
const { signal: outerSignal, ...rest } = opts ?? {};
|
|
309
|
-
return producer((a) => {
|
|
310
|
-
const ac = new AbortController();
|
|
311
|
-
const onOuterAbort = () => ac.abort(outerSignal?.reason);
|
|
312
|
-
if (outerSignal?.aborted) {
|
|
313
|
-
ac.abort(outerSignal.reason);
|
|
314
|
-
} else {
|
|
315
|
-
outerSignal?.addEventListener("abort", onOuterAbort, { once: true });
|
|
316
|
-
}
|
|
317
|
-
const signal = outerSignal ?? ac.signal;
|
|
318
|
-
let cancelled = false;
|
|
319
|
-
const it = iterable[Symbol.asyncIterator]();
|
|
320
|
-
const pump = () => {
|
|
321
|
-
if (cancelled || signal.aborted) return;
|
|
322
|
-
void Promise.resolve(it.next()).then(
|
|
323
|
-
(step) => {
|
|
324
|
-
if (cancelled || signal.aborted) return;
|
|
325
|
-
if (step.done) {
|
|
326
|
-
a.down([[COMPLETE]]);
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
|
-
a.emit(step.value);
|
|
330
|
-
pump();
|
|
331
|
-
},
|
|
332
|
-
(e) => {
|
|
333
|
-
if (!cancelled && !signal.aborted) a.down([[ERROR, e]]);
|
|
334
|
-
}
|
|
335
|
-
);
|
|
336
|
-
};
|
|
337
|
-
pump();
|
|
338
|
-
return () => {
|
|
339
|
-
cancelled = true;
|
|
340
|
-
outerSignal?.removeEventListener("abort", onOuterAbort);
|
|
341
|
-
ac.abort();
|
|
342
|
-
void Promise.resolve(it.return?.()).catch(() => void 0);
|
|
343
|
-
};
|
|
344
|
-
}, sourceOpts(rest));
|
|
345
|
-
}
|
|
346
|
-
function isNode(x) {
|
|
347
|
-
return x != null && typeof x === "object" && "cache" in x && typeof x.subscribe === "function";
|
|
348
|
-
}
|
|
349
|
-
function fromAny(input, opts) {
|
|
350
|
-
if (isNode(input)) {
|
|
351
|
-
return input;
|
|
352
|
-
}
|
|
353
|
-
if (isThenable(input)) {
|
|
354
|
-
return fromPromise(input, opts);
|
|
355
|
-
}
|
|
356
|
-
if (input !== null && input !== void 0) {
|
|
357
|
-
const candidate = input;
|
|
358
|
-
if (typeof candidate[Symbol.asyncIterator] === "function") {
|
|
359
|
-
return fromAsyncIter(input, opts);
|
|
360
|
-
}
|
|
361
|
-
if (typeof candidate[Symbol.iterator] === "function") {
|
|
362
|
-
return fromIter(input, opts);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
return of(input);
|
|
366
|
-
}
|
|
367
|
-
function of(...values) {
|
|
368
|
-
return fromIter(values, void 0);
|
|
369
|
-
}
|
|
370
|
-
function empty(opts) {
|
|
371
|
-
return producer((a) => {
|
|
372
|
-
a.down([[COMPLETE]]);
|
|
373
|
-
return void 0;
|
|
374
|
-
}, sourceOpts(opts));
|
|
375
|
-
}
|
|
376
|
-
function never(opts) {
|
|
377
|
-
return producer(() => void 0, sourceOpts(opts));
|
|
378
|
-
}
|
|
379
|
-
function throwError(err, opts) {
|
|
380
|
-
return producer((a) => {
|
|
381
|
-
a.down([[ERROR, err]]);
|
|
382
|
-
return void 0;
|
|
383
|
-
}, sourceOpts(opts));
|
|
384
|
-
}
|
|
385
|
-
function forEach(source, fn, opts) {
|
|
386
|
-
const inner = node(
|
|
387
|
-
[source],
|
|
388
|
-
(data, _actions) => {
|
|
389
|
-
const batch0 = data[0];
|
|
390
|
-
if (batch0 != null && batch0.length > 0) {
|
|
391
|
-
for (const v of batch0) fn(v);
|
|
392
|
-
}
|
|
393
|
-
},
|
|
394
|
-
{ describeKind: "effect", ...opts }
|
|
395
|
-
);
|
|
396
|
-
return inner.subscribe(() => {
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
function toArray(source, opts) {
|
|
400
|
-
return node(
|
|
401
|
-
[source],
|
|
402
|
-
(data, actions, ctx) => {
|
|
403
|
-
if (!ctx.store.buf) ctx.store.buf = [];
|
|
404
|
-
const buf = ctx.store.buf;
|
|
405
|
-
const batch0 = data[0];
|
|
406
|
-
if (batch0 != null && batch0.length > 0) {
|
|
407
|
-
for (const v of batch0) buf.push(v);
|
|
408
|
-
}
|
|
409
|
-
if (ctx.terminalDeps[0] === true) {
|
|
410
|
-
actions.emit([...buf]);
|
|
411
|
-
actions.down([[COMPLETE]]);
|
|
412
|
-
return;
|
|
413
|
-
}
|
|
414
|
-
if (batch0 == null || batch0.length === 0) {
|
|
415
|
-
actions.down([[RESOLVED]]);
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
describeKind: "derived",
|
|
420
|
-
completeWhenDepsComplete: false,
|
|
421
|
-
...opts
|
|
422
|
-
}
|
|
423
|
-
);
|
|
424
|
-
}
|
|
425
|
-
function share(source, opts) {
|
|
426
|
-
return producer(
|
|
427
|
-
(a) => source.subscribe((msgs) => {
|
|
428
|
-
a.down(msgs);
|
|
429
|
-
}),
|
|
430
|
-
{ ...sourceOpts(opts), initial: source.cache }
|
|
431
|
-
);
|
|
432
|
-
}
|
|
433
|
-
function replay(source, bufferSize, opts) {
|
|
434
|
-
if (bufferSize < 1) throw new RangeError("replay expects bufferSize >= 1");
|
|
435
|
-
const buf = [];
|
|
436
|
-
const inner = producer(
|
|
437
|
-
(a) => source.subscribe((msgs) => {
|
|
438
|
-
for (const m of msgs) {
|
|
439
|
-
if (m[0] === DATA) {
|
|
440
|
-
buf.push(m[1]);
|
|
441
|
-
if (buf.length > bufferSize) buf.shift();
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
a.down(msgs);
|
|
445
|
-
}),
|
|
446
|
-
{ ...sourceOpts(opts), initial: source.cache }
|
|
447
|
-
);
|
|
448
|
-
return wrapSubscribeHook(inner, (sink) => {
|
|
449
|
-
for (const v of buf) {
|
|
450
|
-
sink([[DATA, v]]);
|
|
451
|
-
}
|
|
452
|
-
});
|
|
453
|
-
}
|
|
454
|
-
function cached(source, opts) {
|
|
455
|
-
return replay(source, 1, opts);
|
|
456
|
-
}
|
|
457
|
-
function firstValueFrom(source) {
|
|
458
|
-
return new Promise((resolve, reject) => {
|
|
459
|
-
let settled = false;
|
|
460
|
-
let shouldUnsub = false;
|
|
461
|
-
let unsub;
|
|
462
|
-
unsub = source.subscribe((msgs) => {
|
|
463
|
-
for (const m of msgs) {
|
|
464
|
-
if (settled) return;
|
|
465
|
-
if (m[0] === DATA) {
|
|
466
|
-
settled = true;
|
|
467
|
-
resolve(m[1]);
|
|
468
|
-
if (unsub) {
|
|
469
|
-
unsub();
|
|
470
|
-
unsub = void 0;
|
|
471
|
-
} else shouldUnsub = true;
|
|
472
|
-
return;
|
|
473
|
-
}
|
|
474
|
-
if (m[0] === ERROR) {
|
|
475
|
-
settled = true;
|
|
476
|
-
reject(m[1]);
|
|
477
|
-
if (unsub) {
|
|
478
|
-
unsub();
|
|
479
|
-
unsub = void 0;
|
|
480
|
-
} else shouldUnsub = true;
|
|
481
|
-
return;
|
|
482
|
-
}
|
|
483
|
-
if (m[0] === COMPLETE) {
|
|
484
|
-
settled = true;
|
|
485
|
-
reject(new Error("completed without DATA"));
|
|
486
|
-
if (unsub) {
|
|
487
|
-
unsub();
|
|
488
|
-
unsub = void 0;
|
|
489
|
-
} else shouldUnsub = true;
|
|
490
|
-
return;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
});
|
|
494
|
-
if (shouldUnsub) {
|
|
495
|
-
unsub?.();
|
|
496
|
-
unsub = void 0;
|
|
497
|
-
}
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
function firstWhere(source, predicate) {
|
|
501
|
-
return new Promise((resolve, reject) => {
|
|
502
|
-
let settled = false;
|
|
503
|
-
let shouldUnsub = false;
|
|
504
|
-
let unsub;
|
|
505
|
-
unsub = source.subscribe((msgs) => {
|
|
506
|
-
for (const m of msgs) {
|
|
507
|
-
if (settled) return;
|
|
508
|
-
if (m[0] === DATA) {
|
|
509
|
-
const v = m[1];
|
|
510
|
-
if (predicate(v)) {
|
|
511
|
-
settled = true;
|
|
512
|
-
resolve(v);
|
|
513
|
-
if (unsub) {
|
|
514
|
-
unsub();
|
|
515
|
-
unsub = void 0;
|
|
516
|
-
} else shouldUnsub = true;
|
|
517
|
-
return;
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
if (m[0] === ERROR) {
|
|
521
|
-
settled = true;
|
|
522
|
-
reject(m[1]);
|
|
523
|
-
if (unsub) {
|
|
524
|
-
unsub();
|
|
525
|
-
unsub = void 0;
|
|
526
|
-
} else shouldUnsub = true;
|
|
527
|
-
return;
|
|
528
|
-
}
|
|
529
|
-
if (m[0] === COMPLETE) {
|
|
530
|
-
settled = true;
|
|
531
|
-
reject(new Error("completed without matching value"));
|
|
532
|
-
if (unsub) {
|
|
533
|
-
unsub();
|
|
534
|
-
unsub = void 0;
|
|
535
|
-
} else shouldUnsub = true;
|
|
536
|
-
return;
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
});
|
|
540
|
-
if (shouldUnsub) {
|
|
541
|
-
unsub?.();
|
|
542
|
-
unsub = void 0;
|
|
543
|
-
}
|
|
544
|
-
});
|
|
545
|
-
}
|
|
546
|
-
var shareReplay = replay;
|
|
547
|
-
function keepalive(n) {
|
|
548
|
-
return n.subscribe(() => {
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
function reactiveCounter(cap) {
|
|
552
|
-
const counter = state(0);
|
|
553
|
-
return {
|
|
554
|
-
node: counter,
|
|
555
|
-
increment() {
|
|
556
|
-
const current = counter.cache ?? 0;
|
|
557
|
-
if (current >= cap) return false;
|
|
558
|
-
counter.down([[DIRTY], [DATA, current + 1]]);
|
|
559
|
-
return true;
|
|
560
|
-
},
|
|
561
|
-
get() {
|
|
562
|
-
return counter.cache ?? 0;
|
|
563
|
-
},
|
|
564
|
-
atCap() {
|
|
565
|
-
return (counter.cache ?? 0) >= cap;
|
|
566
|
-
}
|
|
567
|
-
};
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
export {
|
|
571
|
-
parseCron,
|
|
572
|
-
matchesCron,
|
|
573
|
-
escapeRegexChar,
|
|
574
|
-
globToRegExp,
|
|
575
|
-
matchesAnyPattern,
|
|
576
|
-
fromTimer,
|
|
577
|
-
fromRaf,
|
|
578
|
-
fromCron,
|
|
579
|
-
fromEvent,
|
|
580
|
-
fromIter,
|
|
581
|
-
fromPromise,
|
|
582
|
-
fromAsyncIter,
|
|
583
|
-
fromAny,
|
|
584
|
-
of,
|
|
585
|
-
empty,
|
|
586
|
-
never,
|
|
587
|
-
throwError,
|
|
588
|
-
forEach,
|
|
589
|
-
toArray,
|
|
590
|
-
share,
|
|
591
|
-
replay,
|
|
592
|
-
cached,
|
|
593
|
-
firstValueFrom,
|
|
594
|
-
firstWhere,
|
|
595
|
-
shareReplay,
|
|
596
|
-
keepalive,
|
|
597
|
-
reactiveCounter
|
|
598
|
-
};
|
|
599
|
-
//# sourceMappingURL=chunk-BVZYTZ5H.js.map
|