@gjsify/util 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 +29 -3
- package/lib/esm/errors.js +261 -0
- package/lib/esm/index.js +578 -4
- package/lib/esm/types/index.js +297 -3
- package/lib/esm/types.js +6 -0
- package/lib/types/errors.d.ts +2 -0
- package/lib/types/index.d.ts +98 -3
- package/lib/types/types/index.d.ts +84 -2
- package/lib/types/types.d.ts +3 -0
- package/package.json +17 -28
- package/src/errors.ts +101 -0
- package/src/extended.spec.ts +469 -0
- package/src/index.spec.ts +368 -184
- package/src/index.ts +674 -3
- package/src/test.ts +2 -1
- package/src/types/index.ts +356 -3
- package/src/types.ts +4 -0
- package/tsconfig.json +22 -10
- package/tsconfig.tsbuildinfo +1 -0
- package/lib/cjs/index.js +0 -6
- package/lib/cjs/types/index.js +0 -6
- package/test.gjs.mjs +0 -35177
- package/test.node.mjs +0 -507
- package/tsconfig.types.json +0 -8
- package/tsconfig.types.tsbuildinfo +0 -1
package/test.node.mjs
DELETED
|
@@ -1,507 +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 * 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.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/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/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,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"26f2f787e82c4222710f3b676b4d83eb5ad0a72fa7b746f03449e7a026ce5073","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","impliedFormat":1},{"version":"1c0cdb8dc619bc549c3e5020643e7cf7ae7940058e8c7e5aefa5871b6d86f44b","impliedFormat":1},{"version":"bed7b7ba0eb5a160b69af72814b4dde371968e40b6c5e73d3a9f7bee407d158c","impliedFormat":1},{"version":"21e41a76098aa7a191028256e52a726baafd45a925ea5cf0222eb430c96c1d83","affectsGlobalScope":true,"impliedFormat":1},{"version":"35299ae4a62086698444a5aaee27fc7aa377c68cbb90b441c9ace246ffd05c97","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true,"impliedFormat":1},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true,"impliedFormat":1},{"version":"e0275cd0e42990dc3a16f0b7c8bca3efe87f1c8ad404f80c6db1c7c0b828c59f","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true,"impliedFormat":1},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true,"impliedFormat":1},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true,"impliedFormat":1},{"version":"acae90d417bee324b1372813b5a00829d31c7eb670d299cd7f8f9a648ac05688","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true,"impliedFormat":1},{"version":"62a4966981264d1f04c44eb0f4b5bdc3d81c1a54725608861e44755aa24ad6a5","affectsGlobalScope":true,"impliedFormat":1},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true,"impliedFormat":1},{"version":"86a34c7a13de9cabc43161348f663624b56871ed80986e41d214932ddd8d6719","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true,"impliedFormat":1},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true,"impliedFormat":1},{"version":"4350e5922fecd4bedda2964d69c213a1436349d0b8d260dd902795f5b94dc74b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"fd1adc28ce106d6b5f7204355726a7ec922191ad5a8cc1a01841cbf9df9a7e64","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":"efc7d584a33fe3422847783d228f315c4cd1afe74bd7cf8e3f0e4c1125129fef","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","impliedFormat":1},{"version":"3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","impliedFormat":1},{"version":"e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","impliedFormat":1},{"version":"471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","impliedFormat":1},{"version":"c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","impliedFormat":1},{"version":"40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","impliedFormat":1},{"version":"339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","impliedFormat":1},{"version":"9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","impliedFormat":1},{"version":"8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","impliedFormat":1},{"version":"4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1","impliedFormat":1},{"version":"a14ed46fa3f5ffc7a8336b497cd07b45c2084213aaca933a22443fcb2eef0d07","affectsGlobalScope":true,"impliedFormat":1},{"version":"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c","impliedFormat":1},{"version":"185282b122cbca820c297a02a57b89cf5967ab43e220e3e174d872d3f9a94d2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"16d74fe4d8e183344d3beb15d48b123c5980ff32ff0cc8c3b96614ddcdf9b239","impliedFormat":1},{"version":"7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba","impliedFormat":1},{"version":"41fb2a1c108fbf46609ce5a451b7ec78eb9b5ada95fd5b94643e4b26397de0b3","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"e8968b394e4365588f8f89cfff86435258cf10062585c1d2224627ab92acda22","impliedFormat":1},{"version":"285e512c7a0db217a0599e18c462d565fa35be4a5153dd7b80bee88c83e83ddf","impliedFormat":1},{"version":"b5b719a47968cd61a6f83f437236bb6fe22a39223b6620da81ef89f5d7a78fb7","impliedFormat":1},{"version":"8806ae97308ef26363bd7ec8071bca4d07fb575f905ee3d8a91aff226df6d618","impliedFormat":1},{"version":"af5bf1db6f1804fb0069039ae77a05d60133c77a2158d9635ea27b6bb2828a8f","impliedFormat":1},{"version":"b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e","impliedFormat":1},{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ae9dc7dbb58cd843065639707815df85c044babaa0947116f97bdb824d07204","affectsGlobalScope":true,"impliedFormat":1},{"version":"7aae1df2053572c2cfc2089a77847aadbb38eedbaa837a846c6a49fb37c6e5bd","impliedFormat":1},{"version":"313a0b063f5188037db113509de1b934a0e286f14e9479af24fada241435e707","impliedFormat":1},{"version":"1f758340b027b18ae8773ac3d33a60648a2af49eaae9e4fde18d0a0dd608642c","impliedFormat":1},{"version":"87ef1a23caa071b07157c72077fa42b86d30568f9dc9e31eed24d5d14fc30ba8","impliedFormat":1},{"version":"396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","impliedFormat":1},{"version":"21773f5ac69ddf5a05636ba1f50b5239f4f2d27e4420db147fc2f76a5ae598ac","impliedFormat":1},{"version":"dea4c00820d4fac5e530d4842aed2fb20d6744d75a674b95502cbd433f88bcb0","affectsGlobalScope":true,"impliedFormat":1},{"version":"a5fe4cc622c3bf8e09ababde5f4096ceac53163eefcd95e9cd53f062ff9bb67a","impliedFormat":1},{"version":"45b1053e691c5af9bfe85060a3e1542835f8d84a7e6e2e77ca305251eda0cb3c","impliedFormat":1},{"version":"0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7","impliedFormat":1},{"version":"0d832a0650a74aafc276cb3f7bb26bde2e2270a6f87e6c871a64122e9203079b","affectsGlobalScope":true,"impliedFormat":1},{"version":"c6f3869f12bb5c3bb8ecd0b050ea20342b89b944eae18d313cde6b0ccc0925d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8abd0566d2854c4bd1c5e48e05df5c74927187f1541e6770001d9637ac41542e","impliedFormat":1},{"version":"d742ed2db6d5425b3b6ac5fb1f2e4b1ed2ae74fbeee8d0030d852121a4b05d2f","impliedFormat":1},{"version":"d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","impliedFormat":1},{"version":"8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","impliedFormat":1},{"version":"01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","impliedFormat":1},{"version":"8221b00f271cf7f535a8eeec03b0f80f0929c7a16116e2d2df089b41066de69b","impliedFormat":1},{"version":"269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"f8c87b19eae111f8720b0345ab301af8d81add39621b63614dfc2d15fd6f140a","impliedFormat":1},{"version":"831c22d257717bf2cbb03afe9c4bcffc5ccb8a2074344d4238bf16d3a857bb12","impliedFormat":1},{"version":"2225100373ca3d63bcc7f206e1177152d2e2161285a0bd83c8374db1503a0d1f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7052b7b0c3829df3b4985bab2fd74531074b4835d5a7b263b75c82f0916ad62f","affectsGlobalScope":true,"impliedFormat":1},{"version":"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","impliedFormat":1},{"version":"eefcdf86cefff36e5d87de36a3638ab5f7d16c2b68932be4a72c14bb924e43c1","impliedFormat":1},{"version":"7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","impliedFormat":1},{"version":"7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df","impliedFormat":1},{"version":"4d0405568cf6e0ff36a4861c4a77e641366feaefa751600b0a4d12a5e8f730a8","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5b5dc128973498b75f52b1b8c2d5f8629869104899733ae485100c2309b4c12","affectsGlobalScope":true,"impliedFormat":1},{"version":"e393915d3dc385e69c0e2390739c87b2d296a610662eb0b1cb85224e55992250","impliedFormat":1},{"version":"79bad8541d5779c85e82a9fb119c1fe06af77a71cc40f869d62ad379473d4b75","impliedFormat":1},{"version":"4a34b074b11c3597fb2ff890bc8f1484375b3b80793ab01f974534808d5777c7","impliedFormat":1},{"version":"629d20681ca284d9e38c0a019f647108f5fe02f9c59ac164d56f5694fc3faf4d","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795","impliedFormat":1},{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},{"version":"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","impliedFormat":1}],"root":[81,82],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declarationDir":"./lib/types","emitDeclarationOnly":true,"experimentalDecorators":true,"module":99,"outDir":"./lib","rootDir":"./src","target":99},"fileIdsList":[[83],[119],[120,125,153],[121,132,133,140,150,161],[121,122,132,140],[123,162],[124,125,133,141],[125,150,158],[126,128,132,140],[127],[128,129],[132],[130,132],[119,132],[132,133,134,150,161],[132,133,134,147,150,153],[117,120,166],[128,132,135,140,150,161],[132,133,135,136,140,150,158,161],[135,137,150,158,161],[83,84,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,159,160,161,162,163,164,165,166,167,168],[132,138],[139,161,166],[128,132,140,150],[141],[142],[119,143],[144,160,166],[145],[146],[132,147,148],[147,149,162,164],[120,132,150,151,152,153],[120,150,152],[150,151],[153],[154],[119,150],[132,156,157],[156,157],[125,140,150,158],[159],[140,160],[120,135,146,161],[125,162],[150,163],[139,164],[165],[120,125,132,134,143,150,161,164,166],[150,167],[94,98,161],[94,150,161],[89],[91,94,158,161],[140,158],[169],[89,169],[91,94,140,161],[86,87,90,93,120,132,150,161],[86,92],[90,94,120,153,161,169],[120,169],[110,120,169],[88,89,169],[94],[88,89,90,91,92,93,94,95,96,98,99,100,101,102,103,104,105,106,107,108,109,111,112,113,114,115,116],[94,101,102],[92,94,102,103],[93],[86,89,94],[94,98,102,103],[98],[92,94,97,161],[86,91,92,94,98,101],[120,150],[89,94,110,120,166,169],[69],[74,75],[70,71,72,73,77,78,79],[76],[80],[77]],"referencedMap":[[83,1],[84,1],[119,2],[120,3],[121,4],[122,5],[123,6],[124,7],[125,8],[126,9],[127,10],[128,11],[129,11],[131,12],[130,13],[132,14],[133,15],[134,16],[118,17],[135,18],[136,19],[137,20],[169,21],[138,22],[139,23],[140,24],[141,25],[142,26],[143,27],[144,28],[145,29],[146,30],[147,31],[148,31],[149,32],[150,33],[152,34],[151,35],[153,36],[154,37],[155,38],[156,39],[157,40],[158,41],[159,42],[160,43],[161,44],[162,45],[163,46],[164,47],[165,48],[166,49],[167,50],[101,51],[108,52],[100,51],[115,53],[92,54],[91,55],[114,56],[109,57],[112,58],[94,59],[93,60],[89,61],[88,62],[111,63],[90,64],[95,65],[99,65],[117,66],[116,65],[103,67],[104,68],[106,69],[102,70],[105,71],[110,56],[97,72],[98,73],[107,74],[87,75],[113,76],[70,77],[76,78],[80,79],[77,80],[81,81],[82,82]],"exportedModulesMap":[[83,1],[84,1],[119,2],[120,3],[121,4],[122,5],[123,6],[124,7],[125,8],[126,9],[127,10],[128,11],[129,11],[131,12],[130,13],[132,14],[133,15],[134,16],[118,17],[135,18],[136,19],[137,20],[169,21],[138,22],[139,23],[140,24],[141,25],[142,26],[143,27],[144,28],[145,29],[146,30],[147,31],[148,31],[149,32],[150,33],[152,34],[151,35],[153,36],[154,37],[155,38],[156,39],[157,40],[158,41],[159,42],[160,43],[161,44],[162,45],[163,46],[164,47],[165,48],[166,49],[167,50],[101,51],[108,52],[100,51],[115,53],[92,54],[91,55],[114,56],[109,57],[112,58],[94,59],[93,60],[89,61],[88,62],[111,63],[90,64],[95,65],[99,65],[117,66],[116,65],[103,67],[104,68],[106,69],[102,70],[105,71],[110,56],[97,72],[98,73],[107,74],[87,75],[113,76],[70,77],[76,78],[80,79],[77,80],[81,81],[82,82]],"latestChangedDtsFile":"./lib/types/types/index.d.ts"},"version":"5.3.3"}
|