@gjsify/util 0.0.2
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 +6 -0
- package/lib/cjs/index.js +36 -0
- package/lib/cjs/types/index.js +36 -0
- package/lib/esm/index.js +6 -0
- package/lib/esm/types/index.js +6 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/types/index.d.ts +3 -0
- package/package.json +54 -0
- package/src/index.spec.ts +256 -0
- package/src/index.ts +4 -0
- package/src/test.ts +6 -0
- package/src/types/index.ts +4 -0
- package/test.gjs.mjs +35212 -0
- package/test.node.mjs +507 -0
- package/tsconfig.json +19 -0
- package/tsconfig.types.json +8 -0
- package/tsconfig.types.tsbuildinfo +1 -0
package/test.node.mjs
ADDED
|
@@ -0,0 +1,507 @@
|
|
|
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 {
|
|
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 * as util from "util";
|
|
299
|
+
var ANSI_PATTERN = new RegExp(
|
|
300
|
+
[
|
|
301
|
+
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
302
|
+
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
|
|
303
|
+
].join("|"),
|
|
304
|
+
"g"
|
|
305
|
+
);
|
|
306
|
+
function stripColor(string) {
|
|
307
|
+
return string.replace(ANSI_PATTERN, "");
|
|
308
|
+
}
|
|
309
|
+
var index_spec_default = async () => {
|
|
310
|
+
await describe("[util] format", async () => {
|
|
311
|
+
await it("should return the right result", async () => {
|
|
312
|
+
expect(util.format("%o", [10, 11])).toBe("[ 10, 11, [length]: 2 ]");
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
await describe("[util] inspect.custom", async () => {
|
|
316
|
+
await it("should be the symbol for nodejs.util.inspect.custom", async () => {
|
|
317
|
+
expect(util.inspect.custom.description).toEqual("nodejs.util.inspect.custom");
|
|
318
|
+
});
|
|
319
|
+
});
|
|
320
|
+
await describe("[util] inspect", async () => {
|
|
321
|
+
await it("should return the right results", async () => {
|
|
322
|
+
expect(stripColor(util.inspect({ foo: 123 }))).toBe("{ foo: 123 }");
|
|
323
|
+
expect(stripColor(util.inspect("Deno's logo is so cute."))).toBe(`"Deno's logo is so cute."`);
|
|
324
|
+
expect(stripColor(util.inspect([1, 2, 3, 4, 5, 6, 7]))).toBe(
|
|
325
|
+
`[
|
|
326
|
+
1, 2, 3, 4,
|
|
327
|
+
5, 6, 7
|
|
328
|
+
]`
|
|
329
|
+
);
|
|
330
|
+
});
|
|
331
|
+
});
|
|
332
|
+
await describe("[util] isBoolean", async () => {
|
|
333
|
+
await it("should return the right results", async () => {
|
|
334
|
+
expect(util.isBoolean(true)).toBeTruthy();
|
|
335
|
+
expect(util.isBoolean(false)).toBeTruthy();
|
|
336
|
+
expect(util.isBoolean("deno")).toBeFalsy();
|
|
337
|
+
expect(util.isBoolean("true")).toBeFalsy();
|
|
338
|
+
});
|
|
339
|
+
});
|
|
340
|
+
await describe("[util] isNull", async () => {
|
|
341
|
+
await it("should return the right results", async () => {
|
|
342
|
+
let n;
|
|
343
|
+
expect(util.isNull(null)).toBeTruthy();
|
|
344
|
+
expect(util.isNull(n)).toBeFalsy();
|
|
345
|
+
expect(util.isNull(0)).toBeFalsy();
|
|
346
|
+
expect(util.isNull({})).toBeFalsy();
|
|
347
|
+
});
|
|
348
|
+
});
|
|
349
|
+
await describe("[util] isNullOrUndefined", async () => {
|
|
350
|
+
await it("should return the right results", async () => {
|
|
351
|
+
let n;
|
|
352
|
+
expect(util.isNullOrUndefined(null)).toBeTruthy();
|
|
353
|
+
expect(util.isNullOrUndefined(n)).toBeTruthy();
|
|
354
|
+
expect(util.isNullOrUndefined({})).toBeFalsy();
|
|
355
|
+
expect(util.isNullOrUndefined("undefined")).toBeFalsy();
|
|
356
|
+
});
|
|
357
|
+
});
|
|
358
|
+
await describe("[util] isNumber", async () => {
|
|
359
|
+
await it("should return the right results", async () => {
|
|
360
|
+
expect(util.isNumber(666)).toBeTruthy();
|
|
361
|
+
expect(util.isNumber("999")).toBeFalsy();
|
|
362
|
+
expect(util.isNumber(null)).toBeFalsy();
|
|
363
|
+
});
|
|
364
|
+
});
|
|
365
|
+
await describe("[util] isString", async () => {
|
|
366
|
+
await it("should return the right results", async () => {
|
|
367
|
+
expect(util.isString("deno")).toBeTruthy();
|
|
368
|
+
expect(util.isString(1337)).toBeFalsy();
|
|
369
|
+
});
|
|
370
|
+
});
|
|
371
|
+
await describe("[util] isSymbol", async () => {
|
|
372
|
+
await it("should return the right results", async () => {
|
|
373
|
+
expect(util.isSymbol(Symbol())).toBeTruthy();
|
|
374
|
+
expect(util.isSymbol(123)).toBeFalsy();
|
|
375
|
+
expect(util.isSymbol("string")).toBeFalsy();
|
|
376
|
+
});
|
|
377
|
+
});
|
|
378
|
+
await describe("[util] isUndefined", async () => {
|
|
379
|
+
await it("should return the right results", async () => {
|
|
380
|
+
let t;
|
|
381
|
+
expect(util.isUndefined(t)).toBeTruthy();
|
|
382
|
+
expect(util.isUndefined("undefined")).toBeFalsy();
|
|
383
|
+
expect(util.isUndefined({})).toBeFalsy();
|
|
384
|
+
});
|
|
385
|
+
});
|
|
386
|
+
await describe("[util] isObject", async () => {
|
|
387
|
+
await it("should return the right results", async () => {
|
|
388
|
+
const dio = { stand: "Za Warudo" };
|
|
389
|
+
expect(util.isObject(dio)).toBeTruthy();
|
|
390
|
+
expect(util.isObject(new RegExp(/Toki Wo Tomare/))).toBeTruthy();
|
|
391
|
+
expect(util.isObject("Jotaro")).toBeFalsy();
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
await describe("[util] isError", async () => {
|
|
395
|
+
await it("should return the right results", async () => {
|
|
396
|
+
const java = new Error();
|
|
397
|
+
const nodejs = new TypeError();
|
|
398
|
+
const deno = "Future";
|
|
399
|
+
expect(util.isError(java)).toBeTruthy();
|
|
400
|
+
expect(util.isError(nodejs)).toBeTruthy();
|
|
401
|
+
expect(util.isError(deno)).toBeFalsy();
|
|
402
|
+
});
|
|
403
|
+
});
|
|
404
|
+
await describe("[util] isFunction", async () => {
|
|
405
|
+
await it("should return the right results", async () => {
|
|
406
|
+
const f = function() {
|
|
407
|
+
};
|
|
408
|
+
expect(util.isFunction(f)).toBeTruthy();
|
|
409
|
+
expect(util.isFunction({})).toBeFalsy();
|
|
410
|
+
expect(util.isFunction(new RegExp(/f/))).toBeFalsy();
|
|
411
|
+
});
|
|
412
|
+
});
|
|
413
|
+
await describe("[util] isRegExp", async () => {
|
|
414
|
+
await it("should return the right results", async () => {
|
|
415
|
+
expect(util.isRegExp(new RegExp(/f/))).toBeTruthy();
|
|
416
|
+
expect(util.isRegExp(/fuManchu/)).toBeTruthy();
|
|
417
|
+
expect(util.isRegExp({ evil: "eye" })).toBeFalsy();
|
|
418
|
+
expect(util.isRegExp(null)).toBeFalsy();
|
|
419
|
+
});
|
|
420
|
+
});
|
|
421
|
+
await describe("[util] isArray", async () => {
|
|
422
|
+
await it("should return the right results", async () => {
|
|
423
|
+
expect(util.isArray([])).toBeTruthy();
|
|
424
|
+
expect(util.isArray({ yaNo: "array" })).toBeFalsy();
|
|
425
|
+
expect(util.isArray(null)).toBeFalsy();
|
|
426
|
+
});
|
|
427
|
+
});
|
|
428
|
+
await describe("[util] isPrimitive", async () => {
|
|
429
|
+
await it("should return the right results", async () => {
|
|
430
|
+
const stringType = "hasti";
|
|
431
|
+
const booleanType = true;
|
|
432
|
+
const integerType = 2;
|
|
433
|
+
const symbolType = Symbol("anything");
|
|
434
|
+
const functionType = function doBest() {
|
|
435
|
+
};
|
|
436
|
+
const objectType = { name: "ali" };
|
|
437
|
+
const arrayType = [1, 2, 3];
|
|
438
|
+
expect(util.isPrimitive(stringType)).toBeTruthy();
|
|
439
|
+
expect(util.isPrimitive(booleanType)).toBeTruthy();
|
|
440
|
+
expect(util.isPrimitive(integerType)).toBeTruthy();
|
|
441
|
+
expect(util.isPrimitive(symbolType)).toBeTruthy();
|
|
442
|
+
expect(util.isPrimitive(null)).toBeTruthy();
|
|
443
|
+
expect(util.isPrimitive(void 0)).toBeTruthy();
|
|
444
|
+
expect(util.isPrimitive(functionType)).toBeFalsy();
|
|
445
|
+
expect(util.isPrimitive(arrayType)).toBeFalsy();
|
|
446
|
+
expect(util.isPrimitive(objectType)).toBeFalsy();
|
|
447
|
+
});
|
|
448
|
+
});
|
|
449
|
+
await describe("[util] TextDecoder", async () => {
|
|
450
|
+
await it("should return the right results", async () => {
|
|
451
|
+
expect(util.TextDecoder === TextDecoder).toBeTruthy();
|
|
452
|
+
const td = new util.TextDecoder();
|
|
453
|
+
expect(td instanceof TextDecoder).toBeTruthy();
|
|
454
|
+
});
|
|
455
|
+
});
|
|
456
|
+
await describe("[util] TextEncoder", async () => {
|
|
457
|
+
await it("should return the right results", async () => {
|
|
458
|
+
expect(util.TextEncoder === TextEncoder).toBeTruthy();
|
|
459
|
+
const te = new util.TextEncoder();
|
|
460
|
+
expect(te instanceof TextEncoder).toBeTruthy();
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
await describe("[util] isDate", async () => {
|
|
464
|
+
await it("should return the right results", async () => {
|
|
465
|
+
expect(util.types.isDate(/* @__PURE__ */ new Date())).toBeTruthy();
|
|
466
|
+
});
|
|
467
|
+
});
|
|
468
|
+
await describe("[util] getSystemErrorName()", async () => {
|
|
469
|
+
await it("should return the right results", async () => {
|
|
470
|
+
expect(
|
|
471
|
+
() => util.getSystemErrorName()
|
|
472
|
+
).toThrow();
|
|
473
|
+
try {
|
|
474
|
+
util.getSystemErrorName();
|
|
475
|
+
} catch (error) {
|
|
476
|
+
expect(error instanceof Error).toBeTruthy();
|
|
477
|
+
expect(error instanceof TypeError).toBeTruthy();
|
|
478
|
+
}
|
|
479
|
+
expect(
|
|
480
|
+
() => util.getSystemErrorName(1)
|
|
481
|
+
).toThrow();
|
|
482
|
+
try {
|
|
483
|
+
util.getSystemErrorName(1);
|
|
484
|
+
} catch (error) {
|
|
485
|
+
expect(error instanceof Error).toBeTruthy();
|
|
486
|
+
expect(error instanceof RangeError).toBeTruthy();
|
|
487
|
+
}
|
|
488
|
+
expect(util.getSystemErrorName(-424242)).toBe("Unknown system error -424242");
|
|
489
|
+
const os = globalThis.process?.platform || globalThis.Deno?.build?.os || "linux";
|
|
490
|
+
switch (os) {
|
|
491
|
+
case "win32":
|
|
492
|
+
case "windows":
|
|
493
|
+
expect(util.getSystemErrorName(-4091)).toBe("EADDRINUSE");
|
|
494
|
+
break;
|
|
495
|
+
case "darwin":
|
|
496
|
+
expect(util.getSystemErrorName(-48)).toBe("EADDRINUSE");
|
|
497
|
+
break;
|
|
498
|
+
case "linux":
|
|
499
|
+
expect(util.getSystemErrorName(-98)).toBe("EADDRINUSE");
|
|
500
|
+
break;
|
|
501
|
+
}
|
|
502
|
+
});
|
|
503
|
+
});
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
// src/test.ts
|
|
507
|
+
run({ testSuite: index_spec_default });
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "ESNext",
|
|
4
|
+
"types": ["node"],
|
|
5
|
+
"target": "ESNext",
|
|
6
|
+
"moduleResolution": "NodeNext",
|
|
7
|
+
"experimentalDecorators": true,
|
|
8
|
+
"outDir": "lib",
|
|
9
|
+
"declarationDir": "lib/types",
|
|
10
|
+
"rootDir": "src",
|
|
11
|
+
"composite": true,
|
|
12
|
+
"allowSyntheticDefaultImports": true
|
|
13
|
+
},
|
|
14
|
+
"skipLibCheck": true,
|
|
15
|
+
"allowJs": true,
|
|
16
|
+
"checkJs": false,
|
|
17
|
+
"reflection": false,
|
|
18
|
+
"include": ["src/**/*.ts"]
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
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.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.esnext.intl.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/normalize_encoding.d.ts","../../deno/std/lib/node/internal/util.d.ts","../../deno/std/lib/node/_util/_util_callbackify.d.ts","../../deno/std/lib/node/internal/util/debuglog.d.ts","../../deno/std/lib/node/internal/util/inspect.d.ts","../../deno/std/lib/node/internal_binding/types.d.ts","../../deno/std/lib/node/internal/crypto/_keys.d.ts","../../deno/std/lib/node/internal/util/types.d.ts","../../deno/std/lib/node/util/types.d.ts","../../deno/std/lib/node/internal/util/comparisons.d.ts","../../deno/std/lib/node/_utils.d.ts","../../deno/std/lib/node/util.d.ts","./src/index.ts","./src/types/index.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/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":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","impliedFormat":1},{"version":"27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","impliedFormat":1},{"version":"f4e736d6c8d69ae5b3ab0ddfcaa3dc365c3e76909d6660af5b4e979b3934ac20","impliedFormat":1},{"version":"eeeb3aca31fbadef8b82502484499dfd1757204799a6f5b33116201c810676ec","impliedFormat":1},{"version":"3dda5344576193a4ae48b8d03f105c86f20b2f2aff0a1d1fd7935f5d68649654","affectsGlobalScope":true,"impliedFormat":1},{"version":"35299ae4a62086698444a5aaee27fc7aa377c68cbb90b441c9ace246ffd05c97","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5c5565225fce2ede835725a92a28ece149f83542aa4866cfb10290bff7b8996","affectsGlobalScope":true,"impliedFormat":1},{"version":"7d2dbc2a0250400af0809b0ad5f84686e84c73526de931f84560e483eb16b03c","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d9885c728913c1d16e0d2831b40341d6ad9a0ceecaabc55209b306ad9c736a5","affectsGlobalScope":true,"impliedFormat":1},{"version":"17bea081b9c0541f39dd1ae9bc8c78bdd561879a682e60e2f25f688c0ecab248","affectsGlobalScope":true,"impliedFormat":1},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true,"impliedFormat":1},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true,"impliedFormat":1},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true,"impliedFormat":1},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true,"impliedFormat":1},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true,"impliedFormat":1},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true,"impliedFormat":1},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true,"impliedFormat":1},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true,"impliedFormat":1},{"version":"f06948deb2a51aae25184561c9640fb66afeddb34531a9212d011792b1d19e0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true,"impliedFormat":1},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true,"impliedFormat":1},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true,"impliedFormat":1},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c92f2c27b06c1a41b88f6db8299205aee52c2a2943f7ed29bd585977f254e8","affectsGlobalScope":true,"impliedFormat":1},{"version":"930b0e15811f84e203d3c23508674d5ded88266df4b10abee7b31b2ac77632d2","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"b9ea5778ff8b50d7c04c9890170db34c26a5358cccba36844fe319f50a43a61a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true,"impliedFormat":1},{"version":"25de46552b782d43cb7284df22fe2a265de387cf0248b747a7a1b647d81861f6","affectsGlobalScope":true,"impliedFormat":1},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true,"impliedFormat":1},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"7823c8aa42d88e6cb454fe7dc56996c6fd174b28a9f050e9bdea1c25b7d114ea","impliedFormat":1},{"version":"b2607e2606e23cb6ee5ccc36922b3a45efcabeb2c497516fbb3e7eeb3b70988b","impliedFormat":99},{"version":"486527955d90977e4ca631ea962d33d3efa4eb7c163d380894feaa49edd18da2","impliedFormat":99},{"version":"09628631a8a07dc904002be5f7caae18f191932d15d35b48cc0431e29c4df898","impliedFormat":99},{"version":"d18b2318854f926d2bb94bddcef867cc730320257ba9421c302501eb8e76913f","impliedFormat":99},{"version":"f0590a41bb6ce8d47054d2fbf59706a1b0731261aa5baa28017a4be48fe2e0be","impliedFormat":99},{"version":"e5a35f8aac0392b2fe60ec8c19d4c76b930ca4f026f679acb23fd3b122dabad3","impliedFormat":99},{"version":"3837fa69fed64a5018f76ee1f6cf28df4b70f38b805764e28a90c86da8d52a48","impliedFormat":99},{"version":"e9d4b39f85a33988acd86daea3f351a8e6c9912606d37f0748bbc29a2d3e0635","impliedFormat":99},{"version":"2b1988eedff90a8c3f1737b811790ea0dd6e2b04301297d4509e634d72ea900d","impliedFormat":99},{"version":"e34f971b1d6ae207648148fda5a2f97cef11c974a20af683093911d0fea38153","impliedFormat":99},{"version":"f2a126b76337825daa92152cefac20bd51f49248c0a010a678c9df36c5d2a371","impliedFormat":99},{"version":"5340edfae2a7887d854add0e8de434964075a27bce89c686487f041173d88b8b","impliedFormat":99},{"version":"d350ef43d4c618f94d52cd25ad026b9caed9d8f21bf252b22e1d16ab344c3f27","signature":"84d99d650fc4440a603726e1d5141e570a594fd0dbc188fe74ca7d278fb4a7e8","impliedFormat":99},{"version":"d94e1aa5098a86e061ac867e46ca388bcb221ed73344c97917bbeecd854e0e5c","signature":"7ad751c24272a310b805d43ff00e97bbbda89c076fd847cb856c4d5ba6a0bbcd","impliedFormat":99},{"version":"587f13f1e8157bd8cec0adda0de4ef558bb8573daa9d518d1e2af38e87ecc91f","impliedFormat":1},{"version":"a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a","impliedFormat":1},{"version":"bce910d9164785c9f0d4dcea4be359f5f92130c7c7833dea6138ab1db310a1f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"7a435e0c814f58f23e9a0979045ec0ef5909aac95a70986e8bcce30c27dff228","impliedFormat":1},{"version":"a7534271773a27ff7d136d550e86b41894d8090fa857ba4c02b5bb18d2eb1c8e","affectsGlobalScope":true,"impliedFormat":1},{"version":"db71be322f07f769200108aa19b79a75dd19a187c9dca2a30c4537b233aa2863","impliedFormat":1},{"version":"57135ce61976a8b1dadd01bb412406d1805b90db6e8ecb726d0d78e0b5f76050","impliedFormat":1},{"version":"49479e21a040c0177d1b1bc05a124c0383df7a08a0726ad4d9457619642e875a","affectsGlobalScope":true,"impliedFormat":1},{"version":"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","impliedFormat":1},{"version":"b8e431e9b9bb2dc832b23d4e3e02774e953d5537998923f215ea446169e9a61e","impliedFormat":1},{"version":"3690133deae19c8127c5505fcb67b04bdc9eb053796008538a9b9abbb70d85aa","impliedFormat":1},{"version":"5b1c0a23f464f894e7c2b2b6c56df7b9afa60ed48c5345f8618d389a636b2108","impliedFormat":1},{"version":"be2b092f2765222757c6441b86c53a5ea8dfed47bbc43eab4c5fe37942c866b3","impliedFormat":1},{"version":"8e6b05abc98adba15e1ac78e137c64576c74002e301d682e66feb77a23907ab8","impliedFormat":1},{"version":"1ca735bb3d407b2af4fbee7665f3a0a83be52168c728cc209755060ba7ed67bd","impliedFormat":1},{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true,"impliedFormat":1},{"version":"b85c02e14ecb2a873dad5a1de72319b265160ba48f1b83661aeb3bba1366c1bc","affectsGlobalScope":true,"impliedFormat":1},{"version":"7a2ba0c9af860ac3e77b35ed01fd96d15986f17aa22fe40f188ae556fb1070df","impliedFormat":1},{"version":"fc3764040518a1008dd04bdc80964591b566b896283e00df85c95851c1f46237","impliedFormat":1},{"version":"55709608060f77965c270ac10ac646286589f1bd1cb174fff1778a2dd9a7ef31","impliedFormat":1},{"version":"790623a47c5eda62910098884ecb154dc0e5f3a23fc36c1bfb3b5b9ed44e2c2d","impliedFormat":1},{"version":"42b40e40f2a358cda332456214fad311e1806a6abf3cebaaac72496e07556642","impliedFormat":1},{"version":"354612fe1d49ecc9551ea3a27d94eef2887b64ef4a71f72ca444efe0f2f0ba80","impliedFormat":1},{"version":"125af9d85cb9d5e508353f10a8d52f01652d2d48b2cea54789a33e5b4d289c1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5490f53d40291cc8607f5463434d1ac6c5564bc4fbb03abceb03a8f6b014457","impliedFormat":1},{"version":"5e2b91328a540a0933ab5c2203f4358918e6f0fe7505d22840a891a6117735f1","impliedFormat":1},{"version":"3abc3512fa04aa0230f59ea1019311fd8667bd935d28306311dccc8b17e79d5d","impliedFormat":1},{"version":"14a50dafe3f45713f7f27cb6320dff07c6ac31678f07959c2134260061bf91ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"19da7150ca062323b1db6311a6ef058c9b0a39cc64d836b5e9b75d301869653b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1349077576abb41f0e9c78ec30762ff75b710208aff77f5fdcc6a8c8ce6289dd","impliedFormat":1},{"version":"e2ce82603102b5c0563f59fb40314cc1ff95a4d521a66ad14146e130ea80d89c","impliedFormat":1},{"version":"a3e0395220255a350aa9c6d56f882bfcb5b85c19fddf5419ec822cf22246a26d","impliedFormat":1},{"version":"c27b01e8ddff5cd280711af5e13aecd9a3228d1c256ea797dd64f8fdec5f7df5","impliedFormat":1},{"version":"898840e876dfd21843db9f2aa6ae38ba2eab550eb780ff62b894b9fbfebfae6b","impliedFormat":1},{"version":"0cab4d7d4edc40cd3af9eea7c3ed6d1016910c0954c49c4297e479bf3822a625","impliedFormat":1},{"version":"1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","impliedFormat":1},{"version":"785e5be57d4f20f290a20e7b0c6263f6c57fd6e51283050756cef07d6d651c68","impliedFormat":1},{"version":"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","impliedFormat":1},{"version":"164deb2409ac5f4da3cd139dbcee7f7d66753d90363a4d7e2db8d8874f272270","impliedFormat":1},{"version":"1fb6c5ec52332a8b531a8d7a5300ac9301f98c4fe62f68e744e0841ccba65e7e","impliedFormat":1},{"version":"ab294c4b7279318ee2a8fdf681305457ecc05970c94108d304933f18823eeac1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ad08154d9602429522cac965a715fde27d421d69b24756c5d291877dda75353e","impliedFormat":1},{"version":"bbda6ea452a2386093a1eda18a6e26a989e98869f1b9f37e46f510a986d2e740","impliedFormat":1},{"version":"812b25f798033c202baedf386a1ccc41f9191b122f089bffd10fdccce99fba11","impliedFormat":1},{"version":"993325544790073f77e945bee046d53988c0bc3ac5695c9cf8098166feb82661","impliedFormat":1},{"version":"75dd741ca6a6c8d2437a6ca8349b64b816421dbf9fe82dd026afaba965576962","affectsGlobalScope":true,"impliedFormat":1},{"version":"8799401a7ab57764f0d464513a7fa7c72e1d70a226b172ec60fff534ea94d108","affectsGlobalScope":true,"impliedFormat":1},{"version":"2ce2210032ccaff7710e2abf6a722e62c54960458e73e356b6a365c93ab6ca66","impliedFormat":1},{"version":"92db194ef7d208d5e4b6242a3434573fd142a621ff996d84cc9dbba3553277d0","impliedFormat":1},{"version":"16a3080e885ed52d4017c902227a8d0d8daf723d062bec9e45627c6fdcd6699b","impliedFormat":1},{"version":"0bd9543cd8fc0959c76fb8f4f5a26626c2ed62ef4be98fd857bce268066db0a2","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ca6858a0cbcd74d7db72d7b14c5360a928d1d16748a55ecfa6bfaff8b83071b","impliedFormat":1},{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},{"version":"247aa3419c98713231952b33801d4f46563fe542e03604acd8c63ac45a32409c","impliedFormat":1}],"root":[77,78],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declarationDir":"./lib/types","emitDeclarationOnly":true,"experimentalDecorators":true,"module":99,"outDir":"./lib","rootDir":"./src","target":99},"fileIdsList":[[79,125],[82,125],[83,88,116,125],[84,95,96,103,113,124,125],[84,85,95,103,125],[86,125],[87,88,96,104,125],[88,113,121,125],[89,91,95,103,125],[90,125],[91,92,125],[95,125],[93,95,125],[95,96,97,113,124,125],[95,96,97,110,113,116,125],[125,129],[125],[91,95,98,103,113,124,125],[95,96,98,99,103,113,121,124,125],[98,100,113,121,124,125],[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,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],[95,101,125],[102,124,125],[91,95,103,113,125],[104,125],[105,125],[82,106,125],[107,123,125,129],[108,125],[109,125],[95,110,111,125],[110,112,125,127],[83,95,113,114,115,116,125],[83,113,115,125],[113,114,125],[116,125],[117,125],[113,125],[95,119,120,125],[119,120,125],[88,103,113,121,125],[122,125],[103,123,125],[83,98,109,124,125],[88,125],[113,125,126],[125,127],[125,128],[83,88,95,97,106,113,124,125,127,129],[113,125,130],[65,125],[70,71,125],[66,67,68,69,73,74,75,125],[72,125],[76,125],[73,125],[76],[73]],"referencedMap":[[79,1],[80,1],[82,2],[83,3],[84,4],[85,5],[86,6],[87,7],[88,8],[89,9],[90,10],[91,11],[92,11],[94,12],[93,13],[95,12],[96,14],[97,15],[81,16],[131,17],[98,18],[99,19],[100,20],[132,21],[101,22],[102,23],[103,24],[104,25],[105,26],[106,27],[107,28],[108,29],[109,30],[110,31],[111,31],[112,32],[113,33],[115,34],[114,35],[116,36],[117,37],[118,38],[119,39],[120,40],[121,41],[122,42],[123,43],[124,44],[125,45],[126,46],[127,47],[128,48],[129,49],[130,50],[62,17],[63,17],[12,17],[13,17],[17,17],[16,17],[2,17],[18,17],[19,17],[20,17],[21,17],[22,17],[23,17],[24,17],[25,17],[3,17],[4,17],[29,17],[26,17],[27,17],[28,17],[30,17],[31,17],[32,17],[5,17],[33,17],[34,17],[35,17],[36,17],[6,17],[40,17],[37,17],[38,17],[39,17],[41,17],[7,17],[42,17],[47,17],[48,17],[43,17],[44,17],[45,17],[46,17],[8,17],[52,17],[49,17],[50,17],[51,17],[53,17],[9,17],[54,17],[55,17],[56,17],[59,17],[57,17],[58,17],[60,17],[10,17],[1,17],[11,17],[64,17],[61,17],[15,17],[14,17],[67,17],[75,17],[71,17],[65,17],[66,51],[74,17],[68,17],[69,17],[72,52],[70,17],[76,53],[73,54],[77,55],[78,56]],"exportedModulesMap":[[79,1],[80,1],[82,2],[83,3],[84,4],[85,5],[86,6],[87,7],[88,8],[89,9],[90,10],[91,11],[92,11],[94,12],[93,13],[95,12],[96,14],[97,15],[81,16],[131,17],[98,18],[99,19],[100,20],[132,21],[101,22],[102,23],[103,24],[104,25],[105,26],[106,27],[107,28],[108,29],[109,30],[110,31],[111,31],[112,32],[113,33],[115,34],[114,35],[116,36],[117,37],[118,38],[119,39],[120,40],[121,41],[122,42],[123,43],[124,44],[125,45],[126,46],[127,47],[128,48],[129,49],[130,50],[62,17],[63,17],[12,17],[13,17],[17,17],[16,17],[2,17],[18,17],[19,17],[20,17],[21,17],[22,17],[23,17],[24,17],[25,17],[3,17],[4,17],[29,17],[26,17],[27,17],[28,17],[30,17],[31,17],[32,17],[5,17],[33,17],[34,17],[35,17],[36,17],[6,17],[40,17],[37,17],[38,17],[39,17],[41,17],[7,17],[42,17],[47,17],[48,17],[43,17],[44,17],[45,17],[46,17],[8,17],[52,17],[49,17],[50,17],[51,17],[53,17],[9,17],[54,17],[55,17],[56,17],[59,17],[57,17],[58,17],[60,17],[10,17],[1,17],[11,17],[64,17],[61,17],[15,17],[14,17],[67,17],[75,17],[71,17],[65,17],[66,51],[74,17],[68,17],[69,17],[72,52],[70,17],[76,53],[73,54],[77,57],[78,58]],"semanticDiagnosticsPerFile":[79,80,82,83,84,85,86,87,88,89,90,91,92,94,93,95,96,97,81,131,98,99,100,132,101,102,103,104,105,106,107,108,109,110,111,112,113,115,114,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,62,63,12,13,17,16,2,18,19,20,21,22,23,24,25,3,4,29,26,27,28,30,31,32,5,33,34,35,36,6,40,37,38,39,41,7,42,47,48,43,44,45,46,8,52,49,50,51,53,9,54,55,56,59,57,58,60,10,1,11,64,61,15,14,67,75,71,65,66,74,68,69,72,70,76,73,77,78],"latestChangedDtsFile":"./lib/types/types/index.d.ts"},"version":"5.1.3"}
|