@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.
Files changed (183) hide show
  1. package/CHANGELOG.md +371 -1185
  2. package/README.md +1 -1
  3. package/dist/abort.js +7 -6
  4. package/dist/agent.js +16 -15
  5. package/dist/ansi.js +3 -2
  6. package/dist/archives.js +18 -17
  7. package/dist/argv/flags.js +29 -28
  8. package/dist/argv/parse.js +4 -3
  9. package/dist/arrays.js +3 -2
  10. package/dist/bin.js +12 -11
  11. package/dist/cacache.js +16 -11
  12. package/dist/cache-with-ttl.js +26 -21
  13. package/dist/colors.js +2 -1
  14. package/dist/constants/licenses.js +2 -1
  15. package/dist/constants/lifecycle-script-names.js +2 -1
  16. package/dist/constants/maintained-node-versions.js +2 -1
  17. package/dist/constants/node.js +4 -3
  18. package/dist/constants/package-default-socket-categories.js +2 -1
  19. package/dist/constants/packages.js +4 -3
  20. package/dist/constants/socket.js +1 -1
  21. package/dist/cover/code.js +9 -8
  22. package/dist/cover/formatters.js +12 -11
  23. package/dist/cover/type.js +5 -4
  24. package/dist/crypto.d.ts +36 -0
  25. package/dist/{effects/ultra.js → crypto.js} +26 -37
  26. package/dist/debug.js +12 -15
  27. package/dist/dlx/arborist.js +10 -9
  28. package/dist/dlx/binary.js +27 -24
  29. package/dist/dlx/cache.js +2 -10
  30. package/dist/dlx/detect.js +6 -5
  31. package/dist/dlx/integrity.js +13 -11
  32. package/dist/dlx/lockfile.js +7 -6
  33. package/dist/dlx/manifest.js +6 -5
  34. package/dist/dlx/package.js +17 -16
  35. package/dist/dlx/packages.js +6 -5
  36. package/dist/dlx/paths.d.ts +1 -1
  37. package/dist/dlx/paths.js +2 -1
  38. package/dist/effects/pulse-frames.js +4 -3
  39. package/dist/effects/shimmer-keyframes.d.ts +62 -0
  40. package/dist/effects/shimmer-keyframes.js +55 -0
  41. package/dist/effects/shimmer-terminal.d.ts +66 -0
  42. package/dist/effects/shimmer-terminal.js +57 -0
  43. package/dist/effects/shimmer.d.ts +293 -0
  44. package/dist/effects/shimmer.js +180 -0
  45. package/dist/env/rewire.js +4 -3
  46. package/dist/env.js +5 -4
  47. package/dist/errors.js +1 -1
  48. package/dist/external/@npmcli/package-json/lib/read-package.js +10 -10
  49. package/dist/external/@npmcli/package-json.js +372 -372
  50. package/dist/external/@npmcli/promise-spawn.js +24 -24
  51. package/dist/external/@socketregistry/packageurl-js.js +19 -18
  52. package/dist/external/@socketregistry/yocto-spinner.js +4 -3
  53. package/dist/external/@yarnpkg/extensions.js +2 -1
  54. package/dist/external/adm-zip.js +71 -71
  55. package/dist/external/debug.js +22 -22
  56. package/dist/external/external-pack.js +45 -45
  57. package/dist/external/fast-sort.js +5 -5
  58. package/dist/external/libnpmexec.js +4 -3
  59. package/dist/external/npm-pack.js +369 -369
  60. package/dist/external/p-map.js +9 -9
  61. package/dist/external/pico-pack.js +190 -190
  62. package/dist/external/pony-cause.js +2 -1
  63. package/dist/external/spdx-pack.js +11 -10
  64. package/dist/external/tar-fs.js +58 -58
  65. package/dist/external/which.js +13 -13
  66. package/dist/external/yargs-parser.js +71 -71
  67. package/dist/fs.js +50 -68
  68. package/dist/git.js +14 -13
  69. package/dist/github.d.ts +34 -0
  70. package/dist/github.js +248 -23
  71. package/dist/globs.d.ts +20 -0
  72. package/dist/globs.js +134 -25
  73. package/dist/http-request.d.ts +4 -3
  74. package/dist/http-request.js +39 -32
  75. package/dist/ipc-cli.js +2 -1
  76. package/dist/ipc.js +5 -4
  77. package/dist/json/edit.js +4 -3
  78. package/dist/json/format.js +3 -2
  79. package/dist/json/parse.js +7 -6
  80. package/dist/links.js +2 -1
  81. package/dist/logger.js +21 -14
  82. package/dist/memoization.js +16 -15
  83. package/dist/node/async-hooks.d.ts +6 -0
  84. package/dist/node/async-hooks.js +34 -0
  85. package/dist/node/child-process.d.ts +11 -0
  86. package/dist/node/child-process.js +34 -0
  87. package/dist/node/crypto.d.ts +6 -0
  88. package/dist/node/crypto.js +34 -0
  89. package/dist/node/events.d.ts +6 -0
  90. package/dist/node/events.js +34 -0
  91. package/dist/node/fs-promises.d.ts +6 -0
  92. package/dist/node/fs-promises.js +34 -0
  93. package/dist/node/fs.d.ts +14 -0
  94. package/dist/node/fs.js +34 -0
  95. package/dist/node/http.d.ts +6 -0
  96. package/dist/node/http.js +34 -0
  97. package/dist/node/https.d.ts +6 -0
  98. package/dist/node/https.js +34 -0
  99. package/dist/node/os.d.ts +6 -0
  100. package/dist/node/os.js +34 -0
  101. package/dist/node/path.d.ts +6 -0
  102. package/dist/node/path.js +34 -0
  103. package/dist/node/timers-promises.d.ts +6 -0
  104. package/dist/node/timers-promises.js +34 -0
  105. package/dist/node/url.d.ts +6 -0
  106. package/dist/node/url.js +34 -0
  107. package/dist/node/util.d.ts +6 -0
  108. package/dist/node/util.js +34 -0
  109. package/dist/objects.js +2 -2
  110. package/dist/packages/edit.js +8 -7
  111. package/dist/packages/exports.js +17 -16
  112. package/dist/packages/isolation.js +20 -13
  113. package/dist/packages/licenses.js +6 -3
  114. package/dist/packages/manifest.js +2 -1
  115. package/dist/packages/normalize.js +8 -4
  116. package/dist/packages/operations.js +5 -4
  117. package/dist/packages/provenance.js +7 -6
  118. package/dist/packages/specs.js +2 -1
  119. package/dist/packages/validation.js +2 -1
  120. package/dist/paths/normalize.js +32 -40
  121. package/dist/paths/packages.js +2 -1
  122. package/dist/paths/rewire.js +3 -2
  123. package/dist/performance.js +19 -18
  124. package/dist/primordials.d.ts +85 -2
  125. package/dist/primordials.js +311 -23
  126. package/dist/process-lock.js +14 -13
  127. package/dist/promise-queue.js +17 -9
  128. package/dist/promises.d.ts +29 -6
  129. package/dist/promises.js +19 -15
  130. package/dist/regexps.js +9 -8
  131. package/dist/releases/github-api.d.ts +56 -0
  132. package/dist/releases/github-api.js +275 -0
  133. package/dist/releases/github-archives.d.ts +60 -0
  134. package/dist/releases/github-archives.js +136 -0
  135. package/dist/releases/github-assets.d.ts +21 -0
  136. package/dist/releases/github-assets.js +52 -0
  137. package/dist/releases/github-auth.d.ts +16 -0
  138. package/dist/releases/github-auth.js +51 -0
  139. package/dist/releases/github-downloads.d.ts +42 -0
  140. package/dist/releases/github-downloads.js +155 -0
  141. package/dist/releases/github-types.d.ts +66 -0
  142. package/dist/{effects/types.js → releases/github-types.js} +2 -2
  143. package/dist/releases/socket-btm.d.ts +1 -1
  144. package/dist/releases/socket-btm.js +17 -17
  145. package/dist/schema/parse.js +2 -1
  146. package/dist/schema/validate.js +6 -5
  147. package/dist/sea/util.d.ts +43 -0
  148. package/dist/{sea.js → sea/util.js} +7 -7
  149. package/dist/shadow.js +2 -1
  150. package/dist/signal-exit.js +2 -2
  151. package/dist/smol/primordial.d.ts +80 -0
  152. package/dist/smol/primordial.js +46 -0
  153. package/dist/smol/util.d.ts +87 -0
  154. package/dist/smol/util.js +59 -0
  155. package/dist/smol/versions.d.ts +46 -0
  156. package/dist/smol/versions.js +46 -0
  157. package/dist/spawn.js +58 -63
  158. package/dist/spinner.d.ts +13 -6
  159. package/dist/spinner.js +75 -57
  160. package/dist/ssri.js +8 -7
  161. package/dist/stdio/footer.js +13 -12
  162. package/dist/stdio/header.js +5 -4
  163. package/dist/stdio/progress.js +13 -12
  164. package/dist/strings.js +19 -18
  165. package/dist/suppress-warnings.js +2 -2
  166. package/dist/tables.js +16 -13
  167. package/dist/temporary-executor.js +2 -1
  168. package/dist/themes/context.js +2 -1
  169. package/dist/themes/types.d.ts +1 -1
  170. package/dist/themes/utils.d.ts +8 -3
  171. package/dist/themes/utils.js +29 -5
  172. package/dist/url.js +4 -3
  173. package/dist/versions.js +27 -22
  174. package/package.json +120 -26
  175. package/dist/effects/text-shimmer.d.ts +0 -58
  176. package/dist/effects/text-shimmer.js +0 -192
  177. package/dist/effects/types.d.ts +0 -47
  178. package/dist/effects/ultra.d.ts +0 -22
  179. package/dist/releases/github.d.ts +0 -234
  180. package/dist/releases/github.js +0 -417
  181. package/dist/sea.d.ts +0 -30
  182. package/dist/themes/index.d.ts +0 -49
  183. package/dist/themes/index.js +0 -60
@@ -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" || filepath.endsWith("/package.json") || filepath.endsWith("\\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) {
@@ -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: /* @__PURE__ */ new Map(),
37
- valueCache: /* @__PURE__ */ new Map(),
37
+ testOverrides: new import_primordials.MapCtor(),
38
+ valueCache: new import_primordials.MapCtor(),
38
39
  cacheInvalidationCallbacks: []
39
40
  };
40
41
  }
@@ -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 = Object.keys(summary).sort();
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 = Object.values(summary).reduce(
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: ${Math.round(totalDuration * 100) / 100}ms
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 = Math.min(stats.min, duration);
108
- stats.max = Math.max(stats.max, duration);
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 Object.entries(summary)) {
112
+ for (const { 0: operation, 1: stats } of (0, import_primordials.ObjectEntries)(summary)) {
112
113
  result[operation] = {
113
114
  count: stats.count,
114
- total: Math.round(stats.total * 100) / 100,
115
- avg: Math.round(stats.total / stats.count * 100) / 100,
116
- min: Math.round(stats.min * 100) / 100,
117
- max: Math.round(stats.max * 100) / 100
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: Date.now(),
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: Math.round(duration * 100) / 100,
178
- timestamp: Date.now(),
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 = Object.keys(summary).sort();
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 = Math.round(usage.heapUsed / 1024 / 1024 * 100) / 100;
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: Date.now(),
211
+ timestamp: (0, import_primordials.DateNow)(),
211
212
  metadata: {
212
213
  heapUsed: heapUsedMB,
213
- heapTotal: Math.round(usage.heapTotal / 1024 / 1024 * 100) / 100,
214
- external: Math.round(usage.external / 1024 / 1024 * 100) / 100
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);
@@ -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: (string: string, radix?: number) => number;
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: (self: unknown, index: number) => number;
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 {};