@storm-stack/unique-identifier
Advanced tools
Comparing version 1.13.3 to 1.13.4
@@ -1,6 +0,1 @@ | ||
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 h=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[c,f,l]=[[],[],[]],g=BigInt(0),p=BigInt(1),d=BigInt(2),y=BigInt(7),w=BigInt(256),b=BigInt(113);for(let t=0,e=p,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],c.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)*b)%w,e&d&&(o^=p<<(p<<BigInt(t))-p);l.push(o)}var[k,B]=split(l,!0),m=__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=m(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=m(e,o,r),s=I(e,o,r),a=c[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 O=class _Keccak extends h{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 O(e,t,n)))),"gen"),x=S(6,72,64);import{isSet as L,isString as E}from"@storm-stack/utilities";var T=36;function bufToBigInt(t){let e=8n,n=0n;for(const r of t.values()){n=(n<<e)+BigInt(r)}return n}function hash(t){return E(t)?hashString(t):A(t)}function hashString(t=""){return bufToBigInt(x(t)).toString(T).slice(1)}__name(bufToBigInt,"bufToBigInt"),__name(hash,"hash"),__name(hashString,"hashString");var v=new WeakMap,U=0,A=__name(((t={})=>{const e=typeof t,n=t&&t.constructor,r=n==Date;let o,i;if(Object(t)!==t||r||n==RegExp)o=r?t.toJSON():"symbol"==e?t.toString():"string"==e?JSON.stringify(t):""+t;else{if(o=v.get(t),o)return o;if(o=++U+"~",v.set(t,o),n==Array){for(o="@",i=0;i<t.length;i++)o+=A(t[i])+",";v.set(t,o)}if(n==Object){o="#";const e=Object.keys(t).sort();for(;!L(i=e.pop());)L(t[i])||(o+=i+":"+A(t[i])+",");v.set(t,o)}}return o}),"hashObject"),M=Array.from({length:26},((t,e)=>String.fromCharCode(e+97))),C=__name(((t,e=0)=>Math.floor(Math.random()*(t-e+1)+e)),"randomInteger"),j=__name(((t=Math.random)=>M[Math.floor(t()*M.length)]),"randomLetter"),D=36,F=Math.floor(476782367*Math.random())+1;function createEntropy(t=4,e=Math.random){let n="";for(;n.length<t;)n+=Math.floor(e()*D).toString(D);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(D,Math.random):createEntropy(D,Math.random)).substring(0,D)}function cuid(){const t=Date.now().toString(D),e=F.toString(D),n=createEntropy(length,Math.random);return`${j()+hash(`${t+n+e+fingerprint()}`).substring(1,length)}`}__name(createEntropy,"createEntropy"),__name(fingerprint,"fingerprint"),__name(cuid,"cuid");var N=Date.UTC(1970,0,1).valueOf(),X=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=N,timestamp:n=Date.now()}={shardId:1,epoch:N,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(X++%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");import{isObject as $}from"@storm-stack/utilities";var H=globalThis.crypto&&$(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,C as randomInteger,j as randomLetter,snowflake,uuid}; | ||
/*! Bundled license information: | ||
@noble/hashes/esm/utils.js: | ||
(*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *) | ||
*/ | ||
var t=Object.defineProperty,__name=(n,r)=>t(n,"name",{value:r,configurable:!0});import{sha3_512 as n}from"@noble/hashes/sha3";import{isSet as r,isString as e}from"@storm-stack/utilities";var o=36;function bufToBigInt(t){let n=8n,r=0n;for(const e of t.values()){r=(r<<n)+BigInt(e)}return r}function hash(t){return e(t)?hashString(t):s(t)}function hashString(t=""){return bufToBigInt(n(t)).toString(o).slice(1)}__name(bufToBigInt,"bufToBigInt"),__name(hash,"hash"),__name(hashString,"hashString");var i=new WeakMap,a=0,s=__name(((t={})=>{const n=typeof t,e=t&&t.constructor,o=e==Date;let u,f;if(Object(t)!==t||o||e==RegExp)u=o?t.toJSON():"symbol"==n?t.toString():"string"==n?JSON.stringify(t):""+t;else{if(u=i.get(t),u)return u;if(u=++a+"~",i.set(t,u),e==Array){for(u="@",f=0;f<t.length;f++)u+=s(t[f])+",";i.set(t,u)}if(e==Object){u="#";const n=Object.keys(t).sort();for(;!r(f=n.pop());)r(t[f])||(u+=f+":"+s(t[f])+",");i.set(t,u)}}return u}),"hashObject"),u=Array.from({length:26},((t,n)=>String.fromCharCode(n+97))),f=__name(((t,n=0)=>Math.floor(Math.random()*(t-n+1)+n)),"randomInteger"),c=__name(((t=Math.random)=>u[Math.floor(t()*u.length)]),"randomLetter"),g=36,l=Math.floor(476782367*Math.random())+1;function createEntropy(t=4,n=Math.random){let r="";for(;r.length<t;)r+=Math.floor(n()*g).toString(g);return r}function fingerprint(t={globalObj:"undefined"!=typeof global?global:"undefined"!=typeof window?window:{}}){const n=Object.keys(t.globalObj).toString();return hash(n.length?n+createEntropy(g,Math.random):createEntropy(g,Math.random)).substring(0,g)}function cuid(){const t=Date.now().toString(g),n=l.toString(g),r=createEntropy(length,Math.random);return`${c()+hash(`${t+r+n+fingerprint()}`).substring(1,length)}`}__name(createEntropy,"createEntropy"),__name(fingerprint,"fingerprint"),__name(cuid,"cuid");var h=Date.UTC(1970,0,1).valueOf(),d=1;function ToBinaryString(t){const n=BigInt(t).toString(2);return n.length<64?"0000000000000000000000000000000000000000000000000000000000000000".substring(0,64-n.length)+n:n}function extractBits(t,n,r){return parseInt(r?ToBinaryString(t).substring(n,n+r):ToBinaryString(t).substring(n),2)}function snowflake({shardId:t=1,epoch:n=h,timestamp:r=Date.now()}={shardId:1,epoch:h,timestamp:Date.now()}){r=r instanceof Date?r.valueOf():new Date(r).valueOf();let e=BigInt(r)-BigInt(n)<<BigInt(22);return e|=BigInt(t%1024)<<BigInt(12),e|=BigInt(d++%4096),e.toString()}function deconstructSnowflake(t){const n=ToBinaryString(t);return{snowflake:t,timestamp:extractBits(t,1,41),shard_id:extractBits(t,42,10),sequence:extractBits(t,52),binary:n}}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");import{isObject as p}from"@storm-stack/utilities";var S=globalThis.crypto&&p(typeof globalThis.crypto)?globalThis.crypto:void 0;function uuid(){if(!S)throw new Error("Crypto is not available to generate uuid");return S.randomUUID()}__name(uuid,"uuid");export{cuid,deconstructSnowflake,hash,isValidSnowflake,f as randomInteger,c as randomLetter,snowflake,uuid}; |
@@ -1,1 +0,1 @@ | ||
{"inputs":{"<define:__STORM_CONFIG>":{"bytes":0,"imports":[]},"node_modules/.pnpm/@storm-software+workspace-tools@1.52.11_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_oi5ilochmgjnynklwrqqpbcwqi/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.52.11_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_oi5ilochmgjnynklwrqqpbcwqi/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.52.11_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_oi5ilochmgjnynklwrqqpbcwqi/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.52.11_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_oi5ilochmgjnynklwrqqpbcwqi/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.52.11_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_oi5ilochmgjnynklwrqqpbcwqi/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.52.11_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_oi5ilochmgjnynklwrqqpbcwqi/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/hash.ts":{"bytes":9923,"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":"@storm-stack/utilities","kind":"import-statement","external":true},{"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.52.11_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_oi5ilochmgjnynklwrqqpbcwqi/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.52.11_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_oi5ilochmgjnynklwrqqpbcwqi/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":7854,"imports":[{"path":"packages/unique-identifier/src/hash.ts","kind":"import-statement","original":"./hash"},{"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.52.11_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_oi5ilochmgjnynklwrqqpbcwqi/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.52.11_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_oi5ilochmgjnynklwrqqpbcwqi/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":933,"imports":[{"path":"@storm-stack/utilities","kind":"import-statement","external":true},{"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.52.11_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_oi5ilochmgjnynklwrqqpbcwqi/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.52.11_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_oi5ilochmgjnynklwrqqpbcwqi/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":581,"imports":[{"path":"packages/unique-identifier/src/cuid.ts","kind":"import-statement","original":"./cuid"},{"path":"packages/unique-identifier/src/hash.ts","kind":"import-statement","original":"./hash"},{"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.52.11_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_oi5ilochmgjnynklwrqqpbcwqi/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/packages/unique-identifier/dist/_.._/_.._/_.._/_.._/_.._/index.cjs":{"imports":[{"path":"@storm-stack/utilities","kind":"require-call","external":true},{"path":"@storm-stack/utilities","kind":"require-call","external":true}],"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/hash.ts":{"bytesInOutput":1858},"packages/unique-identifier/src/random.ts":{"bytesInOutput":369},"packages/unique-identifier/src/cuid.ts":{"bytesInOutput":1172},"packages/unique-identifier/src/snowflake.ts":{"bytesInOutput":1797},"packages/unique-identifier/src/crypto.ts":{"bytesInOutput":208},"packages/unique-identifier/src/uuid.ts":{"bytesInOutput":158}},"bytes":17986}}} | ||
{"inputs":{"<define:__STORM_CONFIG>":{"bytes":0,"imports":[]},"node_modules/.pnpm/@storm-software+workspace-tools@1.52.13_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_u6yi3v5srug6a5b34j35ykcr3i/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js":{"bytes":1816,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"packages/unique-identifier/src/hash.ts":{"bytes":9923,"imports":[{"path":"@noble/hashes/sha3","kind":"import-statement","external":true},{"path":"@storm-stack/utilities","kind":"import-statement","external":true},{"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.52.13_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_u6yi3v5srug6a5b34j35ykcr3i/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.52.13_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_u6yi3v5srug6a5b34j35ykcr3i/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":7854,"imports":[{"path":"packages/unique-identifier/src/hash.ts","kind":"import-statement","original":"./hash"},{"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.52.13_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_u6yi3v5srug6a5b34j35ykcr3i/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.52.13_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_u6yi3v5srug6a5b34j35ykcr3i/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":933,"imports":[{"path":"@storm-stack/utilities","kind":"import-statement","external":true},{"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.52.13_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_u6yi3v5srug6a5b34j35ykcr3i/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.52.13_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_u6yi3v5srug6a5b34j35ykcr3i/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":581,"imports":[{"path":"packages/unique-identifier/src/cuid.ts","kind":"import-statement","original":"./cuid"},{"path":"packages/unique-identifier/src/hash.ts","kind":"import-statement","original":"./hash"},{"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.52.13_@swc-node+register@1.6.8_@swc+core@1.3.100_@types+nod_u6yi3v5srug6a5b34j35ykcr3i/node_modules/@storm-software/workspace-tools/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/packages/unique-identifier/dist/_.._/_.._/_.._/_.._/_.._/index.cjs":{"imports":[{"path":"@noble/hashes/sha3","kind":"require-call","external":true},{"path":"@storm-stack/utilities","kind":"require-call","external":true},{"path":"@storm-stack/utilities","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/unique-identifier/src/index.ts","inputs":{"packages/unique-identifier/src/index.ts":{"bytesInOutput":353},"packages/unique-identifier/src/hash.ts":{"bytesInOutput":1924},"packages/unique-identifier/src/random.ts":{"bytesInOutput":369},"packages/unique-identifier/src/cuid.ts":{"bytesInOutput":1172},"packages/unique-identifier/src/snowflake.ts":{"bytesInOutput":1797},"packages/unique-identifier/src/crypto.ts":{"bytesInOutput":208},"packages/unique-identifier/src/uuid.ts":{"bytesInOutput":158}},"bytes":7961}}} |
@@ -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/hash.ts":{"bytes":9923,"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":"@storm-stack/utilities","kind":"import-statement","external":true},{"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":7854,"imports":[{"path":"packages/unique-identifier/src/hash.ts","kind":"import-statement","original":"./hash"},{"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/unique-identifier/src/crypto.ts":{"bytes":933,"imports":[{"path":"@storm-stack/utilities","kind":"import-statement","external":true},{"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":581,"imports":[{"path":"packages/unique-identifier/src/cuid.ts","kind":"import-statement","original":"./cuid"},{"path":"packages/unique-identifier/src/hash.ts","kind":"import-statement","original":"./hash"},{"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/_.._/_.._/_.._/_.._/_.._/index.js":{"imports":[{"path":"@storm-stack/utilities","kind":"import-statement","external":true},{"path":"@storm-stack/utilities","kind":"import-statement","external":true}],"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/hash.ts":{"bytesInOutput":1792},"packages/unique-identifier/src/random.ts":{"bytesInOutput":369},"packages/unique-identifier/src/cuid.ts":{"bytesInOutput":1172},"packages/unique-identifier/src/index.ts":{"bytesInOutput":0},"packages/unique-identifier/src/snowflake.ts":{"bytesInOutput":1797},"packages/unique-identifier/src/crypto.ts":{"bytesInOutput":177},"packages/unique-identifier/src/uuid.ts":{"bytesInOutput":158}},"bytes":16857}}} | ||
{"inputs":{"<define:__STORM_CONFIG>":{"bytes":0,"imports":[]},"packages/unique-identifier/src/hash.ts":{"bytes":9923,"imports":[{"path":"@noble/hashes/sha3","kind":"import-statement","external":true},{"path":"@storm-stack/utilities","kind":"import-statement","external":true},{"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":7854,"imports":[{"path":"packages/unique-identifier/src/hash.ts","kind":"import-statement","original":"./hash"},{"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/unique-identifier/src/crypto.ts":{"bytes":933,"imports":[{"path":"@storm-stack/utilities","kind":"import-statement","external":true},{"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":581,"imports":[{"path":"packages/unique-identifier/src/cuid.ts","kind":"import-statement","original":"./cuid"},{"path":"packages/unique-identifier/src/hash.ts","kind":"import-statement","original":"./hash"},{"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/_.._/_.._/_.._/_.._/_.._/index.js":{"imports":[{"path":"@noble/hashes/sha3","kind":"import-statement","external":true},{"path":"@storm-stack/utilities","kind":"import-statement","external":true},{"path":"@storm-stack/utilities","kind":"import-statement","external":true}],"exports":["cuid","deconstructSnowflake","hash","isValidSnowflake","randomInteger","randomLetter","snowflake","uuid"],"entryPoint":"packages/unique-identifier/src/index.ts","inputs":{"packages/unique-identifier/src/hash.ts":{"bytesInOutput":1839},"packages/unique-identifier/src/random.ts":{"bytesInOutput":369},"packages/unique-identifier/src/cuid.ts":{"bytesInOutput":1172},"packages/unique-identifier/src/index.ts":{"bytesInOutput":0},"packages/unique-identifier/src/snowflake.ts":{"bytesInOutput":1797},"packages/unique-identifier/src/crypto.ts":{"bytesInOutput":177},"packages/unique-identifier/src/uuid.ts":{"bytesInOutput":158}},"bytes":6813}}} |
{ | ||
"name": "@storm-stack/unique-identifier", | ||
"version": "1.13.3", | ||
"version": "1.13.4", | ||
"private": false, | ||
@@ -12,3 +12,6 @@ "description": "This package provides a simple way to generate various types of unique identifiers.", | ||
"type": "module", | ||
"dependencies": { "@storm-stack/utilities": "latest" }, | ||
"dependencies": { | ||
"@noble/hashes": "1.3.2", | ||
"@storm-stack/utilities": "latest" | ||
}, | ||
"publishConfig": { "access": "public" }, | ||
@@ -15,0 +18,0 @@ "exports": { |
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
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
0
97642
2
222
+ Added@noble/hashes@1.3.2
+ Added@noble/hashes@1.3.2(transitive)