{ "name": "socket", "version": "1.16.0", "publishConfig": { "tag": "rc-2.1.0" }, "description": "CLI for Socket.dev", "contentPolicy": { "class": "dual-use" }, "homepage": "https://github.com/SocketDev/socket-cli", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/SocketDev/socket-cli.git" }, "author": { "name": "Socket Inc", "email": "eng@socket.dev", "url": "https://socket.dev" }, "bin": { "socket": "bin/cli.js", "socket-npm": "bin/npm-cli.js", "socket-npx": "bin/npx-cli.js", "socket-pnpm": "bin/pnpm-cli.js", "socket-yarn": "bin/yarn-cli.js" }, "types": "./dist/types/src/cli.d.ts", "exports": { "./bin/cli.js": "./dist/cli.js", "./bin/npm-cli.js": "./dist/npm-cli.js", "./bin/npx-cli.js": "./dist/npx-cli.js", "./bin/pnpm-cli.js": "./dist/pnpm-cli.js", "./bin/yarn-cli.js": "./dist/yarn-cli.js", "./package.json": "./package.json", "./requirements.json": "./requirements.json", "./translations.json": "./translations.json" }, "scripts": { "build": "pnpm build:dist", "build:dist": "pnpm build:dist:src && pnpm build:dist:types", "build:dist:src": "run-p -c clean:dist clean:external && dotenvx -q run -f .env.local -- rollup -c .config/rollup.dist.config.mjs", "build:dist:types": "pnpm clean:dist:types && tsgo --project .config/tsconfig.dts.json", "build:dotnet-tool": "bash src/commands/manifest/scripts/dotnet-tool/build-tool.sh", "build:maven-extension": "bash src/commands/manifest/scripts/maven-extension/build-jar.sh", "build:sea": "node src/sea/build-sea.mts", "build:package-matrix": "node scripts/build-package-matrix.mts", "test:native": "node scripts/test/native.mts", "test:native:build": "node scripts/test/native.mts --build", "snapshots": "node scripts/refresh/snapshots.mts", "snapshots:termless:refresh": "node scripts/refresh/snapshots.mts --update", "snapshots:vite:refresh": "pnpm run test:unit:update", "snapshots:refresh": "run-s snapshots:termless:refresh snapshots:vite:refresh", "snapshots:refresh:dep": "node scripts/refresh/snapshots.mts --update --dep", "build:sea:internal:bootstrap": "rollup -c .config/rollup.sea.config.mjs", "check": "node scripts/check.mts", "check:lint": "dotenvx -q run -f .env.local -- eslint --report-unused-disable-directives .", "check:tsc": "run-s check:tsc:*", "check:tsc:src": "tsgo", "check:tsc:scripts": "tsgo --project .config/tsconfig.scripts.json", "check-ci": "pnpm check:lint", "ci:setup-node": "node scripts/setup/node.mts --version $NODE_VERSION", "ci:setup-uv": "node scripts/setup/uv.mts", "coverage": "run-s coverage:*", "coverage:test": "run-s test:prepare test:unit:coverage", "coverage:type": "dotenvx -q run -f .env.local -- type-coverage --detail", "clean": "run-p -c --aggregate-output clean:*", "clean:cache": "del-cli '**/.cache'", "clean:dist": "del-cli 'dist'", "clean:dist:types": "del-cli 'dist/types'", "clean:external": "del-cli 'external'", "clean:node_modules": "del-cli '**/node_modules'", "fix": "node scripts/lint.mts --fix", "knip:dependencies": "knip --dependencies", "knip:exports": "knip --include exports,duplicates", "lint": "node scripts/lint.mts", "lint:oxlint": "dotenvx -q run -f .env.local -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json .", "lint:dist:fix": "run-s -c lint:dist:fix:*", "lint:dist:fix:oxlint": "dotenvx -q run -f .env.dist -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json --silent --fix ./dist | dev-null", "lint:dist:fix:biome": "dotenvx -q run -f .env.dist -- biome format --log-level=none --fix ./dist | dev-null", "//lint:dist:fix:eslint": "dotenvx -q run -f .env.dist -- eslint --report-unused-disable-directives --quiet --fix ./dist | dev-null", "lint:external:fix": "run-s -c lint:external:fix:*", "lint:external:fix:oxlint": "dotenvx -q run -f .env.external -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json --silent --fix ./external | dev-null", "lint:external:fix:biome": "dotenvx -q run -f .env.external -- biome format --log-level=none --fix ./external | dev-null", "//lint:external:fix:eslint": "dotenvx -q run -f .env.external -- eslint --report-unused-disable-directives --quiet --fix ./external | dev-null", "lint:fix": "run-s -c lint:fix:*", "lint:fix:oxlint": "dotenvx -q run -f .env.local -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json --quiet --fix . | dev-null", "lint:fix:biome": "dotenvx -q run -f .env.local -- biome format --log-level=none --fix . | dev-null", "lint:fix:eslint": "dotenvx -q run -f .env.local -- eslint --report-unused-disable-directives --fix . | dev-null", "lint-staged": "dotenvx -q run -f .env.local -- lint-staged", "precommit": "dotenvx -q run -f .env.local -- lint-staged", "prepare": "dotenvx -q run -f .env.local -- husky", "bs": "dotenvx -q run -f .env.local -- pnpm build:dist:src; pnpm exec socket --", "s": "dotenvx -q run -f .env.local -- pnpm exec socket --", "e2e-tests": "dotenvx -q run -f .env.test -- vitest run --config .config/vitest.e2e.config.mts", "integration-tests": "node scripts/test/integration.mts", "test": "pnpm run check --all && run-s test:prepare test:unit integration-tests e2e-tests", "test:prepare": "dotenvx -q run -f .env.test -- pnpm build && del-cli 'test/**/node_modules'", "test:unit": "dotenvx -q run -f .env.test -- vitest run --config .config/vitest.config.mts", "test:unit:snapshot-dependencies": "pnpm run test:unit test/unit/scripts/refresh/snapshots/dependencies.test.mts test/unit/scripts/refresh/snapshots/swap-version.test.mts", "test:unit:update": "dotenvx -q run -f .env.test -- vitest run --config .config/vitest.config.mts --update", "test:unit:coverage": "dotenvx -q run -f .env.test -- vitest run --config .config/vitest.config.mts --coverage", "test-ci": "run-s test:prepare test:unit integration-tests", "testu": "dotenvx -q run -f .env.testu -- run-s test:prepare; pnpm test:unit:update --", "testuf": "dotenvx -q run -f .env.testu -- pnpm test:unit:update --", "update": "node scripts/update.mts", "release:preflight": "node scripts/release/preflight.mts", "approve:npm": "node scripts/release/approve-npm.mts", "check:actions": "node scripts/ci/check-actions.mts" }, "dependencies": { "@socketsecurity/socket-patch": "2.0.0", "cross-spawn": "7.0.6", "form-data": "4.0.6" }, "devDependencies": { "@actions/cache": "6.3.0", "@babel/core": "7.29.6", "@babel/plugin-proposal-export-default-from": "7.27.1", "@babel/plugin-transform-export-namespace-from": "7.27.1", "@babel/plugin-transform-runtime": "7.28.3", "@babel/preset-typescript": "7.27.1", "@babel/runtime": "7.28.4", "@biomejs/biome": "2.2.4", "@cyclonedx/cdxgen": "12.1.2", "@dotenvx/dotenvx": "1.49.0", "@eslint/compat": "1.3.2", "@eslint/js": "9.35.0", "@npmcli/arborist": "9.1.4", "@npmcli/config": "10.4.0", "@octokit/graphql": "9.0.1", "@octokit/openapi-types": "25.1.0", "@octokit/request-error": "7.0.0", "@octokit/rest": "22.0.0", "@octokit/types": "14.1.0", "@pnpm/dependency-path": "1001.1.0", "@pnpm/lockfile.detect-dep-types": "1001.0.13", "@pnpm/lockfile.fs": "1001.1.17", "@pnpm/logger": "1001.0.0", "@rollup/plugin-babel": "6.0.4", "@rollup/plugin-commonjs": "28.0.6", "@rollup/plugin-json": "6.1.0", "@rollup/plugin-node-resolve": "16.0.1", "@rollup/plugin-replace": "6.0.2", "@rollup/pluginutils": "5.3.0", "@socketregistry/hyrious__bun.lockb": "1.0.18", "@socketregistry/indent-string": "1.0.13", "@socketregistry/is-interactive": "1.0.6", "@socketregistry/packageurl-js": "1.0.9", "@socketsecurity/config": "3.0.1", "@socketsecurity/registry": "1.1.17", "@socketsecurity/sdk": "4.0.3", "@termless/vterm": "0.11.0", "@termless/core": "0.11.0", "@termless/xtermjs": "0.11.0", "@types/blessed": "0.1.25", "@types/cmd-shim": "5.0.2", "@types/cross-spawn": "6.0.6", "@types/js-yaml": "4.0.9", "@types/mdast": "4.0.4", "@types/micromatch": "4.0.9", "@types/mock-fs": "4.13.4", "@types/node": "24.3.1", "@types/npm-package-arg": "6.1.4", "@types/npmcli__arborist": "6.3.1", "@types/npmcli__config": "6.0.3", "@types/proc-log": "3.0.4", "@types/semver": "7.7.1", "@types/which": "3.0.4", "@types/yargs-parser": "21.0.3", "@typescript-eslint/parser": "8.43.0", "@typescript/native-preview": "7.0.0-dev.20250912.1", "@vitest/coverage-v8": "3.2.4", "blessed": "0.1.81", "blessed-contrib": "4.11.0", "browserslist": "4.25.4", "chalk-table": "1.0.2", "cmd-shim": "7.0.0", "del-cli": "6.0.0", "dev-null-cli": "2.0.0", "eslint": "9.35.0", "eslint-import-resolver-typescript": "4.4.4", "eslint-plugin-import-x": "4.16.1", "eslint-plugin-n": "17.21.3", "eslint-plugin-sort-destructure-keys": "2.0.0", "eslint-plugin-unicorn": "56.0.1", "fast-glob": "3.3.3", "globals": "16.4.0", "hpagent": "1.2.0", "husky": "9.1.7", "ignore": "7.0.5", "js-yaml": "npm:@zkochan/js-yaml@0.0.10", "knip": "5.63.1", "lint-staged": "16.1.6", "magic-string": "0.30.19", "mdast-util-from-markdown": "2.0.3", "mdast-util-gfm": "3.1.0", "meow": "13.2.0", "micromark-extension-gfm": "3.0.0", "micromatch": "4.0.8", "mock-fs": "5.5.0", "nock": "14.0.10", "node-pty": "1.2.0-beta.18", "npm-package-arg": "13.0.0", "npm-run-all2": "8.0.4", "open": "10.2.0", "oxlint": "1.15.0", "parse5": "8.0.1", "pony-cause": "2.1.11", "postject": "1.0.0-alpha.6", "rollup": "4.50.1", "semver": "7.7.2", "svgo": "4.1.0", "synp": "1.9.14", "tar": "7.5.16", "taze": "19.6.0", "terminal-link": "2.1.1", "tiny-updater": "3.5.3", "trash": "10.0.0", "type-coverage": "2.29.7", "typescript-eslint": "8.43.0", "unplugin-purge-polyfills": "0.1.0", "vitest": "3.2.4", "which": "=5.0.0", "yaml": "2.8.1", "yargs-parser": "21.1.1", "yoctocolors-cjs": "2.1.3", "zod": "4.1.8" }, "engines": { "node": ">=18.20.8", "pnpm": ">=10.33.0" }, "packageManager": "pnpm@10.33.0", "files": [ "bin/**", "dist/**", "external/**", "shadow-bin/**", "CHANGELOG.md", "DISCLOSURE", "requirements.json", "translations.json" ], "lint-staged": { "*.{cjs,cts,js,json,md,mjs,mts,ts}": [ "pnpm lint:fix:oxlint", "pnpm lint:fix:biome -- --no-errors-on-unmatched --files-ignore-unknown=true --colors=off" ] }, "pnpm": { "onlyBuiltDependencies": [ "node-pty" ], "overrides": { "@octokit/graphql": "$@octokit/graphql", "@octokit/request-error": "$@octokit/request-error", "@rollup/plugin-commonjs": "28.0.6", "@sigstore/core": "3.2.1", "@socketsecurity/registry": "$@socketsecurity/registry", "aggregate-error": "npm:@socketregistry/aggregate-error@^1.0.14", "ansi-regex": "6.1.0", "ansi-term": "0.0.2", "blessed": "0.1.81", "blessed-contrib": "4.11.0", "brace-expansion": "2.0.2", "bresenham": "0.0.3", "drawille-blessed-contrib": "1.0.0", "drawille-canvas-blessed-contrib": "0.1.3", "es-define-property": "npm:@socketregistry/es-define-property@^1.0.7", "es-set-tostringtag": "npm:@socketregistry/es-set-tostringtag@^1.0.9", "form-data": "4.0.6", "function-bind": "npm:@socketregistry/function-bind@^1.0.7", "globalthis": "npm:@socketregistry/globalthis@^1.0.7", "gopd": "npm:@socketregistry/gopd@^1.0.7", "graceful-fs": "4.2.11", "has-property-descriptors": "npm:@socketregistry/has-property-descriptors@^1.0.7", "has-proto": "npm:@socketregistry/has-proto@^1.0.7", "has-symbols": "npm:@socketregistry/has-symbols@^1.0.7", "has-tostringtag": "npm:@socketregistry/has-tostringtag@^1.0.7", "hasown": "npm:@socketregistry/hasown@^1.0.7", "indent-string": "npm:@socketregistry/indent-string@^1.0.13", "is-core-module": "npm:@socketregistry/is-core-module@^1.0.10", "isarray": "npm:@socketregistry/isarray@^1.0.7", "lodash": "4.17.21", "meow": "13.2.0", "minimatch@10.2.6>brace-expansion": "5.0.12", "npm-package-arg": "$npm-package-arg", "packageurl-js": "npm:@socketregistry/packageurl-js@^1.0.9", "path-parse": "npm:@socketregistry/path-parse@^1.0.7", "rollup": "4.50.1", "safe-buffer": "npm:@socketregistry/safe-buffer@^1.0.8", "safer-buffer": "npm:@socketregistry/safer-buffer@^1.0.9", "semver": "$semver", "set-function-length": "npm:@socketregistry/set-function-length@^1.0.9", "shell-quote": "npm:shell-quote@^1.8.3", "side-channel": "npm:@socketregistry/side-channel@^1.0.9", "sigstore": "4.1.1", "string_decoder": "0.10.31", "tar": "7.5.16", "tiny-colors": "$yoctocolors-cjs", "tiny-updater": "3.5.3", "typedarray": "npm:@socketregistry/typedarray@^1.0.7", "undici": "6.21.3", "vite": "7.1.5", "xml2js": "0.6.2", "yaml": "2.8.1", "yargs-parser": "$yargs-parser" }, "patchedDependencies": { "graceful-fs@4.2.11": "patches/graceful-fs@4.2.11.patch", "string_decoder@0.10.31": "patches/string_decoder@0.10.31.patch", "meow@13.2.0": "patches/meow@13.2.0.patch", "@rollup/plugin-commonjs@28.0.6": "patches/@rollup__plugin-commonjs@28.0.6.patch", "ansi-term@0.0.2": "patches/ansi-term@0.0.2.patch", "drawille-blessed-contrib@1.0.0": "patches/drawille-blessed-contrib@1.0.0.patch", "drawille-canvas-blessed-contrib@0.1.3": "patches/drawille-canvas-blessed-contrib@0.1.3.patch", "blessed@0.1.81": "patches/blessed@0.1.81.patch", "blessed-contrib@4.11.0": "patches/blessed-contrib@4.11.0.patch", "brace-expansion@2.0.2": "patches/brace-expansion@2.0.2.patch", "bresenham@0.0.3": "patches/bresenham@0.0.3.patch", "lodash@4.17.21": "patches/lodash@4.17.21.patch", "rollup@4.50.1": "patches/rollup@4.50.1.patch", "@socketsecurity/registry@1.1.17": "patches/@socketsecurity__registry@1.1.17.patch", "tiny-updater@3.5.3": "patches/tiny-updater@3.5.3.patch" } }, "typeCoverage": { "cache": true, "atLeast": 95, "ignoreAsAssertion": true, "ignoreCatch": true, "ignoreEmptyType": true, "ignore-non-null-assertion": true, "ignore-type-assertion": true, "ignore-files": "test/*", "strict": true } }