Comparing version 0.1.4 to 0.1.5
@@ -239,2 +239,3 @@ // src/cli.ts | ||
let currentTreeNode = tree; | ||
console.log(maybePath); | ||
for (const segment of maybePath) { | ||
@@ -247,5 +248,11 @@ if (currentTreeNode === null) { | ||
} | ||
if (segment in currentTreeNode[1]) { | ||
currentTreeNode = currentTreeNode[1][segment]; | ||
const subPaths = currentTreeNode[1]; | ||
if (segment in subPaths) { | ||
currentTreeNode = subPaths[segment]; | ||
} else { | ||
const wildcard = Object.keys(subPaths).find((key) => key.startsWith(`\$`)); | ||
if (wildcard) { | ||
currentTreeNode = subPaths[wildcard]; | ||
continue; | ||
} | ||
return false; | ||
@@ -252,0 +259,0 @@ } |
{ | ||
"name": "comline", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"license": "MIT", | ||
@@ -22,8 +22,8 @@ "author": { | ||
"zod-to-json-schema": "3.23.3", | ||
"treetrunks": "0.0.1" | ||
"treetrunks": "0.0.2" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "22.7.6", | ||
"@types/node": "22.7.8", | ||
"@types/tmp": "0.2.6", | ||
"bun-types": "1.1.31", | ||
"bun-types": "1.1.32", | ||
"concurrently": "9.0.1", | ||
@@ -30,0 +30,0 @@ "tmp": "0.2.3", |
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
35512
998
+ Addedtreetrunks@0.0.2(transitive)
- Removedtreetrunks@0.0.1(transitive)
Updatedtreetrunks@0.0.2