mutts 1.0.9 → 1.0.11
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 +60 -35
- package/dist/browser.cjs +1333 -1760
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.ts +2 -1392
- package/dist/browser.dev.cjs +114 -0
- package/dist/browser.dev.cjs.map +1 -0
- package/dist/browser.dev.d.ts +2 -0
- package/dist/browser.dev.esm.js +5 -0
- package/dist/browser.dev.esm.js.map +1 -0
- package/dist/browser.esm.js +18 -97
- package/dist/browser.esm.js.map +1 -1
- package/dist/chunks/{async-browser-lvzLOCgk.cjs → async-browser-Dgr5CreQ.cjs} +16 -95
- package/dist/chunks/async-browser-Dgr5CreQ.cjs.map +1 -0
- package/dist/chunks/{async-node-C3DeIb0y.cjs → async-node-3PrbVAbB.cjs} +3 -1
- package/dist/chunks/async-node-3PrbVAbB.cjs.map +1 -0
- package/dist/chunks/index-Sf74wXTV.esm.js +2577 -0
- package/dist/chunks/index-Sf74wXTV.esm.js.map +1 -0
- package/dist/chunks/node-Bo7WU5S2.esm.js +96 -0
- package/dist/chunks/node-Bo7WU5S2.esm.js.map +1 -0
- package/dist/chunks/{index-VTO-b2vR.cjs → proxy-Cc79Lrzj.cjs} +2593 -3216
- package/dist/chunks/proxy-Cc79Lrzj.cjs.map +1 -0
- package/dist/chunks/{index-CtA2AWl3.esm.js → proxy-D2C49sXH.esm.js} +2570 -3174
- package/dist/chunks/proxy-D2C49sXH.esm.js.map +1 -0
- package/dist/debug.cjs +987 -28
- package/dist/debug.cjs.map +1 -1
- package/dist/debug.d.ts +37 -38
- package/dist/debug.esm.js +963 -1
- package/dist/debug.esm.js.map +1 -1
- package/dist/devtools/manifest.json +1 -1
- package/dist/devtools/panel.html +1 -1
- package/dist/devtools/panel.js +107 -94
- package/dist/devtools/panel.js.map +1 -1
- package/dist/index.d.ts +1322 -1
- package/dist/mutts.umd.js +6647 -1
- package/dist/mutts.umd.js.map +1 -1
- package/dist/mutts.umd.min.js +1 -1
- package/dist/mutts.umd.min.js.map +1 -1
- package/dist/node.cjs +69 -63
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.ts +2 -2
- package/dist/node.dev.cjs +114 -0
- package/dist/node.dev.cjs.map +1 -0
- package/dist/node.dev.d.ts +2 -0
- package/dist/node.dev.esm.js +6 -0
- package/dist/node.dev.esm.js.map +1 -0
- package/dist/node.esm.js +4 -97
- package/dist/node.esm.js.map +1 -1
- package/dist/{types-DaHFfhlN.d.ts → types-Bx2PhORg.d.ts} +134 -88
- package/docs/ai/api-reference.md +11 -32
- package/docs/ai/manual.md +297 -239
- package/docs/reactive/advanced.md +318 -9
- package/docs/reactive/attend.md +2 -4
- package/docs/reactive/collections.md +22 -187
- package/docs/reactive/core.md +223 -131
- package/docs/reactive/debugging.md +119 -12
- package/docs/reactive/error-handling.md +10 -10
- package/docs/reactive/resource.md +125 -0
- package/docs/reactive.md +3 -4
- package/docs/utils.md +70 -0
- package/docs/zone.md +1 -1
- package/package.json +76 -38
- package/dist/chunks/async-browser-lvzLOCgk.cjs.map +0 -1
- package/dist/chunks/async-node-C3DeIb0y.cjs.map +0 -1
- package/dist/chunks/index-2vea86wD.esm.js +0 -3011
- package/dist/chunks/index-2vea86wD.esm.js.map +0 -1
- package/dist/chunks/index-CtA2AWl3.esm.js.map +0 -1
- package/dist/chunks/index-VTO-b2vR.cjs.map +0 -1
- package/dist/debug/debug.d.ts +0 -122
- package/dist/debug/debug.d.ts.map +0 -1
- package/dist/debug/index.d.ts +0 -4
- package/dist/debug/index.d.ts.map +0 -1
- package/dist/debug/lineage-panel.d.ts +0 -5
- package/dist/debug/lineage-panel.d.ts.map +0 -1
- package/dist/debug/lineage.d.ts +0 -79
- package/dist/debug/lineage.d.ts.map +0 -1
- package/dist/src/async/browser.d.ts +0 -2
- package/dist/src/async/browser.d.ts.map +0 -1
- package/dist/src/async/index.d.ts +0 -19
- package/dist/src/async/index.d.ts.map +0 -1
- package/dist/src/async/node.d.ts +0 -2
- package/dist/src/async/node.d.ts.map +0 -1
- package/dist/src/decorator.d.ts +0 -106
- package/dist/src/decorator.d.ts.map +0 -1
- package/dist/src/destroyable.d.ts +0 -87
- package/dist/src/destroyable.d.ts.map +0 -1
- package/dist/src/entry-browser.d.ts +0 -3
- package/dist/src/entry-browser.d.ts.map +0 -1
- package/dist/src/entry-node.d.ts +0 -3
- package/dist/src/entry-node.d.ts.map +0 -1
- package/dist/src/eventful.d.ts +0 -20
- package/dist/src/eventful.d.ts.map +0 -1
- package/dist/src/flavored.d.ts +0 -33
- package/dist/src/flavored.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -14
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/indexable.d.ts +0 -243
- package/dist/src/indexable.d.ts.map +0 -1
- package/dist/src/introspection.d.ts +0 -27
- package/dist/src/introspection.d.ts.map +0 -1
- package/dist/src/iterableWeak.d.ts +0 -53
- package/dist/src/iterableWeak.d.ts.map +0 -1
- package/dist/src/mixins.d.ts +0 -25
- package/dist/src/mixins.d.ts.map +0 -1
- package/dist/src/promiseChain.d.ts +0 -20
- package/dist/src/promiseChain.d.ts.map +0 -1
- package/dist/src/reactive/array.d.ts +0 -48
- package/dist/src/reactive/array.d.ts.map +0 -1
- package/dist/src/reactive/buffer.d.ts +0 -120
- package/dist/src/reactive/buffer.d.ts.map +0 -1
- package/dist/src/reactive/change.d.ts +0 -29
- package/dist/src/reactive/change.d.ts.map +0 -1
- package/dist/src/reactive/deep-touch.d.ts +0 -28
- package/dist/src/reactive/deep-touch.d.ts.map +0 -1
- package/dist/src/reactive/deep-watch-state.d.ts +0 -25
- package/dist/src/reactive/deep-watch-state.d.ts.map +0 -1
- package/dist/src/reactive/deep-watch.d.ts +0 -20
- package/dist/src/reactive/deep-watch.d.ts.map +0 -1
- package/dist/src/reactive/describe.d.ts +0 -12
- package/dist/src/reactive/describe.d.ts.map +0 -1
- package/dist/src/reactive/effect-context.d.ts +0 -34
- package/dist/src/reactive/effect-context.d.ts.map +0 -1
- package/dist/src/reactive/effects.d.ts +0 -164
- package/dist/src/reactive/effects.d.ts.map +0 -1
- package/dist/src/reactive/index.d.ts +0 -19
- package/dist/src/reactive/index.d.ts.map +0 -1
- package/dist/src/reactive/map.d.ts +0 -28
- package/dist/src/reactive/map.d.ts.map +0 -1
- package/dist/src/reactive/memoize.d.ts +0 -28
- package/dist/src/reactive/memoize.d.ts.map +0 -1
- package/dist/src/reactive/non-reactive-state.d.ts +0 -9
- package/dist/src/reactive/non-reactive-state.d.ts.map +0 -1
- package/dist/src/reactive/non-reactive.d.ts +0 -11
- package/dist/src/reactive/non-reactive.d.ts.map +0 -1
- package/dist/src/reactive/project.d.ts +0 -40
- package/dist/src/reactive/project.d.ts.map +0 -1
- package/dist/src/reactive/proxy-state.d.ts +0 -8
- package/dist/src/reactive/proxy-state.d.ts.map +0 -1
- package/dist/src/reactive/proxy.d.ts +0 -23
- package/dist/src/reactive/proxy.d.ts.map +0 -1
- package/dist/src/reactive/record.d.ts +0 -115
- package/dist/src/reactive/record.d.ts.map +0 -1
- package/dist/src/reactive/register.d.ts +0 -125
- package/dist/src/reactive/register.d.ts.map +0 -1
- package/dist/src/reactive/registry.d.ts +0 -21
- package/dist/src/reactive/registry.d.ts.map +0 -1
- package/dist/src/reactive/set.d.ts +0 -26
- package/dist/src/reactive/set.d.ts.map +0 -1
- package/dist/src/reactive/tracking.d.ts +0 -7
- package/dist/src/reactive/tracking.d.ts.map +0 -1
- package/dist/src/reactive/types.d.ts +0 -424
- package/dist/src/reactive/types.d.ts.map +0 -1
- package/dist/src/reactive/watch.d.ts +0 -48
- package/dist/src/reactive/watch.d.ts.map +0 -1
- package/dist/src/std-decorators.d.ts +0 -45
- package/dist/src/std-decorators.d.ts.map +0 -1
- package/dist/src/utils.d.ts +0 -49
- package/dist/src/utils.d.ts.map +0 -1
- package/dist/src/zone.d.ts +0 -40
- package/dist/src/zone.d.ts.map +0 -1
- package/docs/reactive/describe.md +0 -85
- package/docs/reactive/project.md +0 -93
- package/docs/reactive/scan.md +0 -293
- package/src/async/browser.ts +0 -323
- package/src/async/index.ts +0 -27
- package/src/async/node.ts +0 -92
- package/src/decorator.ts +0 -272
- package/src/destroyable.ts +0 -199
- package/src/entry-browser.ts +0 -5
- package/src/entry-node.ts +0 -5
- package/src/eventful.ts +0 -110
- package/src/flavored.ts +0 -106
- package/src/index.d.ts +0 -12
- package/src/index.ts +0 -64
- package/src/indexable.ts +0 -526
- package/src/introspection.ts +0 -59
- package/src/iterableWeak.ts +0 -233
- package/src/mixins.ts +0 -123
- package/src/promiseChain.ts +0 -110
- package/src/reactive/array.ts +0 -500
- package/src/reactive/buffer.ts +0 -328
- package/src/reactive/change.ts +0 -131
- package/src/reactive/deep-touch.ts +0 -273
- package/src/reactive/deep-watch-state.ts +0 -82
- package/src/reactive/deep-watch.ts +0 -171
- package/src/reactive/describe.ts +0 -39
- package/src/reactive/effect-context.ts +0 -83
- package/src/reactive/effects.ts +0 -1434
- package/src/reactive/index.ts +0 -72
- package/src/reactive/map.ts +0 -142
- package/src/reactive/memoize.ts +0 -186
- package/src/reactive/non-reactive-state.ts +0 -49
- package/src/reactive/non-reactive.ts +0 -43
- package/src/reactive/project.md +0 -107
- package/src/reactive/project.ts +0 -430
- package/src/reactive/proxy-state.ts +0 -27
- package/src/reactive/proxy.ts +0 -282
- package/src/reactive/record.ts +0 -181
- package/src/reactive/register.ts +0 -538
- package/src/reactive/registry.ts +0 -72
- package/src/reactive/set.ts +0 -117
- package/src/reactive/tracking.ts +0 -41
- package/src/reactive/types.ts +0 -520
- package/src/reactive/watch.ts +0 -180
- package/src/std-decorators.ts +0 -256
- package/src/utils.ts +0 -300
- package/src/zone.ts +0 -142
package/dist/node.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('./chunks/async-node-
|
|
3
|
+
require('./chunks/async-node-3PrbVAbB.cjs');
|
|
4
4
|
var browser = require('./browser.cjs');
|
|
5
|
-
var
|
|
5
|
+
var proxy = require('./chunks/proxy-Cc79Lrzj.cjs');
|
|
6
6
|
var asyncCore = require('./chunks/async-core-CRLKP3l-.cjs');
|
|
7
7
|
require('node:async_hooks');
|
|
8
|
-
require('./chunks/async-browser-
|
|
8
|
+
require('./chunks/async-browser-Dgr5CreQ.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -14,9 +14,9 @@ exports.Destroyable = browser.Destroyable;
|
|
|
14
14
|
exports.DestructionError = browser.DestructionError;
|
|
15
15
|
exports.Eventful = browser.Eventful;
|
|
16
16
|
exports.Indexable = browser.Indexable;
|
|
17
|
-
exports.Register = browser.Register;
|
|
18
17
|
exports.allocated = browser.allocated;
|
|
19
18
|
exports.allocatedValues = browser.allocatedValues;
|
|
19
|
+
exports.arrayDiff = browser.arrayDiff;
|
|
20
20
|
exports.attend = browser.attend;
|
|
21
21
|
exports.cache = browser.cache;
|
|
22
22
|
exports.cached = browser.cached;
|
|
@@ -25,82 +25,88 @@ exports.chainPromise = browser.chainPromise;
|
|
|
25
25
|
exports.debounce = browser.debounce;
|
|
26
26
|
exports.deepWatch = browser.deepWatch;
|
|
27
27
|
exports.deprecated = browser.deprecated;
|
|
28
|
-
exports.describe = browser.describe;
|
|
29
28
|
exports.descriptor = browser.descriptor;
|
|
30
29
|
exports.destructor = browser.destructor;
|
|
31
30
|
exports.forwardArray = browser.forwardArray;
|
|
32
|
-
exports.getActiveProjection = browser.getActiveProjection;
|
|
33
31
|
exports.getAt = browser.getAt;
|
|
34
32
|
exports.isCached = browser.isCached;
|
|
35
33
|
exports.lift = browser.lift;
|
|
36
34
|
exports.memoize = browser.memoize;
|
|
35
|
+
exports.morph = browser.morph;
|
|
37
36
|
exports.organize = browser.organize;
|
|
38
37
|
exports.organized = browser.organized;
|
|
39
38
|
exports.profileInfo = browser.profileInfo;
|
|
40
|
-
exports.project = browser.
|
|
41
|
-
exports.
|
|
42
|
-
exports.scan = browser.scan;
|
|
39
|
+
exports.project = browser.morph;
|
|
40
|
+
exports.resource = browser.resource;
|
|
43
41
|
exports.setAt = browser.setAt;
|
|
44
42
|
exports.throttle = browser.throttle;
|
|
45
43
|
exports.unreactive = browser.unreactive;
|
|
46
44
|
exports.watch = browser.watch;
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.IterableWeakMap =
|
|
51
|
-
exports.IterableWeakSet =
|
|
52
|
-
exports.ReactiveBase =
|
|
53
|
-
exports.ReactiveError =
|
|
45
|
+
exports.when = browser.when;
|
|
46
|
+
exports.AZone = proxy.AZone;
|
|
47
|
+
exports.DecoratorError = proxy.DecoratorError;
|
|
48
|
+
exports.IterableWeakMap = proxy.IterableWeakMap;
|
|
49
|
+
exports.IterableWeakSet = proxy.IterableWeakSet;
|
|
50
|
+
exports.ReactiveBase = proxy.ReactiveBase;
|
|
51
|
+
exports.ReactiveError = proxy.ReactiveError;
|
|
54
52
|
Object.defineProperty(exports, "ReactiveErrorCode", {
|
|
55
53
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
54
|
+
get: function () { return proxy.ReactiveErrorCode; }
|
|
57
55
|
});
|
|
58
|
-
exports.Zone =
|
|
59
|
-
exports.ZoneAggregator =
|
|
60
|
-
exports.ZoneHistory =
|
|
61
|
-
exports.addBatchCleanup =
|
|
62
|
-
exports.
|
|
63
|
-
exports.
|
|
64
|
-
exports.
|
|
65
|
-
exports.
|
|
66
|
-
exports.
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.
|
|
70
|
-
exports.
|
|
71
|
-
exports.
|
|
72
|
-
exports.
|
|
73
|
-
exports.
|
|
74
|
-
exports.
|
|
75
|
-
exports.
|
|
76
|
-
exports.
|
|
77
|
-
exports.
|
|
78
|
-
exports.
|
|
79
|
-
exports.
|
|
80
|
-
exports.
|
|
81
|
-
exports.
|
|
82
|
-
exports.
|
|
83
|
-
exports.
|
|
84
|
-
exports.
|
|
85
|
-
exports.
|
|
86
|
-
exports.
|
|
87
|
-
exports.
|
|
88
|
-
exports.
|
|
89
|
-
exports.
|
|
90
|
-
exports.
|
|
91
|
-
exports.
|
|
92
|
-
exports.
|
|
93
|
-
exports.
|
|
94
|
-
exports.
|
|
95
|
-
exports.
|
|
96
|
-
exports.
|
|
97
|
-
exports.
|
|
98
|
-
exports.
|
|
99
|
-
exports.
|
|
100
|
-
exports.
|
|
101
|
-
exports.
|
|
102
|
-
exports.
|
|
103
|
-
exports.
|
|
56
|
+
exports.Zone = proxy.Zone;
|
|
57
|
+
exports.ZoneAggregator = proxy.ZoneAggregator;
|
|
58
|
+
exports.ZoneHistory = proxy.ZoneHistory;
|
|
59
|
+
exports.addBatchCleanup = proxy.addBatchCleanup;
|
|
60
|
+
exports.addUnreactiveProps = proxy.addUnreactiveProps;
|
|
61
|
+
exports.arrayEquals = proxy.arrayEquals;
|
|
62
|
+
exports.assertUntracked = proxy.assertUntracked;
|
|
63
|
+
exports.asyncZone = proxy.asyncZone;
|
|
64
|
+
exports.atom = proxy.atom;
|
|
65
|
+
exports.atomic = proxy.atomic;
|
|
66
|
+
exports.biDi = proxy.biDi;
|
|
67
|
+
exports.captured = proxy.captured;
|
|
68
|
+
exports.caught = proxy.caught;
|
|
69
|
+
exports.createFlavor = proxy.createFlavor;
|
|
70
|
+
exports.debugPreset = proxy.debugPreset;
|
|
71
|
+
exports.decorator = proxy.decorator;
|
|
72
|
+
exports.deepCompare = proxy.deepCompare;
|
|
73
|
+
exports.defer = proxy.defer;
|
|
74
|
+
exports.devPreset = proxy.devPreset;
|
|
75
|
+
exports.effect = proxy.effect;
|
|
76
|
+
exports.effectAggregator = proxy.effectAggregator;
|
|
77
|
+
exports.flavorOptions = proxy.flavorOptions;
|
|
78
|
+
exports.flavored = proxy.flavored;
|
|
79
|
+
exports.formatCleanupReason = proxy.formatCleanupReason;
|
|
80
|
+
exports.getActivationLog = proxy.getActivationLog;
|
|
81
|
+
exports.getActiveEffect = proxy.getActiveEffect;
|
|
82
|
+
exports.getState = proxy.getState;
|
|
83
|
+
exports.isConstructor = proxy.isConstructor;
|
|
84
|
+
exports.isDev = proxy.isDev;
|
|
85
|
+
exports.isNonReactive = proxy.isNonReactive;
|
|
86
|
+
exports.isObject = proxy.isObject;
|
|
87
|
+
exports.isProd = proxy.isProd;
|
|
88
|
+
exports.isReactive = proxy.isReactive;
|
|
89
|
+
exports.isTest = proxy.isTest;
|
|
90
|
+
exports.legacyDecorator = proxy.legacyDecorator;
|
|
91
|
+
exports.link = proxy.link;
|
|
92
|
+
exports.mixin = proxy.mixin;
|
|
93
|
+
exports.modernDecorator = proxy.modernDecorator;
|
|
94
|
+
exports.named = proxy.named;
|
|
95
|
+
exports.objectToProxy = proxy.objectToProxy;
|
|
96
|
+
exports.onEffectThrow = proxy.onEffectThrow;
|
|
97
|
+
exports.prodPreset = proxy.prodPreset;
|
|
98
|
+
exports.proxyToObject = proxy.proxyToObject;
|
|
99
|
+
exports.reactive = proxy.reactive;
|
|
100
|
+
exports.reactiveOptions = proxy.options;
|
|
101
|
+
exports.reset = proxy.reset;
|
|
102
|
+
exports.root = proxy.root;
|
|
103
|
+
exports.tag = proxy.tag;
|
|
104
|
+
exports.touched = proxy.touched;
|
|
105
|
+
exports.touched1 = proxy.touched1;
|
|
106
|
+
exports.unlink = proxy.unlink;
|
|
107
|
+
exports.untracked = proxy.untracked;
|
|
108
|
+
exports.unwrap = proxy.unwrap;
|
|
109
|
+
exports.zip = proxy.zip;
|
|
104
110
|
exports.asyncHook = asyncCore.asyncHook;
|
|
105
111
|
exports.asyncHooks = asyncCore.asyncHooks;
|
|
106
112
|
exports.hooks = asyncCore.hooks;
|
package/dist/node.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"node.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/node.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ArrayReadForward, ContextManager, Decorator, DecoratorDescription, DecoratorError, DecoratorFactory, Destroyable, DestructionError, Eventful, EventsBase,
|
|
2
|
-
export { A as AZone,
|
|
1
|
+
export { ArrayDiffResult, ArrayReadForward, ContextManager, Decorator, DecoratorDescription, DecoratorError, DecoratorFactory, Destroyable, DestructionError, Eventful, EventsBase, GenericClassDecorator, Hook, Indexable, IterableWeakMap, IterableWeakSet, LegacyClassDecorator, LegacyPropertyDecorator, Memoizable, MemoizableArgument, MixinClass, MixinFunction, ModernAccessorDecorator, ModernClassDecorator, ModernGetterDecorator, ModernMethodDecorator, ModernSetterDecorator, PromiseChain, ReactiveBase, Resource, Restorer, addBatchCleanup, addUnreactiveProps, allocated, allocatedValues, arrayDiff, arrayEquals, assertUntracked, asyncHook, asyncHooks, atom, atomic, attend, biDi, cache, cached, callOnGC, captured, caught, chainPromise, createFlavor, debounce, decorator, deepCompare, deepWatch, defer, deprecated, descriptor, destructor, effect, effectAggregator, flavorOptions, flavored, forwardArray, getActivationLog, getActiveEffect, getAt, getState, hooks, isCached, isConstructor, isDev, isNonReactive, isObject, isProd, isTest, legacyDecorator, lift, link, memoize, mixin, modernDecorator, morph, named, onEffectThrow, organize, organized, profileInfo, morph as project, reactive, reset, resource, root, setAt, tag, throttle, touched, touched1, unlink, unreactive, untracked, watch, when, zip } from './index.js';
|
|
2
|
+
export { A as AZone, C as CleanupReason, c as EffectAccess, b as EffectCleanup, d as EffectCloser, g as EffectOptions, E as EffectTrigger, a as Evolution, G as GetterWrapper, H as HistoryValue, P as PropTrigger, R as ReactiveError, h as ReactiveErrorCode, S as ScopedCallback, i as Zone, Z as ZoneAggregator, j as ZoneHistory, k as asyncZone, l as debugPreset, m as devPreset, n as formatCleanupReason, o as isReactive, p as objectToProxy, q as prodPreset, r as proxyToObject, s as reactiveOptions, u as unwrap } from './types-Bx2PhORg.js';
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('./debug.cjs');
|
|
4
|
+
require('./chunks/async-node-3PrbVAbB.cjs');
|
|
5
|
+
var browser = require('./browser.cjs');
|
|
6
|
+
var proxy = require('./chunks/proxy-Cc79Lrzj.cjs');
|
|
7
|
+
var asyncCore = require('./chunks/async-core-CRLKP3l-.cjs');
|
|
8
|
+
require('node:async_hooks');
|
|
9
|
+
require('./chunks/async-browser-Dgr5CreQ.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.ArrayReadForward = browser.ArrayReadForward;
|
|
14
|
+
exports.Destroyable = browser.Destroyable;
|
|
15
|
+
exports.DestructionError = browser.DestructionError;
|
|
16
|
+
exports.Eventful = browser.Eventful;
|
|
17
|
+
exports.Indexable = browser.Indexable;
|
|
18
|
+
exports.allocated = browser.allocated;
|
|
19
|
+
exports.allocatedValues = browser.allocatedValues;
|
|
20
|
+
exports.arrayDiff = browser.arrayDiff;
|
|
21
|
+
exports.attend = browser.attend;
|
|
22
|
+
exports.cache = browser.cache;
|
|
23
|
+
exports.cached = browser.cached;
|
|
24
|
+
exports.callOnGC = browser.callOnGC;
|
|
25
|
+
exports.chainPromise = browser.chainPromise;
|
|
26
|
+
exports.debounce = browser.debounce;
|
|
27
|
+
exports.deepWatch = browser.deepWatch;
|
|
28
|
+
exports.deprecated = browser.deprecated;
|
|
29
|
+
exports.descriptor = browser.descriptor;
|
|
30
|
+
exports.destructor = browser.destructor;
|
|
31
|
+
exports.forwardArray = browser.forwardArray;
|
|
32
|
+
exports.getAt = browser.getAt;
|
|
33
|
+
exports.isCached = browser.isCached;
|
|
34
|
+
exports.lift = browser.lift;
|
|
35
|
+
exports.memoize = browser.memoize;
|
|
36
|
+
exports.morph = browser.morph;
|
|
37
|
+
exports.organize = browser.organize;
|
|
38
|
+
exports.organized = browser.organized;
|
|
39
|
+
exports.profileInfo = browser.profileInfo;
|
|
40
|
+
exports.project = browser.morph;
|
|
41
|
+
exports.resource = browser.resource;
|
|
42
|
+
exports.setAt = browser.setAt;
|
|
43
|
+
exports.throttle = browser.throttle;
|
|
44
|
+
exports.unreactive = browser.unreactive;
|
|
45
|
+
exports.watch = browser.watch;
|
|
46
|
+
exports.when = browser.when;
|
|
47
|
+
exports.AZone = proxy.AZone;
|
|
48
|
+
exports.DecoratorError = proxy.DecoratorError;
|
|
49
|
+
exports.IterableWeakMap = proxy.IterableWeakMap;
|
|
50
|
+
exports.IterableWeakSet = proxy.IterableWeakSet;
|
|
51
|
+
exports.ReactiveBase = proxy.ReactiveBase;
|
|
52
|
+
exports.ReactiveError = proxy.ReactiveError;
|
|
53
|
+
Object.defineProperty(exports, "ReactiveErrorCode", {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: function () { return proxy.ReactiveErrorCode; }
|
|
56
|
+
});
|
|
57
|
+
exports.Zone = proxy.Zone;
|
|
58
|
+
exports.ZoneAggregator = proxy.ZoneAggregator;
|
|
59
|
+
exports.ZoneHistory = proxy.ZoneHistory;
|
|
60
|
+
exports.addBatchCleanup = proxy.addBatchCleanup;
|
|
61
|
+
exports.addUnreactiveProps = proxy.addUnreactiveProps;
|
|
62
|
+
exports.arrayEquals = proxy.arrayEquals;
|
|
63
|
+
exports.assertUntracked = proxy.assertUntracked;
|
|
64
|
+
exports.asyncZone = proxy.asyncZone;
|
|
65
|
+
exports.atom = proxy.atom;
|
|
66
|
+
exports.atomic = proxy.atomic;
|
|
67
|
+
exports.biDi = proxy.biDi;
|
|
68
|
+
exports.captured = proxy.captured;
|
|
69
|
+
exports.caught = proxy.caught;
|
|
70
|
+
exports.createFlavor = proxy.createFlavor;
|
|
71
|
+
exports.debugPreset = proxy.debugPreset;
|
|
72
|
+
exports.decorator = proxy.decorator;
|
|
73
|
+
exports.deepCompare = proxy.deepCompare;
|
|
74
|
+
exports.defer = proxy.defer;
|
|
75
|
+
exports.devPreset = proxy.devPreset;
|
|
76
|
+
exports.effect = proxy.effect;
|
|
77
|
+
exports.effectAggregator = proxy.effectAggregator;
|
|
78
|
+
exports.flavorOptions = proxy.flavorOptions;
|
|
79
|
+
exports.flavored = proxy.flavored;
|
|
80
|
+
exports.formatCleanupReason = proxy.formatCleanupReason;
|
|
81
|
+
exports.getActivationLog = proxy.getActivationLog;
|
|
82
|
+
exports.getActiveEffect = proxy.getActiveEffect;
|
|
83
|
+
exports.getState = proxy.getState;
|
|
84
|
+
exports.isConstructor = proxy.isConstructor;
|
|
85
|
+
exports.isDev = proxy.isDev;
|
|
86
|
+
exports.isNonReactive = proxy.isNonReactive;
|
|
87
|
+
exports.isObject = proxy.isObject;
|
|
88
|
+
exports.isProd = proxy.isProd;
|
|
89
|
+
exports.isReactive = proxy.isReactive;
|
|
90
|
+
exports.isTest = proxy.isTest;
|
|
91
|
+
exports.legacyDecorator = proxy.legacyDecorator;
|
|
92
|
+
exports.link = proxy.link;
|
|
93
|
+
exports.mixin = proxy.mixin;
|
|
94
|
+
exports.modernDecorator = proxy.modernDecorator;
|
|
95
|
+
exports.named = proxy.named;
|
|
96
|
+
exports.objectToProxy = proxy.objectToProxy;
|
|
97
|
+
exports.onEffectThrow = proxy.onEffectThrow;
|
|
98
|
+
exports.prodPreset = proxy.prodPreset;
|
|
99
|
+
exports.proxyToObject = proxy.proxyToObject;
|
|
100
|
+
exports.reactive = proxy.reactive;
|
|
101
|
+
exports.reactiveOptions = proxy.options;
|
|
102
|
+
exports.reset = proxy.reset;
|
|
103
|
+
exports.root = proxy.root;
|
|
104
|
+
exports.tag = proxy.tag;
|
|
105
|
+
exports.touched = proxy.touched;
|
|
106
|
+
exports.touched1 = proxy.touched1;
|
|
107
|
+
exports.unlink = proxy.unlink;
|
|
108
|
+
exports.untracked = proxy.untracked;
|
|
109
|
+
exports.unwrap = proxy.unwrap;
|
|
110
|
+
exports.zip = proxy.zip;
|
|
111
|
+
exports.asyncHook = asyncCore.asyncHook;
|
|
112
|
+
exports.asyncHooks = asyncCore.asyncHooks;
|
|
113
|
+
exports.hooks = asyncCore.hooks;
|
|
114
|
+
//# sourceMappingURL=node.dev.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.dev.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { A as AZone, C as CleanupReason, c as EffectAccess, b as EffectCleanup, d as EffectCloser, g as EffectOptions, E as EffectTrigger, a as Evolution, G as GetterWrapper, H as HistoryValue, P as PropTrigger, R as ReactiveError, h as ReactiveErrorCode, S as ScopedCallback, i as Zone, Z as ZoneAggregator, j as ZoneHistory, k as asyncZone, l as debugPreset, m as devPreset, n as formatCleanupReason, o as isReactive, p as objectToProxy, q as prodPreset, r as proxyToObject, s as reactiveOptions, u as unwrap } from './types-Bx2PhORg.js';
|
|
2
|
+
export { ArrayDiffResult, ArrayReadForward, ContextManager, Decorator, DecoratorDescription, DecoratorError, DecoratorFactory, Destroyable, DestructionError, Eventful, EventsBase, GenericClassDecorator, Hook, Indexable, IterableWeakMap, IterableWeakSet, LegacyClassDecorator, LegacyPropertyDecorator, Memoizable, MemoizableArgument, MixinClass, MixinFunction, ModernAccessorDecorator, ModernClassDecorator, ModernGetterDecorator, ModernMethodDecorator, ModernSetterDecorator, PromiseChain, ReactiveBase, Resource, Restorer, addBatchCleanup, addUnreactiveProps, allocated, allocatedValues, arrayDiff, arrayEquals, assertUntracked, asyncHook, asyncHooks, atom, atomic, attend, biDi, cache, cached, callOnGC, captured, caught, chainPromise, createFlavor, debounce, decorator, deepCompare, deepWatch, defer, deprecated, descriptor, destructor, effect, effectAggregator, flavorOptions, flavored, forwardArray, getActivationLog, getActiveEffect, getAt, getState, hooks, isCached, isConstructor, isDev, isNonReactive, isObject, isProd, isTest, legacyDecorator, lift, link, memoize, mixin, modernDecorator, morph, named, onEffectThrow, organize, organized, profileInfo, morph as project, reactive, reset, resource, root, setAt, tag, throttle, touched, touched1, unlink, unreactive, untracked, watch, when, zip } from './index.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './debug.esm.js';
|
|
2
|
+
import './chunks/node-Bo7WU5S2.esm.js';
|
|
3
|
+
export { A as ArrayReadForward, D as Destroyable, a as DestructionError, E as Eventful, I as Indexable, b as allocated, c as allocatedValues, d as arrayDiff, e as attend, f as cache, g as cached, h as callOnGC, i as chainPromise, j as debounce, k as deepWatch, l as deprecated, m as descriptor, n as destructor, o as forwardArray, p as getAt, q as isCached, r as lift, s as memoize, t as morph, u as organize, v as organized, w as profileInfo, t as project, x as resource, y as setAt, z as throttle, B as unreactive, C as watch, F as when } from './chunks/index-Sf74wXTV.esm.js';
|
|
4
|
+
export { A as AZone, D as DecoratorError, I as IterableWeakMap, a as IterableWeakSet, R as ReactiveBase, b as ReactiveError, c as ReactiveErrorCode, Z as Zone, d as ZoneAggregator, e as ZoneHistory, f as addBatchCleanup, g as addUnreactiveProps, h as arrayEquals, i as assertUntracked, j as asyncHook, k as asyncHooks, l as asyncZone, m as atom, n as atomic, o as biDi, p as captured, q as caught, r as createFlavor, s as debugPreset, t as decorator, u as deepCompare, v as defer, w as devPreset, x as effect, y as effectAggregator, z as flavorOptions, B as flavored, C as formatCleanupReason, E as getActivationLog, F as getActiveEffect, G as getState, H as hooks, J as isConstructor, K as isDev, L as isNonReactive, M as isObject, N as isProd, O as isReactive, P as isTest, Q as legacyDecorator, S as link, T as mixin, U as modernDecorator, V as named, W as objectToProxy, X as onEffectThrow, Y as prodPreset, _ as proxyToObject, $ as reactive, a0 as reactiveOptions, a1 as reset, a2 as root, a3 as tag, a4 as touched, a5 as touched1, a6 as unlink, a7 as untracked, a8 as unwrap, a9 as zip } from './chunks/proxy-D2C49sXH.esm.js';
|
|
5
|
+
import 'node:async_hooks';
|
|
6
|
+
//# sourceMappingURL=node.dev.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.dev.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/node.esm.js
CHANGED
|
@@ -1,98 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export { A as AZone, D as DecoratorError,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// 1. Generic async_hooks implementation for Hooks
|
|
7
|
-
// This maintains support for 'asyncHooks.addHook' for generic use cases.
|
|
8
|
-
const contexts = new Map();
|
|
9
|
-
const activeUndoers = new Map();
|
|
10
|
-
// Helper to capture current hooks state
|
|
11
|
-
function captureRestorers() {
|
|
12
|
-
if (hooks.size === 0)
|
|
13
|
-
return [];
|
|
14
|
-
const restorers = [];
|
|
15
|
-
for (const h of hooks) {
|
|
16
|
-
const r = h();
|
|
17
|
-
if (r)
|
|
18
|
-
restorers.push(r);
|
|
19
|
-
}
|
|
20
|
-
return restorers;
|
|
21
|
-
}
|
|
22
|
-
// Manual Wrap function to handle Promise callbacks
|
|
23
|
-
function wrap(fn) {
|
|
24
|
-
if (typeof fn !== 'function')
|
|
25
|
-
return fn;
|
|
26
|
-
const restorers = captureRestorers();
|
|
27
|
-
if (restorers.length === 0)
|
|
28
|
-
return fn;
|
|
29
|
-
return function (...args) {
|
|
30
|
-
const undoers = [];
|
|
31
|
-
for (const restore of restorers) {
|
|
32
|
-
const u = restore();
|
|
33
|
-
if (u)
|
|
34
|
-
undoers.push(u);
|
|
35
|
-
}
|
|
36
|
-
try {
|
|
37
|
-
return fn.apply(this, args);
|
|
38
|
-
}
|
|
39
|
-
finally {
|
|
40
|
-
for (let i = undoers.length - 1; i >= 0; i--)
|
|
41
|
-
undoers[i]();
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
const hook = createHook({
|
|
46
|
-
init(asyncId, _type, _triggerId, _resource) {
|
|
47
|
-
// Used for native resources like Timers
|
|
48
|
-
const restorers = captureRestorers();
|
|
49
|
-
if (restorers.length > 0)
|
|
50
|
-
contexts.set(asyncId, restorers);
|
|
51
|
-
},
|
|
52
|
-
before(asyncId) {
|
|
53
|
-
const restorers = contexts.get(asyncId);
|
|
54
|
-
if (!restorers)
|
|
55
|
-
return;
|
|
56
|
-
const undoers = [];
|
|
57
|
-
for (const restore of restorers) {
|
|
58
|
-
const u = restore();
|
|
59
|
-
if (u)
|
|
60
|
-
undoers.push(u);
|
|
61
|
-
}
|
|
62
|
-
if (undoers.length > 0)
|
|
63
|
-
activeUndoers.set(asyncId, undoers);
|
|
64
|
-
},
|
|
65
|
-
after(asyncId) {
|
|
66
|
-
const undoers = activeUndoers.get(asyncId);
|
|
67
|
-
if (!undoers)
|
|
68
|
-
return;
|
|
69
|
-
for (let i = undoers.length - 1; i >= 0; i--)
|
|
70
|
-
undoers[i]();
|
|
71
|
-
activeUndoers.delete(asyncId);
|
|
72
|
-
},
|
|
73
|
-
destroy(asyncId) {
|
|
74
|
-
contexts.delete(asyncId);
|
|
75
|
-
activeUndoers.delete(asyncId);
|
|
76
|
-
},
|
|
77
|
-
});
|
|
78
|
-
hook.enable();
|
|
79
|
-
// 2. Shadow Promise Implementation
|
|
80
|
-
// Ensures V8 await resumptions are visible as .then callbacks, wrapping them to restore context.
|
|
81
|
-
const OriginalPromise = globalThis.Promise;
|
|
82
|
-
const originalMethods = {
|
|
83
|
-
then: OriginalPromise.prototype.then,
|
|
84
|
-
catch: OriginalPromise.prototype.catch,
|
|
85
|
-
finally: OriginalPromise.prototype.finally};
|
|
86
|
-
// Patch prototype
|
|
87
|
-
OriginalPromise.prototype.then = function (onFulfilled, onRejected) {
|
|
88
|
-
return originalMethods.then.call(this, wrap(onFulfilled), wrap(onRejected));
|
|
89
|
-
};
|
|
90
|
-
OriginalPromise.prototype.catch = function (onRejected) {
|
|
91
|
-
return originalMethods.catch.call(this, wrap(onRejected));
|
|
92
|
-
};
|
|
93
|
-
OriginalPromise.prototype.finally = function (onFinally) {
|
|
94
|
-
return originalMethods.finally.call(this, wrap(onFinally));
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
export { hooks };
|
|
1
|
+
import './chunks/node-Bo7WU5S2.esm.js';
|
|
2
|
+
export { A as ArrayReadForward, D as Destroyable, a as DestructionError, E as Eventful, I as Indexable, b as allocated, c as allocatedValues, d as arrayDiff, e as attend, f as cache, g as cached, h as callOnGC, i as chainPromise, j as debounce, k as deepWatch, l as deprecated, m as descriptor, n as destructor, o as forwardArray, p as getAt, q as isCached, r as lift, s as memoize, t as morph, u as organize, v as organized, w as profileInfo, t as project, x as resource, y as setAt, z as throttle, B as unreactive, C as watch, F as when } from './chunks/index-Sf74wXTV.esm.js';
|
|
3
|
+
export { A as AZone, D as DecoratorError, I as IterableWeakMap, a as IterableWeakSet, R as ReactiveBase, b as ReactiveError, c as ReactiveErrorCode, Z as Zone, d as ZoneAggregator, e as ZoneHistory, f as addBatchCleanup, g as addUnreactiveProps, h as arrayEquals, i as assertUntracked, j as asyncHook, k as asyncHooks, l as asyncZone, m as atom, n as atomic, o as biDi, p as captured, q as caught, r as createFlavor, s as debugPreset, t as decorator, u as deepCompare, v as defer, w as devPreset, x as effect, y as effectAggregator, z as flavorOptions, B as flavored, C as formatCleanupReason, E as getActivationLog, F as getActiveEffect, G as getState, H as hooks, J as isConstructor, K as isDev, L as isNonReactive, M as isObject, N as isProd, O as isReactive, P as isTest, Q as legacyDecorator, S as link, T as mixin, U as modernDecorator, V as named, W as objectToProxy, X as onEffectThrow, Y as prodPreset, _ as proxyToObject, $ as reactive, a0 as reactiveOptions, a1 as reset, a2 as root, a3 as tag, a4 as touched, a5 as touched1, a6 as unlink, a7 as untracked, a8 as unwrap, a9 as zip } from './chunks/proxy-D2C49sXH.esm.js';
|
|
4
|
+
import 'node:async_hooks';
|
|
98
5
|
//# sourceMappingURL=node.esm.js.map
|
package/dist/node.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.esm.js","sources":[
|
|
1
|
+
{"version":3,"file":"node.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|