Sign In

graphstore-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphstore-cli - npm Package Compare versions

Comparing version
0.1.0
to
0.1.1
+1
-1
dist/index.js

@@ -130,3 +130,3 @@ #!/usr/bin/env node

data.command("query <file>").action(async (file2) => print(await request("/v1/query", { method: "POST", body: JSON.parse(await readFile(file2, "utf8")) }), { json: p.opts().json }));
data.command("neighbors <id>").option("--rel <rel>").option("--depth <n>", "maximum depth", "1").action(async (id, o) => print(await request("/v1/query", { method: "POST", body: { start: { where: [] }, traverse: [{ rel: o.rel || "*", direction: "out", min: 1, max: Math.min(Number(o.depth), 5) }], limit: 500 } }), { json: p.opts().json }));
data.command("neighbors <id>").option("--rel <rel>").option("--direction <direction>", "out, in, or both", "out").option("--depth <n>", "maximum depth", "1").action(async (id, o) => print(await request(`/v1/nodes/${id}/neighbors?` + new URLSearchParams({ rel: o.rel || "*", direction: o.direction, depth: String(Math.min(Number(o.depth), 5)) })), { json: p.opts().json }));
data.command("shortest <from> <to>").option("--rel <rel>").option("--max-depth <n>", "maximum depth", "6").action(async (from, to, o) => print(await request("/v1/paths/shortest", { method: "POST", body: { from, to, rel: o.rel, max_depth: Number(o.maxDepth) } }), { json: p.opts().json }));

@@ -133,0 +133,0 @@ data.command("export <file>").action(async (file2) => {

{
"name": "graphstore-cli",
"version": "0.1.0",
"version": "0.1.1",
"description": "CLI for the Graphstore agent-first graph database",

@@ -16,3 +16,6 @@ "type": "module",

"license": "MIT",
"repository": {"type":"git","url":"git+https://github.com/helixdata/graphstore.git"},
"repository": {
"type": "git",
"url": "git+https://github.com/helixdata/graphstore.git"
},
"engines": {

@@ -28,4 +31,5 @@ "node": ">=20"

"scripts": {
"build": "tsup src/index.ts --format esm --platform node --target node20 --clean"
"build": "tsup src/index.ts --format esm --platform node --target node20 --clean",
"prepack": "npm run build"
}
}