@socketsecurity/lib 5.26.1 → 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 +26 -0
- package/dist/constants/socket.js +1 -1
- package/dist/crypto.js +3 -10
- package/dist/external/adm-zip.js +2 -2
- package/dist/external/tar-fs.js +2 -2
- package/dist/fs.js +31 -45
- 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/primordials.d.ts +76 -2
- package/dist/primordials.js +294 -23
- package/dist/sea/util.d.ts +43 -0
- package/dist/{sea.js → sea/util.js} +7 -7
- 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 +13 -28
- package/dist/versions.js +27 -22
- package/package.json +79 -9
- package/dist/sea.d.ts +0 -30
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Socket Lib - Built with esbuild */
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
var http_exports = {};
|
|
22
|
+
__export(http_exports, {
|
|
23
|
+
getNodeHttp: () => getNodeHttp
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(http_exports);
|
|
26
|
+
let _http;
|
|
27
|
+
// @__NO_SIDE_EFFECTS__
|
|
28
|
+
function getNodeHttp() {
|
|
29
|
+
return _http ??= require("node:http");
|
|
30
|
+
}
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
getNodeHttp
|
|
34
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Socket Lib - Built with esbuild */
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
var https_exports = {};
|
|
22
|
+
__export(https_exports, {
|
|
23
|
+
getNodeHttps: () => getNodeHttps
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(https_exports);
|
|
26
|
+
let _https;
|
|
27
|
+
// @__NO_SIDE_EFFECTS__
|
|
28
|
+
function getNodeHttps() {
|
|
29
|
+
return _https ??= require("node:https");
|
|
30
|
+
}
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
getNodeHttps
|
|
34
|
+
});
|
package/dist/node/os.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Socket Lib - Built with esbuild */
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
var os_exports = {};
|
|
22
|
+
__export(os_exports, {
|
|
23
|
+
getNodeOs: () => getNodeOs
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(os_exports);
|
|
26
|
+
let _os;
|
|
27
|
+
// @__NO_SIDE_EFFECTS__
|
|
28
|
+
function getNodeOs() {
|
|
29
|
+
return _os ??= require("node:os");
|
|
30
|
+
}
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
getNodeOs
|
|
34
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Socket Lib - Built with esbuild */
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
var path_exports = {};
|
|
22
|
+
__export(path_exports, {
|
|
23
|
+
getNodePath: () => getNodePath
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(path_exports);
|
|
26
|
+
let _path;
|
|
27
|
+
// @__NO_SIDE_EFFECTS__
|
|
28
|
+
function getNodePath() {
|
|
29
|
+
return _path ??= require("node:path");
|
|
30
|
+
}
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
getNodePath
|
|
34
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Lazy-loader for `node:timers/promises`. See `node/fs.ts`
|
|
3
|
+
* for the design rationale shared across all `node/*.ts` lazy-loaders.
|
|
4
|
+
*/
|
|
5
|
+
import type * as NodeTimersPromises from 'node:timers/promises';
|
|
6
|
+
export declare function getNodeTimersPromises(): typeof NodeTimersPromises;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Socket Lib - Built with esbuild */
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
var timers_promises_exports = {};
|
|
22
|
+
__export(timers_promises_exports, {
|
|
23
|
+
getNodeTimersPromises: () => getNodeTimersPromises
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(timers_promises_exports);
|
|
26
|
+
let _timersPromises;
|
|
27
|
+
// @__NO_SIDE_EFFECTS__
|
|
28
|
+
function getNodeTimersPromises() {
|
|
29
|
+
return _timersPromises ??= require("node:timers/promises");
|
|
30
|
+
}
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
getNodeTimersPromises
|
|
34
|
+
});
|
package/dist/node/url.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Socket Lib - Built with esbuild */
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
var url_exports = {};
|
|
22
|
+
__export(url_exports, {
|
|
23
|
+
getNodeUrl: () => getNodeUrl
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(url_exports);
|
|
26
|
+
let _url;
|
|
27
|
+
// @__NO_SIDE_EFFECTS__
|
|
28
|
+
function getNodeUrl() {
|
|
29
|
+
return _url ??= require("node:url");
|
|
30
|
+
}
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
getNodeUrl
|
|
34
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Socket Lib - Built with esbuild */
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
var util_exports = {};
|
|
22
|
+
__export(util_exports, {
|
|
23
|
+
getNodeUtil: () => getNodeUtil
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(util_exports);
|
|
26
|
+
let _util;
|
|
27
|
+
// @__NO_SIDE_EFFECTS__
|
|
28
|
+
function getNodeUtil() {
|
|
29
|
+
return _util ??= require("node:util");
|
|
30
|
+
}
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
getNodeUtil
|
|
34
|
+
});
|
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;
|
|
@@ -64,6 +69,9 @@ export declare const URLSearchParamsCtor: typeof URLSearchParams;
|
|
|
64
69
|
export declare const WeakMapCtor: WeakMapConstructor;
|
|
65
70
|
export declare const WeakRefCtor: WeakRefConstructor;
|
|
66
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;
|
|
67
75
|
export declare const decodeComponent: typeof decodeURIComponent;
|
|
68
76
|
export declare const encodeComponent: typeof encodeURIComponent;
|
|
69
77
|
export declare const JSONParse: (text: string, reviver?: (this: any, key: string, value: any) => any) => any;
|
|
@@ -118,8 +126,10 @@ export declare const ArrayPrototypeSort: (self: unknown, compareFn?: ((a: any, b
|
|
|
118
126
|
export declare const ArrayPrototypeSplice: <T>(self: T[], start: number, deleteCount?: number, ...items: T[]) => T[];
|
|
119
127
|
export declare const ArrayPrototypeToReversed: (self: unknown) => any[];
|
|
120
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[];
|
|
121
130
|
export declare const ArrayPrototypeUnshift: <T>(self: T[], ...items: T[]) => number;
|
|
122
131
|
export declare const ArrayPrototypeValues: (self: unknown) => ArrayIterator<any>;
|
|
132
|
+
export declare const ArrayPrototypeWith: <T>(self: T[], index: number, value: T) => T[];
|
|
123
133
|
export declare const BufferAlloc: typeof Buffer.alloc | undefined;
|
|
124
134
|
export declare const BufferAllocUnsafe: typeof Buffer.allocUnsafe | undefined;
|
|
125
135
|
export declare const BufferAllocUnsafeSlow: typeof Buffer.allocUnsafeSlow | undefined;
|
|
@@ -141,9 +151,13 @@ export declare const DatePrototypeToISOString: (self: unknown) => string;
|
|
|
141
151
|
export declare const DatePrototypeToLocaleString: (self: unknown, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined) => string;
|
|
142
152
|
export declare const DatePrototypeValueOf: (self: unknown) => number;
|
|
143
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;
|
|
144
157
|
export declare const FunctionPrototypeApply: (self: (...args: unknown[]) => unknown, thisArg: unknown, args: unknown[]) => unknown;
|
|
145
158
|
export declare const FunctionPrototypeBind: (self: (...args: unknown[]) => unknown, thisArg: unknown, ...args: unknown[]) => (...args: unknown[]) => unknown;
|
|
146
159
|
export declare const FunctionPrototypeCall: (self: (...args: unknown[]) => unknown, thisArg: unknown, ...args: unknown[]) => unknown;
|
|
160
|
+
export declare const FunctionPrototypeToString: (self: (...args: unknown[]) => unknown) => string;
|
|
147
161
|
export declare const IteratorPrototypeNext: (self: Iterator<unknown, any, any>) => IteratorResult<unknown, any>;
|
|
148
162
|
export declare const IteratorPrototypeReturn: ((self: Iterator<unknown, any, any>, value?: unknown) => IteratorResult<unknown, any>) | undefined;
|
|
149
163
|
export declare const MapPrototypeClear: (self: unknown) => void;
|
|
@@ -155,23 +169,63 @@ export declare const MapPrototypeHas: (self: unknown, key: any) => boolean;
|
|
|
155
169
|
export declare const MapPrototypeKeys: (self: unknown) => MapIterator<any>;
|
|
156
170
|
export declare const MapPrototypeSet: (self: unknown, key: any, value: any) => Map<any, any>;
|
|
157
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;
|
|
158
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;
|
|
159
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;
|
|
160
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;
|
|
161
204
|
export declare const MathMax: (...values: number[]) => number;
|
|
162
205
|
export declare const MathMin: (...values: number[]) => number;
|
|
163
206
|
export declare const MathPow: (x: number, y: number) => number;
|
|
164
207
|
export declare const MathRandom: () => number;
|
|
165
208
|
export declare const MathRound: (x: number) => number;
|
|
166
209
|
export declare const MathSign: (x: number) => number;
|
|
210
|
+
export declare const MathSin: (x: number) => number;
|
|
211
|
+
export declare const MathSinh: (x: number) => number;
|
|
167
212
|
export declare const MathSqrt: (x: number) => number;
|
|
213
|
+
export declare const MathTan: (x: number) => number;
|
|
214
|
+
export declare const MathTanh: (x: number) => number;
|
|
168
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;
|
|
169
223
|
export declare const NumberIsFinite: (number: unknown) => boolean;
|
|
170
224
|
export declare const NumberIsInteger: (number: unknown) => boolean;
|
|
171
225
|
export declare const NumberIsNaN: (number: unknown) => boolean;
|
|
172
226
|
export declare const NumberIsSafeInteger: (number: unknown) => boolean;
|
|
173
227
|
export declare const NumberParseFloat: (string: string) => number;
|
|
174
|
-
export declare const NumberParseInt:
|
|
228
|
+
export declare const NumberParseInt: typeof Number.parseInt;
|
|
175
229
|
export declare const NumberPrototypeToFixed: (self: unknown, fractionDigits?: number | undefined) => string;
|
|
176
230
|
export declare const NumberPrototypeToString: (self: unknown, radix?: number | undefined) => string;
|
|
177
231
|
export declare const ObjectAssign: {
|
|
@@ -236,6 +290,10 @@ export declare const ObjectPrototypeIsPrototypeOf: (self: unknown, v: Object) =>
|
|
|
236
290
|
export declare const ObjectPrototypePropertyIsEnumerable: (self: unknown, v: PropertyKey) => boolean;
|
|
237
291
|
export declare const ObjectPrototypeToString: (self: unknown) => string;
|
|
238
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;
|
|
239
297
|
export declare const PromiseAll: {
|
|
240
298
|
<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
|
|
241
299
|
<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>;
|
|
@@ -295,7 +353,7 @@ export declare const StringRaw: (template: {
|
|
|
295
353
|
}, ...substitutions: any[]) => string;
|
|
296
354
|
export declare const StringPrototypeAt: (self: unknown, index: number) => string | undefined;
|
|
297
355
|
export declare const StringPrototypeCharAt: (self: unknown, pos: number) => string;
|
|
298
|
-
export declare const StringPrototypeCharCodeAt: (
|
|
356
|
+
export declare const StringPrototypeCharCodeAt: (s: string, i: number) => number;
|
|
299
357
|
export declare const StringPrototypeCodePointAt: (self: unknown, pos: number) => number | undefined;
|
|
300
358
|
export declare const StringPrototypeConcat: (self: string, ...strs: string[]) => string;
|
|
301
359
|
export declare const StringPrototypeEndsWith: (self: unknown, searchString: string, endPosition?: number | undefined) => boolean;
|
|
@@ -325,11 +383,26 @@ export declare const StringPrototypeToUpperCase: (self: unknown) => string;
|
|
|
325
383
|
export declare const StringPrototypeTrim: (self: unknown) => string;
|
|
326
384
|
export declare const StringPrototypeTrimEnd: (self: unknown) => string;
|
|
327
385
|
export declare const StringPrototypeTrimStart: (self: unknown) => string;
|
|
386
|
+
export declare const SymbolAsyncDispose: typeof Symbol.asyncDispose | undefined;
|
|
328
387
|
export declare const SymbolAsyncIterator: symbol;
|
|
388
|
+
export declare const SymbolDispose: typeof Symbol.dispose | undefined;
|
|
329
389
|
export declare const SymbolFor: (key: string) => symbol;
|
|
390
|
+
export declare const SymbolHasInstance: symbol;
|
|
391
|
+
export declare const SymbolIsConcatSpreadable: symbol;
|
|
330
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;
|
|
331
400
|
export declare const SymbolToPrimitive: symbol;
|
|
332
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;
|
|
333
406
|
export declare const URLSearchParamsPrototypeAppend: (self: unknown, name: string, value: string) => void;
|
|
334
407
|
export declare const URLSearchParamsPrototypeDelete: (self: unknown, name: string, value?: string | undefined) => void;
|
|
335
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;
|
|
@@ -344,3 +417,4 @@ export declare const WeakMapPrototypeSet: (self: unknown, key: WeakKey, value: a
|
|
|
344
417
|
export declare const WeakSetPrototypeAdd: (self: unknown, value: WeakKey) => WeakSet<WeakKey>;
|
|
345
418
|
export declare const WeakSetPrototypeDelete: (self: unknown, value: WeakKey) => boolean;
|
|
346
419
|
export declare const WeakSetPrototypeHas: (self: unknown, value: WeakKey) => boolean;
|
|
420
|
+
export {};
|