@socketsecurity/lib 5.26.0 → 5.27.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/CHANGELOG.md +371 -1185
- package/README.md +1 -1
- package/dist/abort.js +7 -6
- package/dist/agent.js +16 -15
- package/dist/ansi.js +3 -2
- package/dist/archives.js +18 -17
- package/dist/argv/flags.js +29 -28
- package/dist/argv/parse.js +4 -3
- package/dist/arrays.js +3 -2
- package/dist/bin.js +12 -11
- package/dist/cacache.js +16 -11
- package/dist/cache-with-ttl.js +26 -21
- package/dist/colors.js +2 -1
- package/dist/constants/licenses.js +2 -1
- package/dist/constants/lifecycle-script-names.js +2 -1
- package/dist/constants/maintained-node-versions.js +2 -1
- package/dist/constants/node.js +4 -3
- package/dist/constants/package-default-socket-categories.js +2 -1
- package/dist/constants/packages.js +4 -3
- package/dist/constants/socket.js +1 -1
- package/dist/cover/code.js +9 -8
- package/dist/cover/formatters.js +12 -11
- package/dist/cover/type.js +5 -4
- package/dist/crypto.d.ts +36 -0
- package/dist/{effects/ultra.js → crypto.js} +26 -37
- package/dist/debug.js +12 -15
- package/dist/dlx/arborist.js +10 -9
- package/dist/dlx/binary.js +27 -24
- package/dist/dlx/cache.js +2 -10
- package/dist/dlx/detect.js +6 -5
- package/dist/dlx/integrity.js +13 -11
- package/dist/dlx/lockfile.js +7 -6
- package/dist/dlx/manifest.js +6 -5
- package/dist/dlx/package.js +17 -16
- package/dist/dlx/packages.js +6 -5
- package/dist/dlx/paths.d.ts +1 -1
- package/dist/dlx/paths.js +2 -1
- package/dist/effects/pulse-frames.js +4 -3
- package/dist/effects/shimmer-keyframes.d.ts +62 -0
- package/dist/effects/shimmer-keyframes.js +55 -0
- package/dist/effects/shimmer-terminal.d.ts +66 -0
- package/dist/effects/shimmer-terminal.js +57 -0
- package/dist/effects/shimmer.d.ts +293 -0
- package/dist/effects/shimmer.js +180 -0
- package/dist/env/rewire.js +4 -3
- package/dist/env.js +5 -4
- package/dist/errors.js +1 -1
- package/dist/external/@npmcli/package-json/lib/read-package.js +10 -10
- package/dist/external/@npmcli/package-json.js +372 -372
- package/dist/external/@npmcli/promise-spawn.js +24 -24
- package/dist/external/@socketregistry/packageurl-js.js +19 -18
- package/dist/external/@socketregistry/yocto-spinner.js +4 -3
- package/dist/external/@yarnpkg/extensions.js +2 -1
- package/dist/external/adm-zip.js +71 -71
- package/dist/external/debug.js +22 -22
- package/dist/external/external-pack.js +45 -45
- package/dist/external/fast-sort.js +5 -5
- package/dist/external/libnpmexec.js +4 -3
- package/dist/external/npm-pack.js +369 -369
- package/dist/external/p-map.js +9 -9
- package/dist/external/pico-pack.js +190 -190
- package/dist/external/pony-cause.js +2 -1
- package/dist/external/spdx-pack.js +11 -10
- package/dist/external/tar-fs.js +58 -58
- package/dist/external/which.js +13 -13
- package/dist/external/yargs-parser.js +71 -71
- package/dist/fs.js +50 -68
- package/dist/git.js +14 -13
- package/dist/github.d.ts +34 -0
- package/dist/github.js +248 -23
- package/dist/globs.d.ts +20 -0
- package/dist/globs.js +134 -25
- package/dist/http-request.d.ts +4 -3
- package/dist/http-request.js +39 -32
- package/dist/ipc-cli.js +2 -1
- package/dist/ipc.js +5 -4
- package/dist/json/edit.js +4 -3
- package/dist/json/format.js +3 -2
- package/dist/json/parse.js +7 -6
- package/dist/links.js +2 -1
- package/dist/logger.js +21 -14
- package/dist/memoization.js +16 -15
- package/dist/node/async-hooks.d.ts +6 -0
- package/dist/node/async-hooks.js +34 -0
- package/dist/node/child-process.d.ts +11 -0
- package/dist/node/child-process.js +34 -0
- package/dist/node/crypto.d.ts +6 -0
- package/dist/node/crypto.js +34 -0
- package/dist/node/events.d.ts +6 -0
- package/dist/node/events.js +34 -0
- package/dist/node/fs-promises.d.ts +6 -0
- package/dist/node/fs-promises.js +34 -0
- package/dist/node/fs.d.ts +14 -0
- package/dist/node/fs.js +34 -0
- package/dist/node/http.d.ts +6 -0
- package/dist/node/http.js +34 -0
- package/dist/node/https.d.ts +6 -0
- package/dist/node/https.js +34 -0
- package/dist/node/os.d.ts +6 -0
- package/dist/node/os.js +34 -0
- package/dist/node/path.d.ts +6 -0
- package/dist/node/path.js +34 -0
- package/dist/node/timers-promises.d.ts +6 -0
- package/dist/node/timers-promises.js +34 -0
- package/dist/node/url.d.ts +6 -0
- package/dist/node/url.js +34 -0
- package/dist/node/util.d.ts +6 -0
- package/dist/node/util.js +34 -0
- package/dist/objects.js +2 -2
- package/dist/packages/edit.js +8 -7
- package/dist/packages/exports.js +17 -16
- package/dist/packages/isolation.js +20 -13
- package/dist/packages/licenses.js +6 -3
- package/dist/packages/manifest.js +2 -1
- package/dist/packages/normalize.js +8 -4
- package/dist/packages/operations.js +5 -4
- package/dist/packages/provenance.js +7 -6
- package/dist/packages/specs.js +2 -1
- package/dist/packages/validation.js +2 -1
- package/dist/paths/normalize.js +32 -40
- package/dist/paths/packages.js +2 -1
- package/dist/paths/rewire.js +3 -2
- package/dist/performance.js +19 -18
- package/dist/primordials.d.ts +85 -2
- package/dist/primordials.js +311 -23
- package/dist/process-lock.js +14 -13
- package/dist/promise-queue.js +17 -9
- package/dist/promises.d.ts +29 -6
- package/dist/promises.js +19 -15
- package/dist/regexps.js +9 -8
- package/dist/releases/github-api.d.ts +56 -0
- package/dist/releases/github-api.js +275 -0
- package/dist/releases/github-archives.d.ts +60 -0
- package/dist/releases/github-archives.js +136 -0
- package/dist/releases/github-assets.d.ts +21 -0
- package/dist/releases/github-assets.js +52 -0
- package/dist/releases/github-auth.d.ts +16 -0
- package/dist/releases/github-auth.js +51 -0
- package/dist/releases/github-downloads.d.ts +42 -0
- package/dist/releases/github-downloads.js +155 -0
- package/dist/releases/github-types.d.ts +66 -0
- package/dist/{effects/types.js → releases/github-types.js} +2 -2
- package/dist/releases/socket-btm.d.ts +1 -1
- package/dist/releases/socket-btm.js +17 -17
- package/dist/schema/parse.js +2 -1
- package/dist/schema/validate.js +6 -5
- package/dist/sea/util.d.ts +43 -0
- package/dist/{sea.js → sea/util.js} +7 -7
- package/dist/shadow.js +2 -1
- package/dist/signal-exit.js +2 -2
- package/dist/smol/primordial.d.ts +80 -0
- package/dist/smol/primordial.js +46 -0
- package/dist/smol/util.d.ts +87 -0
- package/dist/smol/util.js +59 -0
- package/dist/smol/versions.d.ts +46 -0
- package/dist/smol/versions.js +46 -0
- package/dist/spawn.js +58 -63
- package/dist/spinner.d.ts +13 -6
- package/dist/spinner.js +75 -57
- package/dist/ssri.js +8 -7
- package/dist/stdio/footer.js +13 -12
- package/dist/stdio/header.js +5 -4
- package/dist/stdio/progress.js +13 -12
- package/dist/strings.js +19 -18
- package/dist/suppress-warnings.js +2 -2
- package/dist/tables.js +16 -13
- package/dist/temporary-executor.js +2 -1
- package/dist/themes/context.js +2 -1
- package/dist/themes/types.d.ts +1 -1
- package/dist/themes/utils.d.ts +8 -3
- package/dist/themes/utils.js +29 -5
- package/dist/url.js +4 -3
- package/dist/versions.js +27 -22
- package/package.json +120 -26
- package/dist/effects/text-shimmer.d.ts +0 -58
- package/dist/effects/text-shimmer.js +0 -192
- package/dist/effects/types.d.ts +0 -47
- package/dist/effects/ultra.d.ts +0 -22
- package/dist/releases/github.d.ts +0 -234
- package/dist/releases/github.js +0 -417
- package/dist/sea.d.ts +0 -30
- package/dist/themes/index.d.ts +0 -49
- package/dist/themes/index.js +0 -60
package/dist/paths/packages.js
CHANGED
|
@@ -25,6 +25,7 @@ __export(packages_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(packages_exports);
|
|
27
27
|
var import_normalize = require("./normalize");
|
|
28
|
+
var import_primordials = require("../primordials");
|
|
28
29
|
let _path;
|
|
29
30
|
// @__NO_SIDE_EFFECTS__
|
|
30
31
|
function getPath() {
|
|
@@ -35,7 +36,7 @@ function getPath() {
|
|
|
35
36
|
}
|
|
36
37
|
// @__NO_SIDE_EFFECTS__
|
|
37
38
|
function isPackageJsonFile(filepath) {
|
|
38
|
-
return filepath === "package.json" ||
|
|
39
|
+
return filepath === "package.json" || (0, import_primordials.StringPrototypeEndsWith)(filepath, "/package.json") || (0, import_primordials.StringPrototypeEndsWith)(filepath, "\\package.json");
|
|
39
40
|
}
|
|
40
41
|
// @__NO_SIDE_EFFECTS__
|
|
41
42
|
function resolvePackageJsonDirname(filepath) {
|
package/dist/paths/rewire.js
CHANGED
|
@@ -29,12 +29,13 @@ __export(rewire_exports, {
|
|
|
29
29
|
setPath: () => setPath
|
|
30
30
|
});
|
|
31
31
|
module.exports = __toCommonJS(rewire_exports);
|
|
32
|
+
var import_primordials = require("../primordials");
|
|
32
33
|
const stateSymbol = Symbol.for("@socketsecurity/lib/paths/rewire/state");
|
|
33
34
|
const _globalThis = globalThis;
|
|
34
35
|
if (!_globalThis[stateSymbol]) {
|
|
35
36
|
_globalThis[stateSymbol] = {
|
|
36
|
-
testOverrides:
|
|
37
|
-
valueCache:
|
|
37
|
+
testOverrides: new import_primordials.MapCtor(),
|
|
38
|
+
valueCache: new import_primordials.MapCtor(),
|
|
38
39
|
cacheInvalidationCallbacks: []
|
|
39
40
|
};
|
|
40
41
|
}
|
package/dist/performance.js
CHANGED
|
@@ -45,6 +45,7 @@ module.exports = __toCommonJS(performance_exports);
|
|
|
45
45
|
var import_node_process = __toESM(require("node:process"));
|
|
46
46
|
var import_debug = require("./debug");
|
|
47
47
|
var import_errors = require("./errors");
|
|
48
|
+
var import_primordials = require("./primordials");
|
|
48
49
|
const performanceMetrics = [];
|
|
49
50
|
function isPerfEnabled() {
|
|
50
51
|
return import_node_process.default.env["DEBUG"]?.includes("perf") || false;
|
|
@@ -58,7 +59,7 @@ function generatePerformanceReport() {
|
|
|
58
59
|
return "(no performance data collected - enable with DEBUG=perf)";
|
|
59
60
|
}
|
|
60
61
|
const summary = getPerformanceSummary();
|
|
61
|
-
const operations =
|
|
62
|
+
const operations = (0, import_primordials.ObjectKeys)(summary).sort();
|
|
62
63
|
let report = "\n\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557\n";
|
|
63
64
|
report += "\u2551 Performance Report \u2551\n";
|
|
64
65
|
report += "\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D\n\n";
|
|
@@ -78,11 +79,11 @@ function generatePerformanceReport() {
|
|
|
78
79
|
|
|
79
80
|
`;
|
|
80
81
|
}
|
|
81
|
-
const totalDuration =
|
|
82
|
+
const totalDuration = (0, import_primordials.ObjectValues)(summary).reduce(
|
|
82
83
|
(sum, s) => sum + s.total,
|
|
83
84
|
0
|
|
84
85
|
);
|
|
85
|
-
report += `Total measured time: ${
|
|
86
|
+
report += `Total measured time: ${(0, import_primordials.MathRound)(totalDuration * 100) / 100}ms
|
|
86
87
|
`;
|
|
87
88
|
return report;
|
|
88
89
|
}
|
|
@@ -104,17 +105,17 @@ function getPerformanceSummary() {
|
|
|
104
105
|
const stats = summary[operation];
|
|
105
106
|
stats.count++;
|
|
106
107
|
stats.total += duration;
|
|
107
|
-
stats.min =
|
|
108
|
-
stats.max =
|
|
108
|
+
stats.min = (0, import_primordials.MathMin)(stats.min, duration);
|
|
109
|
+
stats.max = (0, import_primordials.MathMax)(stats.max, duration);
|
|
109
110
|
}
|
|
110
111
|
const result = { __proto__: null };
|
|
111
|
-
for (const { 0: operation, 1: stats } of
|
|
112
|
+
for (const { 0: operation, 1: stats } of (0, import_primordials.ObjectEntries)(summary)) {
|
|
112
113
|
result[operation] = {
|
|
113
114
|
count: stats.count,
|
|
114
|
-
total:
|
|
115
|
-
avg:
|
|
116
|
-
min:
|
|
117
|
-
max:
|
|
115
|
+
total: (0, import_primordials.MathRound)(stats.total * 100) / 100,
|
|
116
|
+
avg: (0, import_primordials.MathRound)(stats.total / stats.count * 100) / 100,
|
|
117
|
+
min: (0, import_primordials.MathRound)(stats.min * 100) / 100,
|
|
118
|
+
max: (0, import_primordials.MathRound)(stats.max * 100) / 100
|
|
118
119
|
};
|
|
119
120
|
}
|
|
120
121
|
return result;
|
|
@@ -156,7 +157,7 @@ function perfCheckpoint(checkpoint, metadata) {
|
|
|
156
157
|
const metric = {
|
|
157
158
|
operation: `checkpoint:${checkpoint}`,
|
|
158
159
|
duration: 0,
|
|
159
|
-
timestamp:
|
|
160
|
+
timestamp: (0, import_primordials.DateNow)(),
|
|
160
161
|
...metadata ? { metadata } : {}
|
|
161
162
|
};
|
|
162
163
|
performanceMetrics.push(metric);
|
|
@@ -174,8 +175,8 @@ function perfTimer(operation, metadata) {
|
|
|
174
175
|
const metric = {
|
|
175
176
|
operation,
|
|
176
177
|
// Round to 2 decimals
|
|
177
|
-
duration:
|
|
178
|
-
timestamp:
|
|
178
|
+
duration: (0, import_primordials.MathRound)(duration * 100) / 100,
|
|
179
|
+
timestamp: (0, import_primordials.DateNow)(),
|
|
179
180
|
metadata: { ...metadata, ...additionalMetadata }
|
|
180
181
|
};
|
|
181
182
|
performanceMetrics.push(metric);
|
|
@@ -187,7 +188,7 @@ function printPerformanceSummary() {
|
|
|
187
188
|
return;
|
|
188
189
|
}
|
|
189
190
|
const summary = getPerformanceSummary();
|
|
190
|
-
const operations =
|
|
191
|
+
const operations = (0, import_primordials.ObjectKeys)(summary).sort();
|
|
191
192
|
(0, import_debug.debugLog)("[perf]\n=== Performance Summary ===");
|
|
192
193
|
for (const operation of operations) {
|
|
193
194
|
const stats = summary[operation];
|
|
@@ -202,16 +203,16 @@ function trackMemory(label) {
|
|
|
202
203
|
return 0;
|
|
203
204
|
}
|
|
204
205
|
const usage = import_node_process.default.memoryUsage();
|
|
205
|
-
const heapUsedMB =
|
|
206
|
+
const heapUsedMB = (0, import_primordials.MathRound)(usage.heapUsed / 1024 / 1024 * 100) / 100;
|
|
206
207
|
(0, import_debug.debugLog)(`[perf] [MEMORY] ${label}: ${heapUsedMB}MB heap used`);
|
|
207
208
|
const metric = {
|
|
208
209
|
operation: `checkpoint:memory:${label}`,
|
|
209
210
|
duration: 0,
|
|
210
|
-
timestamp:
|
|
211
|
+
timestamp: (0, import_primordials.DateNow)(),
|
|
211
212
|
metadata: {
|
|
212
213
|
heapUsed: heapUsedMB,
|
|
213
|
-
heapTotal:
|
|
214
|
-
external:
|
|
214
|
+
heapTotal: (0, import_primordials.MathRound)(usage.heapTotal / 1024 / 1024 * 100) / 100,
|
|
215
|
+
external: (0, import_primordials.MathRound)(usage.external / 1024 / 1024 * 100) / 100
|
|
215
216
|
}
|
|
216
217
|
};
|
|
217
218
|
performanceMetrics.push(metric);
|
package/dist/primordials.d.ts
CHANGED
|
@@ -26,8 +26,13 @@
|
|
|
26
26
|
*/
|
|
27
27
|
export declare const uncurryThis: <T, A extends readonly unknown[], R>(fn: (this: T, ...args: A) => R) => (self: T, ...args: A) => R;
|
|
28
28
|
export declare const applyBind: <T, A extends readonly unknown[], R>(fn: (this: T, ...args: A) => R) => (self: T, args: A) => R;
|
|
29
|
+
export declare const applySafe: <T, A extends readonly unknown[], R>(fn: (this: T, ...args: A) => R) => (self: T, args: A) => R | undefined;
|
|
30
|
+
type BindCall = <T, P extends readonly unknown[], A extends readonly unknown[], R>(fn: (this: T, ...args: [...P, ...A]) => R, thisArg: T, ...presetArgs: P) => (...newArgs: A) => R;
|
|
31
|
+
export declare const bindCall: BindCall;
|
|
32
|
+
export declare const weakRefSafe: <T extends object | symbol>(target: T) => WeakRef<T> | undefined;
|
|
29
33
|
export declare const ArrayCtor: ArrayConstructor;
|
|
30
34
|
export declare const ArrayBufferCtor: ArrayBufferConstructor;
|
|
35
|
+
export declare const BigIntCtor: BigIntConstructor;
|
|
31
36
|
export declare const BooleanCtor: BooleanConstructor;
|
|
32
37
|
export declare const BufferCtor: typeof globalThis.Buffer | undefined;
|
|
33
38
|
export declare const DataViewCtor: DataViewConstructor;
|
|
@@ -44,8 +49,10 @@ export declare const MapCtor: MapConstructor;
|
|
|
44
49
|
export declare const NumberCtor: NumberConstructor;
|
|
45
50
|
export declare const ObjectCtor: ObjectConstructor;
|
|
46
51
|
export declare const PromiseCtor: PromiseConstructor;
|
|
52
|
+
export declare const ProxyCtor: ProxyConstructor;
|
|
47
53
|
export declare const RegExpCtor: RegExpConstructor;
|
|
48
54
|
export declare const SetCtor: SetConstructor;
|
|
55
|
+
export declare const SharedArrayBufferCtor: SharedArrayBufferConstructor;
|
|
49
56
|
export declare const StringCtor: StringConstructor;
|
|
50
57
|
export declare const SymbolCtor: SymbolConstructor;
|
|
51
58
|
export declare const Float32ArrayCtor: Float32ArrayConstructor;
|
|
@@ -62,6 +69,9 @@ export declare const URLSearchParamsCtor: typeof URLSearchParams;
|
|
|
62
69
|
export declare const WeakMapCtor: WeakMapConstructor;
|
|
63
70
|
export declare const WeakRefCtor: WeakRefConstructor;
|
|
64
71
|
export declare const WeakSetCtor: WeakSetConstructor;
|
|
72
|
+
export declare const InfinityValue: number;
|
|
73
|
+
export declare const NaNValue: number;
|
|
74
|
+
export declare const globalThisRef: typeof globalThis;
|
|
65
75
|
export declare const decodeComponent: typeof decodeURIComponent;
|
|
66
76
|
export declare const encodeComponent: typeof encodeURIComponent;
|
|
67
77
|
export declare const JSONParse: (text: string, reviver?: (this: any, key: string, value: any) => any) => any;
|
|
@@ -75,9 +85,15 @@ export declare const ArrayFrom: {
|
|
|
75
85
|
<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
76
86
|
<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
77
87
|
};
|
|
88
|
+
export type ArrayFromAsync = <T>(source: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>) => Promise<T[]>;
|
|
89
|
+
export declare const ArrayFromAsync: ArrayFromAsync | undefined;
|
|
78
90
|
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
79
91
|
export declare const ArrayOf: <T>(...items: T[]) => T[];
|
|
80
92
|
export declare const ArrayBufferIsView: (arg: any) => arg is ArrayBufferView;
|
|
93
|
+
export declare const AtomicsWait: {
|
|
94
|
+
(typedArray: Int32Array<ArrayBufferLike>, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";
|
|
95
|
+
(typedArray: BigInt64Array<ArrayBufferLike>, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";
|
|
96
|
+
};
|
|
81
97
|
export declare const ArrayPrototypeAt: (self: unknown, index: number) => any;
|
|
82
98
|
export declare const ArrayPrototypeConcat: <T>(self: T[], ...items: Array<T | readonly T[]>) => T[];
|
|
83
99
|
export declare const ArrayPrototypeCopyWithin: (self: unknown, target: number, start: number, end?: number | undefined) => any[];
|
|
@@ -110,8 +126,10 @@ export declare const ArrayPrototypeSort: (self: unknown, compareFn?: ((a: any, b
|
|
|
110
126
|
export declare const ArrayPrototypeSplice: <T>(self: T[], start: number, deleteCount?: number, ...items: T[]) => T[];
|
|
111
127
|
export declare const ArrayPrototypeToReversed: (self: unknown) => any[];
|
|
112
128
|
export declare const ArrayPrototypeToSorted: (self: unknown, compareFn?: ((a: any, b: any) => number) | undefined) => any[];
|
|
129
|
+
export declare const ArrayPrototypeToSpliced: <T>(self: T[], start: number, deleteCount?: number, ...items: T[]) => T[];
|
|
113
130
|
export declare const ArrayPrototypeUnshift: <T>(self: T[], ...items: T[]) => number;
|
|
114
131
|
export declare const ArrayPrototypeValues: (self: unknown) => ArrayIterator<any>;
|
|
132
|
+
export declare const ArrayPrototypeWith: <T>(self: T[], index: number, value: T) => T[];
|
|
115
133
|
export declare const BufferAlloc: typeof Buffer.alloc | undefined;
|
|
116
134
|
export declare const BufferAllocUnsafe: typeof Buffer.allocUnsafe | undefined;
|
|
117
135
|
export declare const BufferAllocUnsafeSlow: typeof Buffer.allocUnsafeSlow | undefined;
|
|
@@ -130,11 +148,16 @@ export declare const DateUTC: {
|
|
|
130
148
|
};
|
|
131
149
|
export declare const DatePrototypeGetTime: (self: unknown) => number;
|
|
132
150
|
export declare const DatePrototypeToISOString: (self: unknown) => string;
|
|
151
|
+
export declare const DatePrototypeToLocaleString: (self: unknown, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined) => string;
|
|
133
152
|
export declare const DatePrototypeValueOf: (self: unknown) => number;
|
|
134
153
|
export declare const ErrorIsError: ((value: unknown) => value is Error) | undefined;
|
|
154
|
+
export declare const ErrorCaptureStackTrace: ((targetObject: object, constructorOpt?: Function) => void) | undefined;
|
|
155
|
+
export declare const ErrorPrepareStackTrace: ((error: Error, structuredStackTrace: NodeJS.CallSite[]) => unknown) | undefined;
|
|
156
|
+
export declare function ErrorStackTraceLimit(): number | undefined;
|
|
135
157
|
export declare const FunctionPrototypeApply: (self: (...args: unknown[]) => unknown, thisArg: unknown, args: unknown[]) => unknown;
|
|
136
158
|
export declare const FunctionPrototypeBind: (self: (...args: unknown[]) => unknown, thisArg: unknown, ...args: unknown[]) => (...args: unknown[]) => unknown;
|
|
137
159
|
export declare const FunctionPrototypeCall: (self: (...args: unknown[]) => unknown, thisArg: unknown, ...args: unknown[]) => unknown;
|
|
160
|
+
export declare const FunctionPrototypeToString: (self: (...args: unknown[]) => unknown) => string;
|
|
138
161
|
export declare const IteratorPrototypeNext: (self: Iterator<unknown, any, any>) => IteratorResult<unknown, any>;
|
|
139
162
|
export declare const IteratorPrototypeReturn: ((self: Iterator<unknown, any, any>, value?: unknown) => IteratorResult<unknown, any>) | undefined;
|
|
140
163
|
export declare const MapPrototypeClear: (self: unknown) => void;
|
|
@@ -146,23 +169,63 @@ export declare const MapPrototypeHas: (self: unknown, key: any) => boolean;
|
|
|
146
169
|
export declare const MapPrototypeKeys: (self: unknown) => MapIterator<any>;
|
|
147
170
|
export declare const MapPrototypeSet: (self: unknown, key: any, value: any) => Map<any, any>;
|
|
148
171
|
export declare const MapPrototypeValues: (self: unknown) => MapIterator<any>;
|
|
172
|
+
export declare const MathE: number;
|
|
173
|
+
export declare const MathLN2: number;
|
|
174
|
+
export declare const MathLN10: number;
|
|
175
|
+
export declare const MathLOG2E: number;
|
|
176
|
+
export declare const MathLOG10E: number;
|
|
177
|
+
export declare const MathPI: number;
|
|
178
|
+
export declare const MathSQRT1_2: number;
|
|
179
|
+
export declare const MathSQRT2: number;
|
|
149
180
|
export declare const MathAbs: (x: number) => number;
|
|
181
|
+
export declare const MathAcos: (x: number) => number;
|
|
182
|
+
export declare const MathAcosh: (x: number) => number;
|
|
183
|
+
export declare const MathAsin: (x: number) => number;
|
|
184
|
+
export declare const MathAsinh: (x: number) => number;
|
|
185
|
+
export declare const MathAtan: (x: number) => number;
|
|
186
|
+
export declare const MathAtan2: (y: number, x: number) => number;
|
|
187
|
+
export declare const MathAtanh: (x: number) => number;
|
|
188
|
+
export declare const MathCbrt: (x: number) => number;
|
|
150
189
|
export declare const MathCeil: (x: number) => number;
|
|
190
|
+
export declare const MathClz32: (x: number) => number;
|
|
191
|
+
export declare const MathCos: (x: number) => number;
|
|
192
|
+
export declare const MathCosh: (x: number) => number;
|
|
193
|
+
export declare const MathExp: (x: number) => number;
|
|
194
|
+
export declare const MathExpm1: (x: number) => number;
|
|
195
|
+
export declare const MathF16round: ((value: number) => number) | undefined;
|
|
151
196
|
export declare const MathFloor: (x: number) => number;
|
|
197
|
+
export declare const MathFround: (x: number) => number;
|
|
198
|
+
export declare const MathHypot: (...values: number[]) => number;
|
|
199
|
+
export declare const MathImul: (x: number, y: number) => number;
|
|
200
|
+
export declare const MathLog: (x: number) => number;
|
|
201
|
+
export declare const MathLog1p: (x: number) => number;
|
|
202
|
+
export declare const MathLog2: (x: number) => number;
|
|
203
|
+
export declare const MathLog10: (x: number) => number;
|
|
152
204
|
export declare const MathMax: (...values: number[]) => number;
|
|
153
205
|
export declare const MathMin: (...values: number[]) => number;
|
|
154
206
|
export declare const MathPow: (x: number, y: number) => number;
|
|
155
207
|
export declare const MathRandom: () => number;
|
|
156
208
|
export declare const MathRound: (x: number) => number;
|
|
157
209
|
export declare const MathSign: (x: number) => number;
|
|
210
|
+
export declare const MathSin: (x: number) => number;
|
|
211
|
+
export declare const MathSinh: (x: number) => number;
|
|
158
212
|
export declare const MathSqrt: (x: number) => number;
|
|
213
|
+
export declare const MathTan: (x: number) => number;
|
|
214
|
+
export declare const MathTanh: (x: number) => number;
|
|
159
215
|
export declare const MathTrunc: (x: number) => number;
|
|
216
|
+
export declare const NumberEPSILON: number;
|
|
217
|
+
export declare const NumberMAX_SAFE_INTEGER: number;
|
|
218
|
+
export declare const NumberMAX_VALUE: number;
|
|
219
|
+
export declare const NumberMIN_SAFE_INTEGER: number;
|
|
220
|
+
export declare const NumberMIN_VALUE: number;
|
|
221
|
+
export declare const NumberNEGATIVE_INFINITY: number;
|
|
222
|
+
export declare const NumberPOSITIVE_INFINITY: number;
|
|
160
223
|
export declare const NumberIsFinite: (number: unknown) => boolean;
|
|
161
224
|
export declare const NumberIsInteger: (number: unknown) => boolean;
|
|
162
225
|
export declare const NumberIsNaN: (number: unknown) => boolean;
|
|
163
226
|
export declare const NumberIsSafeInteger: (number: unknown) => boolean;
|
|
164
227
|
export declare const NumberParseFloat: (string: string) => number;
|
|
165
|
-
export declare const NumberParseInt:
|
|
228
|
+
export declare const NumberParseInt: typeof Number.parseInt;
|
|
166
229
|
export declare const NumberPrototypeToFixed: (self: unknown, fractionDigits?: number | undefined) => string;
|
|
167
230
|
export declare const NumberPrototypeToString: (self: unknown, radix?: number | undefined) => string;
|
|
168
231
|
export declare const ObjectAssign: {
|
|
@@ -227,6 +290,10 @@ export declare const ObjectPrototypeIsPrototypeOf: (self: unknown, v: Object) =>
|
|
|
227
290
|
export declare const ObjectPrototypePropertyIsEnumerable: (self: unknown, v: PropertyKey) => boolean;
|
|
228
291
|
export declare const ObjectPrototypeToString: (self: unknown) => string;
|
|
229
292
|
export declare const ObjectPrototypeValueOf: (self: unknown) => Object;
|
|
293
|
+
export declare const ObjectPrototypeDefineGetter: (self: object, key: PropertyKey, fn: () => unknown) => void;
|
|
294
|
+
export declare const ObjectPrototypeDefineSetter: (self: object, key: PropertyKey, fn: (value: unknown) => void) => void;
|
|
295
|
+
export declare const ObjectPrototypeLookupGetter: (self: object, key: PropertyKey) => (() => unknown) | undefined;
|
|
296
|
+
export declare const ObjectPrototypeLookupSetter: (self: object, key: PropertyKey) => ((value: unknown) => void) | undefined;
|
|
230
297
|
export declare const PromiseAll: {
|
|
231
298
|
<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
|
|
232
299
|
<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>;
|
|
@@ -286,7 +353,7 @@ export declare const StringRaw: (template: {
|
|
|
286
353
|
}, ...substitutions: any[]) => string;
|
|
287
354
|
export declare const StringPrototypeAt: (self: unknown, index: number) => string | undefined;
|
|
288
355
|
export declare const StringPrototypeCharAt: (self: unknown, pos: number) => string;
|
|
289
|
-
export declare const StringPrototypeCharCodeAt: (
|
|
356
|
+
export declare const StringPrototypeCharCodeAt: (s: string, i: number) => number;
|
|
290
357
|
export declare const StringPrototypeCodePointAt: (self: unknown, pos: number) => number | undefined;
|
|
291
358
|
export declare const StringPrototypeConcat: (self: string, ...strs: string[]) => string;
|
|
292
359
|
export declare const StringPrototypeEndsWith: (self: unknown, searchString: string, endPosition?: number | undefined) => boolean;
|
|
@@ -316,11 +383,26 @@ export declare const StringPrototypeToUpperCase: (self: unknown) => string;
|
|
|
316
383
|
export declare const StringPrototypeTrim: (self: unknown) => string;
|
|
317
384
|
export declare const StringPrototypeTrimEnd: (self: unknown) => string;
|
|
318
385
|
export declare const StringPrototypeTrimStart: (self: unknown) => string;
|
|
386
|
+
export declare const SymbolAsyncDispose: typeof Symbol.asyncDispose | undefined;
|
|
319
387
|
export declare const SymbolAsyncIterator: symbol;
|
|
388
|
+
export declare const SymbolDispose: typeof Symbol.dispose | undefined;
|
|
320
389
|
export declare const SymbolFor: (key: string) => symbol;
|
|
390
|
+
export declare const SymbolHasInstance: symbol;
|
|
391
|
+
export declare const SymbolIsConcatSpreadable: symbol;
|
|
321
392
|
export declare const SymbolIterator: symbol;
|
|
393
|
+
export declare const SymbolKeyFor: (sym: symbol) => string | undefined;
|
|
394
|
+
export declare const SymbolMatch: symbol;
|
|
395
|
+
export declare const SymbolMatchAll: symbol;
|
|
396
|
+
export declare const SymbolReplace: symbol;
|
|
397
|
+
export declare const SymbolSearch: symbol;
|
|
398
|
+
export declare const SymbolSpecies: symbol;
|
|
399
|
+
export declare const SymbolSplit: symbol;
|
|
322
400
|
export declare const SymbolToPrimitive: symbol;
|
|
323
401
|
export declare const SymbolToStringTag: symbol;
|
|
402
|
+
export declare const SymbolUnscopables: symbol;
|
|
403
|
+
export declare function SymbolPrototypeDescription(self: symbol): string | undefined;
|
|
404
|
+
export declare const SymbolPrototypeToString: (self: unknown) => string;
|
|
405
|
+
export declare const SymbolPrototypeValueOf: (self: symbol) => symbol;
|
|
324
406
|
export declare const URLSearchParamsPrototypeAppend: (self: unknown, name: string, value: string) => void;
|
|
325
407
|
export declare const URLSearchParamsPrototypeDelete: (self: unknown, name: string, value?: string | undefined) => void;
|
|
326
408
|
export declare const URLSearchParamsPrototypeForEach: <TThis = import("url").URLSearchParams>(self: unknown, fn: (this: TThis, value: string, name: string, searchParams: import("url").URLSearchParams) => void, thisArg?: TThis | undefined) => void;
|
|
@@ -335,3 +417,4 @@ export declare const WeakMapPrototypeSet: (self: unknown, key: WeakKey, value: a
|
|
|
335
417
|
export declare const WeakSetPrototypeAdd: (self: unknown, value: WeakKey) => WeakSet<WeakKey>;
|
|
336
418
|
export declare const WeakSetPrototypeDelete: (self: unknown, value: WeakKey) => boolean;
|
|
337
419
|
export declare const WeakSetPrototypeHas: (self: unknown, value: WeakKey) => boolean;
|
|
420
|
+
export {};
|