mutts 1.0.8 → 1.0.10
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 +77 -35
- package/dist/browser.cjs +2144 -5355
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.ts +2 -1655
- package/dist/browser.dev.cjs +110 -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 +20 -107
- package/dist/browser.esm.js.map +1 -1
- package/dist/chunks/{async-browser-CA0jPWIi.cjs → async-browser-BU_IfxYD.cjs} +19 -107
- package/dist/chunks/async-browser-BU_IfxYD.cjs.map +1 -0
- package/dist/chunks/{async-core-UqHzvJ-S.cjs → async-core-CRLKP3l-.cjs} +8 -4
- package/dist/chunks/async-core-CRLKP3l-.cjs.map +1 -0
- package/dist/chunks/{async-node-BYHuGTni.cjs → async-node-3PrbVAbB.cjs} +7 -12
- package/dist/chunks/async-node-3PrbVAbB.cjs.map +1 -0
- package/dist/chunks/index-CaaQQlPJ.esm.js +3174 -0
- package/dist/chunks/index-CaaQQlPJ.esm.js.map +1 -0
- package/dist/chunks/node-nKJBk8iJ.esm.js +96 -0
- package/dist/chunks/node-nKJBk8iJ.esm.js.map +1 -0
- package/dist/chunks/proxy-Dtg-bJ3T.cjs +3763 -0
- package/dist/chunks/proxy-Dtg-bJ3T.cjs.map +1 -0
- package/dist/chunks/proxy-r7lARftl.esm.js +3701 -0
- package/dist/chunks/proxy-r7lARftl.esm.js.map +1 -0
- package/dist/debug.cjs +980 -0
- package/dist/debug.cjs.map +1 -0
- package/dist/debug.d.ts +208 -0
- package/dist/debug.esm.js +950 -0
- package/dist/debug.esm.js.map +1 -0
- 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 +1447 -13
- package/dist/mutts.umd.js +7167 -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 +70 -66
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.ts +2 -1
- package/dist/node.dev.cjs +110 -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 -103
- package/dist/node.esm.js.map +1 -1
- package/dist/{reactive/types.d.ts → types-W5vD6m2n.d.ts} +186 -93
- package/docs/ai/api-reference.md +12 -19
- package/docs/ai/manual.md +521 -17
- package/docs/events.md +57 -2
- package/docs/flavored.md +210 -0
- package/docs/reactive/advanced.md +314 -5
- package/docs/reactive/attend.md +142 -0
- package/docs/reactive/collections.md +76 -39
- package/docs/reactive/core.md +100 -14
- package/docs/reactive/debugging.md +123 -18
- package/docs/reactive/error-handling.md +121 -0
- package/docs/reactive/resource.md +125 -0
- package/docs/reactive/scan.md +247 -1
- package/docs/reactive.md +4 -1
- package/docs/std-decorators.md +102 -51
- package/docs/utils.md +70 -0
- package/docs/zone.md +3 -7
- package/package.json +64 -30
- package/dist/async/browser.d.ts +0 -2
- package/dist/async/browser.d.ts.map +0 -1
- package/dist/async/index.d.ts +0 -18
- package/dist/async/index.d.ts.map +0 -1
- package/dist/async/node.d.ts +0 -2
- package/dist/async/node.d.ts.map +0 -1
- package/dist/chunks/async-browser-CA0jPWIi.cjs.map +0 -1
- package/dist/chunks/async-core-UqHzvJ-S.cjs.map +0 -1
- package/dist/chunks/async-node-BYHuGTni.cjs.map +0 -1
- package/dist/chunks/index-DhaOVusv.esm.js +0 -6411
- package/dist/chunks/index-DhaOVusv.esm.js.map +0 -1
- package/dist/decorator.d.ts +0 -106
- package/dist/decorator.d.ts.map +0 -1
- package/dist/destroyable.d.ts +0 -87
- package/dist/destroyable.d.ts.map +0 -1
- package/dist/entry-browser.d.ts +0 -3
- package/dist/entry-browser.d.ts.map +0 -1
- package/dist/entry-node.d.ts +0 -3
- package/dist/entry-node.d.ts.map +0 -1
- package/dist/eventful.d.ts +0 -18
- package/dist/eventful.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/indexable.d.ts +0 -243
- package/dist/indexable.d.ts.map +0 -1
- package/dist/introspection.d.ts +0 -27
- package/dist/introspection.d.ts.map +0 -1
- package/dist/iterableWeak.d.ts +0 -53
- package/dist/iterableWeak.d.ts.map +0 -1
- package/dist/mixins.d.ts +0 -25
- package/dist/mixins.d.ts.map +0 -1
- package/dist/promiseChain.d.ts +0 -20
- package/dist/promiseChain.d.ts.map +0 -1
- package/dist/reactive/array.d.ts +0 -49
- package/dist/reactive/array.d.ts.map +0 -1
- package/dist/reactive/buffer.d.ts +0 -44
- package/dist/reactive/buffer.d.ts.map +0 -1
- package/dist/reactive/change.d.ts +0 -29
- package/dist/reactive/change.d.ts.map +0 -1
- package/dist/reactive/debug.d.ts +0 -111
- package/dist/reactive/debug.d.ts.map +0 -1
- package/dist/reactive/deep-touch.d.ts +0 -28
- package/dist/reactive/deep-touch.d.ts.map +0 -1
- package/dist/reactive/deep-watch-state.d.ts +0 -25
- package/dist/reactive/deep-watch-state.d.ts.map +0 -1
- package/dist/reactive/deep-watch.d.ts +0 -19
- package/dist/reactive/deep-watch.d.ts.map +0 -1
- package/dist/reactive/effect-context.d.ts +0 -7
- package/dist/reactive/effect-context.d.ts.map +0 -1
- package/dist/reactive/effects.d.ts +0 -151
- package/dist/reactive/effects.d.ts.map +0 -1
- package/dist/reactive/index.d.ts +0 -20
- package/dist/reactive/index.d.ts.map +0 -1
- package/dist/reactive/interface.d.ts +0 -64
- package/dist/reactive/interface.d.ts.map +0 -1
- package/dist/reactive/map.d.ts +0 -30
- package/dist/reactive/map.d.ts.map +0 -1
- package/dist/reactive/memoize.d.ts +0 -5
- package/dist/reactive/memoize.d.ts.map +0 -1
- package/dist/reactive/non-reactive-state.d.ts +0 -9
- package/dist/reactive/non-reactive-state.d.ts.map +0 -1
- package/dist/reactive/non-reactive.d.ts +0 -11
- package/dist/reactive/non-reactive.d.ts.map +0 -1
- package/dist/reactive/project.d.ts +0 -41
- package/dist/reactive/project.d.ts.map +0 -1
- package/dist/reactive/proxy-state.d.ts +0 -8
- package/dist/reactive/proxy-state.d.ts.map +0 -1
- package/dist/reactive/proxy.d.ts +0 -23
- package/dist/reactive/proxy.d.ts.map +0 -1
- package/dist/reactive/record.d.ts +0 -116
- package/dist/reactive/record.d.ts.map +0 -1
- package/dist/reactive/register.d.ts +0 -64
- package/dist/reactive/register.d.ts.map +0 -1
- package/dist/reactive/registry.d.ts +0 -20
- package/dist/reactive/registry.d.ts.map +0 -1
- package/dist/reactive/set.d.ts +0 -28
- package/dist/reactive/set.d.ts.map +0 -1
- package/dist/reactive/tracking.d.ts +0 -7
- package/dist/reactive/tracking.d.ts.map +0 -1
- package/dist/reactive/types.d.ts.map +0 -1
- package/dist/std-decorators.d.ts +0 -50
- package/dist/std-decorators.d.ts.map +0 -1
- package/dist/utils.d.ts +0 -49
- package/dist/utils.d.ts.map +0 -1
- package/dist/zone.d.ts +0 -40
- package/dist/zone.d.ts.map +0 -1
- package/docs/reactive/project.md +0 -93
- package/src/async/browser.ts +0 -319
- package/src/async/index.ts +0 -23
- package/src/async/node.ts +0 -104
- 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 -77
- 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 -507
- package/src/reactive/buffer.ts +0 -168
- package/src/reactive/change.ts +0 -138
- package/src/reactive/debug.ts +0 -517
- package/src/reactive/deep-touch.ts +0 -268
- package/src/reactive/deep-watch-state.ts +0 -82
- package/src/reactive/deep-watch.ts +0 -168
- package/src/reactive/effect-context.ts +0 -18
- package/src/reactive/effects.ts +0 -1382
- package/src/reactive/index.ts +0 -75
- package/src/reactive/interface.ts +0 -210
- package/src/reactive/map.ts +0 -158
- package/src/reactive/memoize.ts +0 -163
- package/src/reactive/non-reactive-state.ts +0 -49
- package/src/reactive/non-reactive.ts +0 -43
- package/src/reactive/project.ts +0 -453
- package/src/reactive/proxy-state.ts +0 -27
- package/src/reactive/proxy.ts +0 -264
- package/src/reactive/record.ts +0 -196
- package/src/reactive/register.ts +0 -419
- package/src/reactive/registry.ts +0 -59
- package/src/reactive/set.ts +0 -130
- package/src/reactive/tracking.ts +0 -44
- package/src/reactive/types.ts +0 -440
- package/src/std-decorators.ts +0 -217
- package/src/utils.ts +0 -301
- package/src/zone.ts +0 -138
package/dist/node.cjs
CHANGED
|
@@ -1,105 +1,109 @@
|
|
|
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-Dtg-bJ3T.cjs');
|
|
6
|
+
var asyncCore = require('./chunks/async-core-CRLKP3l-.cjs');
|
|
6
7
|
require('node:async_hooks');
|
|
7
|
-
require('./chunks/async-browser-
|
|
8
|
+
require('./chunks/async-browser-BU_IfxYD.cjs');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
|
-
exports.AZone = browser.AZone;
|
|
12
12
|
exports.ArrayReadForward = browser.ArrayReadForward;
|
|
13
|
-
exports.DecoratorError = browser.DecoratorError;
|
|
14
13
|
exports.Destroyable = browser.Destroyable;
|
|
15
14
|
exports.DestructionError = browser.DestructionError;
|
|
16
15
|
exports.Eventful = browser.Eventful;
|
|
17
|
-
exports.FoolProof = browser.FoolProof;
|
|
18
16
|
exports.Indexable = browser.Indexable;
|
|
19
|
-
exports.IterableWeakMap = browser.IterableWeakMap;
|
|
20
|
-
exports.IterableWeakSet = browser.IterableWeakSet;
|
|
21
|
-
exports.ReactiveBase = browser.ReactiveBase;
|
|
22
|
-
exports.ReactiveError = browser.ReactiveError;
|
|
23
|
-
Object.defineProperty(exports, "ReactiveErrorCode", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return browser.ReactiveErrorCode; }
|
|
26
|
-
});
|
|
27
17
|
exports.Register = browser.Register;
|
|
28
|
-
exports.Zone = browser.Zone;
|
|
29
|
-
exports.ZoneAggregator = browser.ZoneAggregator;
|
|
30
|
-
exports.ZoneHistory = browser.ZoneHistory;
|
|
31
|
-
exports.addBatchCleanup = browser.addBatchCleanup;
|
|
32
18
|
exports.allocated = browser.allocated;
|
|
33
19
|
exports.allocatedValues = browser.allocatedValues;
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.atomic = browser.atomic;
|
|
37
|
-
exports.biDi = browser.biDi;
|
|
38
|
-
exports.buildReactivityGraph = browser.buildReactivityGraph;
|
|
20
|
+
exports.arrayDiff = browser.arrayDiff;
|
|
21
|
+
exports.attend = browser.attend;
|
|
39
22
|
exports.cache = browser.cache;
|
|
40
23
|
exports.cached = browser.cached;
|
|
41
24
|
exports.callOnGC = browser.callOnGC;
|
|
42
25
|
exports.chainPromise = browser.chainPromise;
|
|
43
|
-
exports.cleanedBy = browser.cleanedBy;
|
|
44
|
-
exports.cleanup = browser.cleanup;
|
|
45
|
-
exports.contentRef = browser.contentRef;
|
|
46
26
|
exports.debounce = browser.debounce;
|
|
47
|
-
exports.decorator = browser.decorator;
|
|
48
|
-
exports.deepCompare = browser.deepCompare;
|
|
49
27
|
exports.deepWatch = browser.deepWatch;
|
|
50
|
-
exports.defer = browser.defer;
|
|
51
28
|
exports.deprecated = browser.deprecated;
|
|
52
|
-
exports.
|
|
53
|
-
exports.describe = browser.describe;
|
|
29
|
+
exports.descriptor = browser.descriptor;
|
|
54
30
|
exports.destructor = browser.destructor;
|
|
55
|
-
exports.effect = browser.effect;
|
|
56
|
-
exports.effectAggregator = browser.effectAggregator;
|
|
57
|
-
exports.enableDevTools = browser.enableDevTools;
|
|
58
31
|
exports.forwardArray = browser.forwardArray;
|
|
59
|
-
exports.getActivationLog = browser.getActivationLog;
|
|
60
|
-
exports.getActiveEffect = browser.getActiveEffect;
|
|
61
|
-
exports.getActiveProjection = browser.getActiveProjection;
|
|
62
32
|
exports.getAt = browser.getAt;
|
|
63
|
-
exports.getState = browser.getState;
|
|
64
|
-
exports.immutables = browser.immutables;
|
|
65
33
|
exports.isCached = browser.isCached;
|
|
66
|
-
exports.
|
|
67
|
-
exports.isDevtoolsEnabled = browser.isDevtoolsEnabled;
|
|
68
|
-
exports.isNonReactive = browser.isNonReactive;
|
|
69
|
-
exports.isOwnAccessor = browser.isOwnAccessor;
|
|
70
|
-
exports.isReactive = browser.isReactive;
|
|
71
|
-
exports.legacyDecorator = browser.legacyDecorator;
|
|
34
|
+
exports.lift = browser.lift;
|
|
72
35
|
exports.memoize = browser.memoize;
|
|
73
|
-
exports.
|
|
74
|
-
exports.modernDecorator = browser.modernDecorator;
|
|
75
|
-
exports.named = browser.named;
|
|
36
|
+
exports.morph = browser.morph;
|
|
76
37
|
exports.organize = browser.organize;
|
|
77
38
|
exports.organized = browser.organized;
|
|
78
39
|
exports.profileInfo = browser.profileInfo;
|
|
79
|
-
exports.project = browser.
|
|
80
|
-
exports.reactive = browser.reactive;
|
|
81
|
-
exports.reactiveOptions = browser.reactiveOptions;
|
|
40
|
+
exports.project = browser.morph;
|
|
82
41
|
exports.register = browser.register;
|
|
83
|
-
exports.
|
|
84
|
-
exports.registerNativeReactivity = browser.registerNativeReactivity;
|
|
85
|
-
exports.registerObjectForDebug = browser.registerObjectForDebug;
|
|
86
|
-
exports.renamed = browser.renamed;
|
|
87
|
-
exports.resolve = browser.resolve;
|
|
88
|
-
exports.root = browser.root;
|
|
42
|
+
exports.resource = browser.resource;
|
|
89
43
|
exports.scan = browser.scan;
|
|
90
44
|
exports.setAt = browser.setAt;
|
|
91
|
-
exports.setEffectName = browser.setEffectName;
|
|
92
|
-
exports.setObjectName = browser.setObjectName;
|
|
93
|
-
exports.tag = browser.tag;
|
|
94
45
|
exports.throttle = browser.throttle;
|
|
95
|
-
exports.touched = browser.touched;
|
|
96
|
-
exports.touched1 = browser.touched1;
|
|
97
|
-
exports.trackEffect = browser.trackEffect;
|
|
98
46
|
exports.unreactive = browser.unreactive;
|
|
99
|
-
exports.untracked = browser.untracked;
|
|
100
|
-
exports.unwrap = browser.unwrap;
|
|
101
47
|
exports.watch = browser.watch;
|
|
102
|
-
exports.
|
|
48
|
+
exports.when = browser.when;
|
|
49
|
+
exports.AZone = proxy.AZone;
|
|
50
|
+
exports.DecoratorError = proxy.DecoratorError;
|
|
51
|
+
exports.IterableWeakMap = proxy.IterableWeakMap;
|
|
52
|
+
exports.IterableWeakSet = proxy.IterableWeakSet;
|
|
53
|
+
exports.ReactiveBase = proxy.ReactiveBase;
|
|
54
|
+
exports.ReactiveError = proxy.ReactiveError;
|
|
55
|
+
Object.defineProperty(exports, "ReactiveErrorCode", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () { return proxy.ReactiveErrorCode; }
|
|
58
|
+
});
|
|
59
|
+
exports.Zone = proxy.Zone;
|
|
60
|
+
exports.ZoneAggregator = proxy.ZoneAggregator;
|
|
61
|
+
exports.ZoneHistory = proxy.ZoneHistory;
|
|
62
|
+
exports.addBatchCleanup = proxy.addBatchCleanup;
|
|
63
|
+
exports.arrayEquals = proxy.arrayEquals;
|
|
64
|
+
exports.asyncZone = proxy.asyncZone;
|
|
65
|
+
exports.atom = proxy.atom;
|
|
66
|
+
exports.atomic = proxy.atomic;
|
|
67
|
+
exports.biDi = proxy.biDi;
|
|
68
|
+
exports.caught = proxy.caught;
|
|
69
|
+
exports.cleanedBy = proxy.cleanedBy;
|
|
70
|
+
exports.cleanup = proxy.cleanup;
|
|
71
|
+
exports.createFlavor = proxy.createFlavor;
|
|
72
|
+
exports.decorator = proxy.decorator;
|
|
73
|
+
exports.deepCompare = proxy.deepCompare;
|
|
74
|
+
exports.defer = proxy.defer;
|
|
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.immutables = proxy.immutables;
|
|
84
|
+
exports.isConstructor = proxy.isConstructor;
|
|
85
|
+
exports.isNonReactive = proxy.isNonReactive;
|
|
86
|
+
exports.isObject = proxy.isObject;
|
|
87
|
+
exports.isReactive = proxy.isReactive;
|
|
88
|
+
exports.legacyDecorator = proxy.legacyDecorator;
|
|
89
|
+
exports.mixin = proxy.mixin;
|
|
90
|
+
exports.modernDecorator = proxy.modernDecorator;
|
|
91
|
+
exports.named = proxy.named;
|
|
92
|
+
exports.objectToProxy = proxy.objectToProxy;
|
|
93
|
+
exports.onEffectThrow = proxy.onEffectThrow;
|
|
94
|
+
exports.proxyToObject = proxy.proxyToObject;
|
|
95
|
+
exports.reactive = proxy.reactive;
|
|
96
|
+
exports.reactiveOptions = proxy.options;
|
|
97
|
+
exports.reset = proxy.reset;
|
|
98
|
+
exports.root = proxy.root;
|
|
99
|
+
exports.stopped = proxy.stopped;
|
|
100
|
+
exports.tag = proxy.tag;
|
|
101
|
+
exports.touched = proxy.touched;
|
|
102
|
+
exports.touched1 = proxy.touched1;
|
|
103
|
+
exports.untracked = proxy.untracked;
|
|
104
|
+
exports.unwrap = proxy.unwrap;
|
|
105
|
+
exports.zip = proxy.zip;
|
|
103
106
|
exports.asyncHook = asyncCore.asyncHook;
|
|
104
107
|
exports.asyncHooks = asyncCore.asyncHooks;
|
|
108
|
+
exports.hooks = asyncCore.hooks;
|
|
105
109
|
//# sourceMappingURL=node.cjs.map
|
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 +1,2 @@
|
|
|
1
|
-
export {
|
|
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, Register, Resource, Restorer, ScanResult, addBatchCleanup, allocated, allocatedValues, arrayDiff, arrayEquals, asyncHook, asyncHooks, atom, atomic, attend, biDi, cache, cached, callOnGC, caught, chainPromise, cleanedBy, createFlavor, debounce, decorator, deepCompare, deepWatch, defer, deprecated, descriptor, destructor, effect, effectAggregator, flavorOptions, flavored, forwardArray, getActivationLog, getActiveEffect, getAt, getState, hooks, immutables, isCached, isConstructor, isNonReactive, isObject, legacyDecorator, lift, memoize, mixin, modernDecorator, morph, named, onEffectThrow, organize, organized, profileInfo, morph as project, reactive, register, reset, resource, root, scan, setAt, tag, throttle, touched, touched1, unreactive, untracked, watch, when, zip } from './index.js';
|
|
2
|
+
export { A as AZone, h as CleanupReason, e as EffectAccess, b as EffectCleanup, d as EffectCloser, g as EffectOptions, E as EffectTrigger, a as Evolution, F as FunctionWrapper, P as PropTrigger, R as ReactiveError, i as ReactiveErrorCode, S as ScopedCallback, j as Zone, Z as ZoneAggregator, k as ZoneHistory, l as asyncZone, c as cleanup, m as formatCleanupReason, n as isReactive, o as objectToProxy, p as proxyToObject, q as reactiveOptions, s as stopped, u as unwrap } from './types-W5vD6m2n.js';
|
|
@@ -0,0 +1,110 @@
|
|
|
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-Dtg-bJ3T.cjs');
|
|
7
|
+
var asyncCore = require('./chunks/async-core-CRLKP3l-.cjs');
|
|
8
|
+
require('node:async_hooks');
|
|
9
|
+
require('./chunks/async-browser-BU_IfxYD.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.Register = browser.Register;
|
|
19
|
+
exports.allocated = browser.allocated;
|
|
20
|
+
exports.allocatedValues = browser.allocatedValues;
|
|
21
|
+
exports.arrayDiff = browser.arrayDiff;
|
|
22
|
+
exports.attend = browser.attend;
|
|
23
|
+
exports.cache = browser.cache;
|
|
24
|
+
exports.cached = browser.cached;
|
|
25
|
+
exports.callOnGC = browser.callOnGC;
|
|
26
|
+
exports.chainPromise = browser.chainPromise;
|
|
27
|
+
exports.debounce = browser.debounce;
|
|
28
|
+
exports.deepWatch = browser.deepWatch;
|
|
29
|
+
exports.deprecated = browser.deprecated;
|
|
30
|
+
exports.descriptor = browser.descriptor;
|
|
31
|
+
exports.destructor = browser.destructor;
|
|
32
|
+
exports.forwardArray = browser.forwardArray;
|
|
33
|
+
exports.getAt = browser.getAt;
|
|
34
|
+
exports.isCached = browser.isCached;
|
|
35
|
+
exports.lift = browser.lift;
|
|
36
|
+
exports.memoize = browser.memoize;
|
|
37
|
+
exports.morph = browser.morph;
|
|
38
|
+
exports.organize = browser.organize;
|
|
39
|
+
exports.organized = browser.organized;
|
|
40
|
+
exports.profileInfo = browser.profileInfo;
|
|
41
|
+
exports.project = browser.morph;
|
|
42
|
+
exports.register = browser.register;
|
|
43
|
+
exports.resource = browser.resource;
|
|
44
|
+
exports.scan = browser.scan;
|
|
45
|
+
exports.setAt = browser.setAt;
|
|
46
|
+
exports.throttle = browser.throttle;
|
|
47
|
+
exports.unreactive = browser.unreactive;
|
|
48
|
+
exports.watch = browser.watch;
|
|
49
|
+
exports.when = browser.when;
|
|
50
|
+
exports.AZone = proxy.AZone;
|
|
51
|
+
exports.DecoratorError = proxy.DecoratorError;
|
|
52
|
+
exports.IterableWeakMap = proxy.IterableWeakMap;
|
|
53
|
+
exports.IterableWeakSet = proxy.IterableWeakSet;
|
|
54
|
+
exports.ReactiveBase = proxy.ReactiveBase;
|
|
55
|
+
exports.ReactiveError = proxy.ReactiveError;
|
|
56
|
+
Object.defineProperty(exports, "ReactiveErrorCode", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () { return proxy.ReactiveErrorCode; }
|
|
59
|
+
});
|
|
60
|
+
exports.Zone = proxy.Zone;
|
|
61
|
+
exports.ZoneAggregator = proxy.ZoneAggregator;
|
|
62
|
+
exports.ZoneHistory = proxy.ZoneHistory;
|
|
63
|
+
exports.addBatchCleanup = proxy.addBatchCleanup;
|
|
64
|
+
exports.arrayEquals = proxy.arrayEquals;
|
|
65
|
+
exports.asyncZone = proxy.asyncZone;
|
|
66
|
+
exports.atom = proxy.atom;
|
|
67
|
+
exports.atomic = proxy.atomic;
|
|
68
|
+
exports.biDi = proxy.biDi;
|
|
69
|
+
exports.caught = proxy.caught;
|
|
70
|
+
exports.cleanedBy = proxy.cleanedBy;
|
|
71
|
+
exports.cleanup = proxy.cleanup;
|
|
72
|
+
exports.createFlavor = proxy.createFlavor;
|
|
73
|
+
exports.decorator = proxy.decorator;
|
|
74
|
+
exports.deepCompare = proxy.deepCompare;
|
|
75
|
+
exports.defer = proxy.defer;
|
|
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.immutables = proxy.immutables;
|
|
85
|
+
exports.isConstructor = proxy.isConstructor;
|
|
86
|
+
exports.isNonReactive = proxy.isNonReactive;
|
|
87
|
+
exports.isObject = proxy.isObject;
|
|
88
|
+
exports.isReactive = proxy.isReactive;
|
|
89
|
+
exports.legacyDecorator = proxy.legacyDecorator;
|
|
90
|
+
exports.mixin = proxy.mixin;
|
|
91
|
+
exports.modernDecorator = proxy.modernDecorator;
|
|
92
|
+
exports.named = proxy.named;
|
|
93
|
+
exports.objectToProxy = proxy.objectToProxy;
|
|
94
|
+
exports.onEffectThrow = proxy.onEffectThrow;
|
|
95
|
+
exports.proxyToObject = proxy.proxyToObject;
|
|
96
|
+
exports.reactive = proxy.reactive;
|
|
97
|
+
exports.reactiveOptions = proxy.options;
|
|
98
|
+
exports.reset = proxy.reset;
|
|
99
|
+
exports.root = proxy.root;
|
|
100
|
+
exports.stopped = proxy.stopped;
|
|
101
|
+
exports.tag = proxy.tag;
|
|
102
|
+
exports.touched = proxy.touched;
|
|
103
|
+
exports.touched1 = proxy.touched1;
|
|
104
|
+
exports.untracked = proxy.untracked;
|
|
105
|
+
exports.unwrap = proxy.unwrap;
|
|
106
|
+
exports.zip = proxy.zip;
|
|
107
|
+
exports.asyncHook = asyncCore.asyncHook;
|
|
108
|
+
exports.asyncHooks = asyncCore.asyncHooks;
|
|
109
|
+
exports.hooks = asyncCore.hooks;
|
|
110
|
+
//# 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, h as CleanupReason, e as EffectAccess, b as EffectCleanup, d as EffectCloser, g as EffectOptions, E as EffectTrigger, a as Evolution, F as FunctionWrapper, P as PropTrigger, R as ReactiveError, i as ReactiveErrorCode, S as ScopedCallback, j as Zone, Z as ZoneAggregator, k as ZoneHistory, l as asyncZone, c as cleanup, m as formatCleanupReason, n as isReactive, o as objectToProxy, p as proxyToObject, q as reactiveOptions, s as stopped, u as unwrap } from './types-W5vD6m2n.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, Register, Resource, Restorer, ScanResult, addBatchCleanup, allocated, allocatedValues, arrayDiff, arrayEquals, asyncHook, asyncHooks, atom, atomic, attend, biDi, cache, cached, callOnGC, caught, chainPromise, cleanedBy, createFlavor, debounce, decorator, deepCompare, deepWatch, defer, deprecated, descriptor, destructor, effect, effectAggregator, flavorOptions, flavored, forwardArray, getActivationLog, getActiveEffect, getAt, getState, hooks, immutables, isCached, isConstructor, isNonReactive, isObject, legacyDecorator, lift, memoize, mixin, modernDecorator, morph, named, onEffectThrow, organize, organized, profileInfo, morph as project, reactive, register, reset, resource, root, scan, setAt, tag, throttle, touched, touched1, unreactive, untracked, watch, when, zip } from './index.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './debug.esm.js';
|
|
2
|
+
import './chunks/node-nKJBk8iJ.esm.js';
|
|
3
|
+
export { A as ArrayReadForward, D as Destroyable, a as DestructionError, E as Eventful, I as Indexable, R as Register, 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 register, y as resource, z as scan, B as setAt, C as throttle, F as unreactive, G as watch, H as when } from './chunks/index-CaaQQlPJ.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 arrayEquals, h as asyncHook, i as asyncHooks, j as asyncZone, k as atom, l as atomic, m as biDi, n as caught, o as cleanedBy, p as cleanup, q as createFlavor, r as decorator, s as deepCompare, t as defer, u as effect, v as effectAggregator, w as flavorOptions, x as flavored, y as formatCleanupReason, z as getActivationLog, B as getActiveEffect, C as getState, E as hooks, F as immutables, G as isConstructor, H as isNonReactive, J as isObject, K as isReactive, L as legacyDecorator, M as mixin, N as modernDecorator, O as named, P as objectToProxy, Q as onEffectThrow, S as proxyToObject, T as reactive, U as reactiveOptions, V as reset, W as root, X as stopped, Y as tag, _ as touched, $ as touched1, a0 as untracked, a1 as unwrap, a2 as zip } from './chunks/proxy-r7lARftl.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,104 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export { A as AZone,
|
|
4
|
-
|
|
5
|
-
// 1. Generic async_hooks implementation for Hooks
|
|
6
|
-
// This maintains support for 'asyncHooks.addHook' for generic use cases.
|
|
7
|
-
const hooks = new Set();
|
|
8
|
-
asyncHooks.addHook = function (hook) {
|
|
9
|
-
hooks.add(hook);
|
|
10
|
-
return () => {
|
|
11
|
-
hooks.delete(hook);
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
const contexts = new Map();
|
|
15
|
-
const activeUndoers = new Map();
|
|
16
|
-
// Helper to capture current hooks state
|
|
17
|
-
function captureRestorers() {
|
|
18
|
-
if (hooks.size === 0)
|
|
19
|
-
return [];
|
|
20
|
-
const restorers = [];
|
|
21
|
-
for (const h of hooks) {
|
|
22
|
-
const r = h();
|
|
23
|
-
if (r)
|
|
24
|
-
restorers.push(r);
|
|
25
|
-
}
|
|
26
|
-
return restorers;
|
|
27
|
-
}
|
|
28
|
-
// Manual Wrap function to handle Promise callbacks
|
|
29
|
-
function wrap(fn) {
|
|
30
|
-
if (typeof fn !== 'function')
|
|
31
|
-
return fn;
|
|
32
|
-
const restorers = captureRestorers();
|
|
33
|
-
if (restorers.length === 0)
|
|
34
|
-
return fn;
|
|
35
|
-
return function (...args) {
|
|
36
|
-
const undoers = [];
|
|
37
|
-
for (const restore of restorers) {
|
|
38
|
-
const u = restore();
|
|
39
|
-
if (u)
|
|
40
|
-
undoers.push(u);
|
|
41
|
-
}
|
|
42
|
-
try {
|
|
43
|
-
return fn.apply(this, args);
|
|
44
|
-
}
|
|
45
|
-
finally {
|
|
46
|
-
for (let i = undoers.length - 1; i >= 0; i--)
|
|
47
|
-
undoers[i]();
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
const hook = createHook({
|
|
52
|
-
init(asyncId, type, triggerId, resource) {
|
|
53
|
-
// Used for native resources like Timers
|
|
54
|
-
const restorers = captureRestorers();
|
|
55
|
-
if (restorers.length > 0)
|
|
56
|
-
contexts.set(asyncId, restorers);
|
|
57
|
-
},
|
|
58
|
-
before(asyncId) {
|
|
59
|
-
const restorers = contexts.get(asyncId);
|
|
60
|
-
if (!restorers)
|
|
61
|
-
return;
|
|
62
|
-
const undoers = [];
|
|
63
|
-
for (const restore of restorers) {
|
|
64
|
-
const u = restore();
|
|
65
|
-
if (u)
|
|
66
|
-
undoers.push(u);
|
|
67
|
-
}
|
|
68
|
-
if (undoers.length > 0)
|
|
69
|
-
activeUndoers.set(asyncId, undoers);
|
|
70
|
-
},
|
|
71
|
-
after(asyncId) {
|
|
72
|
-
const undoers = activeUndoers.get(asyncId);
|
|
73
|
-
if (!undoers)
|
|
74
|
-
return;
|
|
75
|
-
for (let i = undoers.length - 1; i >= 0; i--)
|
|
76
|
-
undoers[i]();
|
|
77
|
-
activeUndoers.delete(asyncId);
|
|
78
|
-
},
|
|
79
|
-
destroy(asyncId) {
|
|
80
|
-
contexts.delete(asyncId);
|
|
81
|
-
activeUndoers.delete(asyncId);
|
|
82
|
-
},
|
|
83
|
-
});
|
|
84
|
-
hook.enable();
|
|
85
|
-
// 2. Shadow Promise Implementation
|
|
86
|
-
// Ensures V8 await resumptions are visible as .then callbacks, wrapping them to restore context.
|
|
87
|
-
const OriginalPromise = globalThis.Promise;
|
|
88
|
-
const originalMethods = {
|
|
89
|
-
then: OriginalPromise.prototype.then,
|
|
90
|
-
catch: OriginalPromise.prototype.catch,
|
|
91
|
-
finally: OriginalPromise.prototype.finally};
|
|
92
|
-
// Patch prototype
|
|
93
|
-
OriginalPromise.prototype.then = function (onFulfilled, onRejected) {
|
|
94
|
-
return originalMethods.then.call(this, wrap(onFulfilled), wrap(onRejected));
|
|
95
|
-
};
|
|
96
|
-
OriginalPromise.prototype.catch = function (onRejected) {
|
|
97
|
-
return originalMethods.catch.call(this, wrap(onRejected));
|
|
98
|
-
};
|
|
99
|
-
OriginalPromise.prototype.finally = function (onFinally) {
|
|
100
|
-
return originalMethods.finally.call(this, wrap(onFinally));
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export { asyncHooks };
|
|
1
|
+
import './chunks/node-nKJBk8iJ.esm.js';
|
|
2
|
+
export { A as ArrayReadForward, D as Destroyable, a as DestructionError, E as Eventful, I as Indexable, R as Register, 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 register, y as resource, z as scan, B as setAt, C as throttle, F as unreactive, G as watch, H as when } from './chunks/index-CaaQQlPJ.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 arrayEquals, h as asyncHook, i as asyncHooks, j as asyncZone, k as atom, l as atomic, m as biDi, n as caught, o as cleanedBy, p as cleanup, q as createFlavor, r as decorator, s as deepCompare, t as defer, u as effect, v as effectAggregator, w as flavorOptions, x as flavored, y as formatCleanupReason, z as getActivationLog, B as getActiveEffect, C as getState, E as hooks, F as immutables, G as isConstructor, H as isNonReactive, J as isObject, K as isReactive, L as legacyDecorator, M as mixin, N as modernDecorator, O as named, P as objectToProxy, Q as onEffectThrow, S as proxyToObject, T as reactive, U as reactiveOptions, V as reset, W as root, X as stopped, Y as tag, _ as touched, $ as touched1, a0 as untracked, a1 as unwrap, a2 as zip } from './chunks/proxy-r7lARftl.esm.js';
|
|
4
|
+
import 'node:async_hooks';
|
|
104
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":";;;"}
|