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

@socketsecurity/cli

Package Overview
Dependencies
Maintainers
7
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@socketsecurity/cli - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

11

lib/utils/sdk.js

@@ -12,6 +12,13 @@ import { readFile } from 'node:fs/promises'

/**
* @returns {Promise<import('@socketsecurity/sdk').SocketSdk>}
* The API key should be stored globally for the duration of the CLI execution
*
* @type {string | undefined}
*/
let apiKey
/** @returns {Promise<import('@socketsecurity/sdk').SocketSdk>} */
export async function setupSdk () {
let apiKey = process.env['SOCKET_SECURITY_API_KEY']
if (!apiKey) {
apiKey = process.env['SOCKET_SECURITY_API_KEY']
}

@@ -18,0 +25,0 @@ if (!apiKey && isInteractive()) {

18

package.json
{
"name": "@socketsecurity/cli",
"version": "0.4.1",
"version": "0.4.2",
"description": "CLI tool for Socket.dev",

@@ -41,3 +41,3 @@ "homepage": "http://github.com/SocketDev/socket-cli-js",

"devDependencies": {
"@socketsecurity/eslint-config": "^1.0.0",
"@socketsecurity/eslint-config": "^2.0.0",
"@tsconfig/node14": "^1.0.3",

@@ -50,5 +50,5 @@ "@types/chai": "^4.3.3",

"@types/prompts": "^2.4.1",
"@types/update-notifier": "^6.0.1",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"@types/update-notifier": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.51.0",
"c8": "^7.12.0",

@@ -58,3 +58,3 @@ "chai": "^4.3.6",

"dependency-check": "^5.0.0-7",
"eslint": "^8.32.0",
"eslint": "^8.34.0",
"eslint-config-standard": "^17.0.0",

@@ -64,6 +64,6 @@ "eslint-config-standard-jsx": "^11.0.0",

"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsdoc": "^39.5.0",
"eslint-plugin-jsdoc": "^40.0.0",
"eslint-plugin-n": "^15.6.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.32.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",

@@ -78,3 +78,3 @@ "eslint-plugin-unicorn": "^45.0.2",

"type-coverage": "^2.24.1",
"typescript": "~4.9.4"
"typescript": "~4.9.5"
},

@@ -81,0 +81,0 @@ "dependencies": {

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