osra 0.0.8 → 0.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/build/call.d.ts +1 -1
- package/build/index.js +77 -115
- package/build/register.d.ts +3 -3
- package/build/types.d.ts +18 -12
- package/package.json +44 -43
- package/build/tsconfig.tsbuildinfo +0 -1
package/build/call.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export declare const call: <T2 extends Resolvers>(target: Target, { key }?: {
|
|
|
8
8
|
/**
|
|
9
9
|
* Make a listener for a call
|
|
10
10
|
*/
|
|
11
|
-
export declare const makeCallListener: <T extends (data:
|
|
11
|
+
export declare const makeCallListener: <T extends (data: any, extra: ApiResolverOptions) => unknown>(func: T) => T;
|
package/build/index.js
CHANGED
|
@@ -1,127 +1,89 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
resolvers,
|
|
8
|
-
filter,
|
|
9
|
-
map,
|
|
10
|
-
key = MESSAGE_SOURCE_KEY
|
|
1
|
+
const m = "osra-message", A = ({
|
|
2
|
+
target: r,
|
|
3
|
+
resolvers: s,
|
|
4
|
+
filter: o,
|
|
5
|
+
map: t,
|
|
6
|
+
key: n = m
|
|
11
7
|
}) => {
|
|
12
|
-
const
|
|
13
|
-
if (!
|
|
8
|
+
const a = (e) => {
|
|
9
|
+
if (!e.data || typeof e.data != "object" || e.data?.source !== n || o && !o(e))
|
|
14
10
|
return;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const { type, data, port } = event.data;
|
|
20
|
-
const resolver = resolvers[type];
|
|
21
|
-
if (!resolver)
|
|
22
|
-
throw new Error(`Osra received a message of type "${String(type)}" but no resolver was found for type.`);
|
|
23
|
-
if (map)
|
|
24
|
-
resolver(...map(data, { event, type, port }));
|
|
25
|
-
else
|
|
26
|
-
resolver(data, { event, type, port });
|
|
11
|
+
const { type: c, data: b, port: g } = e.data, i = s[c];
|
|
12
|
+
if (!i)
|
|
13
|
+
throw new Error(`Osra received a message of type "${String(c)}" but no resolver was found for type.`);
|
|
14
|
+
t ? i(...t(b, { event: e, type: c, port: g })) : i(b, { event: e, type: c, port: g });
|
|
27
15
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
resolvers
|
|
16
|
+
return r.addEventListener("message", a), {
|
|
17
|
+
listener: a,
|
|
18
|
+
resolvers: s
|
|
32
19
|
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const transferables = [];
|
|
40
|
-
const recurse = (value2) => isClonable(value2) ? void 0 : isTransferable(value2) ? transferables.push(value2) : Array.isArray(value2) ? value2.map(recurse) : value2 && typeof value2 === "object" ? Object.values(value2).map(recurse) : void 0;
|
|
41
|
-
recurse(value);
|
|
42
|
-
return transferables;
|
|
43
|
-
};
|
|
44
|
-
var PROXY_FUNCTION_PROPERTY = "__proxyFunctionPort__";
|
|
45
|
-
var makeProxyFunction = (func) => {
|
|
46
|
-
const { port1, port2 } = new MessageChannel();
|
|
47
|
-
port1.addEventListener("message", async (ev) => {
|
|
20
|
+
}, y = (r) => !!(globalThis.SharedArrayBuffer && r instanceof globalThis.SharedArrayBuffer), h = (r) => globalThis.ArrayBuffer && r instanceof globalThis.ArrayBuffer || globalThis.MessagePort && r instanceof globalThis.MessagePort || globalThis.ReadableStream && r instanceof globalThis.ReadableStream || globalThis.WritableStream && r instanceof globalThis.WritableStream || globalThis.TransformStream && r instanceof globalThis.TransformStream ? !0 : !!(globalThis.ImageBitmap && r instanceof globalThis.ImageBitmap), p = (r) => {
|
|
21
|
+
const s = [], o = (t) => y(t) ? void 0 : h(t) ? s.push(t) : Array.isArray(t) ? t.map(o) : t && typeof t == "object" ? Object.values(t).map(o) : void 0;
|
|
22
|
+
return o(r), s;
|
|
23
|
+
}, l = "__proxyFunctionPort__", O = (r) => {
|
|
24
|
+
const { port1: s, port2: o } = new MessageChannel();
|
|
25
|
+
return s.addEventListener("message", async (t) => {
|
|
48
26
|
try {
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} catch (err) {
|
|
54
|
-
port1.postMessage({ error: err });
|
|
27
|
+
const n = await r(...t.data), a = f(n), e = p(a);
|
|
28
|
+
s.postMessage({ result: a }, { transfer: e });
|
|
29
|
+
} catch (n) {
|
|
30
|
+
s.postMessage({ error: n });
|
|
55
31
|
}
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
32
|
+
}), s.start(), o;
|
|
33
|
+
}, f = (r) => y(r) || h(r) ? r : typeof r == "function" ? { [l]: O(r) } : Array.isArray(r) ? r.map(f) : r && typeof r == "object" ? Object.fromEntries(
|
|
34
|
+
Object.entries(r).map(([s, o]) => [
|
|
35
|
+
s,
|
|
36
|
+
f(o)
|
|
37
|
+
])
|
|
38
|
+
) : r, j = (r) => (...s) => new Promise((o, t) => {
|
|
39
|
+
const n = f(s), a = p(n);
|
|
40
|
+
r.addEventListener("message", (e) => {
|
|
41
|
+
e.data.error ? t(e.data.error) : o(d(e.data.result));
|
|
42
|
+
}), r.start(), r.postMessage(n, { transfer: a });
|
|
43
|
+
}), d = (r) => y(r) || h(r) ? r : r && typeof r == "object" && r[l] ? j(r[l]) : Array.isArray(r) ? r.map(f) : r && typeof r == "object" ? Object.fromEntries(
|
|
44
|
+
Object.entries(r).map(([s, o]) => [
|
|
45
|
+
s,
|
|
46
|
+
d(o)
|
|
47
|
+
])
|
|
48
|
+
) : r, E = (r, { key: s = m } = { key: m }) => (o, t) => new Promise((n, a) => {
|
|
49
|
+
const { port1: e, port2: c } = new MessageChannel();
|
|
50
|
+
e.addEventListener(
|
|
51
|
+
"message",
|
|
52
|
+
({ data: i }) => {
|
|
53
|
+
if (i.error)
|
|
54
|
+
a(i.error);
|
|
55
|
+
else {
|
|
56
|
+
const T = d(i.result);
|
|
57
|
+
n(T);
|
|
58
|
+
}
|
|
59
|
+
e.close(), c.close();
|
|
60
|
+
},
|
|
61
|
+
{ once: !0 }
|
|
62
|
+
), e.start();
|
|
63
|
+
const b = f(t), g = p(b);
|
|
64
|
+
r.postMessage(
|
|
65
|
+
{
|
|
66
|
+
source: s,
|
|
67
|
+
type: o,
|
|
68
|
+
data: b,
|
|
69
|
+
port: c
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
targetOrigin: "*",
|
|
73
|
+
transfer: [c, ...g ?? []]
|
|
90
74
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
port1.start();
|
|
95
|
-
const proxiedData = proxyObjectFunctions(data);
|
|
96
|
-
const transferables = getTransferableObjects(proxiedData);
|
|
97
|
-
target.postMessage({
|
|
98
|
-
source: key,
|
|
99
|
-
type,
|
|
100
|
-
data: proxiedData,
|
|
101
|
-
port: port2
|
|
102
|
-
}, {
|
|
103
|
-
targetOrigin: "*",
|
|
104
|
-
transfer: [port2, ...transferables ?? []]
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
var makeCallListener = (func) => async (data, extra) => {
|
|
108
|
-
const { port } = extra;
|
|
109
|
-
const proxiedData = makeObjectProxiedFunctions(data);
|
|
75
|
+
);
|
|
76
|
+
}), S = (r) => async (s, o) => {
|
|
77
|
+
const { port: t } = o, n = d(s);
|
|
110
78
|
try {
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
port.close();
|
|
116
|
-
return result;
|
|
117
|
-
} catch (error) {
|
|
118
|
-
port.postMessage({ error });
|
|
119
|
-
port.close();
|
|
120
|
-
throw error;
|
|
79
|
+
const a = await r(n, o), e = f(a), c = p(e);
|
|
80
|
+
return t.postMessage({ result: e }, { transfer: c }), t.close(), a;
|
|
81
|
+
} catch (a) {
|
|
82
|
+
throw t.postMessage({ error: a }), t.close(), a;
|
|
121
83
|
}
|
|
122
84
|
};
|
|
123
85
|
export {
|
|
124
|
-
call,
|
|
125
|
-
makeCallListener,
|
|
126
|
-
registerListener
|
|
86
|
+
E as call,
|
|
87
|
+
S as makeCallListener,
|
|
88
|
+
A as registerListener
|
|
127
89
|
};
|
package/build/register.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ApiMessageData, ApiResolverOptions, Resolvers, ValidateResolvers } from './types';
|
|
2
|
-
export declare const registerListener: <T extends Record<PropertyKey, (data:
|
|
2
|
+
export declare const registerListener: <T extends Record<PropertyKey, (data: any, extra: ApiResolverOptions) => unknown>>({ target, resolvers, filter, map, key }: {
|
|
3
3
|
target: WindowEventHandlers | ServiceWorkerContainer | Worker | SharedWorker;
|
|
4
4
|
resolvers: ValidateResolvers<T>;
|
|
5
5
|
filter?: ((event: MessageEvent<any>) => boolean) | undefined;
|
|
6
|
-
map?: ((data:
|
|
6
|
+
map?: ((data: any, extra: {
|
|
7
7
|
event: MessageEvent<any>;
|
|
8
8
|
type: PropertyKey;
|
|
9
9
|
port: MessagePort;
|
|
10
|
-
}) => [data:
|
|
10
|
+
}) => [data: any, extra: {
|
|
11
11
|
event: MessageEvent<any>;
|
|
12
12
|
type: PropertyKey;
|
|
13
13
|
port: MessagePort;
|
package/build/types.d.ts
CHANGED
|
@@ -1,33 +1,39 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type TransferableObject = SharedArrayBuffer | ArrayBuffer | MessagePort | ReadableStream | WritableStream | TransformStream | /* AudioData | */ ImageBitmap;
|
|
2
|
+
export type StructuredCloneObject = {
|
|
3
3
|
[key: string]: StructuredCloneType;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type StructuredCloneType = void | boolean | null | undefined | number | BigInt | string | Date | RegExp | Blob | File | FileList | ArrayBuffer | ArrayBufferView | ImageBitmap | ImageData | Array<StructuredCloneType> | StructuredCloneObject | Map<StructuredCloneType, StructuredCloneType> | Set<StructuredCloneType>;
|
|
6
|
+
export type StructuredCloneTransferableObject = {
|
|
7
7
|
[key: string]: StructuredCloneTransferableType;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
9
|
+
export type ProxiedType = (...args: StructuredCloneTransferableType[]) => StructuredCloneTransferableType | Promise<StructuredCloneTransferableType>;
|
|
10
|
+
export type StructuredCloneTransferableType = StructuredCloneType | TransferableObject | Array<StructuredCloneTransferableType> | StructuredCloneTransferableObject | Map<StructuredCloneTransferableType, StructuredCloneTransferableType> | Set<StructuredCloneTransferableType> | ProxiedType;
|
|
11
|
+
export type Target = Window | ServiceWorker | Worker;
|
|
12
|
+
type NormalizeRecord<T> = T extends Record<any, any> ? {
|
|
13
|
+
[K in keyof T]: NormalizeRecord<T[K]>;
|
|
14
|
+
} : T;
|
|
12
15
|
/**
|
|
13
16
|
* Solution by mkantor#7432
|
|
14
17
|
* https://www.typescriptlang.org/play#code/C4TwDgpgBACghgJzgWwsCCDOBBBEBCcA5pgPIBmAysAgJYB2J29AJgHICuyARhpgDwAVKBAAe6VpigAKFnGBwAXFHoQAbhgCUUALwA+KB3oBregHsA7vQM6AUFBmz5SqACUIAYzMIW-GAjNIBFAAaQgQABooTBoGIigAHxUuXgQ9bX0VdS0RcQhJKGEAfkKoZVUNBFtbUEgoADU4ABtaOXR3TDMmyoFhMQkWKXcvHz8AoNDwqKcFcuyEDIMjU0trG3tS-vzBqABvKABtEKgGKGNws3JCgF1leCRUdCxcAmIyKljGHFZOHj4hI7XAwAXygJUEGzmlWqXnoMSgeHiOigQlyAyGnm8vn8gQwk0iMjaLgqOUyy3MVj0emkeE63T4ykaLTaEA6XR6QnSymEmV2GzwwA4CHohlYEHIDAgLCgcCk5NWMqkEOBMLMcOACIgUmRiOkfIc5DMZmUspA9A8hOcyn2huN0U+8WBiz2wIiG24iBNmDNFr1UFtUGB1v9RvKKQwgedu1d7rgAC8vT6ZPsPQhA8HU2G-mmnboDNHbE6gA
|
|
15
18
|
* https://discord.gg/typescript
|
|
16
19
|
* https://discord.com/channels/508357248330760243/1041386152315342999
|
|
20
|
+
* +
|
|
21
|
+
* saghen#6423 from friend discord https://discord.com/channels/790293936589504523/819301407215190026/1067635967801962587
|
|
17
22
|
*/
|
|
18
|
-
export
|
|
19
|
-
export
|
|
23
|
+
export type RestrictedParametersType<T extends (data: any, extra: ApiResolverOptions) => unknown> = NormalizeRecord<Parameters<T>[0]> extends Record<PropertyKey, StructuredCloneTransferableType> ? T : never;
|
|
24
|
+
export type ValidateResolvers<T extends Record<PropertyKey, (data: any, extra: ApiResolverOptions) => unknown>> = T extends {
|
|
20
25
|
[K in keyof T]: RestrictedParametersType<T[K]>;
|
|
21
26
|
} ? T : never;
|
|
22
|
-
export
|
|
23
|
-
export
|
|
27
|
+
export type Resolvers = Record<PropertyKey, (data: any, extra: ApiResolverOptions) => unknown>;
|
|
28
|
+
export type ApiResolverOptions<T2 extends Resolvers = Resolvers, T3 = {}> = T3 & {
|
|
24
29
|
event: MessageEvent<any>;
|
|
25
30
|
type: keyof T2;
|
|
26
31
|
port: MessagePort;
|
|
27
32
|
};
|
|
28
|
-
export
|
|
33
|
+
export type ApiMessageData<T2 extends Resolvers = Resolvers> = {
|
|
29
34
|
type: keyof T2;
|
|
30
35
|
data: any;
|
|
31
36
|
port: MessagePort;
|
|
32
37
|
source: string;
|
|
33
38
|
};
|
|
39
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "osra",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Easy communication between workers",
|
|
5
|
-
"files": [
|
|
6
|
-
"build"
|
|
7
|
-
],
|
|
8
|
-
"main": "build/index.js",
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"type-check
|
|
12
|
-
"
|
|
13
|
-
"build
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"build-tests
|
|
18
|
-
"
|
|
19
|
-
"test
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
"@types/
|
|
34
|
-
"
|
|
35
|
-
"chai
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"mime": "^3.0.0",
|
|
41
|
-
"typescript": "^4.
|
|
42
|
-
|
|
43
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "osra",
|
|
3
|
+
"version": "0.0.10",
|
|
4
|
+
"description": "Easy communication between workers",
|
|
5
|
+
"files": [
|
|
6
|
+
"build"
|
|
7
|
+
],
|
|
8
|
+
"main": "build/index.js",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"type-check": "tsc",
|
|
12
|
+
"type-check-watch": "tsc --watch",
|
|
13
|
+
"build": "vite build && npm run type-check",
|
|
14
|
+
"build-watch": "esbuild --watch ./src/index.ts --format=esm --bundle --outfile=build/index.js",
|
|
15
|
+
"dev": "concurrently \"npm run build-watch\" \"npm run type-check-watch\"",
|
|
16
|
+
"copy-tests-html": "copyfiles -u 1 ./tests/*/index.html tests/build",
|
|
17
|
+
"build-tests": "npm run copy-tests-html && esbuild ./tests/call/iframe.ts ./tests/event-channel/iframe.ts --format=esm --bundle --outdir=tests/build",
|
|
18
|
+
"build-tests-watch": "npm run copy-tests-html && esbuild --watch ./tests/call/iframe.ts ./tests/event-channel/iframe.ts --format=esm --bundle --outdir=tests/build",
|
|
19
|
+
"test": "epk",
|
|
20
|
+
"test-watch": "epk -w"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/Banou26/osra.git"
|
|
25
|
+
},
|
|
26
|
+
"author": "Banou26",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/Banou26/osra/issues"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://github.com/Banou26/osra#readme",
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@types/chai-as-promised": "^7.1.5",
|
|
34
|
+
"@types/node": "^18.11.18",
|
|
35
|
+
"chai": "^4.3.6",
|
|
36
|
+
"chai-as-promised": "^7.1.1",
|
|
37
|
+
"concurrently": "^7.0.0",
|
|
38
|
+
"copyfiles": "^2.4.1",
|
|
39
|
+
"epk": "^0.16.0",
|
|
40
|
+
"mime": "^3.0.0",
|
|
41
|
+
"typescript": "^4.9.4",
|
|
42
|
+
"vite": "^4.0.4"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"program":{"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.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.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.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.es2020.bigint.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.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../src/types.ts","../src/shared.ts","../src/utils.ts","../src/call.ts","../src/event-target.ts","../src/events.ts","../src/register.ts","../src/index.ts","../src/iterator.ts","../src/promise.ts","../src/pull.ts","../src/send.ts","../node_modules/@types/chai/index.d.ts","../node_modules/@types/chai-as-promised/index.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/yoga-layout/index.d.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2f93dda35dafec68ec217c9ce67f0f4fbbbb030c055ac312641565ad60dd7e26","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"dbb73d4d99be496175cb432c74c2615f78c76f4272f1d83cba11ee0ed6dbddf0","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"5075b36ab861c8c0c45377cb8c96270d7c65f0eeaf105d53fac6850da61f1027","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"6ea9ab679ea030cf46c16a711a316078e9e02619ebaf07a7fcd16964aba88f2d","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},{"version":"757ae64df9b2bc091a86d9ee1404386ff1f78685c8513a4f7239b6f5386fb261","signature":"2b008bf6e4e0eeb210876324ad2340f9074a6cad97effd8851534cc4342e2c1e"},"05937501605ada7f9817ccf33f105ee25f49184975d9e6d72f7f79d060ece585",{"version":"95e9044ba1e404dec0ebf802aed928abf1028a6393dab1baf3f3e5dfd7f56375","signature":"f224fce8893370dc397dac71391abacdd5e7f53b7c872cd0d04c651353a9b46f"},{"version":"684ffce160762322e2b441380460dd267b21f7b1d6400c8d1f6ac79ab17cba6e","signature":"e3f8d4c044ea0398244a22fdb903caeb5e5e607c5a5113be6d22df01640f6849"},"471a9874ad00882e700297c1941d262ddbbb38eec1d8b33d4c274cc90147f639","99a5f708f77c622ca352fd11001c4b41e49dae8fb7cb9eccc235d3db2aa6dbb1",{"version":"365ba6549c3bc7a3445bbb0894d23d627dbce10b2a9b512a63860c788b82fb85","signature":"d74f33ba2cba975b46823de55e7f3f0d11a0c95157e0de1e93df1c59cb68e806"},{"version":"4d69b267810fc417b0a717e73d498d44a2d6496087e700ab12f928c604a67338","signature":"72351ab1482e174e045b22d78760665da306ed7663909af835d78ce6bd621c07"},"0af48ab96fcd4372caa919fab979abc41bbb090b6c2f3390245388bcd5e1afd9","a865def279ea542d3025ee9dece6bb7484acee979758aa1314bac4f17207f200","ce4b42df217bb63f0f788ebb195b26abb35e4df5194f6efd8aaf27a29dbf0683","2fab913ef715208c4337bdcaf6e84acc484f02be7cdb64920d2af7d36cf2ac00",{"version":"3a15910b7f45dfc393f010ee8f913580b08d65752800fc48147ea13445acd5f7","affectsGlobalScope":true},{"version":"63e2182615c513e89bb8a3e749d08f7c379e86490fcdbf6d35f2c14b3507a6e8","affectsGlobalScope":true},"0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true},"e5979905796fe2740d85fbaf4f11f42b7ee1851421afe750823220813421b1af",{"version":"fcdcb42da18dd98dc286b1876dd425791772036012ae61263c011a76b13a190f","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","5b30f550565fd0a7524282c81c27fe8534099e2cd26170ca80852308f07ae68d","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","d97cd8a4a42f557fc62271369ed0461c8e50d47b7f9c8ad0b5462f53306f6060","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"bfea28e6162ed21a0aeed181b623dcf250aa79abf49e24a6b7e012655af36d81","affectsGlobalScope":true},"b8aca9d0c81abb02bec9b7621983ae65bde71da6727580070602bd2500a9ce2a","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","10d4796a130577d57003a77b95d8723530bbec84718e364aa2129fa8ffba0378","063f53ff674228c190efa19dd9448bcbd540acdbb48a928f4cf3a1b9f9478e43","bf73c576885408d4a176f44a9035d798827cc5020d58284cb18d7573430d9022","7ae078ca42a670445ae0c6a97c029cb83d143d62abd1730efb33f68f0b2c0e82",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"963fe86b2ebd07a34b92b52c6532ab45ec5ccda218a6c477de354fcad2aae0cb","12eea70b5e11e924bb0543aea5eadc16ced318aa26001b453b0d561c2fd0bd1e","08777cd9318d294646b121838574e1dd7acbb22c21a03df84e1f2c87b1ad47f2","08a90bcdc717df3d50a2ce178d966a8c353fd23e5c392fd3594a6e39d9bb6304",{"version":"4cd4cff679c9b3d9239fd7bf70293ca4594583767526916af8e5d5a47d0219c7","affectsGlobalScope":true},"2a12d2da5ac4c4979401a3f6eaafa874747a37c365e4bc18aa2b171ae134d21b","002b837927b53f3714308ecd96f72ee8a053b8aeb28213d8ec6de23ed1608b66","1dc9c847473bb47279e398b22c740c83ea37a5c88bf66629666e3cf4c5b9f99c","a9e4a5a24bf2c44de4c98274975a1a705a0abbaad04df3557c2d3cd8b1727949","821dcb2b571bf698841d8ec25fde9d5f615ef3958957227962602f9dbfa8d800","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","5f0ed51db151c2cdc4fa3bb0f44ce6066912ad001b607a34e65a96c52eb76248",{"version":"af9771b066ec35ffa1c7db391b018d2469d55e51b98ae95e62b6cbef1b0169ca","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","103d70bfbeb3cd3a3f26d1705bf986322d8738c2c143f38ebb743b1e228d7444","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7",{"version":"3a2da34079a2567161c1359316a32e712404b56566c45332ac9dcee015ecce9f","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"aee3379fb20741a337a779530cc3e608aba5f34776511033d1d2db7ca45c4193","7693b0547e3b004443fa1f4327b61617e7317757a3e947ccc200c91111c77eca"],"options":{"composite":false,"declaration":true,"emitDeclarationOnly":true,"module":99,"noImplicitAny":false,"noUncheckedIndexedAccess":true,"outDir":"./","sourceMap":true,"strict":true,"strictNullChecks":true,"target":99},"fileIdsList":[[64,109],[109],[66,109],[69,109],[70,75,109],[71,81,82,89,98,108,109],[71,72,81,89,109],[73,109],[74,75,82,90,109],[75,98,105,109],[76,78,81,89,109],[77,109],[78,79,109],[80,81,109],[81,109],[81,82,83,98,108,109],[81,82,83,98,109],[109,113],[84,89,98,108,109],[81,82,84,85,89,98,105,108,109],[84,86,98,105,108,109],[66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115],[81,87,109],[88,108,109],[78,81,89,98,109],[90,109],[91,109],[69,92,109],[93,107,109,113],[94,109],[95,109],[81,96,109],[96,97,109,111],[81,98,99,100,109],[98,100,109],[98,99,109],[101,109],[102,109],[81,103,104,109],[103,104,109],[75,89,98,105,109],[106,109],[89,107,109],[70,84,95,108,109],[75,109],[98,109,110],[109,111],[109,112],[70,75,81,83,92,98,108,109,111,113],[98,109,114],[52,53,54,109],[56,109],[52,55,58,109],[52,53,109],[52,109],[52],[52,55,58]],"referencedMap":[[65,1],[64,2],[66,3],[67,3],[69,4],[70,5],[71,6],[72,7],[73,8],[74,9],[75,10],[76,11],[77,12],[78,13],[79,13],[80,14],[81,15],[82,16],[83,17],[68,18],[115,2],[84,19],[85,20],[86,21],[116,22],[87,23],[88,24],[89,25],[90,26],[91,27],[92,28],[93,29],[94,30],[95,31],[96,32],[97,33],[98,34],[100,35],[99,36],[101,37],[102,38],[103,39],[104,40],[105,41],[106,42],[107,43],[108,44],[109,45],[110,46],[111,47],[112,48],[113,49],[114,50],[117,2],[11,2],[12,2],[14,2],[13,2],[2,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[3,2],[4,2],[26,2],[23,2],[24,2],[25,2],[27,2],[28,2],[29,2],[5,2],[30,2],[31,2],[32,2],[33,2],[6,2],[34,2],[35,2],[36,2],[37,2],[7,2],[42,2],[38,2],[39,2],[40,2],[41,2],[8,2],[46,2],[43,2],[44,2],[45,2],[47,2],[9,2],[48,2],[49,2],[50,2],[1,2],[10,2],[51,2],[55,51],[56,2],[57,52],[59,53],[60,2],[61,2],[62,2],[58,54],[63,2],[53,2],[52,2],[54,55]],"exportedModulesMap":[[65,1],[64,2],[66,3],[67,3],[69,4],[70,5],[71,6],[72,7],[73,8],[74,9],[75,10],[76,11],[77,12],[78,13],[79,13],[80,14],[81,15],[82,16],[83,17],[68,18],[115,2],[84,19],[85,20],[86,21],[116,22],[87,23],[88,24],[89,25],[90,26],[91,27],[92,28],[93,29],[94,30],[95,31],[96,32],[97,33],[98,34],[100,35],[99,36],[101,37],[102,38],[103,39],[104,40],[105,41],[106,42],[107,43],[108,44],[109,45],[110,46],[111,47],[112,48],[113,49],[114,50],[117,2],[11,2],[12,2],[14,2],[13,2],[2,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[3,2],[4,2],[26,2],[23,2],[24,2],[25,2],[27,2],[28,2],[29,2],[5,2],[30,2],[31,2],[32,2],[33,2],[6,2],[34,2],[35,2],[36,2],[37,2],[7,2],[42,2],[38,2],[39,2],[40,2],[41,2],[8,2],[46,2],[43,2],[44,2],[45,2],[47,2],[9,2],[48,2],[49,2],[50,2],[1,2],[10,2],[51,2],[55,56],[56,2],[57,52],[59,57],[60,2],[61,2],[62,2],[58,56],[63,2],[53,2],[54,56]],"semanticDiagnosticsPerFile":[65,64,66,67,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,68,115,84,85,86,116,87,88,89,90,91,92,93,94,95,96,97,98,100,99,101,102,103,104,105,106,107,108,109,110,111,112,113,114,117,11,12,14,13,2,15,16,17,18,19,20,21,22,3,4,26,23,24,25,27,28,29,5,30,31,32,33,6,34,35,36,37,7,42,38,39,40,41,8,46,43,44,45,47,9,48,49,50,1,10,51,55,56,57,59,60,61,62,58,63,53,52,54]},"version":"4.6.3"}
|