@thyn/core 0.0.296 → 0.0.298
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/router.js +6 -6
- package/dist/signals.d.ts +5 -8
- package/dist/signals.js +34 -30
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/router.ts +6 -6
- package/src/signals.ts +40 -29
- package/tests/fx.test.ts +3 -3
- package/tests/lists.test.ts +18 -18
- package/tests/router.test.ts +7 -7
- package/tests/show.test.ts +13 -13
- package/tsconfig.tsbuildinfo +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { addChildren, addEffect, component, createReactiveTextNode, fixedComponent, isolatedTerminalList, list, markAsReactive, mount, setAttribute, setProperty, setReactiveAttribute, setReactiveProperty, show, terminalList } from "./element.js";
|
|
2
|
-
export { $effect, $signal,
|
|
2
|
+
export { $effect, $signal, staticEffect } from "./signals.js";
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { addChildren, addEffect, component, createReactiveTextNode, fixedComponent, isolatedTerminalList, list, markAsReactive, mount, setAttribute, setProperty, setReactiveAttribute, setReactiveProperty, show, terminalList } from "./element.js";
|
|
2
|
-
export { $effect, $signal,
|
|
2
|
+
export { $effect, $signal, staticEffect } from "./signals.js";
|
package/dist/router.js
CHANGED
|
@@ -3,7 +3,7 @@ import { $signal, staticEffect } from "./signals.js";
|
|
|
3
3
|
const params = $signal({});
|
|
4
4
|
export const router = {
|
|
5
5
|
path: $signal(location.pathname),
|
|
6
|
-
param: (name) => params
|
|
6
|
+
param: (name) => params()[name],
|
|
7
7
|
};
|
|
8
8
|
export function Router({ routes }) {
|
|
9
9
|
const current = $signal(null);
|
|
@@ -21,7 +21,7 @@ export function Router({ routes }) {
|
|
|
21
21
|
return compiledRoute;
|
|
22
22
|
});
|
|
23
23
|
staticEffect(() => {
|
|
24
|
-
const pn = router.path
|
|
24
|
+
const pn = router.path();
|
|
25
25
|
if (pn !== location.pathname) {
|
|
26
26
|
history.pushState({}, "", pn);
|
|
27
27
|
}
|
|
@@ -39,11 +39,11 @@ export function Router({ routes }) {
|
|
|
39
39
|
break;
|
|
40
40
|
}
|
|
41
41
|
;
|
|
42
|
-
current
|
|
43
|
-
params
|
|
42
|
+
current(rt);
|
|
43
|
+
params(ps);
|
|
44
44
|
});
|
|
45
45
|
return component(show, compiledRoutes.map((r) => ({
|
|
46
|
-
if: () => r === current
|
|
46
|
+
if: () => r === current(),
|
|
47
47
|
then: () => component(r.component),
|
|
48
48
|
})));
|
|
49
49
|
}
|
|
@@ -59,7 +59,7 @@ export function Link({ slot, to }) {
|
|
|
59
59
|
!(e.metaKey || e.ctrlKey || e.shiftKey || e.altKey)) {
|
|
60
60
|
e.preventDefault();
|
|
61
61
|
history.pushState({}, "", to);
|
|
62
|
-
router.path
|
|
62
|
+
router.path(to);
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
return a;
|
package/dist/signals.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
get(): T;
|
|
6
|
-
set(value: T): void;
|
|
7
|
-
update(action: (prev: T) => T): void;
|
|
1
|
+
export interface Signal<T> {
|
|
2
|
+
(): T;
|
|
3
|
+
(newValue: T): void;
|
|
4
|
+
(updater: (prev: T) => T): void;
|
|
8
5
|
}
|
|
9
|
-
export declare function $signal<T>(
|
|
6
|
+
export declare function $signal<T>(initialValue: T): Signal<T>;
|
|
10
7
|
export declare function $effect(fn: (() => (() => void) | void) & any): any;
|
|
11
8
|
export declare function staticEffect(fn: (() => (() => void) | void) & any): any;
|
|
12
9
|
export declare function uncollectedStaticEffect(fn: (() => (() => void) | void) & any): any;
|
package/dist/signals.js
CHANGED
|
@@ -24,41 +24,45 @@ function scheduleEffect(effectFn) {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
if (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
27
|
+
// 2. Refactor $signal to return the closure
|
|
28
|
+
export function $signal(initialValue) {
|
|
29
|
+
let value = initialValue;
|
|
30
|
+
const subs = new Set();
|
|
31
|
+
return function (newValue) {
|
|
32
|
+
// GETTER: No arguments passed
|
|
33
|
+
if (arguments.length === 0) {
|
|
34
|
+
if (currentEffect) {
|
|
35
|
+
subs.add(currentEffect);
|
|
36
|
+
const td = currentEffect.td;
|
|
37
|
+
if (!td) {
|
|
38
|
+
currentEffect.td = subs;
|
|
39
|
+
}
|
|
40
|
+
else if (Array.isArray(td)) {
|
|
41
|
+
td.push(subs);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
currentEffect.td = [td, subs];
|
|
45
|
+
}
|
|
44
46
|
}
|
|
47
|
+
return value;
|
|
45
48
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
// SETTER / UPDATER: Argument passed
|
|
50
|
+
let nextValue;
|
|
51
|
+
// Check if it's an updater function
|
|
52
|
+
// Note: If T is a function type, this logic assumes it's an updater.
|
|
53
|
+
if (typeof newValue === "function") {
|
|
54
|
+
nextValue = newValue(value);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
nextValue = newValue;
|
|
58
|
+
}
|
|
59
|
+
if (nextValue !== value) {
|
|
60
|
+
value = nextValue;
|
|
61
|
+
for (const sub of subs) {
|
|
52
62
|
scheduleEffect(sub);
|
|
53
63
|
}
|
|
54
64
|
}
|
|
55
|
-
}
|
|
56
|
-
update(action) {
|
|
57
|
-
this.set(action(this.value));
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
export function $signal(value) {
|
|
61
|
-
return new Signal(value);
|
|
65
|
+
};
|
|
62
66
|
}
|
|
63
67
|
function runEffectFn(ef) {
|
|
64
68
|
const td = ef();
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/router.ts
CHANGED
|
@@ -5,7 +5,7 @@ const params = $signal({} as any);
|
|
|
5
5
|
|
|
6
6
|
export const router = {
|
|
7
7
|
path: $signal(location.pathname),
|
|
8
|
-
param: (name: string): string | undefined => params
|
|
8
|
+
param: (name: string): string | undefined => params()[name],
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
|
|
@@ -31,7 +31,7 @@ export function Router({ routes }: { routes: Route[] }) {
|
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
staticEffect(() => {
|
|
34
|
-
const pn = router.path
|
|
34
|
+
const pn = router.path();
|
|
35
35
|
if (pn !== location.pathname) {
|
|
36
36
|
history.pushState({}, "", pn);
|
|
37
37
|
}
|
|
@@ -47,14 +47,14 @@ export function Router({ routes }: { routes: Route[] }) {
|
|
|
47
47
|
rt = route;
|
|
48
48
|
break;
|
|
49
49
|
};
|
|
50
|
-
current
|
|
51
|
-
params
|
|
50
|
+
current(rt);
|
|
51
|
+
params(ps);
|
|
52
52
|
});
|
|
53
53
|
|
|
54
54
|
return component(
|
|
55
55
|
show,
|
|
56
56
|
compiledRoutes.map((r) => ({
|
|
57
|
-
if: () => r === current
|
|
57
|
+
if: () => r === current(),
|
|
58
58
|
then: () => component(r.component),
|
|
59
59
|
})),
|
|
60
60
|
);
|
|
@@ -74,7 +74,7 @@ export function Link({ slot, to }) {
|
|
|
74
74
|
) {
|
|
75
75
|
e.preventDefault();
|
|
76
76
|
history.pushState({}, "", to);
|
|
77
|
-
router.path
|
|
77
|
+
router.path(to);
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
return a;
|
package/src/signals.ts
CHANGED
|
@@ -27,42 +27,53 @@ function scheduleEffect(effectFn: EffectFn) {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
// 1. Define the Overloaded Interface for the Signal function
|
|
31
|
+
export interface Signal<T> {
|
|
32
|
+
(): T; // Getter
|
|
33
|
+
(newValue: T): void; // Setter
|
|
34
|
+
(updater: (prev: T) => T): void; // Updater
|
|
35
|
+
}
|
|
32
36
|
|
|
33
|
-
|
|
37
|
+
// 2. Refactor $signal to return the closure
|
|
38
|
+
export function $signal<T>(initialValue: T): Signal<T> {
|
|
39
|
+
let value = initialValue;
|
|
40
|
+
const subs = new Set<any>();
|
|
34
41
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
return function (newValue?: T | ((prev: T) => T)) {
|
|
43
|
+
// GETTER: No arguments passed
|
|
44
|
+
if (arguments.length === 0) {
|
|
45
|
+
if (currentEffect) {
|
|
46
|
+
subs.add(currentEffect);
|
|
47
|
+
const td = currentEffect.td;
|
|
48
|
+
if (!td) {
|
|
49
|
+
currentEffect.td = subs;
|
|
50
|
+
} else if (Array.isArray(td)) {
|
|
51
|
+
td.push(subs);
|
|
52
|
+
} else {
|
|
53
|
+
currentEffect.td = [td, subs];
|
|
54
|
+
}
|
|
45
55
|
}
|
|
56
|
+
return value;
|
|
46
57
|
}
|
|
47
|
-
return this.value;
|
|
48
|
-
}
|
|
49
58
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
59
|
+
// SETTER / UPDATER: Argument passed
|
|
60
|
+
let nextValue: T;
|
|
61
|
+
|
|
62
|
+
// Check if it's an updater function
|
|
63
|
+
// Note: If T is a function type, this logic assumes it's an updater.
|
|
64
|
+
if (typeof newValue === "function") {
|
|
65
|
+
nextValue = (newValue as (prev: T) => T)(value);
|
|
66
|
+
} else {
|
|
67
|
+
nextValue = newValue as T;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (nextValue !== value) {
|
|
71
|
+
value = nextValue;
|
|
72
|
+
for (const sub of subs) {
|
|
54
73
|
scheduleEffect(sub);
|
|
55
74
|
}
|
|
56
75
|
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
update(action: (prev: T) => T): void {
|
|
60
|
-
this.set(action(this.value));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function $signal<T>(value: T): Signal<T> {
|
|
65
|
-
return new Signal(value);
|
|
76
|
+
} as Signal<T>;
|
|
66
77
|
}
|
|
67
78
|
|
|
68
79
|
function runEffectFn(ef: EffectFn) {
|
|
@@ -124,4 +135,4 @@ export function cleanup(ef) {
|
|
|
124
135
|
} else {
|
|
125
136
|
for (const f of ef.td) typeof f === "function" ? f() : f.delete(ef);
|
|
126
137
|
}
|
|
127
|
-
}
|
|
138
|
+
}
|
package/tests/fx.test.ts
CHANGED
|
@@ -9,9 +9,9 @@ describe("runs effect", () => {
|
|
|
9
9
|
const tdRef = { val: 0 };
|
|
10
10
|
const root = (() => {
|
|
11
11
|
const div = document.createElement("div");
|
|
12
|
-
$effect(() => { div.textContent = on
|
|
12
|
+
$effect(() => { div.textContent = on() ? "on" : "off" });
|
|
13
13
|
$effect(() => {
|
|
14
|
-
on
|
|
14
|
+
on();
|
|
15
15
|
runRef.val++;
|
|
16
16
|
return () => {
|
|
17
17
|
tdRef.val++;
|
|
@@ -22,7 +22,7 @@ describe("runs effect", () => {
|
|
|
22
22
|
expect(root.textContent).toBe("on");
|
|
23
23
|
expect(runRef.val).toBe(1);
|
|
24
24
|
expect(tdRef.val).toBe(0);
|
|
25
|
-
on
|
|
25
|
+
on(false);
|
|
26
26
|
await wait();
|
|
27
27
|
expect(root.textContent).toBe("off");
|
|
28
28
|
expect(runRef.val).toBe(2);
|
package/tests/lists.test.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { wait } from "./utils";
|
|
|
4
4
|
|
|
5
5
|
function makeGenericList(signal: any) {
|
|
6
6
|
return list({
|
|
7
|
-
items: () => signal
|
|
7
|
+
items: () => signal(),
|
|
8
8
|
render: (item: number) => {
|
|
9
9
|
const span = document.createElement("span");
|
|
10
10
|
span.textContent = `${item}`;
|
|
@@ -15,7 +15,7 @@ function makeGenericList(signal: any) {
|
|
|
15
15
|
|
|
16
16
|
function makeIsolatedTerminalList(signal: any) {
|
|
17
17
|
return isolatedTerminalList({
|
|
18
|
-
items: () => signal
|
|
18
|
+
items: () => signal(),
|
|
19
19
|
render: (item: number) => {
|
|
20
20
|
const span = document.createElement("span");
|
|
21
21
|
span.textContent = `${item}`;
|
|
@@ -34,7 +34,7 @@ const run = (makeList: any) => describe("list", () => {
|
|
|
34
34
|
it("removes all", async () => {
|
|
35
35
|
const items = $signal([0, 1]);
|
|
36
36
|
const root = makeList(items);
|
|
37
|
-
items
|
|
37
|
+
items([]);
|
|
38
38
|
await wait();
|
|
39
39
|
expect(root.textContent).toBe("");
|
|
40
40
|
});
|
|
@@ -50,7 +50,7 @@ const run = (makeList: any) => describe("list", () => {
|
|
|
50
50
|
const div = makeList(items);
|
|
51
51
|
root.append(a, div, b);
|
|
52
52
|
expect(root.textContent).toBe("a0123b");
|
|
53
|
-
items
|
|
53
|
+
items([]);
|
|
54
54
|
await wait();
|
|
55
55
|
expect(root.textContent).toBe("ab");
|
|
56
56
|
});
|
|
@@ -69,7 +69,7 @@ const run = (makeList: any) => describe("list", () => {
|
|
|
69
69
|
const div = makeList(items);
|
|
70
70
|
root.append(a, b, div, c, d);
|
|
71
71
|
expect(root.textContent).toBe("ab0123cd");
|
|
72
|
-
items
|
|
72
|
+
items([]);
|
|
73
73
|
await wait();
|
|
74
74
|
expect(root.textContent).toBe("abcd");
|
|
75
75
|
});
|
|
@@ -78,7 +78,7 @@ const run = (makeList: any) => describe("list", () => {
|
|
|
78
78
|
it("stays the same", async () => {
|
|
79
79
|
const items = $signal([0, 1]);
|
|
80
80
|
const root = makeList(items);
|
|
81
|
-
items
|
|
81
|
+
items([0, 1]);
|
|
82
82
|
await wait();
|
|
83
83
|
expect(root.textContent).toBe("01");
|
|
84
84
|
});
|
|
@@ -86,7 +86,7 @@ const run = (makeList: any) => describe("list", () => {
|
|
|
86
86
|
it("reverses 2", async () => {
|
|
87
87
|
const items = $signal([0, 1]);
|
|
88
88
|
const root = makeList(items);
|
|
89
|
-
items
|
|
89
|
+
items([1, 0]);
|
|
90
90
|
await wait();
|
|
91
91
|
expect(root.textContent).toBe("10");
|
|
92
92
|
});
|
|
@@ -94,7 +94,7 @@ const run = (makeList: any) => describe("list", () => {
|
|
|
94
94
|
it("reverses 3", async () => {
|
|
95
95
|
const items = $signal([0, 1, 2]);
|
|
96
96
|
const root = makeList(items);
|
|
97
|
-
items
|
|
97
|
+
items([2, 1, 0]);
|
|
98
98
|
await wait();
|
|
99
99
|
expect(root.textContent).toBe("210");
|
|
100
100
|
});
|
|
@@ -102,7 +102,7 @@ const run = (makeList: any) => describe("list", () => {
|
|
|
102
102
|
it("reverses 4", async () => {
|
|
103
103
|
const items = $signal([0, 1, 2, 3]);
|
|
104
104
|
const root = makeList(items);
|
|
105
|
-
items
|
|
105
|
+
items([3, 2, 1, 0]);
|
|
106
106
|
await wait();
|
|
107
107
|
expect(root.textContent).toBe("3210");
|
|
108
108
|
});
|
|
@@ -110,7 +110,7 @@ const run = (makeList: any) => describe("list", () => {
|
|
|
110
110
|
it("removes from start", async () => {
|
|
111
111
|
const items = $signal([0, 1, 2]);
|
|
112
112
|
const root = makeList(items);
|
|
113
|
-
items
|
|
113
|
+
items([1, 2]);
|
|
114
114
|
await wait();
|
|
115
115
|
expect(root.textContent).toBe("12");
|
|
116
116
|
});
|
|
@@ -118,7 +118,7 @@ const run = (makeList: any) => describe("list", () => {
|
|
|
118
118
|
it("removes from end", async () => {
|
|
119
119
|
const items = $signal([0, 1, 2]);
|
|
120
120
|
const root = makeList(items);
|
|
121
|
-
items
|
|
121
|
+
items([0, 1]);
|
|
122
122
|
await wait();
|
|
123
123
|
expect(root.textContent).toBe("01");
|
|
124
124
|
});
|
|
@@ -126,7 +126,7 @@ const run = (makeList: any) => describe("list", () => {
|
|
|
126
126
|
it("removes from middle", async () => {
|
|
127
127
|
const items = $signal([0, 1, 2]);
|
|
128
128
|
const root = makeList(items);
|
|
129
|
-
items
|
|
129
|
+
items([0, 2]);
|
|
130
130
|
await wait();
|
|
131
131
|
expect(root.textContent).toBe("02");
|
|
132
132
|
});
|
|
@@ -134,7 +134,7 @@ const run = (makeList: any) => describe("list", () => {
|
|
|
134
134
|
it("removes from everywhere", async () => {
|
|
135
135
|
const items = $signal([0, 1, 2, 3, 4, 5, 6]);
|
|
136
136
|
const root = makeList(items);
|
|
137
|
-
items
|
|
137
|
+
items([1, 3, 5]);
|
|
138
138
|
await wait();
|
|
139
139
|
expect(root.textContent).toBe("135");
|
|
140
140
|
});
|
|
@@ -142,7 +142,7 @@ const run = (makeList: any) => describe("list", () => {
|
|
|
142
142
|
it("adds to start", async () => {
|
|
143
143
|
const items = $signal([1, 2]);
|
|
144
144
|
const root = makeList(items);
|
|
145
|
-
items
|
|
145
|
+
items([0, 1, 2]);
|
|
146
146
|
await wait();
|
|
147
147
|
expect(root.textContent).toBe("012");
|
|
148
148
|
});
|
|
@@ -150,7 +150,7 @@ const run = (makeList: any) => describe("list", () => {
|
|
|
150
150
|
it("adds to end", async () => {
|
|
151
151
|
const items = $signal([0, 1]);
|
|
152
152
|
const root = makeList(items);
|
|
153
|
-
items
|
|
153
|
+
items([0, 1, 2]);
|
|
154
154
|
await wait();
|
|
155
155
|
expect(root.textContent).toBe("012");
|
|
156
156
|
});
|
|
@@ -158,7 +158,7 @@ const run = (makeList: any) => describe("list", () => {
|
|
|
158
158
|
it("adds to middle", async () => {
|
|
159
159
|
const items = $signal([0, 2]);
|
|
160
160
|
const root = makeList(items);
|
|
161
|
-
items
|
|
161
|
+
items([0, 1, 2]);
|
|
162
162
|
await wait();
|
|
163
163
|
expect(root.textContent).toBe("012");
|
|
164
164
|
});
|
|
@@ -166,7 +166,7 @@ const run = (makeList: any) => describe("list", () => {
|
|
|
166
166
|
it("replaces all", async () => {
|
|
167
167
|
const items = $signal([0, 1]);
|
|
168
168
|
const root = makeList(items);
|
|
169
|
-
items
|
|
169
|
+
items([2, 3]);
|
|
170
170
|
await wait();
|
|
171
171
|
expect(root.textContent).toBe("23");
|
|
172
172
|
});
|
|
@@ -174,7 +174,7 @@ const run = (makeList: any) => describe("list", () => {
|
|
|
174
174
|
it("sorts", async () => {
|
|
175
175
|
const items = $signal([6, 0, 2, 4, 7, 1, 3, 5]);
|
|
176
176
|
const root = makeList(items);
|
|
177
|
-
items
|
|
177
|
+
items([0, 1, 2, 3, 4, 5, 6, 7]);
|
|
178
178
|
await wait();
|
|
179
179
|
expect(root.textContent).toBe("01234567");
|
|
180
180
|
});
|
package/tests/router.test.ts
CHANGED
|
@@ -24,13 +24,13 @@ describe("router", () => {
|
|
|
24
24
|
{ path: "/bar", component: () => component(Div("bar")) },
|
|
25
25
|
],
|
|
26
26
|
}));
|
|
27
|
-
router.path
|
|
27
|
+
router.path("/foo");
|
|
28
28
|
await wait();
|
|
29
29
|
expect(root.textContent).toBe("foo");
|
|
30
|
-
router.path
|
|
30
|
+
router.path("/bar");
|
|
31
31
|
await wait();
|
|
32
32
|
expect(root.textContent).toBe("bar");
|
|
33
|
-
router.path
|
|
33
|
+
router.path("/foo");
|
|
34
34
|
await wait();
|
|
35
35
|
expect(root.textContent).toBe("foo");
|
|
36
36
|
});
|
|
@@ -53,16 +53,16 @@ describe("router", () => {
|
|
|
53
53
|
},
|
|
54
54
|
],
|
|
55
55
|
}));
|
|
56
|
-
router.path
|
|
56
|
+
router.path("/pages/foo");
|
|
57
57
|
await wait();
|
|
58
58
|
expect(root.textContent).toBe("foo");
|
|
59
|
-
router.path
|
|
59
|
+
router.path("/pages/bar");
|
|
60
60
|
await wait();
|
|
61
61
|
expect(root.textContent).toBe("bar");
|
|
62
|
-
router.path
|
|
62
|
+
router.path("/pages/baz");
|
|
63
63
|
await wait();
|
|
64
64
|
expect(root.textContent).toBe("baz");
|
|
65
|
-
router.path
|
|
65
|
+
router.path("/pages/foo");
|
|
66
66
|
await wait();
|
|
67
67
|
expect(root.textContent).toBe("foo");
|
|
68
68
|
});
|
package/tests/show.test.ts
CHANGED
|
@@ -12,11 +12,11 @@ describe("show", () => {
|
|
|
12
12
|
it("if else", async () => {
|
|
13
13
|
const on = $signal(true);
|
|
14
14
|
const root = makeShow([
|
|
15
|
-
{ if: () => on
|
|
15
|
+
{ if: () => on(), then: () => document.createTextNode("on") },
|
|
16
16
|
{ then: () => document.createTextNode("off") },
|
|
17
17
|
]);
|
|
18
18
|
expect(root.textContent).toBe("on");
|
|
19
|
-
on
|
|
19
|
+
on(false);
|
|
20
20
|
await wait();
|
|
21
21
|
expect(root.textContent).toBe("off");
|
|
22
22
|
});
|
|
@@ -24,11 +24,11 @@ describe("show", () => {
|
|
|
24
24
|
it("if else-if", async () => {
|
|
25
25
|
const on = $signal(true);
|
|
26
26
|
const root = makeShow([
|
|
27
|
-
{ if: () => on
|
|
28
|
-
{ if: () => !on
|
|
27
|
+
{ if: () => on(), then: () => document.createTextNode("on") },
|
|
28
|
+
{ if: () => !on(), then: () => document.createTextNode("off") },
|
|
29
29
|
]);
|
|
30
30
|
expect(root.textContent).toBe("on");
|
|
31
|
-
on
|
|
31
|
+
on(false);
|
|
32
32
|
await wait();
|
|
33
33
|
expect(root.textContent).toBe("off");
|
|
34
34
|
});
|
|
@@ -36,15 +36,15 @@ describe("show", () => {
|
|
|
36
36
|
it("if else-if else", async () => {
|
|
37
37
|
const on = $signal("a");
|
|
38
38
|
const root = makeShow([
|
|
39
|
-
{ if: () => on
|
|
40
|
-
{ if: () => on
|
|
39
|
+
{ if: () => on() === "a", then: () => document.createTextNode("a") },
|
|
40
|
+
{ if: () => on() === "b", then: () => document.createTextNode("b") },
|
|
41
41
|
{ then: () => document.createTextNode("c") },
|
|
42
42
|
]);
|
|
43
43
|
expect(root.textContent).toBe("a");
|
|
44
|
-
on
|
|
44
|
+
on("b");
|
|
45
45
|
await wait();
|
|
46
46
|
expect(root.textContent).toBe("b");
|
|
47
|
-
on
|
|
47
|
+
on("");
|
|
48
48
|
await wait();
|
|
49
49
|
expect(root.textContent).toBe("c");
|
|
50
50
|
});
|
|
@@ -53,13 +53,13 @@ describe("show", () => {
|
|
|
53
53
|
const foo = $signal("a");
|
|
54
54
|
const bar = $signal("b");
|
|
55
55
|
const root = makeShow([
|
|
56
|
-
{ if: () => foo
|
|
57
|
-
{ if: () => bar
|
|
56
|
+
{ if: () => foo() === "a", then: () => document.createTextNode("foo") },
|
|
57
|
+
{ if: () => bar() === "a", then: () => document.createTextNode("bar") },
|
|
58
58
|
{ then: () => document.createTextNode("c") },
|
|
59
59
|
]);
|
|
60
60
|
expect(root.textContent).toBe("foo");
|
|
61
|
-
foo
|
|
62
|
-
bar
|
|
61
|
+
foo("b")
|
|
62
|
+
bar("a");
|
|
63
63
|
await wait();
|
|
64
64
|
expect(root.textContent).toBe("bar");
|
|
65
65
|
});
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["./node_modules/typescript/lib/lib.es5.d.ts","./node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/typescript/lib/lib.dom.d.ts","./node_modules/typescript/lib/lib.dom.iterable.d.ts","./node_modules/typescript/lib/lib.dom.asynciterable.d.ts","./node_modules/typescript/lib/lib.webworker.importscripts.d.ts","./node_modules/typescript/lib/lib.scripthost.d.ts","./node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/typescript/lib/lib.es2019.intl.d.ts","./node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/typescript/lib/lib.decorators.legacy.d.ts","./node_modules/typescript/lib/lib.es2020.full.d.ts","./src/signals.ts","./src/element.ts","./src/index.ts","./src/router.ts","./node_modules/@types/deep-eql/index.d.ts","./node_modules/assertion-error/index.d.ts","./node_modules/@types/chai/index.d.ts","./node_modules/@types/estree/index.d.ts"],"fileIdsList":[[56,57],[52],[52,53],[53]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7a3c8b952931daebdfc7a2897c53c0a1c73624593fa070e46bd537e64dcd20a","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"1305d1e76ca44e30fb8b2b8075fa522b83f60c0bcf5d4326a9d2cf79b53724f8","impliedFormat":1},{"version":"323f628a9ee99e8900c4daaec5b9778fda17e109d772a5433f7f03b43cbba52c","signature":"0dd946964beb0dc46814339f19b8249f8396106576772b48c8c13009544f4c97"},{"version":"b235b4121a0b7b24469c4c234ddfc3ec12c9fc759c81af8f62d6aa52a8b50bf0","signature":"f3ddd3670c33381859688f604378a0028cafa5b52cc936da9a225933eb464387"},{"version":"9166a9ce3400eddc4ec0d35dc50354aea059b3d2f6e065c7e8e61836b0fae760","signature":"0ebe28e0c34644b4602d0350bbfd085eca27f1e33cf63a14a8e04898ccdc4c02"},{"version":"a155e9ebe821846c43103394346639a6a19a7f844be4892bbe4352aa20ee6707","signature":"a32c52a25b47067dac589266e7667623ea1ef2b0c1f9c4fd41adbc7b67a59eee"},{"version":"427fe2004642504828c1476d0af4270e6ad4db6de78c0b5da3e4c5ca95052a99","impliedFormat":1},{"version":"2eeffcee5c1661ddca53353929558037b8cf305ffb86a803512982f99bcab50d","impliedFormat":99},{"version":"9afb4cb864d297e4092a79ee2871b5d3143ea14153f62ef0bb04ede25f432030","affectsGlobalScope":true,"impliedFormat":99},{"version":"151ff381ef9ff8da2da9b9663ebf657eac35c4c9a19183420c05728f31a6761d","impliedFormat":1}],"root":[[52,55]],"options":{"allowJs":true,"checkJs":false,"composite":true,"esModuleInterop":true,"module":99,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"target":7},"referencedMap":[[58,1],[53,2],[54,3],[55,3],[52,4]],"latestChangedDtsFile":"./dist/signals.d.ts","version":"5.9.3"}
|
|
1
|
+
{"fileNames":["./node_modules/typescript/lib/lib.es5.d.ts","./node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/typescript/lib/lib.dom.d.ts","./node_modules/typescript/lib/lib.dom.iterable.d.ts","./node_modules/typescript/lib/lib.dom.asynciterable.d.ts","./node_modules/typescript/lib/lib.webworker.importscripts.d.ts","./node_modules/typescript/lib/lib.scripthost.d.ts","./node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/typescript/lib/lib.es2019.intl.d.ts","./node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/typescript/lib/lib.decorators.legacy.d.ts","./node_modules/typescript/lib/lib.es2020.full.d.ts","./src/signals.ts","./src/element.ts","./src/index.ts","./src/router.ts","./node_modules/@types/deep-eql/index.d.ts","./node_modules/assertion-error/index.d.ts","./node_modules/@types/chai/index.d.ts","./node_modules/@types/estree/index.d.ts"],"fileIdsList":[[56,57],[52],[52,53],[53]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7a3c8b952931daebdfc7a2897c53c0a1c73624593fa070e46bd537e64dcd20a","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"1305d1e76ca44e30fb8b2b8075fa522b83f60c0bcf5d4326a9d2cf79b53724f8","impliedFormat":1},{"version":"61d114100ababb6cbabdf0bb1dcf42381015c0f788135a209731fc270b41d0b6","signature":"c084f39693d652cdebc33667d280f50dece748c2ed4b408e06615834e51a5097"},{"version":"b235b4121a0b7b24469c4c234ddfc3ec12c9fc759c81af8f62d6aa52a8b50bf0","signature":"f3ddd3670c33381859688f604378a0028cafa5b52cc936da9a225933eb464387"},{"version":"0e3be4d02e120fbbfd12edcc9ad69ff668f5f4303e2b9c80521a8a722428e97d","signature":"12fd8be483df752ac04ae85347f9c397954ac2390e0de50612bf8b9899d7767d"},{"version":"23e3a2d8ef7695586b582f6366a28b1404801ada9a0c82d895f19344f8100ea5","signature":"a32c52a25b47067dac589266e7667623ea1ef2b0c1f9c4fd41adbc7b67a59eee"},{"version":"427fe2004642504828c1476d0af4270e6ad4db6de78c0b5da3e4c5ca95052a99","impliedFormat":1},{"version":"2eeffcee5c1661ddca53353929558037b8cf305ffb86a803512982f99bcab50d","impliedFormat":99},{"version":"9afb4cb864d297e4092a79ee2871b5d3143ea14153f62ef0bb04ede25f432030","affectsGlobalScope":true,"impliedFormat":99},{"version":"151ff381ef9ff8da2da9b9663ebf657eac35c4c9a19183420c05728f31a6761d","impliedFormat":1}],"root":[[52,55]],"options":{"allowJs":true,"checkJs":false,"composite":true,"esModuleInterop":true,"module":99,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"target":7},"referencedMap":[[58,1],[53,2],[54,3],[55,3],[52,4]],"latestChangedDtsFile":"./dist/index.d.ts","version":"5.9.3"}
|