@cloud-cli/cli
Advanced tools
+5
-0
@@ -20,5 +20,7 @@ import { mkdirSync } from 'node:fs'; | ||
| const has = (key) => { | ||
| load(); | ||
| return computeKey(key) in store; | ||
| }; | ||
| const set = (key, value) => { | ||
| load(); | ||
| store[computeKey(key)] = value; | ||
@@ -34,2 +36,3 @@ save(); | ||
| const update = (key, values) => { | ||
| load(); | ||
| const previous = get(key); | ||
@@ -42,5 +45,7 @@ const next = Object.assign({}, previous, values); | ||
| const getAll = () => { | ||
| load(); | ||
| return Object.values(store); | ||
| }; | ||
| const remove = (key) => { | ||
| load(); | ||
| delete store[computeKey(key)]; | ||
@@ -47,0 +52,0 @@ save(); |
+1
-1
| { | ||
| "name": "@cloud-cli/cli", | ||
| "version": "1.9.6", | ||
| "version": "1.9.7", | ||
| "description": "CLI for the Cloud CLI project", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
27556
0.29%659
0.76%