@socketsecurity/cli
Advanced tools
Comparing version 0.9.0 to 0.9.3
11
cli.js
@@ -18,4 +18,13 @@ #!/usr/bin/env node | ||
try { | ||
const formattedCliCommands = Object.fromEntries(Object.entries(cliCommands).map((entry) => { | ||
if (entry[0] === 'rawNpm') { | ||
entry[0] = 'raw-npm' | ||
} else if (entry[0] === 'rawNpx') { | ||
entry[0] = 'raw-npx' | ||
} | ||
return entry | ||
})) | ||
await meowWithSubcommands( | ||
cliCommands, | ||
formattedCliCommands, | ||
{ | ||
@@ -22,0 +31,0 @@ aliases: { |
@@ -7,1 +7,4 @@ export * from './info/index.js' | ||
export * from './logout/index.js' | ||
export * from './wrapper/index.js' | ||
export * from './raw-npm/index.js' | ||
export * from './raw-npx/index.js' |
export { outputFlags } from './output.js' | ||
export { validationFlags } from './validation.js' | ||
export { commandFlags } from './command.js' |
@@ -104,3 +104,3 @@ import { stat } from 'node:fs/promises' | ||
const goSupported = supportedFiles['go'] || {} | ||
const goSupported = supportedFiles['golang'] || {} | ||
const goSupplementalPatterns = Object.values(goSupported) | ||
@@ -107,0 +107,0 @@ // .filter(key => key !== 'gomod') |
{ | ||
"name": "@socketsecurity/cli", | ||
"version": "0.9.0", | ||
"version": "0.9.3", | ||
"description": "CLI tool for Socket.dev", | ||
@@ -43,3 +43,4 @@ "homepage": "http://github.com/SocketDev/socket-cli-js", | ||
"test-ci": "run-s test:*", | ||
"test": "run-s check test:*" | ||
"test": "run-s check test:*", | ||
"//postinstall": "node ./cli.js wrapper --postinstall" | ||
}, | ||
@@ -46,0 +47,0 @@ "devDependencies": { |
@@ -21,2 +21,3 @@ # Socket CLI | ||
socket report view QXU8PmK7LfH608RAwfIKdbcHgwEd_ZeWJ9QEGv05FJUQ | ||
socket wrapper --enable | ||
``` | ||
@@ -39,2 +40,6 @@ | ||
* `socket wrapper --enable` and `socket wrapper --disable` - Enables and disables the Socket 'safe-npm' wrapper. | ||
* `socket raw-npm` and `socket raw-npx` - Temporarily disables the Socket 'safe-npm' wrapper. | ||
## Aliases | ||
@@ -41,0 +46,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
138608
44
3718
96
21
10