@storm-stack/unique-identifier
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -59,2 +59,12 @@ declare const Crypto_2: Crypto | undefined; | ||
/** | ||
* Create a hash from a string. | ||
* | ||
* @param input - String to hash | ||
* @returns The hashed string | ||
*/ | ||
declare function hash(input?: string): string; | ||
export { hash } | ||
export { hash as hash_alias_1 } | ||
/** | ||
* Options passed to the `generate` function to create a snowflake identifier. | ||
@@ -61,0 +71,0 @@ */ |
@@ -59,2 +59,12 @@ declare const Crypto_2: Crypto | undefined; | ||
/** | ||
* Create a hash from a string. | ||
* | ||
* @param input - String to hash | ||
* @returns The hashed string | ||
*/ | ||
declare function hash(input?: string): string; | ||
export { hash } | ||
export { hash as hash_alias_1 } | ||
/** | ||
* Options passed to the `generate` function to create a snowflake identifier. | ||
@@ -61,0 +71,0 @@ */ |
@@ -59,2 +59,12 @@ declare const Crypto_2: Crypto | undefined; | ||
/** | ||
* Create a hash from a string. | ||
* | ||
* @param input - String to hash | ||
* @returns The hashed string | ||
*/ | ||
declare function hash(input?: string): string; | ||
export { hash } | ||
export { hash as hash_alias_1 } | ||
/** | ||
* Options passed to the `generate` function to create a snowflake identifier. | ||
@@ -61,0 +71,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
var t=Object.defineProperty,__name=(e,n)=>t(e,"name",{value:n,configurable:!0});function number(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function bytes(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function exists(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function output(t,e){bytes(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}__name(number,"number"),__name(bytes,"bytes"),__name(exists,"exists"),__name(output,"output");var e=BigInt(2**32-1),n=BigInt(32);function fromBig(t,r=!1){return r?{h:Number(t&e),l:Number(t>>n&e)}:{h:0|Number(t>>n&e),l:0|Number(t&e)}}function split(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let o=0;o<t.length;o++){const{h:i,l:s}=fromBig(t[o],e);[n[o],r[o]]=[i,s]}return[n,r]}__name(fromBig,"fromBig"),__name(split,"split");var r=__name(((t,e,n)=>t<<n|e>>>32-n),"rotlSH"),o=__name(((t,e,n)=>e<<n|t>>>32-n),"rotlSL"),i=__name(((t,e,n)=>e<<n-32|t>>>64-n),"rotlBH"),s=__name(((t,e,n)=>t<<n-32|e>>>64-n),"rotlBL"),a=__name((t=>t instanceof Uint8Array),"u8a"),u=__name((t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))),"u32");if(!(68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]))throw new Error("Non little-endian hardware is not supported");function utf8ToBytes(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}function toBytes(t){if("string"==typeof t&&(t=utf8ToBytes(t)),!a(t))throw new Error("expected Uint8Array, got "+typeof t);return t}__name(utf8ToBytes,"utf8ToBytes"),__name(toBytes,"toBytes");var c=class{static{__name(this,"Hash")}clone(){return this._cloneInto()}};function wrapConstructor(t){const e=__name((e=>t().update(toBytes(e)).digest()),"hashC"),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function wrapXOFConstructorWithOpts(t){const e=__name(((e,n)=>t(n).update(toBytes(e)).digest()),"hashC"),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}__name(wrapConstructor,"wrapConstructor"),__name(wrapXOFConstructorWithOpts,"wrapXOFConstructorWithOpts");var[h,f,l]=[[],[],[]],g=BigInt(0),p=BigInt(1),d=BigInt(2),y=BigInt(7),b=BigInt(256),w=BigInt(113);for(let t=0,e=p,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],h.push(2*(5*r+n)),f.push((t+1)*(t+2)/2%64);let o=g;for(let t=0;t<7;t++)e=(e<<p^(e>>y)*w)%b,e&d&&(o^=p<<(p<<BigInt(t))-p);l.push(o)}var[k,B]=split(l,!0),O=__name(((t,e,n)=>n>32?i(t,e,n):r(t,e,n)),"rotlH"),I=__name(((t,e,n)=>n>32?s(t,e,n):o(t,e,n)),"rotlL");function keccakP(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let e=0;e<10;e++)n[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const r=(e+8)%10,o=(e+2)%10,i=n[o],s=n[o+1],a=O(i,s,1)^n[r],u=I(i,s,1)^n[r+1];for(let n=0;n<50;n+=10)t[e+n]^=a,t[e+n+1]^=u}let e=t[2],o=t[3];for(let n=0;n<24;n++){const r=f[n],i=O(e,o,r),s=I(e,o,r),a=h[n];e=t[a],o=t[a+1],t[a]=i,t[a+1]=s}for(let e=0;e<50;e+=10){for(let r=0;r<10;r++)n[r]=t[e+r];for(let r=0;r<10;r++)t[e+r]^=~n[(r+2)%10]&n[(r+4)%10]}t[0]^=k[r],t[1]^=B[r]}n.fill(0)}__name(keccakP,"keccakP");var m=class _Keccak extends c{static{__name(this,"Keccak")}constructor(t,e,n,r=!1,o=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=n,this.enableXOF=r,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,number(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=u(this.state)}keccak(){keccakP(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){exists(this);const{blockLen:e,state:n}=this,r=(t=toBytes(t)).length;for(let o=0;o<r;){const i=Math.min(e-this.pos,r-o);for(let e=0;e<i;e++)n[this.pos++]^=t[o++];this.pos===e&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:e,pos:n,blockLen:r}=this;t[n]^=e,0!=(128&e)&&n===r-1&&this.keccak(),t[r-1]^=128,this.keccak()}writeInto(t){exists(this,!1),bytes(t),this.finish();const e=this.state,{blockLen:n}=this;for(let r=0,o=t.length;r<o;){this.posOut>=n&&this.keccak();const i=Math.min(n-this.posOut,o-r);t.set(e.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(output(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:e,suffix:n,outputLen:r,rounds:o,enableXOF:i}=this;return t||(t=new _Keccak(e,n,r,i,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=n,t.outputLen=r,t.enableXOF=i,t.destroyed=this.destroyed,t}},S=__name(((t,e,n)=>wrapConstructor((()=>new m(e,t,n)))),"gen"),x=S(6,72,64),L=Array.from({length:26},((t,e)=>String.fromCharCode(e+97))),E=__name(((t,e=0)=>Math.floor(Math.random()*(t-e+1)+e)),"randomInteger"),T=__name(((t=Math.random)=>L[Math.floor(t()*L.length)]),"randomLetter"),j=36;function bufToBigInt(t){let e=8n,n=0n;for(const r of t.values()){n=(n<<e)+BigInt(r)}return n}__name(bufToBigInt,"bufToBigInt");var v=Math.floor(476782367*Math.random())+1;function hash(t=""){return bufToBigInt(x(t)).toString(j).slice(1)}function createEntropy(t=4,e=Math.random){let n="";for(;n.length<t;)n+=Math.floor(e()*j).toString(j);return n}function fingerprint(t={globalObj:"undefined"!=typeof global?global:"undefined"!=typeof window?window:{}}){const e=Object.keys(t.globalObj).toString();return hash(e.length?e+createEntropy(j,Math.random):createEntropy(j,Math.random)).substring(0,j)}function cuid(){const t=Date.now().toString(j),e=v.toString(j),n=createEntropy(length,Math.random);return`${T()+hash(`${t+n+e+fingerprint()}`).substring(1,length)}`}__name(hash,"hash"),__name(createEntropy,"createEntropy"),__name(fingerprint,"fingerprint"),__name(cuid,"cuid");var U=Date.UTC(1970,0,1).valueOf(),A=1;function ToBinaryString(t){const e=BigInt(t).toString(2);return e.length<64?"0000000000000000000000000000000000000000000000000000000000000000".substring(0,64-e.length)+e:e}function extractBits(t,e,n){return parseInt(n?ToBinaryString(t).substring(e,e+n):ToBinaryString(t).substring(e),2)}function snowflake({shardId:t=1,epoch:e=U,timestamp:n=Date.now()}={shardId:1,epoch:U,timestamp:Date.now()}){n=n instanceof Date?n.valueOf():new Date(n).valueOf();let r=BigInt(n)-BigInt(e)<<BigInt(22);return r|=BigInt(t%1024)<<BigInt(12),r|=BigInt(A++%4096),r.toString()}function deconstructSnowflake(t){const e=ToBinaryString(t);return{snowflake:t,timestamp:extractBits(t,1,41),shard_id:extractBits(t,42,10),sequence:extractBits(t,52),binary:e}}function isValidSnowflake(t){if(!/^[\d]{19}$/.test(t))return!1;try{return deconstructSnowflake(t),!0}catch(t){return!1}}__name(ToBinaryString,"ToBinaryString"),__name(extractBits,"extractBits"),__name(snowflake,"snowflake"),__name(deconstructSnowflake,"deconstructSnowflake"),__name(isValidSnowflake,"isValidSnowflake");var M=__name((t=>null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)),"getObjectTag"),C=__name((t=>"object"==typeof t&&null!==t),"isObjectLike"),P=__name((t=>{if(!C(t)||"[object Object]"!=M(t))return!1;if(null===Object.getPrototypeOf(t))return!0;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}),"isPlainObject"),F=__name((t=>{try{return!!t&&t.constructor===Object||P(t)}catch(t){return!1}}),"isObject"),X=globalThis.crypto&&F(typeof globalThis.crypto)?globalThis.crypto:void 0;function uuid(){if(!X)throw new Error("Crypto is not available to generate uuid");return X.randomUUID()}__name(uuid,"uuid");export{cuid,deconstructSnowflake,isValidSnowflake,E as randomInteger,T as randomLetter,snowflake,uuid}; | ||
var t=Object.defineProperty,__name=(e,n)=>t(e,"name",{value:n,configurable:!0});function number(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function bytes(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function exists(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function output(t,e){bytes(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}__name(number,"number"),__name(bytes,"bytes"),__name(exists,"exists"),__name(output,"output");var e=BigInt(2**32-1),n=BigInt(32);function fromBig(t,r=!1){return r?{h:Number(t&e),l:Number(t>>n&e)}:{h:0|Number(t>>n&e),l:0|Number(t&e)}}function split(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let o=0;o<t.length;o++){const{h:i,l:s}=fromBig(t[o],e);[n[o],r[o]]=[i,s]}return[n,r]}__name(fromBig,"fromBig"),__name(split,"split");var r=__name(((t,e,n)=>t<<n|e>>>32-n),"rotlSH"),o=__name(((t,e,n)=>e<<n|t>>>32-n),"rotlSL"),i=__name(((t,e,n)=>e<<n-32|t>>>64-n),"rotlBH"),s=__name(((t,e,n)=>t<<n-32|e>>>64-n),"rotlBL"),a=__name((t=>t instanceof Uint8Array),"u8a"),u=__name((t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))),"u32");if(!(68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]))throw new Error("Non little-endian hardware is not supported");function utf8ToBytes(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}function toBytes(t){if("string"==typeof t&&(t=utf8ToBytes(t)),!a(t))throw new Error("expected Uint8Array, got "+typeof t);return t}__name(utf8ToBytes,"utf8ToBytes"),__name(toBytes,"toBytes");var c=class{static{__name(this,"Hash")}clone(){return this._cloneInto()}};function wrapConstructor(t){const e=__name((e=>t().update(toBytes(e)).digest()),"hashC"),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function wrapXOFConstructorWithOpts(t){const e=__name(((e,n)=>t(n).update(toBytes(e)).digest()),"hashC"),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}__name(wrapConstructor,"wrapConstructor"),__name(wrapXOFConstructorWithOpts,"wrapXOFConstructorWithOpts");var[h,f,l]=[[],[],[]],g=BigInt(0),p=BigInt(1),d=BigInt(2),y=BigInt(7),b=BigInt(256),w=BigInt(113);for(let t=0,e=p,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],h.push(2*(5*r+n)),f.push((t+1)*(t+2)/2%64);let o=g;for(let t=0;t<7;t++)e=(e<<p^(e>>y)*w)%b,e&d&&(o^=p<<(p<<BigInt(t))-p);l.push(o)}var[k,B]=split(l,!0),O=__name(((t,e,n)=>n>32?i(t,e,n):r(t,e,n)),"rotlH"),I=__name(((t,e,n)=>n>32?s(t,e,n):o(t,e,n)),"rotlL");function keccakP(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let e=0;e<10;e++)n[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const r=(e+8)%10,o=(e+2)%10,i=n[o],s=n[o+1],a=O(i,s,1)^n[r],u=I(i,s,1)^n[r+1];for(let n=0;n<50;n+=10)t[e+n]^=a,t[e+n+1]^=u}let e=t[2],o=t[3];for(let n=0;n<24;n++){const r=f[n],i=O(e,o,r),s=I(e,o,r),a=h[n];e=t[a],o=t[a+1],t[a]=i,t[a+1]=s}for(let e=0;e<50;e+=10){for(let r=0;r<10;r++)n[r]=t[e+r];for(let r=0;r<10;r++)t[e+r]^=~n[(r+2)%10]&n[(r+4)%10]}t[0]^=k[r],t[1]^=B[r]}n.fill(0)}__name(keccakP,"keccakP");var m=class _Keccak extends c{static{__name(this,"Keccak")}constructor(t,e,n,r=!1,o=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=n,this.enableXOF=r,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,number(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=u(this.state)}keccak(){keccakP(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){exists(this);const{blockLen:e,state:n}=this,r=(t=toBytes(t)).length;for(let o=0;o<r;){const i=Math.min(e-this.pos,r-o);for(let e=0;e<i;e++)n[this.pos++]^=t[o++];this.pos===e&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:e,pos:n,blockLen:r}=this;t[n]^=e,0!=(128&e)&&n===r-1&&this.keccak(),t[r-1]^=128,this.keccak()}writeInto(t){exists(this,!1),bytes(t),this.finish();const e=this.state,{blockLen:n}=this;for(let r=0,o=t.length;r<o;){this.posOut>=n&&this.keccak();const i=Math.min(n-this.posOut,o-r);t.set(e.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(output(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:e,suffix:n,outputLen:r,rounds:o,enableXOF:i}=this;return t||(t=new _Keccak(e,n,r,i,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=n,t.outputLen=r,t.enableXOF=i,t.destroyed=this.destroyed,t}},S=__name(((t,e,n)=>wrapConstructor((()=>new m(e,t,n)))),"gen"),x=S(6,72,64),L=Array.from({length:26},((t,e)=>String.fromCharCode(e+97))),E=__name(((t,e=0)=>Math.floor(Math.random()*(t-e+1)+e)),"randomInteger"),T=__name(((t=Math.random)=>L[Math.floor(t()*L.length)]),"randomLetter"),j=36;function bufToBigInt(t){let e=8n,n=0n;for(const r of t.values()){n=(n<<e)+BigInt(r)}return n}__name(bufToBigInt,"bufToBigInt");var v=Math.floor(476782367*Math.random())+1;function hash(t=""){return bufToBigInt(x(t)).toString(j).slice(1)}function createEntropy(t=4,e=Math.random){let n="";for(;n.length<t;)n+=Math.floor(e()*j).toString(j);return n}function fingerprint(t={globalObj:"undefined"!=typeof global?global:"undefined"!=typeof window?window:{}}){const e=Object.keys(t.globalObj).toString();return hash(e.length?e+createEntropy(j,Math.random):createEntropy(j,Math.random)).substring(0,j)}function cuid(){const t=Date.now().toString(j),e=v.toString(j),n=createEntropy(length,Math.random);return`${T()+hash(`${t+n+e+fingerprint()}`).substring(1,length)}`}__name(hash,"hash"),__name(createEntropy,"createEntropy"),__name(fingerprint,"fingerprint"),__name(cuid,"cuid");var U=Date.UTC(1970,0,1).valueOf(),A=1;function ToBinaryString(t){const e=BigInt(t).toString(2);return e.length<64?"0000000000000000000000000000000000000000000000000000000000000000".substring(0,64-e.length)+e:e}function extractBits(t,e,n){return parseInt(n?ToBinaryString(t).substring(e,e+n):ToBinaryString(t).substring(e),2)}function snowflake({shardId:t=1,epoch:e=U,timestamp:n=Date.now()}={shardId:1,epoch:U,timestamp:Date.now()}){n=n instanceof Date?n.valueOf():new Date(n).valueOf();let r=BigInt(n)-BigInt(e)<<BigInt(22);return r|=BigInt(t%1024)<<BigInt(12),r|=BigInt(A++%4096),r.toString()}function deconstructSnowflake(t){const e=ToBinaryString(t);return{snowflake:t,timestamp:extractBits(t,1,41),shard_id:extractBits(t,42,10),sequence:extractBits(t,52),binary:e}}function isValidSnowflake(t){if(!/^[\d]{19}$/.test(t))return!1;try{return deconstructSnowflake(t),!0}catch(t){return!1}}__name(ToBinaryString,"ToBinaryString"),__name(extractBits,"extractBits"),__name(snowflake,"snowflake"),__name(deconstructSnowflake,"deconstructSnowflake"),__name(isValidSnowflake,"isValidSnowflake");var M=__name((t=>null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)),"getObjectTag"),C=__name((t=>"object"==typeof t&&null!==t),"isObjectLike"),P=__name((t=>{if(!C(t)||"[object Object]"!=M(t))return!1;if(null===Object.getPrototypeOf(t))return!0;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}),"isPlainObject"),F=__name((t=>{try{return!!t&&t.constructor===Object||P(t)}catch(t){return!1}}),"isObject"),X=globalThis.crypto&&F(typeof globalThis.crypto)?globalThis.crypto:void 0;function uuid(){if(!X)throw new Error("Crypto is not available to generate uuid");return X.randomUUID()}__name(uuid,"uuid");export{cuid,deconstructSnowflake,hash,isValidSnowflake,E as randomInteger,T as randomLetter,snowflake,uuid}; | ||
/*! Bundled license information: | ||
@@ -3,0 +3,0 @@ |
@@ -1,1 +0,1 @@ | ||
{"inputs":{"<define:__STORM_CONFIG>":{"bytes":0,"imports":[]},"node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js":{"bytes":1816,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytes":5142,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytes":11808,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js":{"bytes":661,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytes":20474,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js","kind":"import-statement","original":"@noble/hashes/crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytes":28790,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js","kind":"import-statement","original":"./_assert.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js","kind":"import-statement","original":"./_u64.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js","kind":"import-statement","original":"./utils.js"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/random.ts":{"bytes":2251,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/cuid.ts":{"bytes":10277,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js","kind":"import-statement","original":"@noble/hashes/sha3"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/snowflake.ts":{"bytes":11777,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytes":1262,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytes":4464,"imports":[{"path":"packages/utilities/src/type-checks/get-object-tag.ts","kind":"import-statement","original":"./get-object-tag"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-object.ts":{"bytes":1492,"imports":[{"path":"packages/utilities/src/type-checks/is-plain-object.ts","kind":"import-statement","original":"./is-plain-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/crypto.ts":{"bytes":983,"imports":[{"path":"packages/utilities/src/type-checks/is-object.ts","kind":"import-statement","original":"@storm-stack/utilities/type-checks/is-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/uuid.ts":{"bytes":1806,"imports":[{"path":"packages/unique-identifier/src/crypto.ts","kind":"import-statement","original":"./crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/index.ts":{"bytes":501,"imports":[{"path":"packages/unique-identifier/src/cuid.ts","kind":"import-statement","original":"./cuid"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"packages/unique-identifier/src/snowflake.ts","kind":"import-statement","original":"./snowflake"},{"path":"packages/unique-identifier/src/uuid.ts","kind":"import-statement","original":"./uuid"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/packages/unique-identifier/dist/legacy/index.cjs":{"imports":[],"exports":[],"entryPoint":"packages/unique-identifier/src/index.ts","inputs":{"packages/unique-identifier/src/index.ts":{"bytesInOutput":333},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytesInOutput":917},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytesInOutput":1000},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytesInOutput":1681},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytesInOutput":6023},"packages/unique-identifier/src/random.ts":{"bytesInOutput":369},"packages/unique-identifier/src/cuid.ts":{"bytesInOutput":1513},"packages/unique-identifier/src/snowflake.ts":{"bytesInOutput":1797},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytesInOutput":220},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytesInOutput":518},"packages/utilities/src/type-checks/is-object.ts":{"bytesInOutput":189},"packages/unique-identifier/src/crypto.ts":{"bytesInOutput":126},"packages/unique-identifier/src/uuid.ts":{"bytesInOutput":158}},"bytes":17420}}} | ||
{"inputs":{"<define:__STORM_CONFIG>":{"bytes":0,"imports":[]},"node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js":{"bytes":1816,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytes":5142,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytes":11808,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js":{"bytes":661,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytes":20474,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js","kind":"import-statement","original":"@noble/hashes/crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytes":28790,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js","kind":"import-statement","original":"./_assert.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js","kind":"import-statement","original":"./_u64.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js","kind":"import-statement","original":"./utils.js"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/random.ts":{"bytes":2251,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/cuid.ts":{"bytes":10304,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js","kind":"import-statement","original":"@noble/hashes/sha3"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/snowflake.ts":{"bytes":11777,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytes":1262,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytes":4464,"imports":[{"path":"packages/utilities/src/type-checks/get-object-tag.ts","kind":"import-statement","original":"./get-object-tag"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-object.ts":{"bytes":1492,"imports":[{"path":"packages/utilities/src/type-checks/is-plain-object.ts","kind":"import-statement","original":"./is-plain-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/crypto.ts":{"bytes":983,"imports":[{"path":"packages/utilities/src/type-checks/is-object.ts","kind":"import-statement","original":"@storm-stack/utilities/type-checks/is-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/uuid.ts":{"bytes":1806,"imports":[{"path":"packages/unique-identifier/src/crypto.ts","kind":"import-statement","original":"./crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/index.ts":{"bytes":501,"imports":[{"path":"packages/unique-identifier/src/cuid.ts","kind":"import-statement","original":"./cuid"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"packages/unique-identifier/src/snowflake.ts","kind":"import-statement","original":"./snowflake"},{"path":"packages/unique-identifier/src/uuid.ts","kind":"import-statement","original":"./uuid"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/packages/unique-identifier/dist/legacy/index.cjs":{"imports":[],"exports":[],"entryPoint":"packages/unique-identifier/src/index.ts","inputs":{"packages/unique-identifier/src/index.ts":{"bytesInOutput":353},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytesInOutput":917},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytesInOutput":1000},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytesInOutput":1681},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytesInOutput":6023},"packages/unique-identifier/src/random.ts":{"bytesInOutput":369},"packages/unique-identifier/src/cuid.ts":{"bytesInOutput":1513},"packages/unique-identifier/src/snowflake.ts":{"bytesInOutput":1797},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytesInOutput":220},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytesInOutput":518},"packages/utilities/src/type-checks/is-object.ts":{"bytesInOutput":189},"packages/unique-identifier/src/crypto.ts":{"bytesInOutput":126},"packages/unique-identifier/src/uuid.ts":{"bytesInOutput":158}},"bytes":17440}}} |
@@ -1,1 +0,1 @@ | ||
{"inputs":{"<define:__STORM_CONFIG>":{"bytes":0,"imports":[]},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytes":5142,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytes":11808,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js":{"bytes":661,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytes":20474,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js","kind":"import-statement","original":"@noble/hashes/crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytes":28790,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js","kind":"import-statement","original":"./_assert.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js","kind":"import-statement","original":"./_u64.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js","kind":"import-statement","original":"./utils.js"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/random.ts":{"bytes":2251,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/cuid.ts":{"bytes":10277,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js","kind":"import-statement","original":"@noble/hashes/sha3"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/snowflake.ts":{"bytes":11777,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytes":1262,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytes":4464,"imports":[{"path":"packages/utilities/src/type-checks/get-object-tag.ts","kind":"import-statement","original":"./get-object-tag"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-object.ts":{"bytes":1492,"imports":[{"path":"packages/utilities/src/type-checks/is-plain-object.ts","kind":"import-statement","original":"./is-plain-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/crypto.ts":{"bytes":983,"imports":[{"path":"packages/utilities/src/type-checks/is-object.ts","kind":"import-statement","original":"@storm-stack/utilities/type-checks/is-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/uuid.ts":{"bytes":1806,"imports":[{"path":"packages/unique-identifier/src/crypto.ts","kind":"import-statement","original":"./crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/index.ts":{"bytes":501,"imports":[{"path":"packages/unique-identifier/src/cuid.ts","kind":"import-statement","original":"./cuid"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"packages/unique-identifier/src/snowflake.ts","kind":"import-statement","original":"./snowflake"},{"path":"packages/unique-identifier/src/uuid.ts","kind":"import-statement","original":"./uuid"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/packages/unique-identifier/dist/legacy/index.js":{"imports":[],"exports":["cuid","deconstructSnowflake","isValidSnowflake","randomInteger","randomLetter","snowflake","uuid"],"entryPoint":"packages/unique-identifier/src/index.ts","inputs":{"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytesInOutput":917},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytesInOutput":1000},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytesInOutput":1681},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytesInOutput":6023},"packages/unique-identifier/src/random.ts":{"bytesInOutput":369},"packages/unique-identifier/src/cuid.ts":{"bytesInOutput":1513},"packages/unique-identifier/src/index.ts":{"bytesInOutput":0},"packages/unique-identifier/src/snowflake.ts":{"bytesInOutput":1797},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytesInOutput":220},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytesInOutput":518},"packages/utilities/src/type-checks/is-object.ts":{"bytesInOutput":189},"packages/unique-identifier/src/crypto.ts":{"bytesInOutput":126},"packages/unique-identifier/src/uuid.ts":{"bytesInOutput":158}},"bytes":16400}}} | ||
{"inputs":{"<define:__STORM_CONFIG>":{"bytes":0,"imports":[]},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytes":5142,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytes":11808,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js":{"bytes":661,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytes":20474,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js","kind":"import-statement","original":"@noble/hashes/crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytes":28790,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js","kind":"import-statement","original":"./_assert.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js","kind":"import-statement","original":"./_u64.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js","kind":"import-statement","original":"./utils.js"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/random.ts":{"bytes":2251,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/cuid.ts":{"bytes":10304,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js","kind":"import-statement","original":"@noble/hashes/sha3"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/snowflake.ts":{"bytes":11777,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytes":1262,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytes":4464,"imports":[{"path":"packages/utilities/src/type-checks/get-object-tag.ts","kind":"import-statement","original":"./get-object-tag"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-object.ts":{"bytes":1492,"imports":[{"path":"packages/utilities/src/type-checks/is-plain-object.ts","kind":"import-statement","original":"./is-plain-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/crypto.ts":{"bytes":983,"imports":[{"path":"packages/utilities/src/type-checks/is-object.ts","kind":"import-statement","original":"@storm-stack/utilities/type-checks/is-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/uuid.ts":{"bytes":1806,"imports":[{"path":"packages/unique-identifier/src/crypto.ts","kind":"import-statement","original":"./crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/index.ts":{"bytes":501,"imports":[{"path":"packages/unique-identifier/src/cuid.ts","kind":"import-statement","original":"./cuid"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"packages/unique-identifier/src/snowflake.ts","kind":"import-statement","original":"./snowflake"},{"path":"packages/unique-identifier/src/uuid.ts","kind":"import-statement","original":"./uuid"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/packages/unique-identifier/dist/legacy/index.js":{"imports":[],"exports":["cuid","deconstructSnowflake","hash","isValidSnowflake","randomInteger","randomLetter","snowflake","uuid"],"entryPoint":"packages/unique-identifier/src/index.ts","inputs":{"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytesInOutput":917},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytesInOutput":1000},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytesInOutput":1681},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytesInOutput":6023},"packages/unique-identifier/src/random.ts":{"bytesInOutput":369},"packages/unique-identifier/src/cuid.ts":{"bytesInOutput":1513},"packages/unique-identifier/src/index.ts":{"bytesInOutput":0},"packages/unique-identifier/src/snowflake.ts":{"bytesInOutput":1797},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytesInOutput":220},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytesInOutput":518},"packages/utilities/src/type-checks/is-object.ts":{"bytesInOutput":189},"packages/unique-identifier/src/crypto.ts":{"bytesInOutput":126},"packages/unique-identifier/src/uuid.ts":{"bytesInOutput":158}},"bytes":16408}}} |
@@ -1,1 +0,1 @@ | ||
{"inputs":{"<define:__STORM_CONFIG>":{"bytes":0,"imports":[]},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytes":5142,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytes":11808,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js":{"bytes":661,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytes":20474,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js","kind":"import-statement","original":"@noble/hashes/crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytes":28790,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js","kind":"import-statement","original":"./_assert.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js","kind":"import-statement","original":"./_u64.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js","kind":"import-statement","original":"./utils.js"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/random.ts":{"bytes":2251,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/cuid.ts":{"bytes":10277,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js","kind":"import-statement","original":"@noble/hashes/sha3"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/snowflake.ts":{"bytes":11777,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytes":1262,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytes":4464,"imports":[{"path":"packages/utilities/src/type-checks/get-object-tag.ts","kind":"import-statement","original":"./get-object-tag"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-object.ts":{"bytes":1492,"imports":[{"path":"packages/utilities/src/type-checks/is-plain-object.ts","kind":"import-statement","original":"./is-plain-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/crypto.ts":{"bytes":983,"imports":[{"path":"packages/utilities/src/type-checks/is-object.ts","kind":"import-statement","original":"@storm-stack/utilities/type-checks/is-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/uuid.ts":{"bytes":1806,"imports":[{"path":"packages/unique-identifier/src/crypto.ts","kind":"import-statement","original":"./crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/index.ts":{"bytes":501,"imports":[{"path":"packages/unique-identifier/src/cuid.ts","kind":"import-statement","original":"./cuid"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"packages/unique-identifier/src/snowflake.ts","kind":"import-statement","original":"./snowflake"},{"path":"packages/unique-identifier/src/uuid.ts","kind":"import-statement","original":"./uuid"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/packages/unique-identifier/dist/legacy/index.global.js":{"imports":[],"exports":[],"entryPoint":"packages/unique-identifier/src/index.ts","inputs":{"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytesInOutput":971},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytesInOutput":1068},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytesInOutput":1779},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytesInOutput":6401},"packages/unique-identifier/src/random.ts":{"bytesInOutput":379},"packages/unique-identifier/src/cuid.ts":{"bytesInOutput":1595},"packages/unique-identifier/src/index.ts":{"bytesInOutput":0},"packages/unique-identifier/src/snowflake.ts":{"bytesInOutput":1901},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytesInOutput":232},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytesInOutput":550},"packages/utilities/src/type-checks/is-object.ts":{"bytesInOutput":203},"packages/unique-identifier/src/crypto.ts":{"bytesInOutput":130},"packages/unique-identifier/src/uuid.ts":{"bytesInOutput":172}},"bytes":17210}}} | ||
{"inputs":{"<define:__STORM_CONFIG>":{"bytes":0,"imports":[]},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytes":5142,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytes":11808,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js":{"bytes":661,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytes":20474,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js","kind":"import-statement","original":"@noble/hashes/crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytes":28790,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js","kind":"import-statement","original":"./_assert.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js","kind":"import-statement","original":"./_u64.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js","kind":"import-statement","original":"./utils.js"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/random.ts":{"bytes":2251,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/cuid.ts":{"bytes":10304,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js","kind":"import-statement","original":"@noble/hashes/sha3"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/snowflake.ts":{"bytes":11777,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytes":1262,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytes":4464,"imports":[{"path":"packages/utilities/src/type-checks/get-object-tag.ts","kind":"import-statement","original":"./get-object-tag"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-object.ts":{"bytes":1492,"imports":[{"path":"packages/utilities/src/type-checks/is-plain-object.ts","kind":"import-statement","original":"./is-plain-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/crypto.ts":{"bytes":983,"imports":[{"path":"packages/utilities/src/type-checks/is-object.ts","kind":"import-statement","original":"@storm-stack/utilities/type-checks/is-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/uuid.ts":{"bytes":1806,"imports":[{"path":"packages/unique-identifier/src/crypto.ts","kind":"import-statement","original":"./crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/index.ts":{"bytes":501,"imports":[{"path":"packages/unique-identifier/src/cuid.ts","kind":"import-statement","original":"./cuid"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"packages/unique-identifier/src/snowflake.ts","kind":"import-statement","original":"./snowflake"},{"path":"packages/unique-identifier/src/uuid.ts","kind":"import-statement","original":"./uuid"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/packages/unique-identifier/dist/legacy/index.global.js":{"imports":[],"exports":[],"entryPoint":"packages/unique-identifier/src/index.ts","inputs":{"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytesInOutput":971},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytesInOutput":1068},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytesInOutput":1779},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytesInOutput":6401},"packages/unique-identifier/src/random.ts":{"bytesInOutput":379},"packages/unique-identifier/src/cuid.ts":{"bytesInOutput":1595},"packages/unique-identifier/src/index.ts":{"bytesInOutput":0},"packages/unique-identifier/src/snowflake.ts":{"bytesInOutput":1901},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytesInOutput":232},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytesInOutput":550},"packages/utilities/src/type-checks/is-object.ts":{"bytesInOutput":203},"packages/unique-identifier/src/crypto.ts":{"bytesInOutput":130},"packages/unique-identifier/src/uuid.ts":{"bytesInOutput":172}},"bytes":17210}}} |
@@ -1,177 +0,775 @@ | ||
declare const Crypto_2: Crypto | undefined; | ||
export { Crypto_2 as Crypto } | ||
import { Temporal } from '@js-temporal/polyfill'; | ||
declare type DateTimeErrorCode = ErrorCode | "datetime_create_failure" | "ms_format" | "formatting_failure"; | ||
declare const DateTimeErrorCode: { | ||
datetime_create_failure: DateTimeErrorCode; | ||
ms_format: DateTimeErrorCode; | ||
formatting_failure: DateTimeErrorCode; | ||
success: ErrorCode; | ||
missing_issue_code: ErrorCode; | ||
invalid_config: ErrorCode; | ||
failed_to_load_file: ErrorCode; | ||
missing_context: ErrorCode; | ||
record_not_found: ErrorCode; | ||
required_field_missing: ErrorCode; | ||
database_query_error: ErrorCode; | ||
model_validation_error: ErrorCode; | ||
field_validation_error: ErrorCode; | ||
invalid_parameter: ErrorCode; | ||
invalid_request: ErrorCode; | ||
type_error: ErrorCode; | ||
processing_error: ErrorCode; | ||
internal_server_error: ErrorCode; | ||
user_not_logged_in: ErrorCode; | ||
unknown_cause: ErrorCode; | ||
}; | ||
export { DateTimeErrorCode } | ||
export { DateTimeErrorCode as DateTimeErrorCode_alias_1 } | ||
/** | ||
* Generate a random CUID | ||
* | ||
* @example | ||
* ```typescript | ||
* | ||
* // Generate a random CUID | ||
* const id = cuid(); | ||
* ``` | ||
* | ||
* @returns A random CUID string | ||
* The input types that can be used to create a DateTime object | ||
*/ | ||
declare function cuid(): string; | ||
export { cuid } | ||
export { cuid as cuid_alias_1 } | ||
declare type DateTimeInput = StormDateTime | Temporal.Instant | Date | string | number | bigint | null | undefined; | ||
export { DateTimeInput } | ||
export { DateTimeInput as DateTimeInput_alias_1 } | ||
/** | ||
* A deconstructed snowflake and the details around it's creation. | ||
* The options to use when creating a new DateTime object | ||
*/ | ||
declare interface DeconstructedSnowflake { | ||
declare interface DateTimeOptions { | ||
/** | ||
* Snowflake deconstructed from | ||
* The time zone to use. If not specified, the default time zone for the runtime is used. | ||
*/ | ||
snowflake: SnowflakeResolvable; | ||
timeZone?: Temporal.TimeZoneLike; | ||
/** | ||
* The timestamp the snowflake was generated | ||
* The calendar to use. If not specified, the default calendar for the runtime is used. | ||
*/ | ||
timestamp: number; | ||
calendar?: Temporal.CalendarLike; | ||
/** | ||
* The shard_id used when generating | ||
* If false, the current date and time is defaulted when undefined or null is passed. If true, the current date and time is not defaulted. | ||
* | ||
* @default false | ||
*/ | ||
shard_id: number; | ||
/** | ||
* The increment of this snowflake | ||
*/ | ||
sequence: number; | ||
/** | ||
* The 64Bit snowflake binary string | ||
*/ | ||
binary: string; | ||
skipDefaulting?: boolean; | ||
} | ||
export { DeconstructedSnowflake } | ||
export { DeconstructedSnowflake as DeconstructedSnowflake_alias_1 } | ||
export { DateTimeOptions } | ||
export { DateTimeOptions as DateTimeOptions_alias_1 } | ||
/** | ||
* Deconstruct a snowflake to its values using the `epoch`. | ||
* Deserializes a string into a StormDate | ||
* | ||
* @param snowflake - Snowflake to deconstruct | ||
* @returns Either the DeconstructedSnowflake object | ||
* @param utcString - The date to deserialize | ||
* @returns The deserialized date | ||
*/ | ||
declare function deconstructSnowflake(snowflake: SnowflakeResolvable): DeconstructedSnowflake; | ||
export { deconstructSnowflake } | ||
export { deconstructSnowflake as deconstructSnowflake_alias_1 } | ||
declare function deserializeStormDate(utcString: JsonValue): StormDate; | ||
export { deserializeStormDate } | ||
export { deserializeStormDate as deserializeStormDate_alias_1 } | ||
export { deserializeStormDate as deserializeStormDate_alias_2 } | ||
/** | ||
* Options passed to the `generate` function to create a snowflake identifier. | ||
* Deserializes a string into a StormDateTime | ||
* | ||
* @param utcString - The dateTime to deserialize | ||
* @returns The deserialized dateTime | ||
*/ | ||
declare interface ISnowflakeGeneratorOptions { | ||
/** | ||
* The id of the shard running this generator. | ||
* | ||
* @default 1 | ||
*/ | ||
shardId: number; | ||
/** | ||
* The epoch to use for the snowflake. | ||
* | ||
* @remarks | ||
* This is the time in milliseconds since 1 January 1970 00:00:00 UTC. | ||
* | ||
* @default 1420070400000 (Date.UTC(1970, 0, 1).valueOf()) | ||
*/ | ||
epoch: number; | ||
/** | ||
* The current timestamp to use for the snowflake. | ||
* | ||
* @default Date.now() | ||
*/ | ||
timestamp: number | Date; | ||
} | ||
export { ISnowflakeGeneratorOptions } | ||
export { ISnowflakeGeneratorOptions as ISnowflakeGeneratorOptions_alias_1 } | ||
declare function deserializeStormDateTime(utcString: JsonValue): StormDateTime; | ||
export { deserializeStormDateTime } | ||
export { deserializeStormDateTime as deserializeStormDateTime_alias_1 } | ||
export { deserializeStormDateTime as deserializeStormDateTime_alias_2 } | ||
/** | ||
* Check if a snowflake string Id is valid. | ||
* Deserializes a string into a StormTime | ||
* | ||
* @param snowflake - Snowflake to check | ||
* @returns Whether the snowflake is valid | ||
* @param utcString - The time to deserialize | ||
* @returns The deserialized time | ||
*/ | ||
declare function isValidSnowflake(snowflake: string): boolean; | ||
export { isValidSnowflake } | ||
export { isValidSnowflake as isValidSnowflake_alias_1 } | ||
declare function deserializeStormTime(utcString: JsonValue): StormTime; | ||
export { deserializeStormTime } | ||
export { deserializeStormTime as deserializeStormTime_alias_1 } | ||
export { deserializeStormTime as deserializeStormTime_alias_2 } | ||
declare type ErrorCode = | ||
| "success" | ||
| "missing_issue_code" | ||
| "invalid_config" | ||
| "failed_to_load_file" | ||
| "missing_context" | ||
| "record_not_found" | ||
| "required_field_missing" | ||
| "database_query_error" | ||
| "model_validation_error" | ||
| "field_validation_error" | ||
| "invalid_parameter" | ||
| "invalid_request" | ||
| "type_error" | ||
| "processing_error" | ||
| "internal_server_error" | ||
| "user_not_logged_in" | ||
| "unknown_cause"; | ||
declare const ErrorCode = { | ||
success: "success" as ErrorCode, | ||
missing_issue_code: "missing_issue_code" as ErrorCode, | ||
invalid_config: "invalid_config" as ErrorCode, | ||
failed_to_load_file: "failed_to_load_file" as ErrorCode, | ||
missing_context: "missing_context" as ErrorCode, | ||
record_not_found: "record_not_found" as ErrorCode, | ||
required_field_missing: "required_field_missing" as ErrorCode, | ||
database_query_error: "database_query_error" as ErrorCode, | ||
model_validation_error: "model_validation_error" as ErrorCode, | ||
field_validation_error: "field_validation_error" as ErrorCode, | ||
invalid_parameter: "invalid_parameter" as ErrorCode, | ||
invalid_request: "invalid_request" as ErrorCode, | ||
type_error: "type_error" as ErrorCode, | ||
processing_error: "processing_error" as ErrorCode, | ||
internal_server_error: "internal_server_error" as ErrorCode, | ||
user_not_logged_in: "user_not_logged_in" as ErrorCode, | ||
unknown_cause: "unknown_cause" as ErrorCode | ||
}; | ||
/** | ||
* Generate a random integer | ||
* Format a date field | ||
* | ||
* @param maximum The maximum value (inclusive) | ||
* @param minimum The minimum value (inclusive) | ||
* @returns A random integer | ||
* @param dateTime - The date time to format | ||
* @returns The formatted date | ||
*/ | ||
declare const randomInteger: (maximum: number, minimum?: number) => number; | ||
export { randomInteger } | ||
export { randomInteger as randomInteger_alias_1 } | ||
declare const formatDate: (dateTime?: StormDateTime, options?: Partial<Temporal.ToStringPrecisionOptions & Temporal.ShowCalendarOption>) => string; | ||
export { formatDate } | ||
export { formatDate as formatDate_alias_1 } | ||
export { formatDate as formatDate_alias_2 } | ||
/** | ||
* Generate a random letter | ||
* Format a date time field | ||
* | ||
* @param random The random number generator | ||
* @returns A random letter | ||
* @param dateTime - The date time to format | ||
* @param options - The options to use | ||
* @returns The formatted date time | ||
*/ | ||
declare const randomLetter: (random?: () => number) => string | undefined; | ||
export { randomLetter } | ||
export { randomLetter as randomLetter_alias_1 } | ||
declare const formatDateTime: (dateTime?: StormDateTime, options?: Partial<Temporal.ToStringPrecisionOptions & Temporal.ShowCalendarOption>) => string; | ||
export { formatDateTime } | ||
export { formatDateTime as formatDateTime_alias_1 } | ||
export { formatDateTime as formatDateTime_alias_2 } | ||
/** | ||
* Generate a snowflake identifier. | ||
* Format a date time field into ISO format | ||
* | ||
* @param dateTime - The date time to format | ||
* @param options - The options to use | ||
* @returns The formatted date time | ||
*/ | ||
declare const formatDateTimeISO: (dateTime?: StormDateTime | null, options?: Partial<Temporal.ToStringPrecisionOptions & Temporal.ShowCalendarOption>) => string; | ||
export { formatDateTimeISO } | ||
export { formatDateTimeISO as formatDateTimeISO_alias_1 } | ||
export { formatDateTimeISO as formatDateTimeISO_alias_2 } | ||
/** | ||
* Formats a duration or a date-time since another date-time. | ||
* | ||
* @remarks | ||
* Snowflakes are 64-bit unsigned integers that are roughly time-ordered. | ||
* An example output when the options.verbose is true: | ||
* 4 days 3 hours 2 minutes 1 second 0 milliseconds | ||
* | ||
* @example | ||
* ```typescript | ||
* An example output when the options.verbose is false: | ||
* 4d 3h 2m 1s 0ms | ||
* | ||
* // Generate a snowflake with the default options | ||
* const id1 = snowflake(); | ||
* @param dateTimeOrDuration - The date-time or duration to format | ||
* @param dateTimeTo - The date-time to format since | ||
* @param options - The options to use | ||
* @returns The formatted time since | ||
*/ | ||
declare const formatSince: (dateTimeOrDuration: StormDateTime | Temporal.Duration, dateTimeTo?: StormDateTime, options?: FormatSinceOptions) => string; | ||
export { formatSince } | ||
export { formatSince as formatSince_alias_1 } | ||
export { formatSince as formatSince_alias_2 } | ||
/** | ||
* Options for the `formatSince` method | ||
*/ | ||
declare type FormatSinceOptions = { | ||
/** | ||
* Whether to use colon notation | ||
*/ | ||
colonNotation?: boolean; | ||
/** | ||
* Whether to use compact notation | ||
*/ | ||
compact?: boolean; | ||
/** | ||
* Whether to format sub-milliseconds | ||
*/ | ||
formatSubMilliseconds?: boolean; | ||
/** | ||
* Whether to keep decimals on whole seconds | ||
*/ | ||
keepDecimalsOnWholeSeconds?: boolean; | ||
/** | ||
* The number of decimal digits to use for milliseconds | ||
*/ | ||
millisecondsDecimalDigits?: number; | ||
/** | ||
* The number of decimal digits to use for seconds | ||
*/ | ||
secondsDecimalDigits?: number; | ||
/** | ||
* Whether to separate milliseconds | ||
*/ | ||
separateMilliseconds?: boolean; | ||
/** | ||
* The number of units to include | ||
*/ | ||
unitCount?: number; | ||
/** | ||
* Whether to use verbose notation | ||
*/ | ||
verbose?: boolean; | ||
}; | ||
export { FormatSinceOptions } | ||
export { FormatSinceOptions as FormatSinceOptions_alias_1 } | ||
export { FormatSinceOptions as FormatSinceOptions_alias_2 } | ||
/** | ||
* Format a time field | ||
* | ||
* // Generate a snowflake with a custom shard id | ||
* const id2 = snowflake({ shardId: 2 }); | ||
* @param dateTime - The date time to format | ||
* @returns The formatted time string | ||
*/ | ||
declare const formatTime: (dateTime?: StormDateTime, options?: Partial<Temporal.ToStringPrecisionOptions & Temporal.ShowCalendarOption>) => string; | ||
export { formatTime } | ||
export { formatTime as formatTime_alias_1 } | ||
export { formatTime as formatTime_alias_2 } | ||
/** | ||
* Type-check to determine if `obj` is a `DateTime` object | ||
* | ||
* // Generate a snowflake with a custom shard id and timestamp | ||
* const id3 = snowflake({ shardId: 3, timestamp: new Date("2021-01-01") }); | ||
* `isDateTime` returns true if the object passed to it has a `_symbol` property that is equal to | ||
* `DATE_TIME_SYMBOL` | ||
* | ||
* ``` | ||
* @param obj - the object to check | ||
* @returns The function isDateTime is returning a boolean value. | ||
*/ | ||
declare function isDateTime(obj: unknown): obj is StormDateTime; | ||
export { isDateTime } | ||
export { isDateTime as isDateTime_alias_1 } | ||
export { isDateTime as isDateTime_alias_2 } | ||
/** | ||
* Type-check to determine if `value` is a `Temporal.Instant` object | ||
* | ||
* @param timestamp - The timestamp to use | ||
* @param shardId - The shard id to use | ||
* @returns A snowflake | ||
* @param value - The value to check | ||
* @returns The function isInstant is returning a boolean value. | ||
*/ | ||
declare function snowflake({ shardId, epoch, timestamp }?: ISnowflakeGeneratorOptions): string; | ||
export { snowflake } | ||
export { snowflake as snowflake_alias_1 } | ||
declare function isInstant(value: unknown): value is Temporal.Instant; | ||
export { isInstant } | ||
export { isInstant as isInstant_alias_1 } | ||
export { isInstant as isInstant_alias_2 } | ||
declare interface JsonArray extends Array<JsonValue> {} | ||
declare interface JsonObject { | ||
[key: string]: JsonValue; | ||
} | ||
declare type JsonValue = PrimitiveJsonValue | JsonArray | JsonObject; | ||
declare type PrimitiveJsonValue = string | number | boolean | undefined | null; | ||
declare const RFC_3339_DATE_REGEX: RegExp; | ||
export { RFC_3339_DATE_REGEX } | ||
export { RFC_3339_DATE_REGEX as RFC_3339_DATE_REGEX_alias_1 } | ||
declare const RFC_3339_DATETIME_REGEX: RegExp; | ||
export { RFC_3339_DATETIME_REGEX } | ||
export { RFC_3339_DATETIME_REGEX as RFC_3339_DATETIME_REGEX_alias_1 } | ||
declare const RFC_3339_TIME_REGEX: RegExp; | ||
export { RFC_3339_TIME_REGEX } | ||
export { RFC_3339_TIME_REGEX as RFC_3339_TIME_REGEX_alias_1 } | ||
/** | ||
* Resolvable value types for a valid Snowflake: | ||
* * string | ||
* * number | ||
* * bigint | ||
* Serializes a StormDate into a string | ||
* | ||
* @type {SnowflakeResolvable} | ||
* @param date - The date to serialize | ||
* @returns The serialized date | ||
*/ | ||
declare type SnowflakeResolvable = string; | ||
export { SnowflakeResolvable } | ||
export { SnowflakeResolvable as SnowflakeResolvable_alias_1 } | ||
declare function serializeStormDate(date: StormDate): string; | ||
export { serializeStormDate } | ||
export { serializeStormDate as serializeStormDate_alias_1 } | ||
export { serializeStormDate as serializeStormDate_alias_2 } | ||
/** | ||
* Generate a random UUID | ||
* Serializes a StormDateTime into a string | ||
* | ||
* @remarks | ||
* This helper function is a wrapper around the `crypto.randomUUID` function. You can find more information about this type of identifier in this {@link https://en.wikipedia.org/wiki/Universally_unique_identifier article} | ||
* @param dateTime - The dateTime to serialize | ||
* @returns The serialized dateTime | ||
*/ | ||
declare function serializeStormDateTime(dateTime: StormDateTime): string; | ||
export { serializeStormDateTime } | ||
export { serializeStormDateTime as serializeStormDateTime_alias_1 } | ||
export { serializeStormDateTime as serializeStormDateTime_alias_2 } | ||
/** | ||
* Serializes a StormTime into a string | ||
* | ||
* @example | ||
* ```typescript | ||
* @param date - The time to serialize | ||
* @returns The serialized time | ||
*/ | ||
declare function serializeStormTime(date: StormTime): string; | ||
export { serializeStormTime } | ||
export { serializeStormTime as serializeStormTime_alias_1 } | ||
export { serializeStormTime as serializeStormTime_alias_2 } | ||
/** | ||
* A wrapper of the and Date class used by Storm Software to provide Date-Time values | ||
* | ||
* // Generate a random UUID | ||
* const id = uuid(); | ||
* ``` | ||
* @decorator `@Serializable()` | ||
*/ | ||
declare class StormDate extends StormDateTime { | ||
/** | ||
* The current function returns a new DateTime object with the current date and time | ||
* @returns A new instance of DateTime with the current date and time. | ||
*/ | ||
static now(): number; | ||
/** | ||
* The current function returns a new DateTime object with the current date and time | ||
* @returns A new instance of DateTime with the current date and time. | ||
*/ | ||
static current(): StormDate; | ||
/** | ||
* Creates a new StormDate object with the given date and time | ||
* | ||
* @param date - The date to use | ||
* @param options - The options to use | ||
* @returns A new instance of DateTime with the given date and time. | ||
*/ | ||
static create: (date?: DateTimeInput, options?: DateTimeOptions) => StormDate; | ||
constructor(dateTime?: DateTimeInput, options?: DateTimeOptions); | ||
/** | ||
* Validate the input date value | ||
* | ||
* @param dateTime - The date value to validate | ||
* @param options - The options to use | ||
* @returns A boolean representing whether the value is a valid *date-time* | ||
*/ | ||
protected validate(dateTime?: DateTimeInput, options?: DateTimeOptions): boolean; | ||
/** | ||
* Gets the hours in a date, using local time. | ||
*/ | ||
getHours(): number; | ||
/** | ||
* Gets the hours value in a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCHours(): number; | ||
/** | ||
* Gets the minutes of a Date object, using local time. | ||
*/ | ||
getMinutes(): number; | ||
/** | ||
* Gets the minutes of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMinutes(): number; | ||
/** | ||
* Gets the seconds of a Date object, using local time. | ||
*/ | ||
getSeconds(): number; | ||
/** | ||
* Gets the seconds of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCSeconds(): number; | ||
/** | ||
* Gets the milliseconds of a Date, using local time. | ||
*/ | ||
getMilliseconds(): number; | ||
/** | ||
* Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMilliseconds(): number; | ||
/** | ||
* Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). | ||
*/ | ||
getTimezoneOffset(): number; | ||
/** | ||
* It returns the duration between two dates. | ||
* | ||
* @param dateTimeTo - DateTime = DateTime.current | ||
* @returns A duration object. | ||
*/ | ||
getDuration(dateTimeTo?: StormDateTime): Temporal.Duration; | ||
} | ||
export { StormDate } | ||
export { StormDate as StormDate_alias_1 } | ||
/** | ||
* A wrapper of the and Date class used by Storm Software to provide Date-Time values | ||
* | ||
* @returns A random UUID string | ||
* @decorator `@Serializable()` | ||
*/ | ||
declare function uuid(): string; | ||
export { uuid } | ||
export { uuid as uuid_alias_1 } | ||
declare class StormDateTime extends Date { | ||
#private; | ||
/** | ||
* The current function returns a new StormDateTime object with the current date and time | ||
* @returns A new instance of StormDateTime with the current date and time. | ||
*/ | ||
static now(): number; | ||
/** | ||
* The current function returns a new StormDateTime object with the current date and time | ||
* @returns A new instance of StormDateTime with the current date and time. | ||
*/ | ||
static current(): StormDateTime; | ||
/** | ||
* Creates a new instance of StormDateTime from a string with a specified format. | ||
* | ||
* @param dateTime - The input value used to determine the current date and time | ||
* @param options - The options to use when creating the StormDateTime object | ||
* @returns A new instance of StormDateTime with the current date and time. | ||
*/ | ||
static create: (dateTime?: DateTimeInput, options?: DateTimeOptions) => StormDateTime; | ||
constructor(dateTime?: DateTimeInput, options?: DateTimeOptions); | ||
/** | ||
* An accessor that returns the epoch milliseconds of the DateTime object | ||
*/ | ||
get epochMilliseconds(): number; | ||
/** | ||
* An accessor that returns the `Temporal.Instant` object of the DateTime object | ||
*/ | ||
get instant(): Temporal.Instant; | ||
/** | ||
* An accessor that sets the `Temporal.Instant` object of the DateTime object | ||
*/ | ||
protected set instant(_instant: Temporal.Instant); | ||
/** | ||
* An accessor that returns the `Temporal.ZonedDateTime` object of the DateTime object | ||
*/ | ||
get zonedDateTime(): Temporal.ZonedDateTime; | ||
/** | ||
* An accessor that sets the `Temporal.ZonedDateTime` object of the DateTime object | ||
*/ | ||
protected set zonedDateTime(_zonedDateTime: Temporal.ZonedDateTime); | ||
/** | ||
* An accessor that returns the `calendarId` string of the DateTime object | ||
*/ | ||
get calendarId(): string; | ||
/** | ||
* An accessor that returns the `timeZoneId` string of the DateTime object | ||
*/ | ||
get timeZoneId(): string; | ||
/** | ||
* An accessor that returns the `isValid` boolean of the DateTime object | ||
*/ | ||
get isValid(): boolean; | ||
/** | ||
* Returns the input value used to create the DateTime object | ||
*/ | ||
get input(): DateTimeInput; | ||
/** | ||
* Returns the options used to create the DateTime object | ||
*/ | ||
get options(): DateTimeOptions; | ||
/** | ||
* Validate the input date value | ||
* | ||
* @param dateTime - The date value to validate | ||
* @param options - The options to use | ||
* @returns A boolean representing whether the value is a valid *date-time* | ||
*/ | ||
protected validate(dateTime?: DateTimeInput, options?: DateTimeOptions): boolean; | ||
/** | ||
* Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. | ||
*/ | ||
getTime(): number; | ||
/** | ||
* Gets the year, using local time. | ||
*/ | ||
getFullYear(): number; | ||
/** | ||
* Gets the year using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCFullYear(): number; | ||
/** | ||
* Gets the month, using local time. | ||
*/ | ||
getMonth(): number; | ||
/** | ||
* Gets the month of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMonth(): number; | ||
/** | ||
* Gets the day-of-the-month, using local time. | ||
*/ | ||
getDate(): number; | ||
/** | ||
* Gets the day-of-the-month, using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCDate(): number; | ||
/** | ||
* Gets the day of the week, using local time. | ||
*/ | ||
getDay(): number; | ||
/** | ||
* Gets the day of the week using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCDay(): number; | ||
/** | ||
* Gets the hours in a date, using local time. | ||
*/ | ||
getHours(): number; | ||
/** | ||
* Gets the hours value in a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCHours(): number; | ||
/** | ||
* Gets the minutes of a Date object, using local time. | ||
*/ | ||
getMinutes(): number; | ||
/** | ||
* Gets the minutes of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMinutes(): number; | ||
/** | ||
* Gets the seconds of a Date object, using local time. | ||
*/ | ||
getSeconds(): number; | ||
/** | ||
* Gets the seconds of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCSeconds(): number; | ||
/** | ||
* Gets the milliseconds of a Date, using local time. | ||
*/ | ||
getMilliseconds(): number; | ||
/** | ||
* Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMilliseconds(): number; | ||
/** | ||
* Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). | ||
*/ | ||
getTimezoneOffset(): number; | ||
/** | ||
* Sets the date and time value in the Date object. | ||
* @param time - A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT. | ||
*/ | ||
setTime(time: number): number; | ||
/** | ||
* Sets the milliseconds value in the Date object using local time. | ||
* @param millisecond - A numeric value equal to the millisecond value. | ||
*/ | ||
setMilliseconds(millisecond: number): number; | ||
/** | ||
* Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC). | ||
* @param millisecond - A numeric value equal to the millisecond value. | ||
*/ | ||
setUTCMilliseconds(millisecond: number): number; | ||
/** | ||
* Sets the seconds value in the Date object using local time. | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setSeconds(second: number, millisecond?: number): number; | ||
/** | ||
* Sets the seconds value in the Date object using Universal Coordinated Time (UTC). | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setUTCSeconds(second: number, millisecond?: number): number; | ||
/** | ||
* Sets the minutes value in the Date object using local time. | ||
* @param minute - A numeric value equal to the minutes value. | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setMinutes(minute: number, second?: number, millisecond?: number): number; | ||
/** | ||
* Sets the minutes value in the Date object using Universal Coordinated Time (UTC). | ||
* @param minute - A numeric value equal to the minutes value. | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setUTCMinutes(minute: number, second?: number, millisecond?: number): number; | ||
/** | ||
* Sets the hour value in the Date object using local time. | ||
* | ||
* @param hour - A numeric value equal to the hours value. | ||
* @param minute - A numeric value equal to the minutes value. | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setHours(hour: number, minute: number, second?: number, millisecond?: number): number; | ||
/** | ||
* Sets the hours value in the Date object using Universal Coordinated Time (UTC). | ||
* | ||
* @param hour - A numeric value equal to the hours value. | ||
* @param minute - A numeric value equal to the minutes value. | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setUTCHours(hour: number, minute: number, second?: number, millisecond?: number): number; | ||
/** | ||
* Sets the numeric day-of-the-month value of the Date object using local time. | ||
* | ||
* @param day - A numeric value equal to the day of the month. | ||
*/ | ||
setDate(day: number): number; | ||
/** | ||
* Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC). | ||
* | ||
* @param day - A numeric value equal to the day of the month. | ||
*/ | ||
setUTCDate(day: number): number; | ||
/** | ||
* Sets the month value in the Date object using local time. | ||
* | ||
* @param month - A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. | ||
* @param day - A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used. | ||
*/ | ||
setMonth(month: number, day?: number): number; | ||
/** | ||
* Sets the month value in the Date object using Universal Coordinated Time (UTC). | ||
* | ||
* @param month - A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. | ||
* @param day - A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used. | ||
*/ | ||
setUTCMonth(month: number, day?: number): number; | ||
/** | ||
* Sets the year of the Date object using local time. | ||
* @param year - A numeric value for the year. | ||
* @param month - A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified. | ||
* @param day - A numeric value equal for the day of the month. | ||
*/ | ||
setFullYear(year: number, month?: number, day?: number): number; | ||
/** | ||
* Sets the year value in the Date object using Universal Coordinated Time (UTC). | ||
* | ||
* @param year - A numeric value equal to the year. | ||
* @param month - A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied. | ||
* @param day - A numeric value equal to the day of the month. | ||
*/ | ||
setUTCFullYear(year: number, month?: number, day?: number): number; | ||
/** | ||
* It returns a plain date object from a DateTime object | ||
* | ||
* @returns A PlainDate object. | ||
*/ | ||
getPlainDate(): StormDateTime; | ||
/** | ||
* `getPlainTime` returns a `PlainTime` object from a `DateTime` object | ||
* | ||
* @returns A PlainTime object. | ||
*/ | ||
getPlainTime(): StormDateTime; | ||
/** | ||
* It returns the duration between two dates. | ||
* | ||
* @param dateTimeTo - DateTime = DateTime.current | ||
* @returns A duration object. | ||
*/ | ||
since(dateTimeTo?: StormDateTime): Temporal.Duration; | ||
/** | ||
* It returns the duration between two date times. | ||
* | ||
* @param dateTimeTo - DateTime = DateTime.current | ||
* @returns A duration object. | ||
*/ | ||
getDuration(dateTimeTo?: StormDateTime): Temporal.Duration; | ||
} | ||
export { StormDateTime } | ||
export { StormDateTime as StormDateTime_alias_1 } | ||
/** | ||
* A wrapper of the and Date class used by Storm Software to provide Date-Time values | ||
* | ||
* @decorator `@Serializable()` | ||
*/ | ||
declare class StormTime extends StormDateTime { | ||
/** | ||
* The current function returns a new DateTime object with the current date and time | ||
* @returns A new instance of DateTime with the current date and time. | ||
*/ | ||
static now(): number; | ||
/** | ||
* The current function returns a new DateTime object with the current date and time | ||
* @returns A new instance of DateTime with the current date and time. | ||
*/ | ||
static current(): StormTime; | ||
/** | ||
* Creates a new instance of DateTime from a string with a specified format. | ||
* | ||
* @param time - The input value used to determine the current time | ||
* @param options - The options to use | ||
* @returns A new instance of StormTime with the time provided in the time parameter. | ||
*/ | ||
static create: (time?: DateTimeInput, options?: DateTimeOptions) => StormTime; | ||
constructor(dateTime?: DateTimeInput, options?: DateTimeOptions); | ||
/** | ||
* Validate the input time value | ||
* | ||
* @param dateTime - The date value to validate | ||
* @param options - The options to use | ||
* @returns A boolean representing whether the value is a valid *date-time* | ||
*/ | ||
protected validate(dateTime?: DateTimeInput, options?: DateTimeOptions): boolean; | ||
/** | ||
* Gets the year, using local time. | ||
*/ | ||
getFullYear(): number; | ||
/** | ||
* Gets the year using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCFullYear(): number; | ||
/** | ||
* Gets the month, using local time. | ||
*/ | ||
getMonth(): number; | ||
/** | ||
* Gets the month of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMonth(): number; | ||
/** | ||
* Gets the day-of-the-month, using local time. | ||
*/ | ||
getDate(): number; | ||
/** | ||
* Gets the day-of-the-month, using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCDate(): number; | ||
/** | ||
* Gets the day of the week, using local time. | ||
*/ | ||
getDay(): number; | ||
/** | ||
* Gets the day of the week using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCDay(): number; | ||
/** | ||
* It returns the duration between two dates. | ||
* | ||
* @param dateTimeTo - DateTime = DateTime.current | ||
* @returns A duration object. | ||
*/ | ||
getDuration(dateTimeTo?: StormTime): Temporal.Duration; | ||
} | ||
export { StormTime } | ||
export { StormTime as StormTime_alias_1 } | ||
declare function validateDate(value: DateTimeInput, options?: DateTimeOptions): boolean; | ||
export { validateDate } | ||
export { validateDate as validateDate_alias_1 } | ||
export { validateDate as validateDate_alias_2 } | ||
/** | ||
* Type-check to determine if `value` is a valid *date-time* | ||
* @param value - The value to check | ||
* @param options - The options to use | ||
* @returns A boolean representing whether the value is a valid *date-time* | ||
*/ | ||
declare function validateDateTime(value: DateTimeInput, options?: DateTimeOptions): boolean; | ||
export { validateDateTime } | ||
export { validateDateTime as validateDateTime_alias_1 } | ||
export { validateDateTime as validateDateTime_alias_2 } | ||
declare function validateTime(value?: DateTimeInput, options?: DateTimeOptions): boolean; | ||
export { validateTime } | ||
export { validateTime as validateTime_alias_1 } | ||
export { validateTime as validateTime_alias_2 } | ||
export { } |
@@ -1,177 +0,775 @@ | ||
declare const Crypto_2: Crypto | undefined; | ||
export { Crypto_2 as Crypto } | ||
import { Temporal } from '@js-temporal/polyfill'; | ||
declare type DateTimeErrorCode = ErrorCode | "datetime_create_failure" | "ms_format" | "formatting_failure"; | ||
declare const DateTimeErrorCode: { | ||
datetime_create_failure: DateTimeErrorCode; | ||
ms_format: DateTimeErrorCode; | ||
formatting_failure: DateTimeErrorCode; | ||
success: ErrorCode; | ||
missing_issue_code: ErrorCode; | ||
invalid_config: ErrorCode; | ||
failed_to_load_file: ErrorCode; | ||
missing_context: ErrorCode; | ||
record_not_found: ErrorCode; | ||
required_field_missing: ErrorCode; | ||
database_query_error: ErrorCode; | ||
model_validation_error: ErrorCode; | ||
field_validation_error: ErrorCode; | ||
invalid_parameter: ErrorCode; | ||
invalid_request: ErrorCode; | ||
type_error: ErrorCode; | ||
processing_error: ErrorCode; | ||
internal_server_error: ErrorCode; | ||
user_not_logged_in: ErrorCode; | ||
unknown_cause: ErrorCode; | ||
}; | ||
export { DateTimeErrorCode } | ||
export { DateTimeErrorCode as DateTimeErrorCode_alias_1 } | ||
/** | ||
* Generate a random CUID | ||
* | ||
* @example | ||
* ```typescript | ||
* | ||
* // Generate a random CUID | ||
* const id = cuid(); | ||
* ``` | ||
* | ||
* @returns A random CUID string | ||
* The input types that can be used to create a DateTime object | ||
*/ | ||
declare function cuid(): string; | ||
export { cuid } | ||
export { cuid as cuid_alias_1 } | ||
declare type DateTimeInput = StormDateTime | Temporal.Instant | Date | string | number | bigint | null | undefined; | ||
export { DateTimeInput } | ||
export { DateTimeInput as DateTimeInput_alias_1 } | ||
/** | ||
* A deconstructed snowflake and the details around it's creation. | ||
* The options to use when creating a new DateTime object | ||
*/ | ||
declare interface DeconstructedSnowflake { | ||
declare interface DateTimeOptions { | ||
/** | ||
* Snowflake deconstructed from | ||
* The time zone to use. If not specified, the default time zone for the runtime is used. | ||
*/ | ||
snowflake: SnowflakeResolvable; | ||
timeZone?: Temporal.TimeZoneLike; | ||
/** | ||
* The timestamp the snowflake was generated | ||
* The calendar to use. If not specified, the default calendar for the runtime is used. | ||
*/ | ||
timestamp: number; | ||
calendar?: Temporal.CalendarLike; | ||
/** | ||
* The shard_id used when generating | ||
* If false, the current date and time is defaulted when undefined or null is passed. If true, the current date and time is not defaulted. | ||
* | ||
* @default false | ||
*/ | ||
shard_id: number; | ||
/** | ||
* The increment of this snowflake | ||
*/ | ||
sequence: number; | ||
/** | ||
* The 64Bit snowflake binary string | ||
*/ | ||
binary: string; | ||
skipDefaulting?: boolean; | ||
} | ||
export { DeconstructedSnowflake } | ||
export { DeconstructedSnowflake as DeconstructedSnowflake_alias_1 } | ||
export { DateTimeOptions } | ||
export { DateTimeOptions as DateTimeOptions_alias_1 } | ||
/** | ||
* Deconstruct a snowflake to its values using the `epoch`. | ||
* Deserializes a string into a StormDate | ||
* | ||
* @param snowflake - Snowflake to deconstruct | ||
* @returns Either the DeconstructedSnowflake object | ||
* @param utcString - The date to deserialize | ||
* @returns The deserialized date | ||
*/ | ||
declare function deconstructSnowflake(snowflake: SnowflakeResolvable): DeconstructedSnowflake; | ||
export { deconstructSnowflake } | ||
export { deconstructSnowflake as deconstructSnowflake_alias_1 } | ||
declare function deserializeStormDate(utcString: JsonValue): StormDate; | ||
export { deserializeStormDate } | ||
export { deserializeStormDate as deserializeStormDate_alias_1 } | ||
export { deserializeStormDate as deserializeStormDate_alias_2 } | ||
/** | ||
* Options passed to the `generate` function to create a snowflake identifier. | ||
* Deserializes a string into a StormDateTime | ||
* | ||
* @param utcString - The dateTime to deserialize | ||
* @returns The deserialized dateTime | ||
*/ | ||
declare interface ISnowflakeGeneratorOptions { | ||
/** | ||
* The id of the shard running this generator. | ||
* | ||
* @default 1 | ||
*/ | ||
shardId: number; | ||
/** | ||
* The epoch to use for the snowflake. | ||
* | ||
* @remarks | ||
* This is the time in milliseconds since 1 January 1970 00:00:00 UTC. | ||
* | ||
* @default 1420070400000 (Date.UTC(1970, 0, 1).valueOf()) | ||
*/ | ||
epoch: number; | ||
/** | ||
* The current timestamp to use for the snowflake. | ||
* | ||
* @default Date.now() | ||
*/ | ||
timestamp: number | Date; | ||
} | ||
export { ISnowflakeGeneratorOptions } | ||
export { ISnowflakeGeneratorOptions as ISnowflakeGeneratorOptions_alias_1 } | ||
declare function deserializeStormDateTime(utcString: JsonValue): StormDateTime; | ||
export { deserializeStormDateTime } | ||
export { deserializeStormDateTime as deserializeStormDateTime_alias_1 } | ||
export { deserializeStormDateTime as deserializeStormDateTime_alias_2 } | ||
/** | ||
* Check if a snowflake string Id is valid. | ||
* Deserializes a string into a StormTime | ||
* | ||
* @param snowflake - Snowflake to check | ||
* @returns Whether the snowflake is valid | ||
* @param utcString - The time to deserialize | ||
* @returns The deserialized time | ||
*/ | ||
declare function isValidSnowflake(snowflake: string): boolean; | ||
export { isValidSnowflake } | ||
export { isValidSnowflake as isValidSnowflake_alias_1 } | ||
declare function deserializeStormTime(utcString: JsonValue): StormTime; | ||
export { deserializeStormTime } | ||
export { deserializeStormTime as deserializeStormTime_alias_1 } | ||
export { deserializeStormTime as deserializeStormTime_alias_2 } | ||
declare type ErrorCode = | ||
| "success" | ||
| "missing_issue_code" | ||
| "invalid_config" | ||
| "failed_to_load_file" | ||
| "missing_context" | ||
| "record_not_found" | ||
| "required_field_missing" | ||
| "database_query_error" | ||
| "model_validation_error" | ||
| "field_validation_error" | ||
| "invalid_parameter" | ||
| "invalid_request" | ||
| "type_error" | ||
| "processing_error" | ||
| "internal_server_error" | ||
| "user_not_logged_in" | ||
| "unknown_cause"; | ||
declare const ErrorCode = { | ||
success: "success" as ErrorCode, | ||
missing_issue_code: "missing_issue_code" as ErrorCode, | ||
invalid_config: "invalid_config" as ErrorCode, | ||
failed_to_load_file: "failed_to_load_file" as ErrorCode, | ||
missing_context: "missing_context" as ErrorCode, | ||
record_not_found: "record_not_found" as ErrorCode, | ||
required_field_missing: "required_field_missing" as ErrorCode, | ||
database_query_error: "database_query_error" as ErrorCode, | ||
model_validation_error: "model_validation_error" as ErrorCode, | ||
field_validation_error: "field_validation_error" as ErrorCode, | ||
invalid_parameter: "invalid_parameter" as ErrorCode, | ||
invalid_request: "invalid_request" as ErrorCode, | ||
type_error: "type_error" as ErrorCode, | ||
processing_error: "processing_error" as ErrorCode, | ||
internal_server_error: "internal_server_error" as ErrorCode, | ||
user_not_logged_in: "user_not_logged_in" as ErrorCode, | ||
unknown_cause: "unknown_cause" as ErrorCode | ||
}; | ||
/** | ||
* Generate a random integer | ||
* Format a date field | ||
* | ||
* @param maximum The maximum value (inclusive) | ||
* @param minimum The minimum value (inclusive) | ||
* @returns A random integer | ||
* @param dateTime - The date time to format | ||
* @returns The formatted date | ||
*/ | ||
declare const randomInteger: (maximum: number, minimum?: number) => number; | ||
export { randomInteger } | ||
export { randomInteger as randomInteger_alias_1 } | ||
declare const formatDate: (dateTime?: StormDateTime, options?: Partial<Temporal.ToStringPrecisionOptions & Temporal.ShowCalendarOption>) => string; | ||
export { formatDate } | ||
export { formatDate as formatDate_alias_1 } | ||
export { formatDate as formatDate_alias_2 } | ||
/** | ||
* Generate a random letter | ||
* Format a date time field | ||
* | ||
* @param random The random number generator | ||
* @returns A random letter | ||
* @param dateTime - The date time to format | ||
* @param options - The options to use | ||
* @returns The formatted date time | ||
*/ | ||
declare const randomLetter: (random?: () => number) => string | undefined; | ||
export { randomLetter } | ||
export { randomLetter as randomLetter_alias_1 } | ||
declare const formatDateTime: (dateTime?: StormDateTime, options?: Partial<Temporal.ToStringPrecisionOptions & Temporal.ShowCalendarOption>) => string; | ||
export { formatDateTime } | ||
export { formatDateTime as formatDateTime_alias_1 } | ||
export { formatDateTime as formatDateTime_alias_2 } | ||
/** | ||
* Generate a snowflake identifier. | ||
* Format a date time field into ISO format | ||
* | ||
* @param dateTime - The date time to format | ||
* @param options - The options to use | ||
* @returns The formatted date time | ||
*/ | ||
declare const formatDateTimeISO: (dateTime?: StormDateTime | null, options?: Partial<Temporal.ToStringPrecisionOptions & Temporal.ShowCalendarOption>) => string; | ||
export { formatDateTimeISO } | ||
export { formatDateTimeISO as formatDateTimeISO_alias_1 } | ||
export { formatDateTimeISO as formatDateTimeISO_alias_2 } | ||
/** | ||
* Formats a duration or a date-time since another date-time. | ||
* | ||
* @remarks | ||
* Snowflakes are 64-bit unsigned integers that are roughly time-ordered. | ||
* An example output when the options.verbose is true: | ||
* 4 days 3 hours 2 minutes 1 second 0 milliseconds | ||
* | ||
* @example | ||
* ```typescript | ||
* An example output when the options.verbose is false: | ||
* 4d 3h 2m 1s 0ms | ||
* | ||
* // Generate a snowflake with the default options | ||
* const id1 = snowflake(); | ||
* @param dateTimeOrDuration - The date-time or duration to format | ||
* @param dateTimeTo - The date-time to format since | ||
* @param options - The options to use | ||
* @returns The formatted time since | ||
*/ | ||
declare const formatSince: (dateTimeOrDuration: StormDateTime | Temporal.Duration, dateTimeTo?: StormDateTime, options?: FormatSinceOptions) => string; | ||
export { formatSince } | ||
export { formatSince as formatSince_alias_1 } | ||
export { formatSince as formatSince_alias_2 } | ||
/** | ||
* Options for the `formatSince` method | ||
*/ | ||
declare type FormatSinceOptions = { | ||
/** | ||
* Whether to use colon notation | ||
*/ | ||
colonNotation?: boolean; | ||
/** | ||
* Whether to use compact notation | ||
*/ | ||
compact?: boolean; | ||
/** | ||
* Whether to format sub-milliseconds | ||
*/ | ||
formatSubMilliseconds?: boolean; | ||
/** | ||
* Whether to keep decimals on whole seconds | ||
*/ | ||
keepDecimalsOnWholeSeconds?: boolean; | ||
/** | ||
* The number of decimal digits to use for milliseconds | ||
*/ | ||
millisecondsDecimalDigits?: number; | ||
/** | ||
* The number of decimal digits to use for seconds | ||
*/ | ||
secondsDecimalDigits?: number; | ||
/** | ||
* Whether to separate milliseconds | ||
*/ | ||
separateMilliseconds?: boolean; | ||
/** | ||
* The number of units to include | ||
*/ | ||
unitCount?: number; | ||
/** | ||
* Whether to use verbose notation | ||
*/ | ||
verbose?: boolean; | ||
}; | ||
export { FormatSinceOptions } | ||
export { FormatSinceOptions as FormatSinceOptions_alias_1 } | ||
export { FormatSinceOptions as FormatSinceOptions_alias_2 } | ||
/** | ||
* Format a time field | ||
* | ||
* // Generate a snowflake with a custom shard id | ||
* const id2 = snowflake({ shardId: 2 }); | ||
* @param dateTime - The date time to format | ||
* @returns The formatted time string | ||
*/ | ||
declare const formatTime: (dateTime?: StormDateTime, options?: Partial<Temporal.ToStringPrecisionOptions & Temporal.ShowCalendarOption>) => string; | ||
export { formatTime } | ||
export { formatTime as formatTime_alias_1 } | ||
export { formatTime as formatTime_alias_2 } | ||
/** | ||
* Type-check to determine if `obj` is a `DateTime` object | ||
* | ||
* // Generate a snowflake with a custom shard id and timestamp | ||
* const id3 = snowflake({ shardId: 3, timestamp: new Date("2021-01-01") }); | ||
* `isDateTime` returns true if the object passed to it has a `_symbol` property that is equal to | ||
* `DATE_TIME_SYMBOL` | ||
* | ||
* ``` | ||
* @param obj - the object to check | ||
* @returns The function isDateTime is returning a boolean value. | ||
*/ | ||
declare function isDateTime(obj: unknown): obj is StormDateTime; | ||
export { isDateTime } | ||
export { isDateTime as isDateTime_alias_1 } | ||
export { isDateTime as isDateTime_alias_2 } | ||
/** | ||
* Type-check to determine if `value` is a `Temporal.Instant` object | ||
* | ||
* @param timestamp - The timestamp to use | ||
* @param shardId - The shard id to use | ||
* @returns A snowflake | ||
* @param value - The value to check | ||
* @returns The function isInstant is returning a boolean value. | ||
*/ | ||
declare function snowflake({ shardId, epoch, timestamp }?: ISnowflakeGeneratorOptions): string; | ||
export { snowflake } | ||
export { snowflake as snowflake_alias_1 } | ||
declare function isInstant(value: unknown): value is Temporal.Instant; | ||
export { isInstant } | ||
export { isInstant as isInstant_alias_1 } | ||
export { isInstant as isInstant_alias_2 } | ||
declare interface JsonArray extends Array<JsonValue> {} | ||
declare interface JsonObject { | ||
[key: string]: JsonValue; | ||
} | ||
declare type JsonValue = PrimitiveJsonValue | JsonArray | JsonObject; | ||
declare type PrimitiveJsonValue = string | number | boolean | undefined | null; | ||
declare const RFC_3339_DATE_REGEX: RegExp; | ||
export { RFC_3339_DATE_REGEX } | ||
export { RFC_3339_DATE_REGEX as RFC_3339_DATE_REGEX_alias_1 } | ||
declare const RFC_3339_DATETIME_REGEX: RegExp; | ||
export { RFC_3339_DATETIME_REGEX } | ||
export { RFC_3339_DATETIME_REGEX as RFC_3339_DATETIME_REGEX_alias_1 } | ||
declare const RFC_3339_TIME_REGEX: RegExp; | ||
export { RFC_3339_TIME_REGEX } | ||
export { RFC_3339_TIME_REGEX as RFC_3339_TIME_REGEX_alias_1 } | ||
/** | ||
* Resolvable value types for a valid Snowflake: | ||
* * string | ||
* * number | ||
* * bigint | ||
* Serializes a StormDate into a string | ||
* | ||
* @type {SnowflakeResolvable} | ||
* @param date - The date to serialize | ||
* @returns The serialized date | ||
*/ | ||
declare type SnowflakeResolvable = string; | ||
export { SnowflakeResolvable } | ||
export { SnowflakeResolvable as SnowflakeResolvable_alias_1 } | ||
declare function serializeStormDate(date: StormDate): string; | ||
export { serializeStormDate } | ||
export { serializeStormDate as serializeStormDate_alias_1 } | ||
export { serializeStormDate as serializeStormDate_alias_2 } | ||
/** | ||
* Generate a random UUID | ||
* Serializes a StormDateTime into a string | ||
* | ||
* @remarks | ||
* This helper function is a wrapper around the `crypto.randomUUID` function. You can find more information about this type of identifier in this {@link https://en.wikipedia.org/wiki/Universally_unique_identifier article} | ||
* @param dateTime - The dateTime to serialize | ||
* @returns The serialized dateTime | ||
*/ | ||
declare function serializeStormDateTime(dateTime: StormDateTime): string; | ||
export { serializeStormDateTime } | ||
export { serializeStormDateTime as serializeStormDateTime_alias_1 } | ||
export { serializeStormDateTime as serializeStormDateTime_alias_2 } | ||
/** | ||
* Serializes a StormTime into a string | ||
* | ||
* @example | ||
* ```typescript | ||
* @param date - The time to serialize | ||
* @returns The serialized time | ||
*/ | ||
declare function serializeStormTime(date: StormTime): string; | ||
export { serializeStormTime } | ||
export { serializeStormTime as serializeStormTime_alias_1 } | ||
export { serializeStormTime as serializeStormTime_alias_2 } | ||
/** | ||
* A wrapper of the and Date class used by Storm Software to provide Date-Time values | ||
* | ||
* // Generate a random UUID | ||
* const id = uuid(); | ||
* ``` | ||
* @decorator `@Serializable()` | ||
*/ | ||
declare class StormDate extends StormDateTime { | ||
/** | ||
* The current function returns a new DateTime object with the current date and time | ||
* @returns A new instance of DateTime with the current date and time. | ||
*/ | ||
static now(): number; | ||
/** | ||
* The current function returns a new DateTime object with the current date and time | ||
* @returns A new instance of DateTime with the current date and time. | ||
*/ | ||
static current(): StormDate; | ||
/** | ||
* Creates a new StormDate object with the given date and time | ||
* | ||
* @param date - The date to use | ||
* @param options - The options to use | ||
* @returns A new instance of DateTime with the given date and time. | ||
*/ | ||
static create: (date?: DateTimeInput, options?: DateTimeOptions) => StormDate; | ||
constructor(dateTime?: DateTimeInput, options?: DateTimeOptions); | ||
/** | ||
* Validate the input date value | ||
* | ||
* @param dateTime - The date value to validate | ||
* @param options - The options to use | ||
* @returns A boolean representing whether the value is a valid *date-time* | ||
*/ | ||
protected validate(dateTime?: DateTimeInput, options?: DateTimeOptions): boolean; | ||
/** | ||
* Gets the hours in a date, using local time. | ||
*/ | ||
getHours(): number; | ||
/** | ||
* Gets the hours value in a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCHours(): number; | ||
/** | ||
* Gets the minutes of a Date object, using local time. | ||
*/ | ||
getMinutes(): number; | ||
/** | ||
* Gets the minutes of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMinutes(): number; | ||
/** | ||
* Gets the seconds of a Date object, using local time. | ||
*/ | ||
getSeconds(): number; | ||
/** | ||
* Gets the seconds of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCSeconds(): number; | ||
/** | ||
* Gets the milliseconds of a Date, using local time. | ||
*/ | ||
getMilliseconds(): number; | ||
/** | ||
* Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMilliseconds(): number; | ||
/** | ||
* Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). | ||
*/ | ||
getTimezoneOffset(): number; | ||
/** | ||
* It returns the duration between two dates. | ||
* | ||
* @param dateTimeTo - DateTime = DateTime.current | ||
* @returns A duration object. | ||
*/ | ||
getDuration(dateTimeTo?: StormDateTime): Temporal.Duration; | ||
} | ||
export { StormDate } | ||
export { StormDate as StormDate_alias_1 } | ||
/** | ||
* A wrapper of the and Date class used by Storm Software to provide Date-Time values | ||
* | ||
* @returns A random UUID string | ||
* @decorator `@Serializable()` | ||
*/ | ||
declare function uuid(): string; | ||
export { uuid } | ||
export { uuid as uuid_alias_1 } | ||
declare class StormDateTime extends Date { | ||
#private; | ||
/** | ||
* The current function returns a new StormDateTime object with the current date and time | ||
* @returns A new instance of StormDateTime with the current date and time. | ||
*/ | ||
static now(): number; | ||
/** | ||
* The current function returns a new StormDateTime object with the current date and time | ||
* @returns A new instance of StormDateTime with the current date and time. | ||
*/ | ||
static current(): StormDateTime; | ||
/** | ||
* Creates a new instance of StormDateTime from a string with a specified format. | ||
* | ||
* @param dateTime - The input value used to determine the current date and time | ||
* @param options - The options to use when creating the StormDateTime object | ||
* @returns A new instance of StormDateTime with the current date and time. | ||
*/ | ||
static create: (dateTime?: DateTimeInput, options?: DateTimeOptions) => StormDateTime; | ||
constructor(dateTime?: DateTimeInput, options?: DateTimeOptions); | ||
/** | ||
* An accessor that returns the epoch milliseconds of the DateTime object | ||
*/ | ||
get epochMilliseconds(): number; | ||
/** | ||
* An accessor that returns the `Temporal.Instant` object of the DateTime object | ||
*/ | ||
get instant(): Temporal.Instant; | ||
/** | ||
* An accessor that sets the `Temporal.Instant` object of the DateTime object | ||
*/ | ||
protected set instant(_instant: Temporal.Instant); | ||
/** | ||
* An accessor that returns the `Temporal.ZonedDateTime` object of the DateTime object | ||
*/ | ||
get zonedDateTime(): Temporal.ZonedDateTime; | ||
/** | ||
* An accessor that sets the `Temporal.ZonedDateTime` object of the DateTime object | ||
*/ | ||
protected set zonedDateTime(_zonedDateTime: Temporal.ZonedDateTime); | ||
/** | ||
* An accessor that returns the `calendarId` string of the DateTime object | ||
*/ | ||
get calendarId(): string; | ||
/** | ||
* An accessor that returns the `timeZoneId` string of the DateTime object | ||
*/ | ||
get timeZoneId(): string; | ||
/** | ||
* An accessor that returns the `isValid` boolean of the DateTime object | ||
*/ | ||
get isValid(): boolean; | ||
/** | ||
* Returns the input value used to create the DateTime object | ||
*/ | ||
get input(): DateTimeInput; | ||
/** | ||
* Returns the options used to create the DateTime object | ||
*/ | ||
get options(): DateTimeOptions; | ||
/** | ||
* Validate the input date value | ||
* | ||
* @param dateTime - The date value to validate | ||
* @param options - The options to use | ||
* @returns A boolean representing whether the value is a valid *date-time* | ||
*/ | ||
protected validate(dateTime?: DateTimeInput, options?: DateTimeOptions): boolean; | ||
/** | ||
* Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. | ||
*/ | ||
getTime(): number; | ||
/** | ||
* Gets the year, using local time. | ||
*/ | ||
getFullYear(): number; | ||
/** | ||
* Gets the year using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCFullYear(): number; | ||
/** | ||
* Gets the month, using local time. | ||
*/ | ||
getMonth(): number; | ||
/** | ||
* Gets the month of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMonth(): number; | ||
/** | ||
* Gets the day-of-the-month, using local time. | ||
*/ | ||
getDate(): number; | ||
/** | ||
* Gets the day-of-the-month, using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCDate(): number; | ||
/** | ||
* Gets the day of the week, using local time. | ||
*/ | ||
getDay(): number; | ||
/** | ||
* Gets the day of the week using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCDay(): number; | ||
/** | ||
* Gets the hours in a date, using local time. | ||
*/ | ||
getHours(): number; | ||
/** | ||
* Gets the hours value in a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCHours(): number; | ||
/** | ||
* Gets the minutes of a Date object, using local time. | ||
*/ | ||
getMinutes(): number; | ||
/** | ||
* Gets the minutes of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMinutes(): number; | ||
/** | ||
* Gets the seconds of a Date object, using local time. | ||
*/ | ||
getSeconds(): number; | ||
/** | ||
* Gets the seconds of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCSeconds(): number; | ||
/** | ||
* Gets the milliseconds of a Date, using local time. | ||
*/ | ||
getMilliseconds(): number; | ||
/** | ||
* Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMilliseconds(): number; | ||
/** | ||
* Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). | ||
*/ | ||
getTimezoneOffset(): number; | ||
/** | ||
* Sets the date and time value in the Date object. | ||
* @param time - A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT. | ||
*/ | ||
setTime(time: number): number; | ||
/** | ||
* Sets the milliseconds value in the Date object using local time. | ||
* @param millisecond - A numeric value equal to the millisecond value. | ||
*/ | ||
setMilliseconds(millisecond: number): number; | ||
/** | ||
* Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC). | ||
* @param millisecond - A numeric value equal to the millisecond value. | ||
*/ | ||
setUTCMilliseconds(millisecond: number): number; | ||
/** | ||
* Sets the seconds value in the Date object using local time. | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setSeconds(second: number, millisecond?: number): number; | ||
/** | ||
* Sets the seconds value in the Date object using Universal Coordinated Time (UTC). | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setUTCSeconds(second: number, millisecond?: number): number; | ||
/** | ||
* Sets the minutes value in the Date object using local time. | ||
* @param minute - A numeric value equal to the minutes value. | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setMinutes(minute: number, second?: number, millisecond?: number): number; | ||
/** | ||
* Sets the minutes value in the Date object using Universal Coordinated Time (UTC). | ||
* @param minute - A numeric value equal to the minutes value. | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setUTCMinutes(minute: number, second?: number, millisecond?: number): number; | ||
/** | ||
* Sets the hour value in the Date object using local time. | ||
* | ||
* @param hour - A numeric value equal to the hours value. | ||
* @param minute - A numeric value equal to the minutes value. | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setHours(hour: number, minute: number, second?: number, millisecond?: number): number; | ||
/** | ||
* Sets the hours value in the Date object using Universal Coordinated Time (UTC). | ||
* | ||
* @param hour - A numeric value equal to the hours value. | ||
* @param minute - A numeric value equal to the minutes value. | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setUTCHours(hour: number, minute: number, second?: number, millisecond?: number): number; | ||
/** | ||
* Sets the numeric day-of-the-month value of the Date object using local time. | ||
* | ||
* @param day - A numeric value equal to the day of the month. | ||
*/ | ||
setDate(day: number): number; | ||
/** | ||
* Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC). | ||
* | ||
* @param day - A numeric value equal to the day of the month. | ||
*/ | ||
setUTCDate(day: number): number; | ||
/** | ||
* Sets the month value in the Date object using local time. | ||
* | ||
* @param month - A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. | ||
* @param day - A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used. | ||
*/ | ||
setMonth(month: number, day?: number): number; | ||
/** | ||
* Sets the month value in the Date object using Universal Coordinated Time (UTC). | ||
* | ||
* @param month - A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. | ||
* @param day - A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used. | ||
*/ | ||
setUTCMonth(month: number, day?: number): number; | ||
/** | ||
* Sets the year of the Date object using local time. | ||
* @param year - A numeric value for the year. | ||
* @param month - A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified. | ||
* @param day - A numeric value equal for the day of the month. | ||
*/ | ||
setFullYear(year: number, month?: number, day?: number): number; | ||
/** | ||
* Sets the year value in the Date object using Universal Coordinated Time (UTC). | ||
* | ||
* @param year - A numeric value equal to the year. | ||
* @param month - A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied. | ||
* @param day - A numeric value equal to the day of the month. | ||
*/ | ||
setUTCFullYear(year: number, month?: number, day?: number): number; | ||
/** | ||
* It returns a plain date object from a DateTime object | ||
* | ||
* @returns A PlainDate object. | ||
*/ | ||
getPlainDate(): StormDateTime; | ||
/** | ||
* `getPlainTime` returns a `PlainTime` object from a `DateTime` object | ||
* | ||
* @returns A PlainTime object. | ||
*/ | ||
getPlainTime(): StormDateTime; | ||
/** | ||
* It returns the duration between two dates. | ||
* | ||
* @param dateTimeTo - DateTime = DateTime.current | ||
* @returns A duration object. | ||
*/ | ||
since(dateTimeTo?: StormDateTime): Temporal.Duration; | ||
/** | ||
* It returns the duration between two date times. | ||
* | ||
* @param dateTimeTo - DateTime = DateTime.current | ||
* @returns A duration object. | ||
*/ | ||
getDuration(dateTimeTo?: StormDateTime): Temporal.Duration; | ||
} | ||
export { StormDateTime } | ||
export { StormDateTime as StormDateTime_alias_1 } | ||
/** | ||
* A wrapper of the and Date class used by Storm Software to provide Date-Time values | ||
* | ||
* @decorator `@Serializable()` | ||
*/ | ||
declare class StormTime extends StormDateTime { | ||
/** | ||
* The current function returns a new DateTime object with the current date and time | ||
* @returns A new instance of DateTime with the current date and time. | ||
*/ | ||
static now(): number; | ||
/** | ||
* The current function returns a new DateTime object with the current date and time | ||
* @returns A new instance of DateTime with the current date and time. | ||
*/ | ||
static current(): StormTime; | ||
/** | ||
* Creates a new instance of DateTime from a string with a specified format. | ||
* | ||
* @param time - The input value used to determine the current time | ||
* @param options - The options to use | ||
* @returns A new instance of StormTime with the time provided in the time parameter. | ||
*/ | ||
static create: (time?: DateTimeInput, options?: DateTimeOptions) => StormTime; | ||
constructor(dateTime?: DateTimeInput, options?: DateTimeOptions); | ||
/** | ||
* Validate the input time value | ||
* | ||
* @param dateTime - The date value to validate | ||
* @param options - The options to use | ||
* @returns A boolean representing whether the value is a valid *date-time* | ||
*/ | ||
protected validate(dateTime?: DateTimeInput, options?: DateTimeOptions): boolean; | ||
/** | ||
* Gets the year, using local time. | ||
*/ | ||
getFullYear(): number; | ||
/** | ||
* Gets the year using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCFullYear(): number; | ||
/** | ||
* Gets the month, using local time. | ||
*/ | ||
getMonth(): number; | ||
/** | ||
* Gets the month of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMonth(): number; | ||
/** | ||
* Gets the day-of-the-month, using local time. | ||
*/ | ||
getDate(): number; | ||
/** | ||
* Gets the day-of-the-month, using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCDate(): number; | ||
/** | ||
* Gets the day of the week, using local time. | ||
*/ | ||
getDay(): number; | ||
/** | ||
* Gets the day of the week using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCDay(): number; | ||
/** | ||
* It returns the duration between two dates. | ||
* | ||
* @param dateTimeTo - DateTime = DateTime.current | ||
* @returns A duration object. | ||
*/ | ||
getDuration(dateTimeTo?: StormTime): Temporal.Duration; | ||
} | ||
export { StormTime } | ||
export { StormTime as StormTime_alias_1 } | ||
declare function validateDate(value: DateTimeInput, options?: DateTimeOptions): boolean; | ||
export { validateDate } | ||
export { validateDate as validateDate_alias_1 } | ||
export { validateDate as validateDate_alias_2 } | ||
/** | ||
* Type-check to determine if `value` is a valid *date-time* | ||
* @param value - The value to check | ||
* @param options - The options to use | ||
* @returns A boolean representing whether the value is a valid *date-time* | ||
*/ | ||
declare function validateDateTime(value: DateTimeInput, options?: DateTimeOptions): boolean; | ||
export { validateDateTime } | ||
export { validateDateTime as validateDateTime_alias_1 } | ||
export { validateDateTime as validateDateTime_alias_2 } | ||
declare function validateTime(value?: DateTimeInput, options?: DateTimeOptions): boolean; | ||
export { validateTime } | ||
export { validateTime as validateTime_alias_1 } | ||
export { validateTime as validateTime_alias_2 } | ||
export { } |
@@ -1,177 +0,775 @@ | ||
declare const Crypto_2: Crypto | undefined; | ||
export { Crypto_2 as Crypto } | ||
import { Temporal } from '@js-temporal/polyfill'; | ||
declare type DateTimeErrorCode = ErrorCode | "datetime_create_failure" | "ms_format" | "formatting_failure"; | ||
declare const DateTimeErrorCode: { | ||
datetime_create_failure: DateTimeErrorCode; | ||
ms_format: DateTimeErrorCode; | ||
formatting_failure: DateTimeErrorCode; | ||
success: ErrorCode; | ||
missing_issue_code: ErrorCode; | ||
invalid_config: ErrorCode; | ||
failed_to_load_file: ErrorCode; | ||
missing_context: ErrorCode; | ||
record_not_found: ErrorCode; | ||
required_field_missing: ErrorCode; | ||
database_query_error: ErrorCode; | ||
model_validation_error: ErrorCode; | ||
field_validation_error: ErrorCode; | ||
invalid_parameter: ErrorCode; | ||
invalid_request: ErrorCode; | ||
type_error: ErrorCode; | ||
processing_error: ErrorCode; | ||
internal_server_error: ErrorCode; | ||
user_not_logged_in: ErrorCode; | ||
unknown_cause: ErrorCode; | ||
}; | ||
export { DateTimeErrorCode } | ||
export { DateTimeErrorCode as DateTimeErrorCode_alias_1 } | ||
/** | ||
* Generate a random CUID | ||
* | ||
* @example | ||
* ```typescript | ||
* | ||
* // Generate a random CUID | ||
* const id = cuid(); | ||
* ``` | ||
* | ||
* @returns A random CUID string | ||
* The input types that can be used to create a DateTime object | ||
*/ | ||
declare function cuid(): string; | ||
export { cuid } | ||
export { cuid as cuid_alias_1 } | ||
declare type DateTimeInput = StormDateTime | Temporal.Instant | Date | string | number | bigint | null | undefined; | ||
export { DateTimeInput } | ||
export { DateTimeInput as DateTimeInput_alias_1 } | ||
/** | ||
* A deconstructed snowflake and the details around it's creation. | ||
* The options to use when creating a new DateTime object | ||
*/ | ||
declare interface DeconstructedSnowflake { | ||
declare interface DateTimeOptions { | ||
/** | ||
* Snowflake deconstructed from | ||
* The time zone to use. If not specified, the default time zone for the runtime is used. | ||
*/ | ||
snowflake: SnowflakeResolvable; | ||
timeZone?: Temporal.TimeZoneLike; | ||
/** | ||
* The timestamp the snowflake was generated | ||
* The calendar to use. If not specified, the default calendar for the runtime is used. | ||
*/ | ||
timestamp: number; | ||
calendar?: Temporal.CalendarLike; | ||
/** | ||
* The shard_id used when generating | ||
* If false, the current date and time is defaulted when undefined or null is passed. If true, the current date and time is not defaulted. | ||
* | ||
* @default false | ||
*/ | ||
shard_id: number; | ||
/** | ||
* The increment of this snowflake | ||
*/ | ||
sequence: number; | ||
/** | ||
* The 64Bit snowflake binary string | ||
*/ | ||
binary: string; | ||
skipDefaulting?: boolean; | ||
} | ||
export { DeconstructedSnowflake } | ||
export { DeconstructedSnowflake as DeconstructedSnowflake_alias_1 } | ||
export { DateTimeOptions } | ||
export { DateTimeOptions as DateTimeOptions_alias_1 } | ||
/** | ||
* Deconstruct a snowflake to its values using the `epoch`. | ||
* Deserializes a string into a StormDate | ||
* | ||
* @param snowflake - Snowflake to deconstruct | ||
* @returns Either the DeconstructedSnowflake object | ||
* @param utcString - The date to deserialize | ||
* @returns The deserialized date | ||
*/ | ||
declare function deconstructSnowflake(snowflake: SnowflakeResolvable): DeconstructedSnowflake; | ||
export { deconstructSnowflake } | ||
export { deconstructSnowflake as deconstructSnowflake_alias_1 } | ||
declare function deserializeStormDate(utcString: JsonValue): StormDate; | ||
export { deserializeStormDate } | ||
export { deserializeStormDate as deserializeStormDate_alias_1 } | ||
export { deserializeStormDate as deserializeStormDate_alias_2 } | ||
/** | ||
* Options passed to the `generate` function to create a snowflake identifier. | ||
* Deserializes a string into a StormDateTime | ||
* | ||
* @param utcString - The dateTime to deserialize | ||
* @returns The deserialized dateTime | ||
*/ | ||
declare interface ISnowflakeGeneratorOptions { | ||
/** | ||
* The id of the shard running this generator. | ||
* | ||
* @default 1 | ||
*/ | ||
shardId: number; | ||
/** | ||
* The epoch to use for the snowflake. | ||
* | ||
* @remarks | ||
* This is the time in milliseconds since 1 January 1970 00:00:00 UTC. | ||
* | ||
* @default 1420070400000 (Date.UTC(1970, 0, 1).valueOf()) | ||
*/ | ||
epoch: number; | ||
/** | ||
* The current timestamp to use for the snowflake. | ||
* | ||
* @default Date.now() | ||
*/ | ||
timestamp: number | Date; | ||
} | ||
export { ISnowflakeGeneratorOptions } | ||
export { ISnowflakeGeneratorOptions as ISnowflakeGeneratorOptions_alias_1 } | ||
declare function deserializeStormDateTime(utcString: JsonValue): StormDateTime; | ||
export { deserializeStormDateTime } | ||
export { deserializeStormDateTime as deserializeStormDateTime_alias_1 } | ||
export { deserializeStormDateTime as deserializeStormDateTime_alias_2 } | ||
/** | ||
* Check if a snowflake string Id is valid. | ||
* Deserializes a string into a StormTime | ||
* | ||
* @param snowflake - Snowflake to check | ||
* @returns Whether the snowflake is valid | ||
* @param utcString - The time to deserialize | ||
* @returns The deserialized time | ||
*/ | ||
declare function isValidSnowflake(snowflake: string): boolean; | ||
export { isValidSnowflake } | ||
export { isValidSnowflake as isValidSnowflake_alias_1 } | ||
declare function deserializeStormTime(utcString: JsonValue): StormTime; | ||
export { deserializeStormTime } | ||
export { deserializeStormTime as deserializeStormTime_alias_1 } | ||
export { deserializeStormTime as deserializeStormTime_alias_2 } | ||
declare type ErrorCode = | ||
| "success" | ||
| "missing_issue_code" | ||
| "invalid_config" | ||
| "failed_to_load_file" | ||
| "missing_context" | ||
| "record_not_found" | ||
| "required_field_missing" | ||
| "database_query_error" | ||
| "model_validation_error" | ||
| "field_validation_error" | ||
| "invalid_parameter" | ||
| "invalid_request" | ||
| "type_error" | ||
| "processing_error" | ||
| "internal_server_error" | ||
| "user_not_logged_in" | ||
| "unknown_cause"; | ||
declare const ErrorCode = { | ||
success: "success" as ErrorCode, | ||
missing_issue_code: "missing_issue_code" as ErrorCode, | ||
invalid_config: "invalid_config" as ErrorCode, | ||
failed_to_load_file: "failed_to_load_file" as ErrorCode, | ||
missing_context: "missing_context" as ErrorCode, | ||
record_not_found: "record_not_found" as ErrorCode, | ||
required_field_missing: "required_field_missing" as ErrorCode, | ||
database_query_error: "database_query_error" as ErrorCode, | ||
model_validation_error: "model_validation_error" as ErrorCode, | ||
field_validation_error: "field_validation_error" as ErrorCode, | ||
invalid_parameter: "invalid_parameter" as ErrorCode, | ||
invalid_request: "invalid_request" as ErrorCode, | ||
type_error: "type_error" as ErrorCode, | ||
processing_error: "processing_error" as ErrorCode, | ||
internal_server_error: "internal_server_error" as ErrorCode, | ||
user_not_logged_in: "user_not_logged_in" as ErrorCode, | ||
unknown_cause: "unknown_cause" as ErrorCode | ||
}; | ||
/** | ||
* Generate a random integer | ||
* Format a date field | ||
* | ||
* @param maximum The maximum value (inclusive) | ||
* @param minimum The minimum value (inclusive) | ||
* @returns A random integer | ||
* @param dateTime - The date time to format | ||
* @returns The formatted date | ||
*/ | ||
declare const randomInteger: (maximum: number, minimum?: number) => number; | ||
export { randomInteger } | ||
export { randomInteger as randomInteger_alias_1 } | ||
declare const formatDate: (dateTime?: StormDateTime, options?: Partial<Temporal.ToStringPrecisionOptions & Temporal.ShowCalendarOption>) => string; | ||
export { formatDate } | ||
export { formatDate as formatDate_alias_1 } | ||
export { formatDate as formatDate_alias_2 } | ||
/** | ||
* Generate a random letter | ||
* Format a date time field | ||
* | ||
* @param random The random number generator | ||
* @returns A random letter | ||
* @param dateTime - The date time to format | ||
* @param options - The options to use | ||
* @returns The formatted date time | ||
*/ | ||
declare const randomLetter: (random?: () => number) => string | undefined; | ||
export { randomLetter } | ||
export { randomLetter as randomLetter_alias_1 } | ||
declare const formatDateTime: (dateTime?: StormDateTime, options?: Partial<Temporal.ToStringPrecisionOptions & Temporal.ShowCalendarOption>) => string; | ||
export { formatDateTime } | ||
export { formatDateTime as formatDateTime_alias_1 } | ||
export { formatDateTime as formatDateTime_alias_2 } | ||
/** | ||
* Generate a snowflake identifier. | ||
* Format a date time field into ISO format | ||
* | ||
* @param dateTime - The date time to format | ||
* @param options - The options to use | ||
* @returns The formatted date time | ||
*/ | ||
declare const formatDateTimeISO: (dateTime?: StormDateTime | null, options?: Partial<Temporal.ToStringPrecisionOptions & Temporal.ShowCalendarOption>) => string; | ||
export { formatDateTimeISO } | ||
export { formatDateTimeISO as formatDateTimeISO_alias_1 } | ||
export { formatDateTimeISO as formatDateTimeISO_alias_2 } | ||
/** | ||
* Formats a duration or a date-time since another date-time. | ||
* | ||
* @remarks | ||
* Snowflakes are 64-bit unsigned integers that are roughly time-ordered. | ||
* An example output when the options.verbose is true: | ||
* 4 days 3 hours 2 minutes 1 second 0 milliseconds | ||
* | ||
* @example | ||
* ```typescript | ||
* An example output when the options.verbose is false: | ||
* 4d 3h 2m 1s 0ms | ||
* | ||
* // Generate a snowflake with the default options | ||
* const id1 = snowflake(); | ||
* @param dateTimeOrDuration - The date-time or duration to format | ||
* @param dateTimeTo - The date-time to format since | ||
* @param options - The options to use | ||
* @returns The formatted time since | ||
*/ | ||
declare const formatSince: (dateTimeOrDuration: StormDateTime | Temporal.Duration, dateTimeTo?: StormDateTime, options?: FormatSinceOptions) => string; | ||
export { formatSince } | ||
export { formatSince as formatSince_alias_1 } | ||
export { formatSince as formatSince_alias_2 } | ||
/** | ||
* Options for the `formatSince` method | ||
*/ | ||
declare type FormatSinceOptions = { | ||
/** | ||
* Whether to use colon notation | ||
*/ | ||
colonNotation?: boolean; | ||
/** | ||
* Whether to use compact notation | ||
*/ | ||
compact?: boolean; | ||
/** | ||
* Whether to format sub-milliseconds | ||
*/ | ||
formatSubMilliseconds?: boolean; | ||
/** | ||
* Whether to keep decimals on whole seconds | ||
*/ | ||
keepDecimalsOnWholeSeconds?: boolean; | ||
/** | ||
* The number of decimal digits to use for milliseconds | ||
*/ | ||
millisecondsDecimalDigits?: number; | ||
/** | ||
* The number of decimal digits to use for seconds | ||
*/ | ||
secondsDecimalDigits?: number; | ||
/** | ||
* Whether to separate milliseconds | ||
*/ | ||
separateMilliseconds?: boolean; | ||
/** | ||
* The number of units to include | ||
*/ | ||
unitCount?: number; | ||
/** | ||
* Whether to use verbose notation | ||
*/ | ||
verbose?: boolean; | ||
}; | ||
export { FormatSinceOptions } | ||
export { FormatSinceOptions as FormatSinceOptions_alias_1 } | ||
export { FormatSinceOptions as FormatSinceOptions_alias_2 } | ||
/** | ||
* Format a time field | ||
* | ||
* // Generate a snowflake with a custom shard id | ||
* const id2 = snowflake({ shardId: 2 }); | ||
* @param dateTime - The date time to format | ||
* @returns The formatted time string | ||
*/ | ||
declare const formatTime: (dateTime?: StormDateTime, options?: Partial<Temporal.ToStringPrecisionOptions & Temporal.ShowCalendarOption>) => string; | ||
export { formatTime } | ||
export { formatTime as formatTime_alias_1 } | ||
export { formatTime as formatTime_alias_2 } | ||
/** | ||
* Type-check to determine if `obj` is a `DateTime` object | ||
* | ||
* // Generate a snowflake with a custom shard id and timestamp | ||
* const id3 = snowflake({ shardId: 3, timestamp: new Date("2021-01-01") }); | ||
* `isDateTime` returns true if the object passed to it has a `_symbol` property that is equal to | ||
* `DATE_TIME_SYMBOL` | ||
* | ||
* ``` | ||
* @param obj - the object to check | ||
* @returns The function isDateTime is returning a boolean value. | ||
*/ | ||
declare function isDateTime(obj: unknown): obj is StormDateTime; | ||
export { isDateTime } | ||
export { isDateTime as isDateTime_alias_1 } | ||
export { isDateTime as isDateTime_alias_2 } | ||
/** | ||
* Type-check to determine if `value` is a `Temporal.Instant` object | ||
* | ||
* @param timestamp - The timestamp to use | ||
* @param shardId - The shard id to use | ||
* @returns A snowflake | ||
* @param value - The value to check | ||
* @returns The function isInstant is returning a boolean value. | ||
*/ | ||
declare function snowflake({ shardId, epoch, timestamp }?: ISnowflakeGeneratorOptions): string; | ||
export { snowflake } | ||
export { snowflake as snowflake_alias_1 } | ||
declare function isInstant(value: unknown): value is Temporal.Instant; | ||
export { isInstant } | ||
export { isInstant as isInstant_alias_1 } | ||
export { isInstant as isInstant_alias_2 } | ||
declare interface JsonArray extends Array<JsonValue> {} | ||
declare interface JsonObject { | ||
[key: string]: JsonValue; | ||
} | ||
declare type JsonValue = PrimitiveJsonValue | JsonArray | JsonObject; | ||
declare type PrimitiveJsonValue = string | number | boolean | undefined | null; | ||
declare const RFC_3339_DATE_REGEX: RegExp; | ||
export { RFC_3339_DATE_REGEX } | ||
export { RFC_3339_DATE_REGEX as RFC_3339_DATE_REGEX_alias_1 } | ||
declare const RFC_3339_DATETIME_REGEX: RegExp; | ||
export { RFC_3339_DATETIME_REGEX } | ||
export { RFC_3339_DATETIME_REGEX as RFC_3339_DATETIME_REGEX_alias_1 } | ||
declare const RFC_3339_TIME_REGEX: RegExp; | ||
export { RFC_3339_TIME_REGEX } | ||
export { RFC_3339_TIME_REGEX as RFC_3339_TIME_REGEX_alias_1 } | ||
/** | ||
* Resolvable value types for a valid Snowflake: | ||
* * string | ||
* * number | ||
* * bigint | ||
* Serializes a StormDate into a string | ||
* | ||
* @type {SnowflakeResolvable} | ||
* @param date - The date to serialize | ||
* @returns The serialized date | ||
*/ | ||
declare type SnowflakeResolvable = string; | ||
export { SnowflakeResolvable } | ||
export { SnowflakeResolvable as SnowflakeResolvable_alias_1 } | ||
declare function serializeStormDate(date: StormDate): string; | ||
export { serializeStormDate } | ||
export { serializeStormDate as serializeStormDate_alias_1 } | ||
export { serializeStormDate as serializeStormDate_alias_2 } | ||
/** | ||
* Generate a random UUID | ||
* Serializes a StormDateTime into a string | ||
* | ||
* @remarks | ||
* This helper function is a wrapper around the `crypto.randomUUID` function. You can find more information about this type of identifier in this {@link https://en.wikipedia.org/wiki/Universally_unique_identifier article} | ||
* @param dateTime - The dateTime to serialize | ||
* @returns The serialized dateTime | ||
*/ | ||
declare function serializeStormDateTime(dateTime: StormDateTime): string; | ||
export { serializeStormDateTime } | ||
export { serializeStormDateTime as serializeStormDateTime_alias_1 } | ||
export { serializeStormDateTime as serializeStormDateTime_alias_2 } | ||
/** | ||
* Serializes a StormTime into a string | ||
* | ||
* @example | ||
* ```typescript | ||
* @param date - The time to serialize | ||
* @returns The serialized time | ||
*/ | ||
declare function serializeStormTime(date: StormTime): string; | ||
export { serializeStormTime } | ||
export { serializeStormTime as serializeStormTime_alias_1 } | ||
export { serializeStormTime as serializeStormTime_alias_2 } | ||
/** | ||
* A wrapper of the and Date class used by Storm Software to provide Date-Time values | ||
* | ||
* // Generate a random UUID | ||
* const id = uuid(); | ||
* ``` | ||
* @decorator `@Serializable()` | ||
*/ | ||
declare class StormDate extends StormDateTime { | ||
/** | ||
* The current function returns a new DateTime object with the current date and time | ||
* @returns A new instance of DateTime with the current date and time. | ||
*/ | ||
static now(): number; | ||
/** | ||
* The current function returns a new DateTime object with the current date and time | ||
* @returns A new instance of DateTime with the current date and time. | ||
*/ | ||
static current(): StormDate; | ||
/** | ||
* Creates a new StormDate object with the given date and time | ||
* | ||
* @param date - The date to use | ||
* @param options - The options to use | ||
* @returns A new instance of DateTime with the given date and time. | ||
*/ | ||
static create: (date?: DateTimeInput, options?: DateTimeOptions) => StormDate; | ||
constructor(dateTime?: DateTimeInput, options?: DateTimeOptions); | ||
/** | ||
* Validate the input date value | ||
* | ||
* @param dateTime - The date value to validate | ||
* @param options - The options to use | ||
* @returns A boolean representing whether the value is a valid *date-time* | ||
*/ | ||
protected validate(dateTime?: DateTimeInput, options?: DateTimeOptions): boolean; | ||
/** | ||
* Gets the hours in a date, using local time. | ||
*/ | ||
getHours(): number; | ||
/** | ||
* Gets the hours value in a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCHours(): number; | ||
/** | ||
* Gets the minutes of a Date object, using local time. | ||
*/ | ||
getMinutes(): number; | ||
/** | ||
* Gets the minutes of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMinutes(): number; | ||
/** | ||
* Gets the seconds of a Date object, using local time. | ||
*/ | ||
getSeconds(): number; | ||
/** | ||
* Gets the seconds of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCSeconds(): number; | ||
/** | ||
* Gets the milliseconds of a Date, using local time. | ||
*/ | ||
getMilliseconds(): number; | ||
/** | ||
* Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMilliseconds(): number; | ||
/** | ||
* Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). | ||
*/ | ||
getTimezoneOffset(): number; | ||
/** | ||
* It returns the duration between two dates. | ||
* | ||
* @param dateTimeTo - DateTime = DateTime.current | ||
* @returns A duration object. | ||
*/ | ||
getDuration(dateTimeTo?: StormDateTime): Temporal.Duration; | ||
} | ||
export { StormDate } | ||
export { StormDate as StormDate_alias_1 } | ||
/** | ||
* A wrapper of the and Date class used by Storm Software to provide Date-Time values | ||
* | ||
* @returns A random UUID string | ||
* @decorator `@Serializable()` | ||
*/ | ||
declare function uuid(): string; | ||
export { uuid } | ||
export { uuid as uuid_alias_1 } | ||
declare class StormDateTime extends Date { | ||
#private; | ||
/** | ||
* The current function returns a new StormDateTime object with the current date and time | ||
* @returns A new instance of StormDateTime with the current date and time. | ||
*/ | ||
static now(): number; | ||
/** | ||
* The current function returns a new StormDateTime object with the current date and time | ||
* @returns A new instance of StormDateTime with the current date and time. | ||
*/ | ||
static current(): StormDateTime; | ||
/** | ||
* Creates a new instance of StormDateTime from a string with a specified format. | ||
* | ||
* @param dateTime - The input value used to determine the current date and time | ||
* @param options - The options to use when creating the StormDateTime object | ||
* @returns A new instance of StormDateTime with the current date and time. | ||
*/ | ||
static create: (dateTime?: DateTimeInput, options?: DateTimeOptions) => StormDateTime; | ||
constructor(dateTime?: DateTimeInput, options?: DateTimeOptions); | ||
/** | ||
* An accessor that returns the epoch milliseconds of the DateTime object | ||
*/ | ||
get epochMilliseconds(): number; | ||
/** | ||
* An accessor that returns the `Temporal.Instant` object of the DateTime object | ||
*/ | ||
get instant(): Temporal.Instant; | ||
/** | ||
* An accessor that sets the `Temporal.Instant` object of the DateTime object | ||
*/ | ||
protected set instant(_instant: Temporal.Instant); | ||
/** | ||
* An accessor that returns the `Temporal.ZonedDateTime` object of the DateTime object | ||
*/ | ||
get zonedDateTime(): Temporal.ZonedDateTime; | ||
/** | ||
* An accessor that sets the `Temporal.ZonedDateTime` object of the DateTime object | ||
*/ | ||
protected set zonedDateTime(_zonedDateTime: Temporal.ZonedDateTime); | ||
/** | ||
* An accessor that returns the `calendarId` string of the DateTime object | ||
*/ | ||
get calendarId(): string; | ||
/** | ||
* An accessor that returns the `timeZoneId` string of the DateTime object | ||
*/ | ||
get timeZoneId(): string; | ||
/** | ||
* An accessor that returns the `isValid` boolean of the DateTime object | ||
*/ | ||
get isValid(): boolean; | ||
/** | ||
* Returns the input value used to create the DateTime object | ||
*/ | ||
get input(): DateTimeInput; | ||
/** | ||
* Returns the options used to create the DateTime object | ||
*/ | ||
get options(): DateTimeOptions; | ||
/** | ||
* Validate the input date value | ||
* | ||
* @param dateTime - The date value to validate | ||
* @param options - The options to use | ||
* @returns A boolean representing whether the value is a valid *date-time* | ||
*/ | ||
protected validate(dateTime?: DateTimeInput, options?: DateTimeOptions): boolean; | ||
/** | ||
* Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. | ||
*/ | ||
getTime(): number; | ||
/** | ||
* Gets the year, using local time. | ||
*/ | ||
getFullYear(): number; | ||
/** | ||
* Gets the year using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCFullYear(): number; | ||
/** | ||
* Gets the month, using local time. | ||
*/ | ||
getMonth(): number; | ||
/** | ||
* Gets the month of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMonth(): number; | ||
/** | ||
* Gets the day-of-the-month, using local time. | ||
*/ | ||
getDate(): number; | ||
/** | ||
* Gets the day-of-the-month, using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCDate(): number; | ||
/** | ||
* Gets the day of the week, using local time. | ||
*/ | ||
getDay(): number; | ||
/** | ||
* Gets the day of the week using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCDay(): number; | ||
/** | ||
* Gets the hours in a date, using local time. | ||
*/ | ||
getHours(): number; | ||
/** | ||
* Gets the hours value in a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCHours(): number; | ||
/** | ||
* Gets the minutes of a Date object, using local time. | ||
*/ | ||
getMinutes(): number; | ||
/** | ||
* Gets the minutes of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMinutes(): number; | ||
/** | ||
* Gets the seconds of a Date object, using local time. | ||
*/ | ||
getSeconds(): number; | ||
/** | ||
* Gets the seconds of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCSeconds(): number; | ||
/** | ||
* Gets the milliseconds of a Date, using local time. | ||
*/ | ||
getMilliseconds(): number; | ||
/** | ||
* Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMilliseconds(): number; | ||
/** | ||
* Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). | ||
*/ | ||
getTimezoneOffset(): number; | ||
/** | ||
* Sets the date and time value in the Date object. | ||
* @param time - A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT. | ||
*/ | ||
setTime(time: number): number; | ||
/** | ||
* Sets the milliseconds value in the Date object using local time. | ||
* @param millisecond - A numeric value equal to the millisecond value. | ||
*/ | ||
setMilliseconds(millisecond: number): number; | ||
/** | ||
* Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC). | ||
* @param millisecond - A numeric value equal to the millisecond value. | ||
*/ | ||
setUTCMilliseconds(millisecond: number): number; | ||
/** | ||
* Sets the seconds value in the Date object using local time. | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setSeconds(second: number, millisecond?: number): number; | ||
/** | ||
* Sets the seconds value in the Date object using Universal Coordinated Time (UTC). | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setUTCSeconds(second: number, millisecond?: number): number; | ||
/** | ||
* Sets the minutes value in the Date object using local time. | ||
* @param minute - A numeric value equal to the minutes value. | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setMinutes(minute: number, second?: number, millisecond?: number): number; | ||
/** | ||
* Sets the minutes value in the Date object using Universal Coordinated Time (UTC). | ||
* @param minute - A numeric value equal to the minutes value. | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setUTCMinutes(minute: number, second?: number, millisecond?: number): number; | ||
/** | ||
* Sets the hour value in the Date object using local time. | ||
* | ||
* @param hour - A numeric value equal to the hours value. | ||
* @param minute - A numeric value equal to the minutes value. | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setHours(hour: number, minute: number, second?: number, millisecond?: number): number; | ||
/** | ||
* Sets the hours value in the Date object using Universal Coordinated Time (UTC). | ||
* | ||
* @param hour - A numeric value equal to the hours value. | ||
* @param minute - A numeric value equal to the minutes value. | ||
* @param second - A numeric value equal to the seconds value. | ||
* @param millisecond - A numeric value equal to the milliseconds value. | ||
*/ | ||
setUTCHours(hour: number, minute: number, second?: number, millisecond?: number): number; | ||
/** | ||
* Sets the numeric day-of-the-month value of the Date object using local time. | ||
* | ||
* @param day - A numeric value equal to the day of the month. | ||
*/ | ||
setDate(day: number): number; | ||
/** | ||
* Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC). | ||
* | ||
* @param day - A numeric value equal to the day of the month. | ||
*/ | ||
setUTCDate(day: number): number; | ||
/** | ||
* Sets the month value in the Date object using local time. | ||
* | ||
* @param month - A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. | ||
* @param day - A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used. | ||
*/ | ||
setMonth(month: number, day?: number): number; | ||
/** | ||
* Sets the month value in the Date object using Universal Coordinated Time (UTC). | ||
* | ||
* @param month - A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. | ||
* @param day - A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used. | ||
*/ | ||
setUTCMonth(month: number, day?: number): number; | ||
/** | ||
* Sets the year of the Date object using local time. | ||
* @param year - A numeric value for the year. | ||
* @param month - A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified. | ||
* @param day - A numeric value equal for the day of the month. | ||
*/ | ||
setFullYear(year: number, month?: number, day?: number): number; | ||
/** | ||
* Sets the year value in the Date object using Universal Coordinated Time (UTC). | ||
* | ||
* @param year - A numeric value equal to the year. | ||
* @param month - A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied. | ||
* @param day - A numeric value equal to the day of the month. | ||
*/ | ||
setUTCFullYear(year: number, month?: number, day?: number): number; | ||
/** | ||
* It returns a plain date object from a DateTime object | ||
* | ||
* @returns A PlainDate object. | ||
*/ | ||
getPlainDate(): StormDateTime; | ||
/** | ||
* `getPlainTime` returns a `PlainTime` object from a `DateTime` object | ||
* | ||
* @returns A PlainTime object. | ||
*/ | ||
getPlainTime(): StormDateTime; | ||
/** | ||
* It returns the duration between two dates. | ||
* | ||
* @param dateTimeTo - DateTime = DateTime.current | ||
* @returns A duration object. | ||
*/ | ||
since(dateTimeTo?: StormDateTime): Temporal.Duration; | ||
/** | ||
* It returns the duration between two date times. | ||
* | ||
* @param dateTimeTo - DateTime = DateTime.current | ||
* @returns A duration object. | ||
*/ | ||
getDuration(dateTimeTo?: StormDateTime): Temporal.Duration; | ||
} | ||
export { StormDateTime } | ||
export { StormDateTime as StormDateTime_alias_1 } | ||
/** | ||
* A wrapper of the and Date class used by Storm Software to provide Date-Time values | ||
* | ||
* @decorator `@Serializable()` | ||
*/ | ||
declare class StormTime extends StormDateTime { | ||
/** | ||
* The current function returns a new DateTime object with the current date and time | ||
* @returns A new instance of DateTime with the current date and time. | ||
*/ | ||
static now(): number; | ||
/** | ||
* The current function returns a new DateTime object with the current date and time | ||
* @returns A new instance of DateTime with the current date and time. | ||
*/ | ||
static current(): StormTime; | ||
/** | ||
* Creates a new instance of DateTime from a string with a specified format. | ||
* | ||
* @param time - The input value used to determine the current time | ||
* @param options - The options to use | ||
* @returns A new instance of StormTime with the time provided in the time parameter. | ||
*/ | ||
static create: (time?: DateTimeInput, options?: DateTimeOptions) => StormTime; | ||
constructor(dateTime?: DateTimeInput, options?: DateTimeOptions); | ||
/** | ||
* Validate the input time value | ||
* | ||
* @param dateTime - The date value to validate | ||
* @param options - The options to use | ||
* @returns A boolean representing whether the value is a valid *date-time* | ||
*/ | ||
protected validate(dateTime?: DateTimeInput, options?: DateTimeOptions): boolean; | ||
/** | ||
* Gets the year, using local time. | ||
*/ | ||
getFullYear(): number; | ||
/** | ||
* Gets the year using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCFullYear(): number; | ||
/** | ||
* Gets the month, using local time. | ||
*/ | ||
getMonth(): number; | ||
/** | ||
* Gets the month of a Date object using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCMonth(): number; | ||
/** | ||
* Gets the day-of-the-month, using local time. | ||
*/ | ||
getDate(): number; | ||
/** | ||
* Gets the day-of-the-month, using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCDate(): number; | ||
/** | ||
* Gets the day of the week, using local time. | ||
*/ | ||
getDay(): number; | ||
/** | ||
* Gets the day of the week using Universal Coordinated Time (UTC). | ||
*/ | ||
getUTCDay(): number; | ||
/** | ||
* It returns the duration between two dates. | ||
* | ||
* @param dateTimeTo - DateTime = DateTime.current | ||
* @returns A duration object. | ||
*/ | ||
getDuration(dateTimeTo?: StormTime): Temporal.Duration; | ||
} | ||
export { StormTime } | ||
export { StormTime as StormTime_alias_1 } | ||
declare function validateDate(value: DateTimeInput, options?: DateTimeOptions): boolean; | ||
export { validateDate } | ||
export { validateDate as validateDate_alias_1 } | ||
export { validateDate as validateDate_alias_2 } | ||
/** | ||
* Type-check to determine if `value` is a valid *date-time* | ||
* @param value - The value to check | ||
* @param options - The options to use | ||
* @returns A boolean representing whether the value is a valid *date-time* | ||
*/ | ||
declare function validateDateTime(value: DateTimeInput, options?: DateTimeOptions): boolean; | ||
export { validateDateTime } | ||
export { validateDateTime as validateDateTime_alias_1 } | ||
export { validateDateTime as validateDateTime_alias_2 } | ||
declare function validateTime(value?: DateTimeInput, options?: DateTimeOptions): boolean; | ||
export { validateTime } | ||
export { validateTime as validateTime_alias_1 } | ||
export { validateTime as validateTime_alias_2 } | ||
export { } |
@@ -1,2 +0,2 @@ | ||
var t=Object.defineProperty,__name=(e,n)=>t(e,"name",{value:n,configurable:!0});function number(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function bytes(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function exists(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function output(t,e){bytes(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}__name(number,"number"),__name(bytes,"bytes"),__name(exists,"exists"),__name(output,"output");var e=BigInt(2**32-1),n=BigInt(32);function fromBig(t,r=!1){return r?{h:Number(t&e),l:Number(t>>n&e)}:{h:0|Number(t>>n&e),l:0|Number(t&e)}}function split(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let o=0;o<t.length;o++){const{h:i,l:s}=fromBig(t[o],e);[n[o],r[o]]=[i,s]}return[n,r]}__name(fromBig,"fromBig"),__name(split,"split");var r=__name(((t,e,n)=>t<<n|e>>>32-n),"rotlSH"),o=__name(((t,e,n)=>e<<n|t>>>32-n),"rotlSL"),i=__name(((t,e,n)=>e<<n-32|t>>>64-n),"rotlBH"),s=__name(((t,e,n)=>t<<n-32|e>>>64-n),"rotlBL"),a=__name((t=>t instanceof Uint8Array),"u8a"),u=__name((t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))),"u32");if(!(68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]))throw new Error("Non little-endian hardware is not supported");function utf8ToBytes(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}function toBytes(t){if("string"==typeof t&&(t=utf8ToBytes(t)),!a(t))throw new Error("expected Uint8Array, got "+typeof t);return t}__name(utf8ToBytes,"utf8ToBytes"),__name(toBytes,"toBytes");var c=class _Hash{clone(){return this._cloneInto()}};__name(c,"Hash");var h=c;function wrapConstructor(t){const e=__name((e=>t().update(toBytes(e)).digest()),"hashC"),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function wrapXOFConstructorWithOpts(t){const e=__name(((e,n)=>t(n).update(toBytes(e)).digest()),"hashC"),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}__name(wrapConstructor,"wrapConstructor"),__name(wrapXOFConstructorWithOpts,"wrapXOFConstructorWithOpts");var[f,l,g]=[[],[],[]],p=BigInt(0),d=BigInt(1),y=BigInt(2),b=BigInt(7),w=BigInt(256),k=BigInt(113);for(let t=0,e=d,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],f.push(2*(5*r+n)),l.push((t+1)*(t+2)/2%64);let o=p;for(let t=0;t<7;t++)e=(e<<d^(e>>b)*k)%w,e&y&&(o^=d<<(d<<BigInt(t))-d);g.push(o)}var[B,O]=split(g,!0),I=__name(((t,e,n)=>n>32?i(t,e,n):r(t,e,n)),"rotlH"),m=__name(((t,e,n)=>n>32?s(t,e,n):o(t,e,n)),"rotlL");function keccakP(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let e=0;e<10;e++)n[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const r=(e+8)%10,o=(e+2)%10,i=n[o],s=n[o+1],a=I(i,s,1)^n[r],u=m(i,s,1)^n[r+1];for(let n=0;n<50;n+=10)t[e+n]^=a,t[e+n+1]^=u}let e=t[2],o=t[3];for(let n=0;n<24;n++){const r=l[n],i=I(e,o,r),s=m(e,o,r),a=f[n];e=t[a],o=t[a+1],t[a]=i,t[a+1]=s}for(let e=0;e<50;e+=10){for(let r=0;r<10;r++)n[r]=t[e+r];for(let r=0;r<10;r++)t[e+r]^=~n[(r+2)%10]&n[(r+4)%10]}t[0]^=B[r],t[1]^=O[r]}n.fill(0)}__name(keccakP,"keccakP");var S=class _Keccak extends h{constructor(t,e,n,r=!1,o=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=n,this.enableXOF=r,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,number(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=u(this.state)}keccak(){keccakP(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){exists(this);const{blockLen:e,state:n}=this,r=(t=toBytes(t)).length;for(let o=0;o<r;){const i=Math.min(e-this.pos,r-o);for(let e=0;e<i;e++)n[this.pos++]^=t[o++];this.pos===e&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:e,pos:n,blockLen:r}=this;t[n]^=e,0!=(128&e)&&n===r-1&&this.keccak(),t[r-1]^=128,this.keccak()}writeInto(t){exists(this,!1),bytes(t),this.finish();const e=this.state,{blockLen:n}=this;for(let r=0,o=t.length;r<o;){this.posOut>=n&&this.keccak();const i=Math.min(n-this.posOut,o-r);t.set(e.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(output(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:e,suffix:n,outputLen:r,rounds:o,enableXOF:i}=this;return t||(t=new _Keccak(e,n,r,i,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=n,t.outputLen=r,t.enableXOF=i,t.destroyed=this.destroyed,t}};__name(S,"Keccak");var x=S,L=__name(((t,e,n)=>wrapConstructor((()=>new x(e,t,n)))),"gen"),E=L(6,72,64),v=Array.from({length:26},((t,e)=>String.fromCharCode(e+97))),T=__name(((t,e=0)=>Math.floor(Math.random()*(t-e+1)+e)),"randomInteger"),j=__name(((t=Math.random)=>v[Math.floor(t()*v.length)]),"randomLetter"),U=36;function bufToBigInt(t){let e=8n,n=0n;for(const r of t.values()){n=(n<<e)+BigInt(r)}return n}__name(bufToBigInt,"bufToBigInt");var A=Math.floor(476782367*Math.random())+1;function hash(t=""){return bufToBigInt(E(t)).toString(U).slice(1)}function createEntropy(t=4,e=Math.random){let n="";for(;n.length<t;)n+=Math.floor(e()*U).toString(U);return n}function fingerprint(t={globalObj:"undefined"!=typeof global?global:"undefined"!=typeof window?window:{}}){const e=Object.keys(t.globalObj).toString();return hash(e.length?e+createEntropy(U,Math.random):createEntropy(U,Math.random)).substring(0,U)}function cuid(){const t=Date.now().toString(U),e=A.toString(U),n=createEntropy(length,Math.random);return`${j()+hash(`${t+n+e+fingerprint()}`).substring(1,length)}`}__name(hash,"hash"),__name(createEntropy,"createEntropy"),__name(fingerprint,"fingerprint"),__name(cuid,"cuid");var M=Date.UTC(1970,0,1).valueOf(),C=1;function ToBinaryString(t){const e=BigInt(t).toString(2);return e.length<64?"0000000000000000000000000000000000000000000000000000000000000000".substring(0,64-e.length)+e:e}function extractBits(t,e,n){return parseInt(n?ToBinaryString(t).substring(e,e+n):ToBinaryString(t).substring(e),2)}function snowflake({shardId:t=1,epoch:e=M,timestamp:n=Date.now()}={shardId:1,epoch:M,timestamp:Date.now()}){n=n instanceof Date?n.valueOf():new Date(n).valueOf();let r=BigInt(n)-BigInt(e)<<BigInt(22);return r|=BigInt(t%1024)<<BigInt(12),r|=BigInt(C++%4096),r.toString()}function deconstructSnowflake(t){const e=ToBinaryString(t);return{snowflake:t,timestamp:extractBits(t,1,41),shard_id:extractBits(t,42,10),sequence:extractBits(t,52),binary:e}}function isValidSnowflake(t){if(!/^[\d]{19}$/.test(t))return!1;try{return deconstructSnowflake(t),!0}catch(t){return!1}}__name(ToBinaryString,"ToBinaryString"),__name(extractBits,"extractBits"),__name(snowflake,"snowflake"),__name(deconstructSnowflake,"deconstructSnowflake"),__name(isValidSnowflake,"isValidSnowflake");var P=__name((t=>null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)),"getObjectTag"),F=__name((t=>"object"==typeof t&&null!==t),"isObjectLike"),X=__name((t=>{if(!F(t)||"[object Object]"!=P(t))return!1;if(null===Object.getPrototypeOf(t))return!0;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}),"isPlainObject"),D=__name((t=>{try{return!!t&&t.constructor===Object||X(t)}catch(t){return!1}}),"isObject"),H=globalThis.crypto&&D(typeof globalThis.crypto)?globalThis.crypto:void 0;function uuid(){if(!H)throw new Error("Crypto is not available to generate uuid");return H.randomUUID()}__name(uuid,"uuid");export{cuid,deconstructSnowflake,isValidSnowflake,T as randomInteger,j as randomLetter,snowflake,uuid}; | ||
var t=Object.defineProperty,__name=(e,n)=>t(e,"name",{value:n,configurable:!0});function number(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function bytes(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function exists(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function output(t,e){bytes(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}__name(number,"number"),__name(bytes,"bytes"),__name(exists,"exists"),__name(output,"output");var e=BigInt(2**32-1),n=BigInt(32);function fromBig(t,r=!1){return r?{h:Number(t&e),l:Number(t>>n&e)}:{h:0|Number(t>>n&e),l:0|Number(t&e)}}function split(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let o=0;o<t.length;o++){const{h:i,l:s}=fromBig(t[o],e);[n[o],r[o]]=[i,s]}return[n,r]}__name(fromBig,"fromBig"),__name(split,"split");var r=__name(((t,e,n)=>t<<n|e>>>32-n),"rotlSH"),o=__name(((t,e,n)=>e<<n|t>>>32-n),"rotlSL"),i=__name(((t,e,n)=>e<<n-32|t>>>64-n),"rotlBH"),s=__name(((t,e,n)=>t<<n-32|e>>>64-n),"rotlBL"),a=__name((t=>t instanceof Uint8Array),"u8a"),u=__name((t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))),"u32");if(!(68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]))throw new Error("Non little-endian hardware is not supported");function utf8ToBytes(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}function toBytes(t){if("string"==typeof t&&(t=utf8ToBytes(t)),!a(t))throw new Error("expected Uint8Array, got "+typeof t);return t}__name(utf8ToBytes,"utf8ToBytes"),__name(toBytes,"toBytes");var c=class _Hash{clone(){return this._cloneInto()}};__name(c,"Hash");var h=c;function wrapConstructor(t){const e=__name((e=>t().update(toBytes(e)).digest()),"hashC"),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function wrapXOFConstructorWithOpts(t){const e=__name(((e,n)=>t(n).update(toBytes(e)).digest()),"hashC"),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}__name(wrapConstructor,"wrapConstructor"),__name(wrapXOFConstructorWithOpts,"wrapXOFConstructorWithOpts");var[f,l,g]=[[],[],[]],p=BigInt(0),d=BigInt(1),y=BigInt(2),b=BigInt(7),w=BigInt(256),k=BigInt(113);for(let t=0,e=d,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],f.push(2*(5*r+n)),l.push((t+1)*(t+2)/2%64);let o=p;for(let t=0;t<7;t++)e=(e<<d^(e>>b)*k)%w,e&y&&(o^=d<<(d<<BigInt(t))-d);g.push(o)}var[B,O]=split(g,!0),I=__name(((t,e,n)=>n>32?i(t,e,n):r(t,e,n)),"rotlH"),m=__name(((t,e,n)=>n>32?s(t,e,n):o(t,e,n)),"rotlL");function keccakP(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let e=0;e<10;e++)n[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const r=(e+8)%10,o=(e+2)%10,i=n[o],s=n[o+1],a=I(i,s,1)^n[r],u=m(i,s,1)^n[r+1];for(let n=0;n<50;n+=10)t[e+n]^=a,t[e+n+1]^=u}let e=t[2],o=t[3];for(let n=0;n<24;n++){const r=l[n],i=I(e,o,r),s=m(e,o,r),a=f[n];e=t[a],o=t[a+1],t[a]=i,t[a+1]=s}for(let e=0;e<50;e+=10){for(let r=0;r<10;r++)n[r]=t[e+r];for(let r=0;r<10;r++)t[e+r]^=~n[(r+2)%10]&n[(r+4)%10]}t[0]^=B[r],t[1]^=O[r]}n.fill(0)}__name(keccakP,"keccakP");var S=class _Keccak extends h{constructor(t,e,n,r=!1,o=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=n,this.enableXOF=r,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,number(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=u(this.state)}keccak(){keccakP(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){exists(this);const{blockLen:e,state:n}=this,r=(t=toBytes(t)).length;for(let o=0;o<r;){const i=Math.min(e-this.pos,r-o);for(let e=0;e<i;e++)n[this.pos++]^=t[o++];this.pos===e&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:e,pos:n,blockLen:r}=this;t[n]^=e,0!=(128&e)&&n===r-1&&this.keccak(),t[r-1]^=128,this.keccak()}writeInto(t){exists(this,!1),bytes(t),this.finish();const e=this.state,{blockLen:n}=this;for(let r=0,o=t.length;r<o;){this.posOut>=n&&this.keccak();const i=Math.min(n-this.posOut,o-r);t.set(e.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(output(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:e,suffix:n,outputLen:r,rounds:o,enableXOF:i}=this;return t||(t=new _Keccak(e,n,r,i,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=n,t.outputLen=r,t.enableXOF=i,t.destroyed=this.destroyed,t}};__name(S,"Keccak");var x=S,L=__name(((t,e,n)=>wrapConstructor((()=>new x(e,t,n)))),"gen"),E=L(6,72,64),v=Array.from({length:26},((t,e)=>String.fromCharCode(e+97))),T=__name(((t,e=0)=>Math.floor(Math.random()*(t-e+1)+e)),"randomInteger"),j=__name(((t=Math.random)=>v[Math.floor(t()*v.length)]),"randomLetter"),U=36;function bufToBigInt(t){let e=8n,n=0n;for(const r of t.values()){n=(n<<e)+BigInt(r)}return n}__name(bufToBigInt,"bufToBigInt");var A=Math.floor(476782367*Math.random())+1;function hash(t=""){return bufToBigInt(E(t)).toString(U).slice(1)}function createEntropy(t=4,e=Math.random){let n="";for(;n.length<t;)n+=Math.floor(e()*U).toString(U);return n}function fingerprint(t={globalObj:"undefined"!=typeof global?global:"undefined"!=typeof window?window:{}}){const e=Object.keys(t.globalObj).toString();return hash(e.length?e+createEntropy(U,Math.random):createEntropy(U,Math.random)).substring(0,U)}function cuid(){const t=Date.now().toString(U),e=A.toString(U),n=createEntropy(length,Math.random);return`${j()+hash(`${t+n+e+fingerprint()}`).substring(1,length)}`}__name(hash,"hash"),__name(createEntropy,"createEntropy"),__name(fingerprint,"fingerprint"),__name(cuid,"cuid");var M=Date.UTC(1970,0,1).valueOf(),C=1;function ToBinaryString(t){const e=BigInt(t).toString(2);return e.length<64?"0000000000000000000000000000000000000000000000000000000000000000".substring(0,64-e.length)+e:e}function extractBits(t,e,n){return parseInt(n?ToBinaryString(t).substring(e,e+n):ToBinaryString(t).substring(e),2)}function snowflake({shardId:t=1,epoch:e=M,timestamp:n=Date.now()}={shardId:1,epoch:M,timestamp:Date.now()}){n=n instanceof Date?n.valueOf():new Date(n).valueOf();let r=BigInt(n)-BigInt(e)<<BigInt(22);return r|=BigInt(t%1024)<<BigInt(12),r|=BigInt(C++%4096),r.toString()}function deconstructSnowflake(t){const e=ToBinaryString(t);return{snowflake:t,timestamp:extractBits(t,1,41),shard_id:extractBits(t,42,10),sequence:extractBits(t,52),binary:e}}function isValidSnowflake(t){if(!/^[\d]{19}$/.test(t))return!1;try{return deconstructSnowflake(t),!0}catch(t){return!1}}__name(ToBinaryString,"ToBinaryString"),__name(extractBits,"extractBits"),__name(snowflake,"snowflake"),__name(deconstructSnowflake,"deconstructSnowflake"),__name(isValidSnowflake,"isValidSnowflake");var P=__name((t=>null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)),"getObjectTag"),F=__name((t=>"object"==typeof t&&null!==t),"isObjectLike"),X=__name((t=>{if(!F(t)||"[object Object]"!=P(t))return!1;if(null===Object.getPrototypeOf(t))return!0;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}),"isPlainObject"),D=__name((t=>{try{return!!t&&t.constructor===Object||X(t)}catch(t){return!1}}),"isObject"),H=globalThis.crypto&&D(typeof globalThis.crypto)?globalThis.crypto:void 0;function uuid(){if(!H)throw new Error("Crypto is not available to generate uuid");return H.randomUUID()}__name(uuid,"uuid");export{cuid,deconstructSnowflake,hash,isValidSnowflake,T as randomInteger,j as randomLetter,snowflake,uuid}; | ||
/*! Bundled license information: | ||
@@ -3,0 +3,0 @@ |
@@ -1,1 +0,1 @@ | ||
{"inputs":{"<define:__STORM_CONFIG>":{"bytes":0,"imports":[]},"node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js":{"bytes":1816,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytes":5142,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytes":11808,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js":{"bytes":661,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytes":20474,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js","kind":"import-statement","original":"@noble/hashes/crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytes":28790,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js","kind":"import-statement","original":"./_assert.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js","kind":"import-statement","original":"./_u64.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js","kind":"import-statement","original":"./utils.js"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/random.ts":{"bytes":2251,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/cuid.ts":{"bytes":10277,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js","kind":"import-statement","original":"@noble/hashes/sha3"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/snowflake.ts":{"bytes":11777,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytes":1262,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytes":4464,"imports":[{"path":"packages/utilities/src/type-checks/get-object-tag.ts","kind":"import-statement","original":"./get-object-tag"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-object.ts":{"bytes":1492,"imports":[{"path":"packages/utilities/src/type-checks/is-plain-object.ts","kind":"import-statement","original":"./is-plain-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/crypto.ts":{"bytes":983,"imports":[{"path":"packages/utilities/src/type-checks/is-object.ts","kind":"import-statement","original":"@storm-stack/utilities/type-checks/is-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/uuid.ts":{"bytes":1806,"imports":[{"path":"packages/unique-identifier/src/crypto.ts","kind":"import-statement","original":"./crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/index.ts":{"bytes":501,"imports":[{"path":"packages/unique-identifier/src/cuid.ts","kind":"import-statement","original":"./cuid"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"packages/unique-identifier/src/snowflake.ts","kind":"import-statement","original":"./snowflake"},{"path":"packages/unique-identifier/src/uuid.ts","kind":"import-statement","original":"./uuid"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/packages/unique-identifier/dist/modern/index.cjs":{"imports":[],"exports":[],"entryPoint":"packages/unique-identifier/src/index.ts","inputs":{"packages/unique-identifier/src/index.ts":{"bytesInOutput":333},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytesInOutput":917},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytesInOutput":1000},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytesInOutput":1688},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytesInOutput":6030},"packages/unique-identifier/src/random.ts":{"bytesInOutput":369},"packages/unique-identifier/src/cuid.ts":{"bytesInOutput":1513},"packages/unique-identifier/src/snowflake.ts":{"bytesInOutput":1797},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytesInOutput":220},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytesInOutput":518},"packages/utilities/src/type-checks/is-object.ts":{"bytesInOutput":189},"packages/unique-identifier/src/crypto.ts":{"bytesInOutput":126},"packages/unique-identifier/src/uuid.ts":{"bytesInOutput":158}},"bytes":17434}}} | ||
{"inputs":{"<define:__STORM_CONFIG>":{"bytes":0,"imports":[]},"node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js":{"bytes":1816,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytes":5142,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytes":11808,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js":{"bytes":661,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytes":20474,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js","kind":"import-statement","original":"@noble/hashes/crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytes":28790,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js","kind":"import-statement","original":"./_assert.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js","kind":"import-statement","original":"./_u64.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js","kind":"import-statement","original":"./utils.js"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/random.ts":{"bytes":2251,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/cuid.ts":{"bytes":10304,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js","kind":"import-statement","original":"@noble/hashes/sha3"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/snowflake.ts":{"bytes":11777,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytes":1262,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytes":4464,"imports":[{"path":"packages/utilities/src/type-checks/get-object-tag.ts","kind":"import-statement","original":"./get-object-tag"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-object.ts":{"bytes":1492,"imports":[{"path":"packages/utilities/src/type-checks/is-plain-object.ts","kind":"import-statement","original":"./is-plain-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/crypto.ts":{"bytes":983,"imports":[{"path":"packages/utilities/src/type-checks/is-object.ts","kind":"import-statement","original":"@storm-stack/utilities/type-checks/is-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/uuid.ts":{"bytes":1806,"imports":[{"path":"packages/unique-identifier/src/crypto.ts","kind":"import-statement","original":"./crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/index.ts":{"bytes":501,"imports":[{"path":"packages/unique-identifier/src/cuid.ts","kind":"import-statement","original":"./cuid"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"packages/unique-identifier/src/snowflake.ts","kind":"import-statement","original":"./snowflake"},{"path":"packages/unique-identifier/src/uuid.ts","kind":"import-statement","original":"./uuid"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"/home/runner/work/storm-stack/storm-stack/node_modules/.pnpm/@storm-software+workspace-tools@1.21.19_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_ueiwimxb7vm7l7rgmhx6nol3km/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/packages/unique-identifier/dist/modern/index.cjs":{"imports":[],"exports":[],"entryPoint":"packages/unique-identifier/src/index.ts","inputs":{"packages/unique-identifier/src/index.ts":{"bytesInOutput":353},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytesInOutput":917},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytesInOutput":1000},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytesInOutput":1688},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytesInOutput":6030},"packages/unique-identifier/src/random.ts":{"bytesInOutput":369},"packages/unique-identifier/src/cuid.ts":{"bytesInOutput":1513},"packages/unique-identifier/src/snowflake.ts":{"bytesInOutput":1797},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytesInOutput":220},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytesInOutput":518},"packages/utilities/src/type-checks/is-object.ts":{"bytesInOutput":189},"packages/unique-identifier/src/crypto.ts":{"bytesInOutput":126},"packages/unique-identifier/src/uuid.ts":{"bytesInOutput":158}},"bytes":17454}}} |
@@ -1,1 +0,1 @@ | ||
{"inputs":{"<define:__STORM_CONFIG>":{"bytes":0,"imports":[]},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytes":5142,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytes":11808,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js":{"bytes":661,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytes":20474,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js","kind":"import-statement","original":"@noble/hashes/crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytes":28790,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js","kind":"import-statement","original":"./_assert.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js","kind":"import-statement","original":"./_u64.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js","kind":"import-statement","original":"./utils.js"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/random.ts":{"bytes":2251,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/cuid.ts":{"bytes":10277,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js","kind":"import-statement","original":"@noble/hashes/sha3"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/snowflake.ts":{"bytes":11777,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytes":1262,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytes":4464,"imports":[{"path":"packages/utilities/src/type-checks/get-object-tag.ts","kind":"import-statement","original":"./get-object-tag"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-object.ts":{"bytes":1492,"imports":[{"path":"packages/utilities/src/type-checks/is-plain-object.ts","kind":"import-statement","original":"./is-plain-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/crypto.ts":{"bytes":983,"imports":[{"path":"packages/utilities/src/type-checks/is-object.ts","kind":"import-statement","original":"@storm-stack/utilities/type-checks/is-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/uuid.ts":{"bytes":1806,"imports":[{"path":"packages/unique-identifier/src/crypto.ts","kind":"import-statement","original":"./crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/index.ts":{"bytes":501,"imports":[{"path":"packages/unique-identifier/src/cuid.ts","kind":"import-statement","original":"./cuid"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"packages/unique-identifier/src/snowflake.ts","kind":"import-statement","original":"./snowflake"},{"path":"packages/unique-identifier/src/uuid.ts","kind":"import-statement","original":"./uuid"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/packages/unique-identifier/dist/modern/index.js":{"imports":[],"exports":["cuid","deconstructSnowflake","isValidSnowflake","randomInteger","randomLetter","snowflake","uuid"],"entryPoint":"packages/unique-identifier/src/index.ts","inputs":{"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytesInOutput":917},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytesInOutput":1000},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytesInOutput":1688},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytesInOutput":6030},"packages/unique-identifier/src/random.ts":{"bytesInOutput":369},"packages/unique-identifier/src/cuid.ts":{"bytesInOutput":1513},"packages/unique-identifier/src/index.ts":{"bytesInOutput":0},"packages/unique-identifier/src/snowflake.ts":{"bytesInOutput":1797},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytesInOutput":220},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytesInOutput":518},"packages/utilities/src/type-checks/is-object.ts":{"bytesInOutput":189},"packages/unique-identifier/src/crypto.ts":{"bytesInOutput":126},"packages/unique-identifier/src/uuid.ts":{"bytesInOutput":158}},"bytes":16414}}} | ||
{"inputs":{"<define:__STORM_CONFIG>":{"bytes":0,"imports":[]},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytes":5142,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytes":11808,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js":{"bytes":661,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytes":20474,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js","kind":"import-statement","original":"@noble/hashes/crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytes":28790,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js","kind":"import-statement","original":"./_assert.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js","kind":"import-statement","original":"./_u64.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js","kind":"import-statement","original":"./utils.js"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/random.ts":{"bytes":2251,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/cuid.ts":{"bytes":10304,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js","kind":"import-statement","original":"@noble/hashes/sha3"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/snowflake.ts":{"bytes":11777,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytes":1262,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytes":4464,"imports":[{"path":"packages/utilities/src/type-checks/get-object-tag.ts","kind":"import-statement","original":"./get-object-tag"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-object.ts":{"bytes":1492,"imports":[{"path":"packages/utilities/src/type-checks/is-plain-object.ts","kind":"import-statement","original":"./is-plain-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/crypto.ts":{"bytes":983,"imports":[{"path":"packages/utilities/src/type-checks/is-object.ts","kind":"import-statement","original":"@storm-stack/utilities/type-checks/is-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/uuid.ts":{"bytes":1806,"imports":[{"path":"packages/unique-identifier/src/crypto.ts","kind":"import-statement","original":"./crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/index.ts":{"bytes":501,"imports":[{"path":"packages/unique-identifier/src/cuid.ts","kind":"import-statement","original":"./cuid"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"packages/unique-identifier/src/snowflake.ts","kind":"import-statement","original":"./snowflake"},{"path":"packages/unique-identifier/src/uuid.ts","kind":"import-statement","original":"./uuid"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/packages/unique-identifier/dist/modern/index.js":{"imports":[],"exports":["cuid","deconstructSnowflake","hash","isValidSnowflake","randomInteger","randomLetter","snowflake","uuid"],"entryPoint":"packages/unique-identifier/src/index.ts","inputs":{"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytesInOutput":917},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytesInOutput":1000},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytesInOutput":1688},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytesInOutput":6030},"packages/unique-identifier/src/random.ts":{"bytesInOutput":369},"packages/unique-identifier/src/cuid.ts":{"bytesInOutput":1513},"packages/unique-identifier/src/index.ts":{"bytesInOutput":0},"packages/unique-identifier/src/snowflake.ts":{"bytesInOutput":1797},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytesInOutput":220},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytesInOutput":518},"packages/utilities/src/type-checks/is-object.ts":{"bytesInOutput":189},"packages/unique-identifier/src/crypto.ts":{"bytesInOutput":126},"packages/unique-identifier/src/uuid.ts":{"bytesInOutput":158}},"bytes":16422}}} |
@@ -1,1 +0,1 @@ | ||
{"inputs":{"<define:__STORM_CONFIG>":{"bytes":0,"imports":[]},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytes":5142,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytes":11808,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js":{"bytes":661,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytes":20474,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js","kind":"import-statement","original":"@noble/hashes/crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytes":28790,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js","kind":"import-statement","original":"./_assert.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js","kind":"import-statement","original":"./_u64.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js","kind":"import-statement","original":"./utils.js"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/random.ts":{"bytes":2251,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/cuid.ts":{"bytes":10277,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js","kind":"import-statement","original":"@noble/hashes/sha3"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/snowflake.ts":{"bytes":11777,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytes":1262,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytes":4464,"imports":[{"path":"packages/utilities/src/type-checks/get-object-tag.ts","kind":"import-statement","original":"./get-object-tag"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-object.ts":{"bytes":1492,"imports":[{"path":"packages/utilities/src/type-checks/is-plain-object.ts","kind":"import-statement","original":"./is-plain-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/crypto.ts":{"bytes":983,"imports":[{"path":"packages/utilities/src/type-checks/is-object.ts","kind":"import-statement","original":"@storm-stack/utilities/type-checks/is-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/uuid.ts":{"bytes":1806,"imports":[{"path":"packages/unique-identifier/src/crypto.ts","kind":"import-statement","original":"./crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/index.ts":{"bytes":501,"imports":[{"path":"packages/unique-identifier/src/cuid.ts","kind":"import-statement","original":"./cuid"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"packages/unique-identifier/src/snowflake.ts","kind":"import-statement","original":"./snowflake"},{"path":"packages/unique-identifier/src/uuid.ts","kind":"import-statement","original":"./uuid"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/packages/unique-identifier/dist/modern/index.global.js":{"imports":[],"exports":[],"entryPoint":"packages/unique-identifier/src/index.ts","inputs":{"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytesInOutput":971},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytesInOutput":1068},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytesInOutput":1784},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytesInOutput":6406},"packages/unique-identifier/src/random.ts":{"bytesInOutput":379},"packages/unique-identifier/src/cuid.ts":{"bytesInOutput":1595},"packages/unique-identifier/src/index.ts":{"bytesInOutput":0},"packages/unique-identifier/src/snowflake.ts":{"bytesInOutput":1901},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytesInOutput":232},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytesInOutput":550},"packages/utilities/src/type-checks/is-object.ts":{"bytesInOutput":203},"packages/unique-identifier/src/crypto.ts":{"bytesInOutput":130},"packages/unique-identifier/src/uuid.ts":{"bytesInOutput":172}},"bytes":17220}}} | ||
{"inputs":{"<define:__STORM_CONFIG>":{"bytes":0,"imports":[]},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytes":5142,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytes":11808,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js":{"bytes":661,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytes":20474,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js","kind":"import-statement","original":"@noble/hashes/crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytes":28790,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js","kind":"import-statement","original":"./_assert.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js","kind":"import-statement","original":"./_u64.js"},{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js","kind":"import-statement","original":"./utils.js"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/random.ts":{"bytes":2251,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/cuid.ts":{"bytes":10304,"imports":[{"path":"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js","kind":"import-statement","original":"@noble/hashes/sha3"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/snowflake.ts":{"bytes":11777,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytes":1262,"imports":[{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytes":4464,"imports":[{"path":"packages/utilities/src/type-checks/get-object-tag.ts","kind":"import-statement","original":"./get-object-tag"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/utilities/src/type-checks/is-object.ts":{"bytes":1492,"imports":[{"path":"packages/utilities/src/type-checks/is-plain-object.ts","kind":"import-statement","original":"./is-plain-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/crypto.ts":{"bytes":983,"imports":[{"path":"packages/utilities/src/type-checks/is-object.ts","kind":"import-statement","original":"@storm-stack/utilities/type-checks/is-object"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/uuid.ts":{"bytes":1806,"imports":[{"path":"packages/unique-identifier/src/crypto.ts","kind":"import-statement","original":"./crypto"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/index.ts":{"bytes":501,"imports":[{"path":"packages/unique-identifier/src/cuid.ts","kind":"import-statement","original":"./cuid"},{"path":"packages/unique-identifier/src/random.ts","kind":"import-statement","original":"./random"},{"path":"packages/unique-identifier/src/snowflake.ts","kind":"import-statement","original":"./snowflake"},{"path":"packages/unique-identifier/src/uuid.ts","kind":"import-statement","original":"./uuid"},{"path":"<define:__STORM_CONFIG>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/packages/unique-identifier/dist/modern/index.global.js":{"imports":[],"exports":[],"entryPoint":"packages/unique-identifier/src/index.ts","inputs":{"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js":{"bytesInOutput":971},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js":{"bytesInOutput":1068},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js":{"bytesInOutput":1784},"node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js":{"bytesInOutput":6406},"packages/unique-identifier/src/random.ts":{"bytesInOutput":379},"packages/unique-identifier/src/cuid.ts":{"bytesInOutput":1595},"packages/unique-identifier/src/index.ts":{"bytesInOutput":0},"packages/unique-identifier/src/snowflake.ts":{"bytesInOutput":1901},"packages/utilities/src/type-checks/get-object-tag.ts":{"bytesInOutput":232},"packages/utilities/src/type-checks/is-plain-object.ts":{"bytesInOutput":550},"packages/utilities/src/type-checks/is-object.ts":{"bytesInOutput":203},"packages/unique-identifier/src/crypto.ts":{"bytesInOutput":130},"packages/unique-identifier/src/uuid.ts":{"bytesInOutput":172}},"bytes":17220}}} |
{ | ||
"name": "@storm-stack/unique-identifier", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "This package provides a simple way to generate various types of unique identifiers.", |
@@ -77,3 +77,3 @@ // | ||
*/ | ||
function hash(input = ""): string { | ||
export function hash(input = ""): string { | ||
// Drop the first character because it will bias the histogram | ||
@@ -118,4 +118,4 @@ // to the left. | ||
: typeof window !== "undefined" | ||
? window | ||
: {} | ||
? window | ||
: {} | ||
} | ||
@@ -122,0 +122,0 @@ ) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
274845
3419
1