@based/cli
Advanced tools
Comparing version 2.10.0 to 2.11.0
@@ -34,3 +34,4 @@ "use strict"; | ||
name = options.name; | ||
({ id } = apiKeys.find((k) => k.name === options.name) || {}); | ||
({ id } = | ||
apiKeys?.find((k) => k.name === options.name) || {}); | ||
if (!id) { | ||
@@ -49,3 +50,3 @@ (0, tui_1.fail)(`apiKey with name ${chalk_1.default.blue(name)} not found`, output, options); | ||
message: 'Select apiKey to dwonload', | ||
choices: apiKeys.map((apiKey) => ({ | ||
choices: apiKeys?.map((apiKey) => ({ | ||
value: { id: apiKey.id, name: apiKey.name }, | ||
@@ -52,0 +53,0 @@ name: apiKey.name, |
@@ -24,7 +24,7 @@ "use strict"; | ||
spinner && spinner.stop(); | ||
if (!apiKeys.length && options.output === 'fancy') { | ||
if (!apiKeys?.length && options.output === 'fancy') { | ||
console.info(tui_1.prefixNotice + 'No apiKeys found'); | ||
} | ||
else { | ||
apiKeys.forEach((apiKey) => { | ||
apiKeys?.forEach((apiKey) => { | ||
const { /*id,*/ name } = apiKey; | ||
@@ -31,0 +31,0 @@ output.data.push({ |
@@ -29,3 +29,4 @@ "use strict"; | ||
name = options.name; | ||
({ id } = apiKeys.find((k) => k.name === options.name) || {}); | ||
({ id } = | ||
apiKeys?.find((k) => k.name === options.name) || {}); | ||
if (!id) { | ||
@@ -44,3 +45,3 @@ (0, tui_1.fail)(`apiKey with name ${chalk_1.default.blue(name)} not found`, output, options); | ||
message: 'Select apiKey to remove', | ||
choices: apiKeys.map((apiKey) => ({ | ||
choices: apiKeys?.map((apiKey) => ({ | ||
value: { id: apiKey.id, name: apiKey.name }, | ||
@@ -47,0 +48,0 @@ name: apiKey.name, |
@@ -15,1 +15,2 @@ import './function'; | ||
import './log'; | ||
import './templates'; |
@@ -18,2 +18,3 @@ "use strict"; | ||
require("./log"); | ||
require("./templates"); | ||
const pkg = require('../package.json'); | ||
@@ -20,0 +21,0 @@ commander_1.program.version(pkg?.version); |
{ | ||
"name": "@based/cli", | ||
"version": "2.10.0", | ||
"version": "2.11.0", | ||
"license": "MIT", | ||
@@ -15,3 +15,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@based/client": "2.8.0", | ||
"@based/client": "^3.0.0", | ||
"@based/ids": "2.6.2", | ||
@@ -25,3 +25,3 @@ "@based/pretty-date": "^1.0.4", | ||
"commander": "^8.1.0", | ||
"cross-fetch": "^3.1.4", | ||
"node-fetch": "^2.6.7", | ||
"esbuild": "^0.14.29", | ||
@@ -36,2 +36,3 @@ "find-up": "^5.0.0", | ||
"devDependencies": { | ||
"@types/node-fetch": "^2.6.2", | ||
"@types/inquirer": "^8.1.3", | ||
@@ -38,0 +39,0 @@ "@types/node": "^17.0.23", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
346289
173
4808
6
26
+ Addednode-fetch@^2.6.7
+ Added@based/client@3.3.0(transitive)
+ Added@based/graphql@2.4.4(transitive)
- Removedcross-fetch@^3.1.4
- Removed@based/client@2.8.0(transitive)
- Removed@based/graphql@2.4.2(transitive)
- Removed@based/types@2.5.0(transitive)
Updated@based/client@^3.0.0