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.1
to
0.1.2
+2
-2
dist/index.js

@@ -83,4 +83,4 @@ #!/usr/bin/env node

graph.command("keys <id>").action(async (id) => print(await request(`/account/graphs/${id}/keys`), { json: p.opts().json }));
graph.command("key-create <id> <name>").option("--scopes <scopes>", "comma separated", "graph:read,graph:write").action(async (id, name, o) => {
const result = await request(`/account/graphs/${id}/keys`, { method: "POST", body: { name, scopes: o.scopes.split(",") } });
graph.command("key-create <id> <name>").option("--scopes <scopes>", "comma separated", "graph:read,graph:write").option("--rate <requests>", "requests per second", "100").option("--origin <origins...>", "allowed browser origins").action(async (id, name, o) => {
const result = await request(`/account/graphs/${id}/keys`, { method: "POST", body: { name, scopes: o.scopes.split(","), rate_limit_per_second: Number(o.rate), allowed_origins: o.origin || [] } });
const c = await config();

@@ -87,0 +87,0 @@ c.apiKey = result.key;

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

@@ -5,0 +5,0 @@ "type": "module",