@gjsify/zlib 0.0.4 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -2
- package/lib/esm/index.js +276 -4
- package/lib/types/index.d.ts +91 -3
- package/package.json +16 -22
- package/src/index.spec.ts +1145 -39
- package/src/index.ts +329 -3
- package/tsconfig.json +21 -9
- package/tsconfig.tsbuildinfo +1 -0
- package/lib/cjs/index.js +0 -6
- package/test.gjs.js +0 -35635
- package/test.gjs.js.map +0 -7
- package/test.gjs.mjs +0 -40864
- package/test.node.js +0 -1252
- package/test.node.js.map +0 -7
- package/test.node.mjs +0 -333
- package/tsconfig.types.json +0 -8
- package/tsconfig.types.tsbuildinfo +0 -1
package/test.node.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../gjs/unit/src/index.ts", "src/index.spec.ts", "src/test.ts"],
|
|
4
|
-
"sourcesContent": ["import type GLib from '@gjsify/types/GLib-2.0';\nimport { versions } from 'process';\n\nconst mainloop: GLib.MainLoop | undefined = (globalThis as any)?.imports?.mainloop;\n\n// This file is part of the gjsunit framework\n// Please visit https://github.com/philipphoffmann/gjsunit for more information\n\nvar countTestsOverall = 0;\nvar countTestsFailed = 0;\n\nexport interface Namespaces {\n\t[key: string]: () => (void | Promise<void>) | Namespaces;\n}\n\n// Makes this work on Gjs and Node.js\nexport const print = globalThis.print || console.log;\n\nclass MatcherFactory {\n\n\tpublic not?: MatcherFactory;\n\n\tconstructor(protected readonly actualValue: any, protected readonly positive: boolean, withOpposite = true) {\n\t\tif (withOpposite) {\n\t\t\tthis.not = new MatcherFactory(actualValue, !positive, false);\n\t\t}\n\t}\n\n\ttriggerResult(success: boolean, msg: string) {\n\t\tif( (success && !this.positive) ||\n\t\t\t(!success && this.positive) ) {\n\t\t\t++countTestsFailed;\n\t\t\tthrow new Error(msg);\n\t\t}\n\t}\n\n\tto(callback: (actualValue: any) => boolean) {\n\t\tthis.triggerResult(callback(this.actualValue),\n\t\t\t' Expected callback to validate'\n\t\t);\n\t}\n\n\ttoBe(expectedValue: any) {\n\t\tthis.triggerResult(this.actualValue === expectedValue,\n\t\t\t' Expected values to match using ===\\n' +\n\t\t\t' Expected: ' + expectedValue + '\\n' +\n\t\t\t' Actual: ' + this.actualValue\n\t\t);\n\t}\n\n\ttoEqual(expectedValue: any) {\n\t\tthis.triggerResult(this.actualValue == expectedValue,\n\t\t\t' Expected values to match using ==\\n' +\n\t\t\t' Expected: ' + expectedValue + '\\n' +\n\t\t\t' Actual: ' + this.actualValue\n\t\t);\n\t}\n\n\ttoMatch(expectedValue: any) {\n\t\tif(typeof this.actualValue.match !== 'function') {\n\t\t\tthrow new Error(`You can not use toMatch on type ${typeof this.actualValue}`);\n\t\t}\n\t\tthis.triggerResult(!!this.actualValue.match(expectedValue),\n\t\t\t' Expected values to match using regular expression\\n' +\n\t\t\t' Expression: ' + expectedValue + '\\n' +\n\t\t\t' Actual: ' + this.actualValue\n\t\t);\n\t}\n\n\ttoBeDefined() {\n\t\tthis.triggerResult(typeof this.actualValue !== 'undefined',\n\t\t\t' Expected value to be defined'\n\t\t);\n\t}\n\n\ttoBeUndefined() {\n\t\tthis.triggerResult(typeof this.actualValue === 'undefined',\n\t\t\t' Expected value to be undefined'\n\t\t);\n\t}\n\n\ttoBeNull() {\n\t\tthis.triggerResult(this.actualValue === null,\n\t\t\t' Expected value to be null'\n\t\t);\n\t}\n\n\ttoBeTruthy() {\n\t\tthis.triggerResult(this.actualValue as unknown as boolean,\n\t\t\t' Expected value to be truthy'\n\t\t);\n\t}\n\n\ttoBeFalsy() {\n\t\tthis.triggerResult(!this.actualValue,\n\t\t\t' Expected value to be falsy'\n\t\t);\n\t}\n\n\ttoContain(needle: any) {\n\t\tthis.triggerResult(this.actualValue instanceof Array && this.actualValue.indexOf(needle) !== -1,\n\t\t\t' Expected ' + this.actualValue + ' to contain ' + needle\n\t\t);\n\t}\n\ttoBeLessThan(greaterValue: number) {\n\t\tthis.triggerResult(this.actualValue < greaterValue,\n\t\t\t' Expected ' + this.actualValue + ' to be less than ' + greaterValue\n\t\t);\n\t}\n\ttoBeGreaterThan(smallerValue: number) {\n\t\tthis.triggerResult(this.actualValue > smallerValue,\n\t\t\t' Expected ' + this.actualValue + ' to be greater than ' + smallerValue\n\t\t);\n\t}\n\ttoBeCloseTo(expectedValue: number, precision: number) {\n\t\tvar shiftHelper = Math.pow(10, precision);\n\t\tthis.triggerResult(Math.round((this.actualValue as unknown as number) * shiftHelper) / shiftHelper === Math.round(expectedValue * shiftHelper) / shiftHelper,\n\t\t\t' Expected ' + this.actualValue + ' with precision ' + precision + ' to be close to ' + expectedValue\n\t\t);\n\t}\n\ttoThrow() {\n\t\tlet errorMessage = ''; \n\t\tvar didThrow = false;\n\t\ttry {\n\t\t\tthis.actualValue();\n\t\t\tdidThrow = false;\n\t\t}\n\t\tcatch(e) {\n\t\t\terrorMessage = e.message || '';\n\t\t\tdidThrow = true;\n\t\t}\n\t\tconst functionName = this.actualValue.name || typeof this.actualValue === 'function' ? \"[anonymous function]\" : this.actualValue.toString();\n\t\tthis.triggerResult(didThrow,\n\t\t\t` Expected ${functionName} to ${this.positive ? 'throw' : 'not throw'} an exception ${!this.positive && errorMessage ? `, but an error with the message \"${errorMessage}\" was thrown` : ''}`\n\t\t);\n\t}\n}\n\nexport const describe = async function(moduleName: string, callback: () => void | Promise<void>) {\n\tprint('\\n' + moduleName);\n\tawait callback();\n};\n\nexport const it = async function(expectation: string, callback: () => void | Promise<void>) {\n\ttry {\n\t\tawait callback();\n\t\tprint(' \\x1B[32m\u2714\\x1B[39m \\x1B[90m' + expectation + '\\x1B[39m');\n\t}\n\tcatch(e) {\n\t\tprint(' \\x1B[31m\u274C\\x1B[39m \\x1B[90m' + expectation + '\\x1B[39m');\n\t\tprint('\\x1B[31m' + e.message + '\\x1B[39m');\n\t\t// if (e.stack) print(e.stack);\n\t}\n}\n\nexport const expect = function(actualValue: any) {\n\t++countTestsOverall;\n\n\tvar expecter = new MatcherFactory(actualValue, true);\n\n\treturn expecter;\n}\n\nconst runTests = async function(namespaces: Namespaces) {\n\t// recursively check the test directory for executable tests\n\tfor( var subNamespace in namespaces ) {\n\t\tconst namespace = namespaces[subNamespace];\n\t\t// execute any test functions\n\t\tif(typeof namespace === 'function' ) {\n\t\t\tawait namespace();\n\t\t}\n\t\t// descend into subfolders and objects\n\t\telse if( typeof namespace === 'object' ) {\n\t\t\tawait runTests(namespace);\n\t\t}\n\t}\n}\n\nconst printResult = () => {\n\tif( countTestsFailed ) {\n\t\t// some tests failed\n\t\tprint('\\n\\x1B[31m\u274C ' + countTestsFailed + ' of ' + countTestsOverall + ' tests failed\\x1B[39m');\n\t}\n\telse {\n\t\t// all tests okay\n\t\tprint('\\n\\x1B[32m\u2714 ' + countTestsOverall + ' completed\\x1B[39m');\n\t}\n}\n\nconst printRuntime = () => {\n\tif (versions.gjs) {\n\t\tprint(`Running on Gjs ${versions.gjs}`);\n\t} else if(versions.node) {\n\t\tprint(`Running on Node.js ${versions.node}`);\n\t} else {\n\t\tprint(`Running on unknown runtime`);\n\t}\n\t\n}\n\nexport const run = function(namespaces: Namespaces) {\n\tprintRuntime();\n\trunTests(namespaces)\n\t.then(() => {\n\t\tprintResult();\n\t\tprint();\n\t\tmainloop?.quit();\n\t})\n\n // Run the GJS mainloop for async operations\n mainloop?.run();\n}\n", "import { describe, it, expect } from '@gjsify/unit';\n\nimport { deflateRaw, inflateRaw, deflate, inflate, gzip, gunzip } from 'zlib';\n\nexport default async () => {\n\n\tawait describe('zlib.deflateRaw', async () => {\n\t\tawait it('should be a function', async () => {\n\t\t\texpect(typeof deflateRaw).toBe(\"function\");\n\t\t});\n\t});\n\n\tawait describe('zlib.inflateRaw', async () => {\n\t\tawait it('should be a function', async () => {\n\t\t\texpect(typeof inflateRaw).toBe(\"function\");\n\t\t});\n\t});\n\n\tawait describe('zlib.deflate', async () => {\n\t\tawait it('should be a function', async () => {\n\t\t\texpect(typeof deflate).toBe(\"function\");\n\t\t});\n\t});\n\n\tawait describe('zlib.inflate', async () => {\n\t\tawait it('should be a function', async () => {\n\t\t\texpect(typeof inflate).toBe(\"function\");\n\t\t});\n\t});\n\n\tawait describe('zlib.gzip', async () => {\n\t\tawait it('should be a function', async () => {\n\t\t\texpect(typeof gzip).toBe(\"function\");\n\t\t});\n\t});\n\n\tawait describe('zlib.gunzip', async () => {\n\t\tawait it('should be a function', async () => {\n\t\t\texpect(typeof gunzip).toBe(\"function\");\n\t\t});\n\t});\n\n}\n", "\nimport { run } from '@gjsify/unit';\n\nimport testSuite from './index.spec.js';\n\nrun({testSuite});"],
|
|
5
|
-
"mappings": "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",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/test.node.mjs
DELETED
|
@@ -1,333 +0,0 @@
|
|
|
1
|
-
// ../../../node_modules/@girs/gjs/gjs.js
|
|
2
|
-
var imports = globalThis.imports || {};
|
|
3
|
-
|
|
4
|
-
// ../../gjs/unit/lib/esm/index.js
|
|
5
|
-
import nodeAssert from "assert";
|
|
6
|
-
var mainloop = globalThis?.imports?.mainloop;
|
|
7
|
-
var countTestsOverall = 0;
|
|
8
|
-
var countTestsFailed = 0;
|
|
9
|
-
var countTestsIgnored = 0;
|
|
10
|
-
var runtime = "";
|
|
11
|
-
var RED = "\x1B[31m";
|
|
12
|
-
var GREEN = "\x1B[32m";
|
|
13
|
-
var BLUE = "\x1B[34m";
|
|
14
|
-
var GRAY = "\x1B[90m";
|
|
15
|
-
var RESET = "\x1B[39m";
|
|
16
|
-
var print = globalThis.print || console.log;
|
|
17
|
-
var MatcherFactory = class _MatcherFactory {
|
|
18
|
-
constructor(actualValue, positive, negated) {
|
|
19
|
-
this.actualValue = actualValue;
|
|
20
|
-
this.positive = positive;
|
|
21
|
-
if (negated) {
|
|
22
|
-
this.not = negated;
|
|
23
|
-
} else {
|
|
24
|
-
this.not = new _MatcherFactory(actualValue, !positive, this);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
not;
|
|
28
|
-
triggerResult(success, msg) {
|
|
29
|
-
if (success && !this.positive || !success && this.positive) {
|
|
30
|
-
++countTestsFailed;
|
|
31
|
-
throw new Error(msg);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
to(callback) {
|
|
35
|
-
this.triggerResult(
|
|
36
|
-
callback(this.actualValue),
|
|
37
|
-
` Expected callback to validate`
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
toBe(expectedValue) {
|
|
41
|
-
this.triggerResult(
|
|
42
|
-
this.actualValue === expectedValue,
|
|
43
|
-
` Expected values to match using ===
|
|
44
|
-
Expected: ${expectedValue} (${typeof expectedValue})
|
|
45
|
-
Actual: ${this.actualValue} (${typeof this.actualValue})`
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
toEqual(expectedValue) {
|
|
49
|
-
this.triggerResult(
|
|
50
|
-
this.actualValue == expectedValue,
|
|
51
|
-
` Expected values to match using ==
|
|
52
|
-
Expected: ${expectedValue} (${typeof expectedValue})
|
|
53
|
-
Actual: ${this.actualValue} (${typeof this.actualValue})`
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
toEqualArray(expectedValue) {
|
|
57
|
-
let success = Array.isArray(this.actualValue) && Array.isArray(expectedValue) && this.actualValue.length === expectedValue.length;
|
|
58
|
-
for (let i = 0; i < this.actualValue.length; i++) {
|
|
59
|
-
const actualVal = this.actualValue[i];
|
|
60
|
-
const expectedVal = expectedValue[i];
|
|
61
|
-
success = actualVal == expectedVal;
|
|
62
|
-
if (!success)
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
this.triggerResult(
|
|
66
|
-
success,
|
|
67
|
-
` Expected array items to match using ==
|
|
68
|
-
Expected: ${expectedValue} (${typeof expectedValue})
|
|
69
|
-
Actual: ${this.actualValue} (${typeof this.actualValue})`
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
toMatch(expectedValue) {
|
|
73
|
-
if (typeof this.actualValue.match !== "function") {
|
|
74
|
-
throw new Error(`You can not use toMatch on type ${typeof this.actualValue}`);
|
|
75
|
-
}
|
|
76
|
-
this.triggerResult(
|
|
77
|
-
!!this.actualValue.match(expectedValue),
|
|
78
|
-
" Expected values to match using regular expression\n Expression: " + expectedValue + "\n Actual: " + this.actualValue
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
toBeDefined() {
|
|
82
|
-
this.triggerResult(
|
|
83
|
-
typeof this.actualValue !== "undefined",
|
|
84
|
-
` Expected value to be defined`
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
toBeUndefined() {
|
|
88
|
-
this.triggerResult(
|
|
89
|
-
typeof this.actualValue === "undefined",
|
|
90
|
-
` Expected value to be undefined`
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
toBeNull() {
|
|
94
|
-
this.triggerResult(
|
|
95
|
-
this.actualValue === null,
|
|
96
|
-
` Expected value to be null`
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
toBeTruthy() {
|
|
100
|
-
this.triggerResult(
|
|
101
|
-
this.actualValue,
|
|
102
|
-
` Expected value to be truthy`
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
toBeFalsy() {
|
|
106
|
-
this.triggerResult(
|
|
107
|
-
!this.actualValue,
|
|
108
|
-
` Expected value to be falsy`
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
toContain(needle) {
|
|
112
|
-
this.triggerResult(
|
|
113
|
-
this.actualValue instanceof Array && this.actualValue.indexOf(needle) !== -1,
|
|
114
|
-
` Expected ` + this.actualValue + ` to contain ` + needle
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
toBeLessThan(greaterValue) {
|
|
118
|
-
this.triggerResult(
|
|
119
|
-
this.actualValue < greaterValue,
|
|
120
|
-
` Expected ` + this.actualValue + ` to be less than ` + greaterValue
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
toBeGreaterThan(smallerValue) {
|
|
124
|
-
this.triggerResult(
|
|
125
|
-
this.actualValue > smallerValue,
|
|
126
|
-
` Expected ` + this.actualValue + ` to be greater than ` + smallerValue
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
toBeCloseTo(expectedValue, precision) {
|
|
130
|
-
const shiftHelper = Math.pow(10, precision);
|
|
131
|
-
this.triggerResult(
|
|
132
|
-
Math.round(this.actualValue * shiftHelper) / shiftHelper === Math.round(expectedValue * shiftHelper) / shiftHelper,
|
|
133
|
-
` Expected ` + this.actualValue + ` with precision ` + precision + ` to be close to ` + expectedValue
|
|
134
|
-
);
|
|
135
|
-
}
|
|
136
|
-
toThrow(ErrorType) {
|
|
137
|
-
let errorMessage = "";
|
|
138
|
-
let didThrow = false;
|
|
139
|
-
let typeMatch = true;
|
|
140
|
-
try {
|
|
141
|
-
this.actualValue();
|
|
142
|
-
didThrow = false;
|
|
143
|
-
} catch (e) {
|
|
144
|
-
errorMessage = e.message || "";
|
|
145
|
-
didThrow = true;
|
|
146
|
-
if (ErrorType) {
|
|
147
|
-
typeMatch = e instanceof ErrorType;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
const functionName = this.actualValue.name || typeof this.actualValue === "function" ? "[anonymous function]" : this.actualValue.toString();
|
|
151
|
-
this.triggerResult(
|
|
152
|
-
didThrow,
|
|
153
|
-
` Expected ${functionName} to ${this.positive ? "throw" : "not throw"} an exception ${!this.positive && errorMessage ? `, but an error with the message "${errorMessage}" was thrown` : ""}`
|
|
154
|
-
);
|
|
155
|
-
if (ErrorType) {
|
|
156
|
-
this.triggerResult(
|
|
157
|
-
typeMatch,
|
|
158
|
-
` Expected Error type '${ErrorType.name}', but the error is not an instance of it`
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
var describe = async function(moduleName, callback) {
|
|
164
|
-
print("\n" + moduleName);
|
|
165
|
-
await callback();
|
|
166
|
-
beforeEachCb = null;
|
|
167
|
-
afterEachCb = null;
|
|
168
|
-
};
|
|
169
|
-
var beforeEachCb;
|
|
170
|
-
var afterEachCb;
|
|
171
|
-
var it = async function(expectation, callback) {
|
|
172
|
-
try {
|
|
173
|
-
if (typeof beforeEachCb === "function") {
|
|
174
|
-
await beforeEachCb();
|
|
175
|
-
}
|
|
176
|
-
await callback();
|
|
177
|
-
if (typeof afterEachCb === "function") {
|
|
178
|
-
await afterEachCb();
|
|
179
|
-
}
|
|
180
|
-
print(` ${GREEN}\u2714${RESET} ${GRAY}${expectation}${RESET}`);
|
|
181
|
-
} catch (e) {
|
|
182
|
-
print(` ${RED}\u274C${RESET} ${GRAY}${expectation}${RESET}`);
|
|
183
|
-
print(`${RED}${e.message}${RESET}`);
|
|
184
|
-
if (e.stack)
|
|
185
|
-
print(e.stack);
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
var expect = function(actualValue) {
|
|
189
|
-
++countTestsOverall;
|
|
190
|
-
const expecter = new MatcherFactory(actualValue, true);
|
|
191
|
-
return expecter;
|
|
192
|
-
};
|
|
193
|
-
var assert = function(success, message) {
|
|
194
|
-
++countTestsOverall;
|
|
195
|
-
if (!success) {
|
|
196
|
-
++countTestsFailed;
|
|
197
|
-
}
|
|
198
|
-
nodeAssert(success, message);
|
|
199
|
-
};
|
|
200
|
-
assert.strictEqual = function(actual, expected, message) {
|
|
201
|
-
++countTestsOverall;
|
|
202
|
-
try {
|
|
203
|
-
nodeAssert.strictEqual(actual, expected, message);
|
|
204
|
-
} catch (error) {
|
|
205
|
-
++countTestsFailed;
|
|
206
|
-
throw error;
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
assert.throws = function(promiseFn, ...args) {
|
|
210
|
-
++countTestsOverall;
|
|
211
|
-
let error;
|
|
212
|
-
try {
|
|
213
|
-
promiseFn();
|
|
214
|
-
} catch (e) {
|
|
215
|
-
error = e;
|
|
216
|
-
}
|
|
217
|
-
if (!error)
|
|
218
|
-
++countTestsFailed;
|
|
219
|
-
nodeAssert.throws(() => {
|
|
220
|
-
if (error)
|
|
221
|
-
throw error;
|
|
222
|
-
}, args[0], args[1]);
|
|
223
|
-
};
|
|
224
|
-
assert.deepStrictEqual = function(actual, expected, message) {
|
|
225
|
-
++countTestsOverall;
|
|
226
|
-
try {
|
|
227
|
-
nodeAssert.deepStrictEqual(actual, expected, message);
|
|
228
|
-
} catch (error) {
|
|
229
|
-
++countTestsFailed;
|
|
230
|
-
throw error;
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
var runTests = async function(namespaces) {
|
|
234
|
-
for (const subNamespace in namespaces) {
|
|
235
|
-
const namespace = namespaces[subNamespace];
|
|
236
|
-
if (typeof namespace === "function") {
|
|
237
|
-
await namespace();
|
|
238
|
-
} else if (typeof namespace === "object") {
|
|
239
|
-
await runTests(namespace);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
var printResult = () => {
|
|
244
|
-
if (countTestsIgnored) {
|
|
245
|
-
print(`
|
|
246
|
-
${BLUE}\u2714 ${countTestsIgnored} ignored test${countTestsIgnored > 1 ? "s" : ""}${RESET}`);
|
|
247
|
-
}
|
|
248
|
-
if (countTestsFailed) {
|
|
249
|
-
print(`
|
|
250
|
-
${RED}\u274C ${countTestsFailed} of ${countTestsOverall} tests failed${RESET}`);
|
|
251
|
-
} else {
|
|
252
|
-
print(`
|
|
253
|
-
${GREEN}\u2714 ${countTestsOverall} completed${RESET}`);
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
var getRuntime = async () => {
|
|
257
|
-
if (runtime && runtime !== "Unknown") {
|
|
258
|
-
return runtime;
|
|
259
|
-
}
|
|
260
|
-
if (globalThis.Deno?.version?.deno) {
|
|
261
|
-
return "Deno " + globalThis.Deno?.version?.deno;
|
|
262
|
-
} else {
|
|
263
|
-
let process = globalThis.process;
|
|
264
|
-
if (!process) {
|
|
265
|
-
try {
|
|
266
|
-
process = await import("process");
|
|
267
|
-
} catch (error) {
|
|
268
|
-
console.error(error);
|
|
269
|
-
console.warn(error.message);
|
|
270
|
-
runtime = "Unknown";
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
if (process?.versions?.gjs) {
|
|
274
|
-
runtime = "Gjs " + process.versions.gjs;
|
|
275
|
-
} else if (process?.versions?.node) {
|
|
276
|
-
runtime = "Node.js " + process.versions.node;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
return runtime || "Unknown";
|
|
280
|
-
};
|
|
281
|
-
var printRuntime = async () => {
|
|
282
|
-
const runtime2 = await getRuntime();
|
|
283
|
-
print(`
|
|
284
|
-
Running on ${runtime2}`);
|
|
285
|
-
};
|
|
286
|
-
var run = async (namespaces) => {
|
|
287
|
-
printRuntime().then(async () => {
|
|
288
|
-
return runTests(namespaces).then(() => {
|
|
289
|
-
printResult();
|
|
290
|
-
print();
|
|
291
|
-
mainloop?.quit();
|
|
292
|
-
});
|
|
293
|
-
});
|
|
294
|
-
mainloop?.run();
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
// src/index.spec.ts
|
|
298
|
-
import { deflateRaw, inflateRaw, deflate, inflate, gzip, gunzip } from "zlib";
|
|
299
|
-
var index_spec_default = async () => {
|
|
300
|
-
await describe("zlib.deflateRaw", async () => {
|
|
301
|
-
await it("should be a function", async () => {
|
|
302
|
-
expect(typeof deflateRaw).toBe("function");
|
|
303
|
-
});
|
|
304
|
-
});
|
|
305
|
-
await describe("zlib.inflateRaw", async () => {
|
|
306
|
-
await it("should be a function", async () => {
|
|
307
|
-
expect(typeof inflateRaw).toBe("function");
|
|
308
|
-
});
|
|
309
|
-
});
|
|
310
|
-
await describe("zlib.deflate", async () => {
|
|
311
|
-
await it("should be a function", async () => {
|
|
312
|
-
expect(typeof deflate).toBe("function");
|
|
313
|
-
});
|
|
314
|
-
});
|
|
315
|
-
await describe("zlib.inflate", async () => {
|
|
316
|
-
await it("should be a function", async () => {
|
|
317
|
-
expect(typeof inflate).toBe("function");
|
|
318
|
-
});
|
|
319
|
-
});
|
|
320
|
-
await describe("zlib.gzip", async () => {
|
|
321
|
-
await it("should be a function", async () => {
|
|
322
|
-
expect(typeof gzip).toBe("function");
|
|
323
|
-
});
|
|
324
|
-
});
|
|
325
|
-
await describe("zlib.gunzip", async () => {
|
|
326
|
-
await it("should be a function", async () => {
|
|
327
|
-
expect(typeof gunzip).toBe("function");
|
|
328
|
-
});
|
|
329
|
-
});
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
// src/test.mts
|
|
333
|
-
run({ testSuite: index_spec_default });
|
package/tsconfig.types.json
DELETED
|
@@ -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.es2023.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.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.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.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.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/typescript/lib/lib.esnext.full.d.ts","../../deno/std/lib/node/internal_binding/constants.d.ts","../../deno/std/lib/node/_zlib.d.ts","../../deno/std/lib/node/zlib.d.ts","./src/index.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/buffer/index.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/index.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/dom-events.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/readline/promises.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/test.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"],"fileInfos":[{"version":"f33e5332b24c3773e930e212cbb8b6867c8ba3ec4492064ea78e55a524d57450","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","26f2f787e82c4222710f3b676b4d83eb5ad0a72fa7b746f03449e7a026ce5073","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","1c0cdb8dc619bc549c3e5020643e7cf7ae7940058e8c7e5aefa5871b6d86f44b","bed7b7ba0eb5a160b69af72814b4dde371968e40b6c5e73d3a9f7bee407d158c",{"version":"21e41a76098aa7a191028256e52a726baafd45a925ea5cf0222eb430c96c1d83","affectsGlobalScope":true},{"version":"35299ae4a62086698444a5aaee27fc7aa377c68cbb90b441c9ace246ffd05c97","affectsGlobalScope":true},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"e0275cd0e42990dc3a16f0b7c8bca3efe87f1c8ad404f80c6db1c7c0b828c59f","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"acae90d417bee324b1372813b5a00829d31c7eb670d299cd7f8f9a648ac05688","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"62a4966981264d1f04c44eb0f4b5bdc3d81c1a54725608861e44755aa24ad6a5","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"86a34c7a13de9cabc43161348f663624b56871ed80986e41d214932ddd8d6719","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"4350e5922fecd4bedda2964d69c213a1436349d0b8d260dd902795f5b94dc74b","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"fd1adc28ce106d6b5f7204355726a7ec922191ad5a8cc1a01841cbf9df9a7e64","4e850598b0dfebab5e71699eb19dbc9c32795e030234a7ddd3938d534298bb62","28d66ffec9f7858903c82e46d4eda7ee39e10cb85bd84d2bd8c85a29ead895c2","ab990a1e79eca1075f6dd235c31732f0e94338fa3f7b1d8178c9c8c5ec2cc2d6",{"version":"c9d351f4280ebdc7e35b711925ed7ec52cd15bad71f0bf194908525de00144e7","signature":"c7844e4fd9987768e97f584012a9417c34abed4fdb6ed7f9ffb0edaf5e490c76"},"efc7d584a33fe3422847783d228f315c4cd1afe74bd7cf8e3f0e4c1125129fef","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"a14ed46fa3f5ffc7a8336b497cd07b45c2084213aaca933a22443fcb2eef0d07","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"185282b122cbca820c297a02a57b89cf5967ab43e220e3e174d872d3f9a94d2c","affectsGlobalScope":true},"16d74fe4d8e183344d3beb15d48b123c5980ff32ff0cc8c3b96614ddcdf9b239","7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba",{"version":"41fb2a1c108fbf46609ce5a451b7ec78eb9b5ada95fd5b94643e4b26397de0b3","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","e8968b394e4365588f8f89cfff86435258cf10062585c1d2224627ab92acda22","285e512c7a0db217a0599e18c462d565fa35be4a5153dd7b80bee88c83e83ddf","b5b719a47968cd61a6f83f437236bb6fe22a39223b6620da81ef89f5d7a78fb7","8806ae97308ef26363bd7ec8071bca4d07fb575f905ee3d8a91aff226df6d618","af5bf1db6f1804fb0069039ae77a05d60133c77a2158d9635ea27b6bb2828a8f","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true},{"version":"7ae9dc7dbb58cd843065639707815df85c044babaa0947116f97bdb824d07204","affectsGlobalScope":true},"7aae1df2053572c2cfc2089a77847aadbb38eedbaa837a846c6a49fb37c6e5bd","313a0b063f5188037db113509de1b934a0e286f14e9479af24fada241435e707","1f758340b027b18ae8773ac3d33a60648a2af49eaae9e4fde18d0a0dd608642c","87ef1a23caa071b07157c72077fa42b86d30568f9dc9e31eed24d5d14fc30ba8","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","21773f5ac69ddf5a05636ba1f50b5239f4f2d27e4420db147fc2f76a5ae598ac",{"version":"dea4c00820d4fac5e530d4842aed2fb20d6744d75a674b95502cbd433f88bcb0","affectsGlobalScope":true},"a5fe4cc622c3bf8e09ababde5f4096ceac53163eefcd95e9cd53f062ff9bb67a","45b1053e691c5af9bfe85060a3e1542835f8d84a7e6e2e77ca305251eda0cb3c","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"0d832a0650a74aafc276cb3f7bb26bde2e2270a6f87e6c871a64122e9203079b","affectsGlobalScope":true},{"version":"c6f3869f12bb5c3bb8ecd0b050ea20342b89b944eae18d313cde6b0ccc0925d7","affectsGlobalScope":true},"8abd0566d2854c4bd1c5e48e05df5c74927187f1541e6770001d9637ac41542e","d742ed2db6d5425b3b6ac5fb1f2e4b1ed2ae74fbeee8d0030d852121a4b05d2f","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","8221b00f271cf7f535a8eeec03b0f80f0929c7a16116e2d2df089b41066de69b","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","f8c87b19eae111f8720b0345ab301af8d81add39621b63614dfc2d15fd6f140a","831c22d257717bf2cbb03afe9c4bcffc5ccb8a2074344d4238bf16d3a857bb12",{"version":"2225100373ca3d63bcc7f206e1177152d2e2161285a0bd83c8374db1503a0d1f","affectsGlobalScope":true},{"version":"7052b7b0c3829df3b4985bab2fd74531074b4835d5a7b263b75c82f0916ad62f","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","eefcdf86cefff36e5d87de36a3638ab5f7d16c2b68932be4a72c14bb924e43c1","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"4d0405568cf6e0ff36a4861c4a77e641366feaefa751600b0a4d12a5e8f730a8","affectsGlobalScope":true},{"version":"f5b5dc128973498b75f52b1b8c2d5f8629869104899733ae485100c2309b4c12","affectsGlobalScope":true},"e393915d3dc385e69c0e2390739c87b2d296a610662eb0b1cb85224e55992250","79bad8541d5779c85e82a9fb119c1fe06af77a71cc40f869d62ad379473d4b75","4a34b074b11c3597fb2ff890bc8f1484375b3b80793ab01f974534808d5777c7",{"version":"629d20681ca284d9e38c0a019f647108f5fe02f9c59ac164d56f5694fc3faf4d","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447"],"root":[72],"options":{"allowImportingTsExtensions":true,"composite":true,"declarationDir":"./lib/types","emitDeclarationOnly":true,"experimentalDecorators":true,"module":99,"outDir":"./lib","rootDir":"./src","target":99},"fileIdsList":[[73],[109],[110,115,143],[111,122,123,130,140,151],[111,112,122,130],[113,152],[114,115,123,131],[115,140,148],[116,118,122,130],[117],[118,119],[122],[120,122],[109,122],[122,123,124,140,151],[122,123,124,137,140,143],[107,110,156],[118,122,125,130,140,151],[122,123,125,126,130,140,148,151],[125,127,140,148,151],[73,74,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158],[122,128],[129,151,156],[118,122,130,140],[131],[132],[109,133],[134,150,156],[135],[136],[122,137,138],[137,139,152,154],[110,122,140,141,142,143],[110,140,142],[140,141],[143],[144],[109,140],[122,146,147],[146,147],[115,130,140,148],[149],[130,150],[110,125,136,151],[115,152],[140,153],[129,154],[155],[110,115,122,124,133,140,151,154,156],[140,157],[84,88,151],[84,140,151],[79],[81,84,148,151],[130,148],[159],[79,159],[81,84,130,151],[76,77,80,83,110,122,140,151],[76,82],[80,84,110,143,151,159],[110,159],[100,110,159],[78,79,159],[84],[78,79,80,81,82,83,84,85,86,88,89,90,91,92,93,94,95,96,97,98,99,101,102,103,104,105,106],[84,91,92],[82,84,92,93],[83],[76,79,84],[84,88,92,93],[88],[82,84,87,151],[76,81,82,84,88,91],[110,140],[79,84,100,110,156,159],[69,70],[71]],"referencedMap":[[73,1],[74,1],[109,2],[110,3],[111,4],[112,5],[113,6],[114,7],[115,8],[116,9],[117,10],[118,11],[119,11],[121,12],[120,13],[122,14],[123,15],[124,16],[108,17],[125,18],[126,19],[127,20],[159,21],[128,22],[129,23],[130,24],[131,25],[132,26],[133,27],[134,28],[135,29],[136,30],[137,31],[138,31],[139,32],[140,33],[142,34],[141,35],[143,36],[144,37],[145,38],[146,39],[147,40],[148,41],[149,42],[150,43],[151,44],[152,45],[153,46],[154,47],[155,48],[156,49],[157,50],[91,51],[98,52],[90,51],[105,53],[82,54],[81,55],[104,56],[99,57],[102,58],[84,59],[83,60],[79,61],[78,62],[101,63],[80,64],[85,65],[89,65],[107,66],[106,65],[93,67],[94,68],[96,69],[92,70],[95,71],[100,56],[87,72],[88,73],[97,74],[77,75],[103,76],[71,77],[72,78]],"exportedModulesMap":[[73,1],[74,1],[109,2],[110,3],[111,4],[112,5],[113,6],[114,7],[115,8],[116,9],[117,10],[118,11],[119,11],[121,12],[120,13],[122,14],[123,15],[124,16],[108,17],[125,18],[126,19],[127,20],[159,21],[128,22],[129,23],[130,24],[131,25],[132,26],[133,27],[134,28],[135,29],[136,30],[137,31],[138,31],[139,32],[140,33],[142,34],[141,35],[143,36],[144,37],[145,38],[146,39],[147,40],[148,41],[149,42],[150,43],[151,44],[152,45],[153,46],[154,47],[155,48],[156,49],[157,50],[91,51],[98,52],[90,51],[105,53],[82,54],[81,55],[104,56],[99,57],[102,58],[84,59],[83,60],[79,61],[78,62],[101,63],[80,64],[85,65],[89,65],[107,66],[106,65],[93,67],[94,68],[96,69],[92,70],[95,71],[100,56],[87,72],[88,73],[97,74],[77,75],[103,76],[71,77],[72,78]],"semanticDiagnosticsPerFile":[73,74,109,110,111,112,113,114,115,116,117,118,119,121,120,122,123,124,108,158,125,126,127,159,128,129,130,131,132,133,134,135,136,137,138,139,140,142,141,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,75,66,67,12,13,17,16,2,18,19,20,21,22,23,24,25,3,4,26,30,27,28,29,31,32,33,5,34,35,36,37,6,41,38,39,40,42,7,43,48,49,44,45,46,47,8,53,50,51,52,54,9,55,56,57,60,58,59,61,62,10,1,11,65,64,68,63,15,14,91,98,90,105,82,81,104,99,102,84,83,79,78,101,80,85,86,89,76,107,106,93,94,96,92,95,100,87,88,97,77,103,70,69,71,72],"latestChangedDtsFile":"./lib/types/index.d.ts"},"version":"5.3.3"}
|