@coverbase/radix
Advanced tools
+1
-1
@@ -1,1 +0,1 @@ | ||
| class D{value;parameter;children;constructor(q){this.parameter=q,this.children={}}insert=(q,T)=>{let j=this;for(let w of q.split("/")){const z=w.startsWith(":"),A=z?":":w;let B=j.children[A];if(B===void 0)B=z?new D(w.substring(1)):new D,j.children[A]=B;j=B}j.value=T};match=(q)=>{let T=this;const j={};for(let w of q.split("/"))if(T=T.children[w]??T.children[":"],T?.parameter)j[T.parameter]=w;if(T?.value)return{value:T.value,parameters:j}}}var E=(q,T)=>{const j=new D;j.value=q.value!==void 0?q.value:T.value,j.parameter=q.parameter!==void 0?q.parameter:T.parameter;for(let w of new Set([...Object.keys(q.children),...Object.keys(T.children)])){const z=q.children[w],A=T.children[w];if(z&&A)j.children[w]=E(z,A);else if(z)j.children[w]=z;else if(A)j.children[w]=A}return j};export{E as combineRadix,D as Radix}; | ||
| class D{value;parameter;children;constructor(v){this.parameter=v,this.children={}}insert=(v,j)=>{let q=this;for(let w of v.split("/")){const z=w.startsWith(":"),A=z?":":w;let B=q.children[A];if(B===void 0)B=z?new D(w.substring(1)):new D,q.children[A]=B;q=B}q.value=j};match=(v)=>{let j=this;const q={};for(let w of v.split("/"))if(j=j.children[w]??j.children[":"],j?.parameter)q[j.parameter]=w;if(j?.value)return{value:j.value,parameters:q}}}var E=(v,j)=>{const q=new D;q.value=v.value!==void 0?v.value:j.value,q.parameter=v.parameter!==void 0?v.parameter:j.parameter;for(let w of new Set([...Object.keys(v.children),...Object.keys(j.children)])){const z=v.children[w],A=j.children[w];if(z&&A)q.children[w]=E(z,A);else if(z)q.children[w]=z;else if(A)q.children[w]=A}return q};export{E as combineRadix,D as Radix}; |
+22
-22
| { | ||
| "name": "@coverbase/radix", | ||
| "version": "0.0.3", | ||
| "type": "module", | ||
| "exports": { | ||
| ".": { | ||
| "types": "./dist/index.d.ts", | ||
| "import": "./dist/index.js" | ||
| } | ||
| }, | ||
| "module": "./dist/index.ts", | ||
| "types": "./dist/index.d.ts", | ||
| "files": ["dist"], | ||
| "scripts": { | ||
| "build": "bun build ./src/index.ts --outdir ./dist --minify && tsc --emitDeclarationOnly" | ||
| }, | ||
| "devDependencies": { | ||
| "@biomejs/biome": "^1.5.3", | ||
| "@types/bun": "latest" | ||
| }, | ||
| "peerDependencies": { | ||
| "typescript": "^5.0.0" | ||
| } | ||
| "name": "@coverbase/radix", | ||
| "version": "0.0.4", | ||
| "type": "module", | ||
| "exports": { | ||
| ".": { | ||
| "types": "./dist/index.d.ts", | ||
| "import": "./dist/index.js" | ||
| } | ||
| }, | ||
| "module": "./dist/index.ts", | ||
| "types": "./dist/index.d.ts", | ||
| "files": ["dist"], | ||
| "scripts": { | ||
| "build": "bun build ./src/index.ts --outdir ./dist --minify && tsc --emitDeclarationOnly" | ||
| }, | ||
| "devDependencies": { | ||
| "@biomejs/biome": "^1.5.3", | ||
| "@types/bun": "latest" | ||
| }, | ||
| "peerDependencies": { | ||
| "typescript": "^5.0.0" | ||
| } | ||
| } |
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
1823
5.56%