Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

comline

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

comline - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

11

dist/cli.js

@@ -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 @@ }

8

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc