@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(primordials_exports, {
25
25
  ArrayBufferIsView: () => ArrayBufferIsView,
26
26
  ArrayCtor: () => ArrayCtor,
27
27
  ArrayFrom: () => ArrayFrom,
28
+ ArrayFromAsync: () => ArrayFromAsync,
28
29
  ArrayIsArray: () => ArrayIsArray,
29
30
  ArrayOf: () => ArrayOf,
30
31
  ArrayPrototypeAt: () => ArrayPrototypeAt,
@@ -59,8 +60,12 @@ __export(primordials_exports, {
59
60
  ArrayPrototypeSplice: () => ArrayPrototypeSplice,
60
61
  ArrayPrototypeToReversed: () => ArrayPrototypeToReversed,
61
62
  ArrayPrototypeToSorted: () => ArrayPrototypeToSorted,
63
+ ArrayPrototypeToSpliced: () => ArrayPrototypeToSpliced,
62
64
  ArrayPrototypeUnshift: () => ArrayPrototypeUnshift,
63
65
  ArrayPrototypeValues: () => ArrayPrototypeValues,
66
+ ArrayPrototypeWith: () => ArrayPrototypeWith,
67
+ AtomicsWait: () => AtomicsWait,
68
+ BigIntCtor: () => BigIntCtor,
64
69
  BooleanCtor: () => BooleanCtor,
65
70
  BufferAlloc: () => BufferAlloc,
66
71
  BufferAllocUnsafe: () => BufferAllocUnsafe,
@@ -79,16 +84,22 @@ __export(primordials_exports, {
79
84
  DateParse: () => DateParse,
80
85
  DatePrototypeGetTime: () => DatePrototypeGetTime,
81
86
  DatePrototypeToISOString: () => DatePrototypeToISOString,
87
+ DatePrototypeToLocaleString: () => DatePrototypeToLocaleString,
82
88
  DatePrototypeValueOf: () => DatePrototypeValueOf,
83
89
  DateUTC: () => DateUTC,
90
+ ErrorCaptureStackTrace: () => ErrorCaptureStackTrace,
84
91
  ErrorCtor: () => ErrorCtor,
85
92
  ErrorIsError: () => ErrorIsError,
93
+ ErrorPrepareStackTrace: () => ErrorPrepareStackTrace,
94
+ ErrorStackTraceLimit: () => ErrorStackTraceLimit,
86
95
  EvalErrorCtor: () => EvalErrorCtor,
87
96
  Float32ArrayCtor: () => Float32ArrayCtor,
88
97
  Float64ArrayCtor: () => Float64ArrayCtor,
89
98
  FunctionPrototypeApply: () => FunctionPrototypeApply,
90
99
  FunctionPrototypeBind: () => FunctionPrototypeBind,
91
100
  FunctionPrototypeCall: () => FunctionPrototypeCall,
101
+ FunctionPrototypeToString: () => FunctionPrototypeToString,
102
+ InfinityValue: () => InfinityValue,
92
103
  Int16ArrayCtor: () => Int16ArrayCtor,
93
104
  Int32ArrayCtor: () => Int32ArrayCtor,
94
105
  Int8ArrayCtor: () => Int8ArrayCtor,
@@ -107,21 +118,62 @@ __export(primordials_exports, {
107
118
  MapPrototypeSet: () => MapPrototypeSet,
108
119
  MapPrototypeValues: () => MapPrototypeValues,
109
120
  MathAbs: () => MathAbs,
121
+ MathAcos: () => MathAcos,
122
+ MathAcosh: () => MathAcosh,
123
+ MathAsin: () => MathAsin,
124
+ MathAsinh: () => MathAsinh,
125
+ MathAtan: () => MathAtan,
126
+ MathAtan2: () => MathAtan2,
127
+ MathAtanh: () => MathAtanh,
128
+ MathCbrt: () => MathCbrt,
110
129
  MathCeil: () => MathCeil,
130
+ MathClz32: () => MathClz32,
131
+ MathCos: () => MathCos,
132
+ MathCosh: () => MathCosh,
133
+ MathE: () => MathE,
134
+ MathExp: () => MathExp,
135
+ MathExpm1: () => MathExpm1,
136
+ MathF16round: () => MathF16round,
111
137
  MathFloor: () => MathFloor,
138
+ MathFround: () => MathFround,
139
+ MathHypot: () => MathHypot,
140
+ MathImul: () => MathImul,
141
+ MathLN10: () => MathLN10,
142
+ MathLN2: () => MathLN2,
143
+ MathLOG10E: () => MathLOG10E,
144
+ MathLOG2E: () => MathLOG2E,
145
+ MathLog: () => MathLog,
146
+ MathLog10: () => MathLog10,
147
+ MathLog1p: () => MathLog1p,
148
+ MathLog2: () => MathLog2,
112
149
  MathMax: () => MathMax,
113
150
  MathMin: () => MathMin,
151
+ MathPI: () => MathPI,
114
152
  MathPow: () => MathPow,
115
153
  MathRandom: () => MathRandom,
116
154
  MathRound: () => MathRound,
155
+ MathSQRT1_2: () => MathSQRT1_2,
156
+ MathSQRT2: () => MathSQRT2,
117
157
  MathSign: () => MathSign,
158
+ MathSin: () => MathSin,
159
+ MathSinh: () => MathSinh,
118
160
  MathSqrt: () => MathSqrt,
161
+ MathTan: () => MathTan,
162
+ MathTanh: () => MathTanh,
119
163
  MathTrunc: () => MathTrunc,
164
+ NaNValue: () => NaNValue,
120
165
  NumberCtor: () => NumberCtor,
166
+ NumberEPSILON: () => NumberEPSILON,
121
167
  NumberIsFinite: () => NumberIsFinite,
122
168
  NumberIsInteger: () => NumberIsInteger,
123
169
  NumberIsNaN: () => NumberIsNaN,
124
170
  NumberIsSafeInteger: () => NumberIsSafeInteger,
171
+ NumberMAX_SAFE_INTEGER: () => NumberMAX_SAFE_INTEGER,
172
+ NumberMAX_VALUE: () => NumberMAX_VALUE,
173
+ NumberMIN_SAFE_INTEGER: () => NumberMIN_SAFE_INTEGER,
174
+ NumberMIN_VALUE: () => NumberMIN_VALUE,
175
+ NumberNEGATIVE_INFINITY: () => NumberNEGATIVE_INFINITY,
176
+ NumberPOSITIVE_INFINITY: () => NumberPOSITIVE_INFINITY,
125
177
  NumberParseFloat: () => NumberParseFloat,
126
178
  NumberParseInt: () => NumberParseInt,
127
179
  NumberPrototypeToFixed: () => NumberPrototypeToFixed,
@@ -147,8 +199,12 @@ __export(primordials_exports, {
147
199
  ObjectKeys: () => ObjectKeys,
148
200
  ObjectPreventExtensions: () => ObjectPreventExtensions,
149
201
  ObjectPrototype: () => ObjectPrototype,
202
+ ObjectPrototypeDefineGetter: () => ObjectPrototypeDefineGetter,
203
+ ObjectPrototypeDefineSetter: () => ObjectPrototypeDefineSetter,
150
204
  ObjectPrototypeHasOwnProperty: () => ObjectPrototypeHasOwnProperty,
151
205
  ObjectPrototypeIsPrototypeOf: () => ObjectPrototypeIsPrototypeOf,
206
+ ObjectPrototypeLookupGetter: () => ObjectPrototypeLookupGetter,
207
+ ObjectPrototypeLookupSetter: () => ObjectPrototypeLookupSetter,
152
208
  ObjectPrototypePropertyIsEnumerable: () => ObjectPrototypePropertyIsEnumerable,
153
209
  ObjectPrototypeToString: () => ObjectPrototypeToString,
154
210
  ObjectPrototypeValueOf: () => ObjectPrototypeValueOf,
@@ -166,6 +222,7 @@ __export(primordials_exports, {
166
222
  PromiseReject: () => PromiseReject,
167
223
  PromiseResolve: () => PromiseResolve,
168
224
  PromiseWithResolvers: () => PromiseWithResolvers,
225
+ ProxyCtor: () => ProxyCtor,
169
226
  RangeErrorCtor: () => RangeErrorCtor,
170
227
  ReferenceErrorCtor: () => ReferenceErrorCtor,
171
228
  ReflectApply: () => ReflectApply,
@@ -196,6 +253,7 @@ __export(primordials_exports, {
196
253
  SetPrototypeHas: () => SetPrototypeHas,
197
254
  SetPrototypeKeys: () => SetPrototypeKeys,
198
255
  SetPrototypeValues: () => SetPrototypeValues,
256
+ SharedArrayBufferCtor: () => SharedArrayBufferCtor,
199
257
  StringCtor: () => StringCtor,
200
258
  StringFromCharCode: () => StringFromCharCode,
201
259
  StringFromCodePoint: () => StringFromCodePoint,
@@ -230,12 +288,27 @@ __export(primordials_exports, {
230
288
  StringPrototypeTrimEnd: () => StringPrototypeTrimEnd,
231
289
  StringPrototypeTrimStart: () => StringPrototypeTrimStart,
232
290
  StringRaw: () => StringRaw,
291
+ SymbolAsyncDispose: () => SymbolAsyncDispose,
233
292
  SymbolAsyncIterator: () => SymbolAsyncIterator,
234
293
  SymbolCtor: () => SymbolCtor,
294
+ SymbolDispose: () => SymbolDispose,
235
295
  SymbolFor: () => SymbolFor,
296
+ SymbolHasInstance: () => SymbolHasInstance,
297
+ SymbolIsConcatSpreadable: () => SymbolIsConcatSpreadable,
236
298
  SymbolIterator: () => SymbolIterator,
299
+ SymbolKeyFor: () => SymbolKeyFor,
300
+ SymbolMatch: () => SymbolMatch,
301
+ SymbolMatchAll: () => SymbolMatchAll,
302
+ SymbolPrototypeDescription: () => SymbolPrototypeDescription,
303
+ SymbolPrototypeToString: () => SymbolPrototypeToString,
304
+ SymbolPrototypeValueOf: () => SymbolPrototypeValueOf,
305
+ SymbolReplace: () => SymbolReplace,
306
+ SymbolSearch: () => SymbolSearch,
307
+ SymbolSpecies: () => SymbolSpecies,
308
+ SymbolSplit: () => SymbolSplit,
237
309
  SymbolToPrimitive: () => SymbolToPrimitive,
238
310
  SymbolToStringTag: () => SymbolToStringTag,
311
+ SymbolUnscopables: () => SymbolUnscopables,
239
312
  SyntaxErrorCtor: () => SyntaxErrorCtor,
240
313
  TypeErrorCtor: () => TypeErrorCtor,
241
314
  URIErrorCtor: () => URIErrorCtor,
@@ -263,16 +336,48 @@ __export(primordials_exports, {
263
336
  WeakSetPrototypeDelete: () => WeakSetPrototypeDelete,
264
337
  WeakSetPrototypeHas: () => WeakSetPrototypeHas,
265
338
  applyBind: () => applyBind,
339
+ applySafe: () => applySafe,
340
+ bindCall: () => bindCall,
266
341
  decodeComponent: () => decodeComponent,
267
342
  encodeComponent: () => encodeComponent,
268
- uncurryThis: () => uncurryThis
343
+ globalThisRef: () => globalThisRef,
344
+ uncurryThis: () => uncurryThis,
345
+ weakRefSafe: () => weakRefSafe
269
346
  });
270
347
  module.exports = __toCommonJS(primordials_exports);
348
+ var import_primordial = require("./smol/primordial");
349
+ var import_util = require("./smol/util");
350
+ const _smolUtil = (0, import_util.getSmolUtil)();
351
+ const _smolPrimordial = (0, import_primordial.getSmolPrimordial)();
271
352
  const { apply, bind, call } = Function.prototype;
272
- const uncurryThis = bind.bind(call);
273
- const applyBind = bind.bind(apply);
353
+ const uncurryThis = _smolUtil?.uncurryThis ?? bind.bind(call);
354
+ const applyBind = _smolUtil?.applyBind ?? bind.bind(apply);
355
+ const _applyBoundForSafe = applyBind;
356
+ const applySafe = _smolUtil?.applySafe ?? ((fn) => {
357
+ const apply2 = _applyBoundForSafe(fn);
358
+ return (self, args) => {
359
+ try {
360
+ return apply2(self, args);
361
+ } catch {
362
+ return void 0;
363
+ }
364
+ };
365
+ });
366
+ const _bindCallFallback = ((fn, thisArg, ...presetArgs) => Function.prototype.bind.apply(fn, [
367
+ thisArg,
368
+ ...presetArgs
369
+ ]));
370
+ const bindCall = _smolUtil?.bindCall ?? _bindCallFallback;
371
+ const weakRefSafe = _smolUtil?.weakRefSafe ?? ((target) => {
372
+ try {
373
+ return new WeakRef(target);
374
+ } catch {
375
+ return void 0;
376
+ }
377
+ });
274
378
  const ArrayCtor = Array;
275
379
  const ArrayBufferCtor = ArrayBuffer;
380
+ const BigIntCtor = BigInt;
276
381
  const BooleanCtor = Boolean;
277
382
  const BufferCtor = globalThis.Buffer;
278
383
  const DataViewCtor = DataView;
@@ -289,8 +394,10 @@ const MapCtor = Map;
289
394
  const NumberCtor = Number;
290
395
  const ObjectCtor = Object;
291
396
  const PromiseCtor = Promise;
397
+ const ProxyCtor = Proxy;
292
398
  const RegExpCtor = RegExp;
293
399
  const SetCtor = Set;
400
+ const SharedArrayBufferCtor = SharedArrayBuffer;
294
401
  const StringCtor = String;
295
402
  const SymbolCtor = Symbol;
296
403
  const Float32ArrayCtor = Float32Array;
@@ -307,14 +414,19 @@ const URLSearchParamsCtor = URLSearchParams;
307
414
  const WeakMapCtor = WeakMap;
308
415
  const WeakRefCtor = WeakRef;
309
416
  const WeakSetCtor = WeakSet;
417
+ const InfinityValue = Infinity;
418
+ const NaNValue = NaN;
419
+ const globalThisRef = globalThis;
310
420
  const decodeComponent = globalThis.decodeURIComponent;
311
421
  const encodeComponent = globalThis.encodeURIComponent;
312
422
  const JSONParse = JSON.parse;
313
423
  const JSONStringify = JSON.stringify;
314
424
  const ArrayFrom = Array.from;
315
- const ArrayIsArray = Array.isArray;
425
+ const ArrayFromAsync = Array.fromAsync;
426
+ const ArrayIsArray = _smolPrimordial?.arrayIsArray ?? Array.isArray;
316
427
  const ArrayOf = Array.of;
317
428
  const ArrayBufferIsView = ArrayBuffer.isView;
429
+ const AtomicsWait = Atomics.wait;
318
430
  const ArrayPrototypeAt = uncurryThis(Array.prototype.at);
319
431
  const ArrayPrototypeConcat = uncurryThis(Array.prototype.concat);
320
432
  const ArrayPrototypeCopyWithin = uncurryThis(Array.prototype.copyWithin);
@@ -353,8 +465,12 @@ const ArrayPrototypeSort = uncurryThis(Array.prototype.sort);
353
465
  const ArrayPrototypeSplice = uncurryThis(Array.prototype.splice);
354
466
  const ArrayPrototypeToReversed = uncurryThis(Array.prototype.toReversed);
355
467
  const ArrayPrototypeToSorted = uncurryThis(Array.prototype.toSorted);
468
+ const ArrayPrototypeToSpliced = uncurryThis(
469
+ Array.prototype.toSpliced
470
+ );
356
471
  const ArrayPrototypeUnshift = uncurryThis(Array.prototype.unshift);
357
472
  const ArrayPrototypeValues = uncurryThis(Array.prototype.values);
473
+ const ArrayPrototypeWith = uncurryThis(Array.prototype.with);
358
474
  const BufferAlloc = BufferCtor?.alloc;
359
475
  const BufferAllocUnsafe = BufferCtor?.allocUnsafe;
360
476
  const BufferAllocUnsafeSlow = BufferCtor?.allocUnsafeSlow;
@@ -365,16 +481,37 @@ const BufferIsBuffer = BufferCtor?.isBuffer;
365
481
  const BufferIsEncoding = BufferCtor?.isEncoding;
366
482
  const BufferPrototypeSlice = BufferCtor ? uncurryThis(BufferCtor.prototype.slice) : void 0;
367
483
  const BufferPrototypeToString = BufferCtor ? uncurryThis(BufferCtor.prototype.toString) : void 0;
368
- const DateNow = Date.now;
484
+ const DateNow = _smolPrimordial?.dateNow ?? Date.now;
369
485
  const DateParse = Date.parse;
370
486
  const DateUTC = Date.UTC;
371
487
  const DatePrototypeGetTime = uncurryThis(Date.prototype.getTime);
372
488
  const DatePrototypeToISOString = uncurryThis(Date.prototype.toISOString);
489
+ const DatePrototypeToLocaleString = uncurryThis(
490
+ Date.prototype.toLocaleString
491
+ );
373
492
  const DatePrototypeValueOf = uncurryThis(Date.prototype.valueOf);
374
493
  const ErrorIsError = Error.isError;
494
+ const ErrorCaptureStackTrace = Error.captureStackTrace;
495
+ const ErrorPrepareStackTrace = Error.prepareStackTrace;
496
+ const _stackTraceLimitGetter = (() => {
497
+ const getter = Error.__lookupGetter__?.("stackTraceLimit");
498
+ if (typeof getter === "function") {
499
+ return () => getter.call(Error);
500
+ }
501
+ return void 0;
502
+ })();
503
+ function ErrorStackTraceLimit() {
504
+ if (_stackTraceLimitGetter) {
505
+ return _stackTraceLimitGetter();
506
+ }
507
+ return Error.stackTraceLimit;
508
+ }
375
509
  const FunctionPrototypeApply = uncurryThis(Function.prototype.apply);
376
510
  const FunctionPrototypeBind = uncurryThis(Function.prototype.bind);
377
511
  const FunctionPrototypeCall = uncurryThis(Function.prototype.call);
512
+ const FunctionPrototypeToString = uncurryThis(
513
+ Function.prototype.toString
514
+ );
378
515
  const _anyIterator = (/* @__PURE__ */ new Map()).keys();
379
516
  let _iteratorLookup = Object.getPrototypeOf(_anyIterator);
380
517
  while (_iteratorLookup && typeof _iteratorLookup.next !== "function") {
@@ -392,23 +529,64 @@ const MapPrototypeHas = uncurryThis(Map.prototype.has);
392
529
  const MapPrototypeKeys = uncurryThis(Map.prototype.keys);
393
530
  const MapPrototypeSet = uncurryThis(Map.prototype.set);
394
531
  const MapPrototypeValues = uncurryThis(Map.prototype.values);
395
- const MathAbs = Math.abs;
396
- const MathCeil = Math.ceil;
397
- const MathFloor = Math.floor;
532
+ const MathE = Math.E;
533
+ const MathLN2 = Math.LN2;
534
+ const MathLN10 = Math.LN10;
535
+ const MathLOG2E = Math.LOG2E;
536
+ const MathLOG10E = Math.LOG10E;
537
+ const MathPI = Math.PI;
538
+ const MathSQRT1_2 = Math.SQRT1_2;
539
+ const MathSQRT2 = Math.SQRT2;
540
+ const MathAbs = _smolPrimordial?.mathAbs ?? Math.abs;
541
+ const MathAcos = _smolPrimordial?.mathAcos ?? Math.acos;
542
+ const MathAcosh = _smolPrimordial?.mathAcosh ?? Math.acosh;
543
+ const MathAsin = _smolPrimordial?.mathAsin ?? Math.asin;
544
+ const MathAsinh = _smolPrimordial?.mathAsinh ?? Math.asinh;
545
+ const MathAtan = _smolPrimordial?.mathAtan ?? Math.atan;
546
+ const MathAtan2 = _smolPrimordial?.mathAtan2 ?? Math.atan2;
547
+ const MathAtanh = _smolPrimordial?.mathAtanh ?? Math.atanh;
548
+ const MathCbrt = _smolPrimordial?.mathCbrt ?? Math.cbrt;
549
+ const MathCeil = _smolPrimordial?.mathCeil ?? Math.ceil;
550
+ const MathClz32 = _smolPrimordial?.mathClz32 ?? Math.clz32;
551
+ const MathCos = _smolPrimordial?.mathCos ?? Math.cos;
552
+ const MathCosh = _smolPrimordial?.mathCosh ?? Math.cosh;
553
+ const MathExp = _smolPrimordial?.mathExp ?? Math.exp;
554
+ const MathExpm1 = _smolPrimordial?.mathExpm1 ?? Math.expm1;
555
+ const MathF16round = Math.f16round;
556
+ const MathFloor = _smolPrimordial?.mathFloor ?? Math.floor;
557
+ const MathFround = _smolPrimordial?.mathFround ?? Math.fround;
558
+ const MathHypot = _smolPrimordial?.mathHypot ?? Math.hypot;
559
+ const MathImul = _smolPrimordial?.mathImul ?? Math.imul;
560
+ const MathLog = _smolPrimordial?.mathLog ?? Math.log;
561
+ const MathLog1p = _smolPrimordial?.mathLog1p ?? Math.log1p;
562
+ const MathLog2 = _smolPrimordial?.mathLog2 ?? Math.log2;
563
+ const MathLog10 = _smolPrimordial?.mathLog10 ?? Math.log10;
398
564
  const MathMax = Math.max;
399
565
  const MathMin = Math.min;
400
- const MathPow = Math.pow;
566
+ const MathPow = _smolPrimordial?.mathPow ?? Math.pow;
401
567
  const MathRandom = Math.random;
402
- const MathRound = Math.round;
403
- const MathSign = Math.sign;
404
- const MathSqrt = Math.sqrt;
405
- const MathTrunc = Math.trunc;
406
- const NumberIsFinite = Number.isFinite;
407
- const NumberIsInteger = Number.isInteger;
408
- const NumberIsNaN = Number.isNaN;
409
- const NumberIsSafeInteger = Number.isSafeInteger;
410
- const NumberParseFloat = Number.parseFloat;
411
- const NumberParseInt = Number.parseInt;
568
+ const MathRound = _smolPrimordial?.mathRound ?? Math.round;
569
+ const MathSign = _smolPrimordial?.mathSign ?? Math.sign;
570
+ const MathSin = _smolPrimordial?.mathSin ?? Math.sin;
571
+ const MathSinh = _smolPrimordial?.mathSinh ?? Math.sinh;
572
+ const MathSqrt = _smolPrimordial?.mathSqrt ?? Math.sqrt;
573
+ const MathTan = _smolPrimordial?.mathTan ?? Math.tan;
574
+ const MathTanh = _smolPrimordial?.mathTanh ?? Math.tanh;
575
+ const MathTrunc = _smolPrimordial?.mathTrunc ?? Math.trunc;
576
+ const NumberEPSILON = Number.EPSILON;
577
+ const NumberMAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER;
578
+ const NumberMAX_VALUE = Number.MAX_VALUE;
579
+ const NumberMIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER;
580
+ const NumberMIN_VALUE = Number.MIN_VALUE;
581
+ const NumberNEGATIVE_INFINITY = Number.NEGATIVE_INFINITY;
582
+ const NumberPOSITIVE_INFINITY = Number.POSITIVE_INFINITY;
583
+ const NumberIsFinite = _smolPrimordial?.numberIsFinite ?? Number.isFinite;
584
+ const NumberIsInteger = _smolPrimordial?.numberIsInteger ?? Number.isInteger;
585
+ const NumberIsNaN = _smolPrimordial?.numberIsNaN ?? Number.isNaN;
586
+ const NumberIsSafeInteger = _smolPrimordial?.numberIsSafeInteger ?? Number.isSafeInteger;
587
+ const NumberParseFloat = _smolPrimordial?.numberParseFloat ?? Number.parseFloat;
588
+ const _smolParseInt10 = _smolPrimordial?.numberParseInt10;
589
+ const NumberParseInt = _smolParseInt10 ? (s, radix) => radix === void 0 || radix === 10 ? _smolParseInt10(s) : Number.parseInt(s, radix) : Number.parseInt;
412
590
  const NumberPrototypeToFixed = uncurryThis(Number.prototype.toFixed);
413
591
  const NumberPrototypeToString = uncurryThis(Number.prototype.toString);
414
592
  const ObjectAssign = Object.assign;
@@ -445,6 +623,19 @@ const ObjectPrototypePropertyIsEnumerable = uncurryThis(
445
623
  );
446
624
  const ObjectPrototypeToString = uncurryThis(Object.prototype.toString);
447
625
  const ObjectPrototypeValueOf = uncurryThis(Object.prototype.valueOf);
626
+ const _objectProto = Object.prototype;
627
+ const ObjectPrototypeDefineGetter = uncurryThis(
628
+ _objectProto.__defineGetter__
629
+ );
630
+ const ObjectPrototypeDefineSetter = uncurryThis(
631
+ _objectProto.__defineSetter__
632
+ );
633
+ const ObjectPrototypeLookupGetter = uncurryThis(
634
+ _objectProto.__lookupGetter__
635
+ );
636
+ const ObjectPrototypeLookupSetter = uncurryThis(
637
+ _objectProto.__lookupSetter__
638
+ );
448
639
  const PromiseAll = Promise.all.bind(Promise);
449
640
  const PromiseAllSettled = Promise.allSettled.bind(Promise);
450
641
  const PromiseAny = Promise.any.bind(Promise);
@@ -490,9 +681,11 @@ const StringFromCodePoint = String.fromCodePoint;
490
681
  const StringRaw = String.raw;
491
682
  const StringPrototypeAt = uncurryThis(String.prototype.at);
492
683
  const StringPrototypeCharAt = uncurryThis(String.prototype.charAt);
493
- const StringPrototypeCharCodeAt = uncurryThis(
494
- String.prototype.charCodeAt
495
- );
684
+ const _smolCharCodeAt = _smolPrimordial?.stringCharCodeAt;
685
+ const StringPrototypeCharCodeAt = _smolCharCodeAt ? (s, i) => {
686
+ const code = _smolCharCodeAt(s, i);
687
+ return code === -1 ? NaN : code;
688
+ } : uncurryThis(String.prototype.charCodeAt);
496
689
  const StringPrototypeCodePointAt = uncurryThis(
497
690
  String.prototype.codePointAt
498
691
  );
@@ -544,11 +737,29 @@ const StringPrototypeToUpperCase = uncurryThis(
544
737
  const StringPrototypeTrim = uncurryThis(String.prototype.trim);
545
738
  const StringPrototypeTrimEnd = uncurryThis(String.prototype.trimEnd);
546
739
  const StringPrototypeTrimStart = uncurryThis(String.prototype.trimStart);
740
+ const SymbolAsyncDispose = Symbol.asyncDispose;
547
741
  const SymbolAsyncIterator = Symbol.asyncIterator;
742
+ const SymbolDispose = Symbol.dispose;
548
743
  const SymbolFor = Symbol.for;
744
+ const SymbolHasInstance = Symbol.hasInstance;
745
+ const SymbolIsConcatSpreadable = Symbol.isConcatSpreadable;
549
746
  const SymbolIterator = Symbol.iterator;
747
+ const SymbolKeyFor = Symbol.keyFor;
748
+ const SymbolMatch = Symbol.match;
749
+ const SymbolMatchAll = Symbol.matchAll;
750
+ const SymbolReplace = Symbol.replace;
751
+ const SymbolSearch = Symbol.search;
752
+ const SymbolSpecies = Symbol.species;
753
+ const SymbolSplit = Symbol.split;
550
754
  const SymbolToPrimitive = Symbol.toPrimitive;
551
755
  const SymbolToStringTag = Symbol.toStringTag;
756
+ const SymbolUnscopables = Symbol.unscopables;
757
+ const _symbolDescriptionGetter = Symbol.prototype.__lookupGetter__("description");
758
+ function SymbolPrototypeDescription(self) {
759
+ return _symbolDescriptionGetter ? _symbolDescriptionGetter.call(self) : self.description;
760
+ }
761
+ const SymbolPrototypeToString = uncurryThis(Symbol.prototype.toString);
762
+ const SymbolPrototypeValueOf = uncurryThis(Symbol.prototype.valueOf);
552
763
  const URLSearchParamsPrototypeAppend = uncurryThis(
553
764
  URLSearchParams.prototype.append
554
765
  );
@@ -584,6 +795,7 @@ const WeakSetPrototypeHas = uncurryThis(WeakSet.prototype.has);
584
795
  ArrayBufferIsView,
585
796
  ArrayCtor,
586
797
  ArrayFrom,
798
+ ArrayFromAsync,
587
799
  ArrayIsArray,
588
800
  ArrayOf,
589
801
  ArrayPrototypeAt,
@@ -618,8 +830,12 @@ const WeakSetPrototypeHas = uncurryThis(WeakSet.prototype.has);
618
830
  ArrayPrototypeSplice,
619
831
  ArrayPrototypeToReversed,
620
832
  ArrayPrototypeToSorted,
833
+ ArrayPrototypeToSpliced,
621
834
  ArrayPrototypeUnshift,
622
835
  ArrayPrototypeValues,
836
+ ArrayPrototypeWith,
837
+ AtomicsWait,
838
+ BigIntCtor,
623
839
  BooleanCtor,
624
840
  BufferAlloc,
625
841
  BufferAllocUnsafe,
@@ -638,16 +854,22 @@ const WeakSetPrototypeHas = uncurryThis(WeakSet.prototype.has);
638
854
  DateParse,
639
855
  DatePrototypeGetTime,
640
856
  DatePrototypeToISOString,
857
+ DatePrototypeToLocaleString,
641
858
  DatePrototypeValueOf,
642
859
  DateUTC,
860
+ ErrorCaptureStackTrace,
643
861
  ErrorCtor,
644
862
  ErrorIsError,
863
+ ErrorPrepareStackTrace,
864
+ ErrorStackTraceLimit,
645
865
  EvalErrorCtor,
646
866
  Float32ArrayCtor,
647
867
  Float64ArrayCtor,
648
868
  FunctionPrototypeApply,
649
869
  FunctionPrototypeBind,
650
870
  FunctionPrototypeCall,
871
+ FunctionPrototypeToString,
872
+ InfinityValue,
651
873
  Int16ArrayCtor,
652
874
  Int32ArrayCtor,
653
875
  Int8ArrayCtor,
@@ -666,21 +888,62 @@ const WeakSetPrototypeHas = uncurryThis(WeakSet.prototype.has);
666
888
  MapPrototypeSet,
667
889
  MapPrototypeValues,
668
890
  MathAbs,
891
+ MathAcos,
892
+ MathAcosh,
893
+ MathAsin,
894
+ MathAsinh,
895
+ MathAtan,
896
+ MathAtan2,
897
+ MathAtanh,
898
+ MathCbrt,
669
899
  MathCeil,
900
+ MathClz32,
901
+ MathCos,
902
+ MathCosh,
903
+ MathE,
904
+ MathExp,
905
+ MathExpm1,
906
+ MathF16round,
670
907
  MathFloor,
908
+ MathFround,
909
+ MathHypot,
910
+ MathImul,
911
+ MathLN10,
912
+ MathLN2,
913
+ MathLOG10E,
914
+ MathLOG2E,
915
+ MathLog,
916
+ MathLog10,
917
+ MathLog1p,
918
+ MathLog2,
671
919
  MathMax,
672
920
  MathMin,
921
+ MathPI,
673
922
  MathPow,
674
923
  MathRandom,
675
924
  MathRound,
925
+ MathSQRT1_2,
926
+ MathSQRT2,
676
927
  MathSign,
928
+ MathSin,
929
+ MathSinh,
677
930
  MathSqrt,
931
+ MathTan,
932
+ MathTanh,
678
933
  MathTrunc,
934
+ NaNValue,
679
935
  NumberCtor,
936
+ NumberEPSILON,
680
937
  NumberIsFinite,
681
938
  NumberIsInteger,
682
939
  NumberIsNaN,
683
940
  NumberIsSafeInteger,
941
+ NumberMAX_SAFE_INTEGER,
942
+ NumberMAX_VALUE,
943
+ NumberMIN_SAFE_INTEGER,
944
+ NumberMIN_VALUE,
945
+ NumberNEGATIVE_INFINITY,
946
+ NumberPOSITIVE_INFINITY,
684
947
  NumberParseFloat,
685
948
  NumberParseInt,
686
949
  NumberPrototypeToFixed,
@@ -706,8 +969,12 @@ const WeakSetPrototypeHas = uncurryThis(WeakSet.prototype.has);
706
969
  ObjectKeys,
707
970
  ObjectPreventExtensions,
708
971
  ObjectPrototype,
972
+ ObjectPrototypeDefineGetter,
973
+ ObjectPrototypeDefineSetter,
709
974
  ObjectPrototypeHasOwnProperty,
710
975
  ObjectPrototypeIsPrototypeOf,
976
+ ObjectPrototypeLookupGetter,
977
+ ObjectPrototypeLookupSetter,
711
978
  ObjectPrototypePropertyIsEnumerable,
712
979
  ObjectPrototypeToString,
713
980
  ObjectPrototypeValueOf,
@@ -725,6 +992,7 @@ const WeakSetPrototypeHas = uncurryThis(WeakSet.prototype.has);
725
992
  PromiseReject,
726
993
  PromiseResolve,
727
994
  PromiseWithResolvers,
995
+ ProxyCtor,
728
996
  RangeErrorCtor,
729
997
  ReferenceErrorCtor,
730
998
  ReflectApply,
@@ -755,6 +1023,7 @@ const WeakSetPrototypeHas = uncurryThis(WeakSet.prototype.has);
755
1023
  SetPrototypeHas,
756
1024
  SetPrototypeKeys,
757
1025
  SetPrototypeValues,
1026
+ SharedArrayBufferCtor,
758
1027
  StringCtor,
759
1028
  StringFromCharCode,
760
1029
  StringFromCodePoint,
@@ -789,12 +1058,27 @@ const WeakSetPrototypeHas = uncurryThis(WeakSet.prototype.has);
789
1058
  StringPrototypeTrimEnd,
790
1059
  StringPrototypeTrimStart,
791
1060
  StringRaw,
1061
+ SymbolAsyncDispose,
792
1062
  SymbolAsyncIterator,
793
1063
  SymbolCtor,
1064
+ SymbolDispose,
794
1065
  SymbolFor,
1066
+ SymbolHasInstance,
1067
+ SymbolIsConcatSpreadable,
795
1068
  SymbolIterator,
1069
+ SymbolKeyFor,
1070
+ SymbolMatch,
1071
+ SymbolMatchAll,
1072
+ SymbolPrototypeDescription,
1073
+ SymbolPrototypeToString,
1074
+ SymbolPrototypeValueOf,
1075
+ SymbolReplace,
1076
+ SymbolSearch,
1077
+ SymbolSpecies,
1078
+ SymbolSplit,
796
1079
  SymbolToPrimitive,
797
1080
  SymbolToStringTag,
1081
+ SymbolUnscopables,
798
1082
  SyntaxErrorCtor,
799
1083
  TypeErrorCtor,
800
1084
  URIErrorCtor,
@@ -822,7 +1106,11 @@ const WeakSetPrototypeHas = uncurryThis(WeakSet.prototype.has);
822
1106
  WeakSetPrototypeDelete,
823
1107
  WeakSetPrototypeHas,
824
1108
  applyBind,
1109
+ applySafe,
1110
+ bindCall,
825
1111
  decodeComponent,
826
1112
  encodeComponent,
827
- uncurryThis
1113
+ globalThisRef,
1114
+ uncurryThis,
1115
+ weakRefSafe
828
1116
  });