foxts 4.3.0 → 4.4.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/dist/async-retry/index.d.ts +3 -2
- package/dist/async-retry/index.js +1 -1
- package/dist/async-retry/index.mjs +1 -1
- package/dist/cast-array/index.d.ts +3 -0
- package/dist/cast-array/index.js +1 -0
- package/dist/cast-array/index.mjs +1 -0
- package/dist/fnv1a/index.d.ts +4 -2
- package/dist/fnv1a/index.js +1 -1
- package/dist/fnv1a/index.mjs +1 -1
- package/dist/fnv1a52/index.d.ts +8 -2
- package/dist/fnv1a52/index.js +1 -1
- package/dist/fnv1a52/index.mjs +1 -1
- package/dist/merge-headers/index.d.ts +1 -1
- package/dist/merge-headers/index.js +1 -1
- package/dist/merge-headers/index.mjs +1 -1
- package/dist/simple-string-hash/index.js +1 -1
- package/dist/simple-string-hash/index.mjs +1 -1
- package/dist/uint8array-utils/index.js +1 -1
- package/dist/uint8array-utils/index.mjs +1 -1
- package/package.json +15 -9
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
declare const E: ErrorConstructor;
|
|
1
2
|
interface AsyncRetryContext {
|
|
2
3
|
readonly error: unknown;
|
|
3
4
|
readonly attemptNumber: number;
|
|
@@ -70,9 +71,9 @@ interface AsyncRetryOptions {
|
|
|
70
71
|
*/
|
|
71
72
|
unref?: boolean;
|
|
72
73
|
}
|
|
73
|
-
declare class AsyncRetryAbortError extends
|
|
74
|
+
declare class AsyncRetryAbortError extends E {
|
|
74
75
|
name: string;
|
|
75
|
-
cause
|
|
76
|
+
cause?: unknown;
|
|
76
77
|
constructor(message: string | Error | unknown);
|
|
77
78
|
}
|
|
78
79
|
declare function asyncRetry<T>(callback: (bail: (reason?: unknown) => void, attemptNumber: number) => PromiseLike<T> | T, retryOptions?: AsyncRetryOptions): Promise<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var e=require("../abort-error/index.js"),t=require("../extract-error-message/index.js"),r=require("../is-network-error/index.js"),o=require("../noop/index.js");const{round:n}=Math,i=Error,s=TypeError;function a(e,t,r=0,o=!1){if(Number.isNaN(t))throw new s(`Expected \`${e}\` to be a valid number${o?" or Infinity":""}, got NaN.`);if(!o&&!Number.isFinite(t))throw new s(`Expected \`${e}\` to be a finite number.`);if(t<r)throw new s(`Expected \`${e}\` to be \u2265 ${r}.`)}class c extends i{name="AsyncRetryAbortError";cause;constructor(e){if(super("string"==typeof e?e:t.extractErrorMessage(e,!1)??"Aborted"),"string"==typeof e){const t=new i(e);t.stack=this.stack,this.cause=t}else e instanceof i?(this.cause=e,this.message=e.message):this.cause=e}}async function u(t,o,i,a,u){if(t instanceof c)throw t.cause;if(t instanceof s&&!r.isNetworkError(t)||e.isAbortErrorLike(t))throw t;const m=i.retries-(o-1),f={error:t,attemptNumber:o,retriesLeft:m};await i.onFailedAttempt(f),o>1&&await i.onRetry(t,o-1);const w=Date.now();if(w-a>=u||o>=i.retries+1||!await i.shouldRetry(f))throw t;let h=n((i.randomize?Math.random()+1:1)*i.minTimeout*i.factor**(o-1));h>i.maxTimeout&&(h=i.maxTimeout);const d=u-(w-a);if(d<=0)throw t;let b=h;h>d&&(b=d),b>0&&await new Promise((e,t)=>{const r=setTimeout(()=>{i.signal?.removeEventListener("abort",o),e()},b);function o(){clearTimeout(r),i.signal?.removeEventListener("abort",o),t(i.signal?.reason)}i.unref&&"object"==typeof r&&"unref"in r&&"function"==typeof r.unref&&r.unref(),i.signal?.addEventListener("abort",o,{once:!0})}),i.signal?.throwIfAborted()}function m(e){throw new c(e??"Aborted")}async function f(e,t={}){t.signal?.throwIfAborted();const r={...t};r.retries??=10,r.forever??=!1,r.factor??=2,r.minTimeout??=1e3,r.maxTimeout??=1/0,r.randomize??=!0,r.onFailedAttempt??=o.noop,r.onRetry??=o.noop,r.shouldRetry??=o.trueFn,r.forever&&(r.retries=1/0),a("retries",r.retries,0,!0),a("factor",r.factor,0,!1),a("minTimeout",r.minTimeout,0,!1),a("maxTimeout",r.maxTimeout,0,!0);const n=r.maxRetryTime??1/0;a("maxRetryTime",n,0,!0),r.minTimeout<1&&(r.minTimeout=1),r.factor<=0&&(r.factor=1);let s=0;const w=Date.now();for(;s<r.retries+1;){s++;try{r.signal?.throwIfAborted();const t=await e(m,s);return r.signal?.throwIfAborted(),t}catch(t){let e=t;"object"==typeof t&&t&&"bail"in t&&t.bail&&(e=new c(t)),await u(e,s,r,w,n)}}throw new i("Retry attempts exhausted without throwing an error.")}exports.AsyncRetryAbortError=c,exports.asyncRetry=f,exports.makeRetriable=function(e,t){return function(...r){return f(()=>e.apply(this,r),t)}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isAbortErrorLike as t}from"../abort-error/index.mjs";import{extractErrorMessage as
|
|
1
|
+
import{isAbortErrorLike as t}from"../abort-error/index.mjs";import{extractErrorMessage as e}from"../extract-error-message/index.mjs";import{isNetworkError as r}from"../is-network-error/index.mjs";import{noop as o,trueFn as n}from"../noop/index.mjs";const{round:i}=Math,a=Error,s=TypeError;function m(t,e,r=0,o=!1){if(Number.isNaN(e))throw new s(`Expected \`${t}\` to be a valid number${o?" or Infinity":""}, got NaN.`);if(!o&&!Number.isFinite(e))throw new s(`Expected \`${t}\` to be a finite number.`);if(e<r)throw new s(`Expected \`${t}\` to be \u2265 ${r}.`)}class c extends a{name="AsyncRetryAbortError";cause;constructor(t){if(super("string"==typeof t?t:e(t,!1)??"Aborted"),"string"==typeof t){const e=new a(t);e.stack=this.stack,this.cause=e}else t instanceof a?(this.cause=t,this.message=t.message):this.cause=t}}async function f(e,o,n,a,m){if(e instanceof c)throw e.cause;if(e instanceof s&&!r(e)||t(e))throw e;const f=n.retries-(o-1),u={error:e,attemptNumber:o,retriesLeft:f};await n.onFailedAttempt(u),o>1&&await n.onRetry(e,o-1);const w=Date.now();if(w-a>=m||o>=n.retries+1||!await n.shouldRetry(u))throw e;let h=i((n.randomize?Math.random()+1:1)*n.minTimeout*n.factor**(o-1));h>n.maxTimeout&&(h=n.maxTimeout);const d=m-(w-a);if(d<=0)throw e;let b=h;h>d&&(b=d),b>0&&await new Promise((t,e)=>{const r=setTimeout(()=>{n.signal?.removeEventListener("abort",o),t()},b);function o(){clearTimeout(r),n.signal?.removeEventListener("abort",o),e(n.signal?.reason)}n.unref&&"object"==typeof r&&"unref"in r&&"function"==typeof r.unref&&r.unref(),n.signal?.addEventListener("abort",o,{once:!0})}),n.signal?.throwIfAborted()}function u(t){throw new c(t??"Aborted")}async function w(t,e={}){e.signal?.throwIfAborted();const r={...e};r.retries??=10,r.forever??=!1,r.factor??=2,r.minTimeout??=1e3,r.maxTimeout??=1/0,r.randomize??=!0,r.onFailedAttempt??=o,r.onRetry??=o,r.shouldRetry??=n,r.forever&&(r.retries=1/0),m("retries",r.retries,0,!0),m("factor",r.factor,0,!1),m("minTimeout",r.minTimeout,0,!1),m("maxTimeout",r.maxTimeout,0,!0);const i=r.maxRetryTime??1/0;m("maxRetryTime",i,0,!0),r.minTimeout<1&&(r.minTimeout=1),r.factor<=0&&(r.factor=1);let s=0;const h=Date.now();for(;s<r.retries+1;){s++;try{r.signal?.throwIfAborted();const e=await t(u,s);return r.signal?.throwIfAborted(),e}catch(e){let t=e;"object"==typeof e&&e&&"bail"in e&&e.bail&&(t=new c(e)),await f(t,s,r,h,i)}}throw new a("Retry attempts exhausted without throwing an error.")}function h(t,e){return function(...r){return w(()=>t.apply(this,r),e)}}export{c as AsyncRetryAbortError,w as asyncRetry,h as makeRetriable};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.castArray=function(r){return Array.isArray(r??=[])?r:[r]};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function r(r){return Array.isArray(r??=[])?r:[r]}export{r as castArray};
|
package/dist/fnv1a/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
declare function fnv1a(
|
|
1
|
+
declare function fnv1a(str: string): number;
|
|
2
|
+
declare const __internal_hl_do_not_use__: string[];
|
|
3
|
+
declare function fnv1ahex(str: string): string;
|
|
2
4
|
|
|
3
|
-
export { fnv1a };
|
|
5
|
+
export { __internal_hl_do_not_use__, fnv1a, fnv1ahex };
|
package/dist/fnv1a/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.fnv1a=function(t){let e=
|
|
1
|
+
"use strict";const t=Array(256);for(let r=0;r<256;r++)t[r]=(r>>4&15).toString(16)+(15&r).toString(16);exports.__internal_hl_do_not_use__=t,exports.fnv1a=function(t){const r=t.length-3;let o=0,e=0,n=40389,c=33052;for(;o<r;)n^=t.charCodeAt(o++),e=403*n,c=403*c+(n<<8)+(e>>>16)&65535,e=403*(n=65535&e^t.charCodeAt(o++)),c=403*c+(n<<8)+(e>>>16)&65535,e=403*(n=65535&e^t.charCodeAt(o++)),c=403*c+(n<<8)+(e>>>16)&65535,e=403*(n=65535&e^t.charCodeAt(o++)),c=403*c+(n<<8)+(e>>>16)&65535,n=65535&e;for(;o<r+3;)n^=t.charCodeAt(o++),e=403*n,c=403*c+(n<<8)+(e>>>16)&65535,n=65535&e;return(c<<16>>>0)+n},exports.fnv1ahex=function(r){const o=r.length-3;let e=0,n=0,c=40389,a=33052;for(;e<o;)c^=r.charCodeAt(e++),n=403*c,a=403*a+(c<<8)+(n>>>16)&65535,n=403*(c=65535&n^r.charCodeAt(e++)),a=403*a+(c<<8)+(n>>>16)&65535,n=403*(c=65535&n^r.charCodeAt(e++)),a=403*a+(c<<8)+(n>>>16)&65535,n=403*(c=65535&n^r.charCodeAt(e++)),a=403*a+(c<<8)+(n>>>16)&65535,c=65535&n;for(;e<o+3;)c^=r.charCodeAt(e++),n=403*c,a=403*a+(c<<8)+(n>>>16)&65535,c=65535&n;return t[a>>>8&255]+t[255&a]+t[c>>>8&255]+t[255&c]};
|
package/dist/fnv1a/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function t(t){let e=
|
|
1
|
+
function t(t){const o=t.length-3;let r=0,e=0,n=40389,c=33052;for(;r<o;)n^=t.charCodeAt(r++),e=403*n,c=403*c+(n<<8)+(e>>>16)&65535,e=403*(n=65535&e^t.charCodeAt(r++)),c=403*c+(n<<8)+(e>>>16)&65535,e=403*(n=65535&e^t.charCodeAt(r++)),c=403*c+(n<<8)+(e>>>16)&65535,e=403*(n=65535&e^t.charCodeAt(r++)),c=403*c+(n<<8)+(e>>>16)&65535,n=65535&e;for(;r<o+3;)n^=t.charCodeAt(r++),e=403*n,c=403*c+(n<<8)+(e>>>16)&65535,n=65535&e;return(c<<16>>>0)+n}const o=Array(256);for(let t=0;t<256;t++)o[t]=(t>>4&15).toString(16)+(15&t).toString(16);const r=o;function e(t){const r=t.length-3;let e=0,n=0,c=40389,a=33052;for(;e<r;)c^=t.charCodeAt(e++),n=403*c,a=403*a+(c<<8)+(n>>>16)&65535,n=403*(c=65535&n^t.charCodeAt(e++)),a=403*a+(c<<8)+(n>>>16)&65535,n=403*(c=65535&n^t.charCodeAt(e++)),a=403*a+(c<<8)+(n>>>16)&65535,n=403*(c=65535&n^t.charCodeAt(e++)),a=403*a+(c<<8)+(n>>>16)&65535,c=65535&n;for(;e<r+3;)c^=t.charCodeAt(e++),n=403*c,a=403*a+(c<<8)+(n>>>16)&65535,c=65535&n;return o[a>>>8&255]+o[255&a]+o[c>>>8&255]+o[255&c]}export{r as __internal_hl_do_not_use__,t as fnv1a,e as fnv1ahex};
|
package/dist/fnv1a52/index.d.ts
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* FNV-1a Hash implementation
|
|
3
|
+
*
|
|
4
|
+
* @author Sukka (sukkaw) <https://skk.moe>
|
|
3
5
|
* @author Travis Webb (tjwebb) <me@traviswebb.com>
|
|
4
6
|
*
|
|
5
|
-
*
|
|
7
|
+
* @description
|
|
6
8
|
*
|
|
9
|
+
* Ported from https://github.com/tjwebb/fnv-plus/blob/master/index.js
|
|
7
10
|
* Simplified, optimized and add modified for 52 bit, which provides a larger hash space
|
|
8
11
|
* and still making use of Javascript's 53-bit integer space.
|
|
12
|
+
*
|
|
13
|
+
* DO NOT USE toString(16) here! Use `fnv1a52hex` instead, way faster
|
|
9
14
|
*/
|
|
10
15
|
declare function fnv1a52(str: string): number;
|
|
16
|
+
declare function fnv1a52hex(str: string): string;
|
|
11
17
|
|
|
12
|
-
export { fnv1a52 };
|
|
18
|
+
export { fnv1a52, fnv1a52hex };
|
package/dist/fnv1a52/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.fnv1a52=function(
|
|
1
|
+
"use strict";var _=require("../fnv1a/index.js");const n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];exports.fnv1a52=function(_){const n=_.length;let t=0,e=0,o=8997,r=0,l=33826,s=0,a=40164,u=0,h=52210;for(;t<n;)o^=_.charCodeAt(t++),e=435*o,r=435*l,s=435*a,u=435*h,s+=o<<8,u+=l<<8,r+=e>>>16,o=65535&e,s+=r>>>16,l=65535&r,h=u+(s>>>16)&65535,a=65535&s;return(15&h)*0x1000000000000+0x100000000*a+65536*l+(o^h>>4)},exports.fnv1a52hex=function(t){const e=t.length;let o=0,r=0,l=8997,s=0,a=33826,u=0,h=40164,i=0,d=52210;for(;o<e;)l^=t.charCodeAt(o++),r=435*l,s=435*a,u=435*h,i=435*d,u+=l<<8,i+=a<<8,s+=r>>>16,l=65535&r,u+=s>>>16,a=65535&s,d=i+(u>>>16)&65535,h=65535&u;return n[15&d]+_.__internal_hl_do_not_use__[h>>8]+_.__internal_hl_do_not_use__[255&h]+_.__internal_hl_do_not_use__[a>>8]+_.__internal_hl_do_not_use__[255&a]+_.__internal_hl_do_not_use__[l>>8^d>>12]+_.__internal_hl_do_not_use__[(l^d>>4)&255]};
|
package/dist/fnv1a52/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function t(
|
|
1
|
+
import{__internal_hl_do_not_use__ as n}from"../fnv1a/index.mjs";function t(n){const t=n.length;let e=0,o=0,r=8997,f=0,c=33826,a=0,h=40164,x=0,d=52210;for(;e<t;)r^=n.charCodeAt(e++),o=435*r,f=435*c,a=435*h,x=435*d,a+=r<<8,x+=c<<8,f+=o>>>16,r=65535&o,a+=f>>>16,c=65535&f,d=x+(a>>>16)&65535,h=65535&a;return(15&d)*0x1000000000000+0x100000000*h+65536*c+(r^d>>4)}const e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function o(t){const o=t.length;let r=0,f=0,c=8997,a=0,h=33826,x=0,d=40164,i=0,l=52210;for(;r<o;)c^=t.charCodeAt(r++),f=435*c,a=435*h,x=435*d,i=435*l,x+=c<<8,i+=h<<8,a+=f>>>16,c=65535&f,x+=a>>>16,h=65535&a,l=i+(x>>>16)&65535,d=65535&x;return e[15&l]+n[d>>8]+n[255&d]+n[h>>8]+n[255&h]+n[c>>8^l>>12]+n[(c^l>>4)&255]}export{t as fnv1a52,o as fnv1a52hex};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type HeadersInitLike = string
|
|
1
|
+
type HeadersInitLike = Array<[string, string]> | Record<string, string> | Headers | null | undefined;
|
|
2
2
|
type IncomingHttpHeadersLike = Record<string, string | string[] | undefined> | undefined | null;
|
|
3
3
|
type OutgoingHttpHeadersLike = Record<string, number | string | string[] | undefined> | undefined | null;
|
|
4
4
|
declare function mergeHeaders(dest: HeadersInitLike, source: HeadersInitLike,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.mergeHeaders=function(
|
|
1
|
+
"use strict";const e=Headers;exports.mergeHeaders=function(n,t,r=null){if(null==n)return null==t?new e:new e(t);if(null==t)return new e(n);const u=new e(n),l=new e(t);if(null==r)return l.forEach((e,n)=>{u.set(n,e)}),u;if("function"!=typeof r){const e=new Set(r);r=n=>e.has(n)}return l.forEach((e,n)=>{r(n)&&u.set(n,e)}),u},exports.mergeNodeHttpHeaders=function(e,n){return null==e?null==n?{}:n:null==n?e:Object.assign({},e,n)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(
|
|
1
|
+
const n=Headers;function e(t,r,l=null){if(null==t)return null==r?new n:new n(r);if(null==r)return new n(t);const u=new n(t),o=new n(r);if(null==l)return o.forEach((n,e)=>{u.set(e,n)}),u;if("function"!=typeof l){const n=new Set(l);l=e=>n.has(e)}return o.forEach((n,e)=>{l(e)&&u.set(e,n)}),u}function t(n,e){return null==n?null==e?{}:e:null==e?n:Object.assign({},n,e)}export{e as mergeHeaders,t as mergeNodeHttpHeaders};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var n=require("../fnv1a52/index.js");require("../fnv1a/index.js"),exports.simpleStringHash=function(r){return n.fnv1a52(r).toString(36)+r.length.toString(36)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fnv1a52 as
|
|
1
|
+
import{fnv1a52 as n}from"../fnv1a52/index.mjs";import"../fnv1a/index.mjs";function t(t){return n(t).toString(36)+t.length.toString(36)}export{t as simpleStringHash};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var e=require("../guard/index.js");const r=Uint8Array,t=ArrayBuffer,n=TextDecoder,o=new TextEncoder,u={utf8:new n("utf8")};exports.base64ToUint8Array=function(e){return r.from(atob(function(e){const r=e.replaceAll("-","+").replaceAll("_","/"),t=(4-r.length%4)%4;return r+"=".repeat(t)}(e)),e=>e.charCodeAt(0))},exports.concatUint8Arrays=function(e,t){if(0===e.length)return new r(0);const n=new r(t??=e.reduce((e,r)=>e+r.length,0));let o=0;for(let r=0,t=e.length;r<t;r++){const t=e[r];n.set(t,o),o+=t.length}return n},exports.stringToUint8Array=function(e){return o.encode(e)},exports.toUint8Array=function(n){return n instanceof t?new r(n):t.isView(n)?new r(n.buffer,n.byteOffset,n.byteLength):void e.never(n,"value must be ArrayBuffer or ArrayBufferView")},exports.uint8ArrayToBase64=function(e,r=!1){let t="";for(let r=0;r<e.length;r+=65535){const n=e.subarray(r,r+65535);t+=btoa(String.fromCharCode.apply(void 0,n))}return r?t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,""):t},exports.uint8ArrayToString=function(e,r="utf8"){return u[r]??=new n(r),u[r].decode(e)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{never as
|
|
1
|
+
import{never as e}from"../guard/index.mjs";const r=Uint8Array,t=ArrayBuffer,n=TextDecoder,o=new TextEncoder;function a(e){return o.encode(e)}const u={utf8:new n("utf8")};function c(e,r="utf8"){return u[r]??=new n(r),u[r].decode(e)}function f(e){return r.from(atob(function(e){const r=e.replaceAll("-","+").replaceAll("_","/"),t=(4-r.length%4)%4;return r+"=".repeat(t)}(e)),e=>e.charCodeAt(0))}function i(e,r=!1){let t="";for(let r=0;r<e.length;r+=65535){const n=e.subarray(r,r+65535);t+=btoa(String.fromCharCode.apply(void 0,n))}return r?t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,""):t}function l(e,t){if(0===e.length)return new r(0);const n=new r(t??=e.reduce((e,r)=>e+r.length,0));let o=0;for(let r=0,t=e.length;r<t;r++){const t=e[r];n.set(t,o),o+=t.length}return n}function s(n){return n instanceof t?new r(n):t.isView(n)?new r(n.buffer,n.byteOffset,n.byteLength):void e(n,"value must be ArrayBuffer or ArrayBufferView")}export{f as base64ToUint8Array,l as concatUint8Arrays,a as stringToUint8Array,s as toUint8Array,i as uint8ArrayToBase64,c as uint8ArrayToString};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foxts",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "Opinionated collection of common TypeScript utils by @SukkaW",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/SukkaW/foxts"
|
|
@@ -64,6 +64,12 @@
|
|
|
64
64
|
"require": "./dist/bitwise/index.js",
|
|
65
65
|
"default": "./dist/bitwise/index.js"
|
|
66
66
|
},
|
|
67
|
+
"./cast-array": {
|
|
68
|
+
"types": "./dist/cast-array/index.d.ts",
|
|
69
|
+
"import": "./dist/cast-array/index.mjs",
|
|
70
|
+
"require": "./dist/cast-array/index.js",
|
|
71
|
+
"default": "./dist/cast-array/index.js"
|
|
72
|
+
},
|
|
67
73
|
"./chunk": {
|
|
68
74
|
"types": "./dist/chunk/index.d.ts",
|
|
69
75
|
"import": "./dist/chunk/index.mjs",
|
|
@@ -312,8 +318,8 @@
|
|
|
312
318
|
"fast-escape-regexp": "^1.0.1"
|
|
313
319
|
},
|
|
314
320
|
"devDependencies": {
|
|
315
|
-
"@eslint-sukka/node": "^7.
|
|
316
|
-
"@happy-dom/global-registrator": "^
|
|
321
|
+
"@eslint-sukka/node": "^7.3.3",
|
|
322
|
+
"@happy-dom/global-registrator": "^20.0.0",
|
|
317
323
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
318
324
|
"@mitata/counters": "^0.0.8",
|
|
319
325
|
"@monyone/aho-corasick": "^1.0.4",
|
|
@@ -321,16 +327,16 @@
|
|
|
321
327
|
"@swc-node/register": "^1.11.1",
|
|
322
328
|
"@swc/core": "^1.13.20",
|
|
323
329
|
"@types/mocha": "^10.0.10",
|
|
324
|
-
"@types/node": "^22.18.
|
|
330
|
+
"@types/node": "^22.18.9",
|
|
325
331
|
"@types/sinon": "^17.0.4",
|
|
326
|
-
"bumpp": "^10.
|
|
332
|
+
"bumpp": "^10.3.1",
|
|
327
333
|
"devalue": "^5.3.2",
|
|
328
334
|
"eslint": "^9.37.0",
|
|
329
|
-
"eslint-config-sukka": "^7.
|
|
330
|
-
"eslint-formatter-sukka": "^7.
|
|
335
|
+
"eslint-config-sukka": "^7.3.3",
|
|
336
|
+
"eslint-formatter-sukka": "^7.3.3",
|
|
331
337
|
"expect": "^30.2.0",
|
|
332
338
|
"fastscan": "^1.0.6",
|
|
333
|
-
"happy-dom": "^
|
|
339
|
+
"happy-dom": "^20.0.0",
|
|
334
340
|
"is-ci": "^4.1.0",
|
|
335
341
|
"is-network-error": "^1.3.0",
|
|
336
342
|
"mitata": "^1.0.34",
|
|
@@ -339,7 +345,7 @@
|
|
|
339
345
|
"nyc": "^17.1.0",
|
|
340
346
|
"rollup": "^4.52.4",
|
|
341
347
|
"rollup-plugin-dts": "^6.2.3",
|
|
342
|
-
"rollup-plugin-oxc-resolve": "^0.0.
|
|
348
|
+
"rollup-plugin-oxc-resolve": "^0.0.5",
|
|
343
349
|
"rollup-plugin-swc3": "^0.12.1",
|
|
344
350
|
"sinon": "^21.0.0",
|
|
345
351
|
"typescript": "^5.9.3",
|