@socketsecurity/cli-with-sentry 1.16.1 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/LICENSE +87 -0
- package/README.md +13 -13
- package/bin/cli.js +9 -9
- package/dist/.config/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/cli.js +2114 -4292
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +71 -87
- package/dist/constants.js.map +1 -1
- package/dist/env-helpers.js +63 -0
- package/dist/env-helpers.js.map +1 -0
- package/dist/instrument-with-sentry.js +7 -7
- package/dist/instrument-with-sentry.js.map +1 -1
- package/dist/manifest-scripts/dotnet-tool/Microsoft.Build.Locator.dll +0 -0
- package/dist/manifest-scripts/dotnet-tool/socket-facts-dotnet.deps.json +2 -2
- package/dist/manifest-scripts/dotnet-tool/socket-facts-dotnet.dll +0 -0
- package/dist/manifest-scripts/maven-extension/coana-maven-extension.jar +0 -0
- package/dist/runtime-constants.js +345 -0
- package/dist/runtime-constants.js.map +1 -0
- package/dist/shadow-npm-bin2.js +9 -13
- package/dist/shadow-npm-bin2.js.map +1 -1
- package/dist/shadow-npm-inject.js +10 -15
- package/dist/shadow-npm-inject.js.map +1 -1
- package/dist/shadow-npx-bin.js.map +1 -1
- package/dist/shadow-pnpm-bin2.js +21 -25
- package/dist/shadow-pnpm-bin2.js.map +1 -1
- package/dist/shadow-yarn-bin.js +4 -6
- package/dist/shadow-yarn-bin.js.map +1 -1
- package/dist/socket-completion.bash +0 -0
- package/dist/spawn-sync.js +47 -0
- package/dist/spawn-sync.js.map +1 -0
- package/dist/spinner.js +182 -0
- package/dist/spinner.js.map +1 -0
- package/dist/types/commands/fix/generated-socket-facts.d.mts +5 -2
- package/dist/types/commands/fix/handle-fix.d.mts +1 -1
- package/dist/types/commands/fix/types.d.mts +1 -1
- package/dist/types/commands/manifest/bazel/process.d.mts +2 -2
- package/dist/types/commands/manifest/convert-dotnet-to-facts.d.mts +3 -6
- package/dist/types/commands/manifest/discover-manifest-roots.d.mts +10 -11
- package/dist/types/commands/manifest/generate-recursive-manifests.d.mts +16 -30
- package/dist/types/commands/manifest/generate_auto_manifest.d.mts +6 -11
- package/dist/types/commands/manifest/load-build.d.mts +3 -11
- package/dist/types/commands/manifest/run-manifest-facts.d.mts +88 -29
- package/dist/types/commands/manifest/scripts/build-tool.d.mts +2 -0
- package/dist/types/commands/optimize/add-overrides.d.mts +2 -2
- package/dist/types/commands/optimize/get-dependency-entries.d.mts +1 -1
- package/dist/types/commands/optimize/get-overrides-by-agent.d.mts +16 -7
- package/dist/types/commands/optimize/update-lockfile.d.mts +2 -2
- package/dist/types/commands/optimize/update-manifest-by-agent.d.mts +4 -2
- package/dist/types/commands/package/fetch-purls-shallow-score.d.mts +2 -2
- package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +1 -1
- package/dist/types/commands/scan/generate-report.d.mts +1 -1
- package/dist/types/commands/scan/handle-create-new-scan.d.mts +5 -1
- package/dist/types/commands/scan/output-create-new-scan.d.mts +1 -1
- package/dist/types/commands/scan/output-diff-scan.d.mts +4 -2
- package/dist/types/commands/scan/perform-reachability-analysis.d.mts +4 -5
- package/dist/types/commands/scan/run-dynamic-sbom-inference.d.mts +7 -15
- package/dist/types/constants/runtime.d.mts +417 -0
- package/dist/types/constants.d.mts +9 -10
- package/dist/types/paths/coana.d.mts +5 -0
- package/dist/types/paths/uv.d.mts +2 -0
- package/dist/types/sea/adapters/cdxgen-worker.d.mts +1 -0
- package/dist/types/sea/adapters/synp-worker.d.mts +1 -0
- package/dist/types/sea/build/cdxgen-fixture.d.mts +4 -0
- package/dist/types/sea/build/smoke-test.d.mts +2 -0
- package/dist/types/sea/build-sea.d.mts +4 -2
- package/dist/types/sea/download-bytes.d.mts +0 -1
- package/dist/types/sea/paths/archive.d.mts +3 -0
- package/dist/types/sea/paths/coana-cache.d.mts +1 -0
- package/dist/types/sea/paths/native-tools.d.mts +13 -0
- package/dist/types/sea/pnpm-lock.d.mts +22 -0
- package/dist/types/sea/rollup-workers.d.mts +1 -0
- package/dist/types/sea/runtime.d.mts +4 -3
- package/dist/types/sea/vfs-digest.d.mts +2 -0
- package/dist/types/shadow/common.d.mts +1 -1
- package/dist/types/shadow/npm/arborist-helpers.d.mts +1 -1
- package/dist/types/shadow/npm/bin.d.mts +1 -1
- package/dist/types/shadow/npm/install.d.mts +3 -3
- package/dist/types/shadow/npm-base.d.mts +1 -1
- package/dist/types/shadow/npx/bin.d.mts +1 -1
- package/dist/types/shadow/pnpm/bin.d.mts +1 -1
- package/dist/types/shadow/yarn/bin.d.mts +1 -1
- package/dist/types/test/mocks/socket-auth.d.mts +40 -39
- package/dist/types/utils/agent.d.mts +6 -1
- package/dist/types/utils/alert/artifact.d.mts +1 -1
- package/dist/types/utils/alerts-map.d.mts +1 -1
- package/dist/types/utils/api.d.mts +1 -1
- package/dist/types/utils/arrays.d.mts +6 -0
- package/dist/types/utils/bin.d.mts +26 -0
- package/dist/types/utils/{coana-release.d.mts → coana/release.d.mts} +5 -3
- package/dist/types/utils/debug.d.mts +23 -49
- package/dist/types/utils/dlx.d.mts +1 -1
- package/dist/types/utils/ecosystem.d.mts +1 -9
- package/dist/types/utils/env.d.mts +24 -0
- package/dist/types/utils/errors.d.mts +2 -2
- package/dist/types/utils/escape-regexp.d.mts +6 -0
- package/dist/types/utils/fs.d.mts +33 -0
- package/dist/types/utils/github.d.mts +1 -1
- package/dist/types/utils/globs.d.mts +1 -0
- package/dist/types/utils/logger.d.mts +51 -0
- package/dist/types/utils/objects.d.mts +11 -0
- package/dist/types/utils/package-environment.d.mts +3 -3
- package/dist/types/utils/packages.d.mts +65 -0
- package/dist/types/utils/path.d.mts +3 -0
- package/dist/types/utils/promises.d.mts +23 -0
- package/dist/types/utils/prompts.d.mts +25 -0
- package/dist/types/utils/purl.d.mts +4 -1
- package/dist/types/utils/socket-package-alert.d.mts +1 -1
- package/dist/types/utils/socket-url.d.mts +1 -1
- package/dist/types/utils/sorts.d.mts +1 -0
- package/dist/types/utils/spawn-sync.d.mts +3 -0
- package/dist/types/utils/spawn.d.mts +67 -0
- package/dist/types/utils/spec.d.mts +1 -1
- package/dist/types/utils/spinner.d.mts +46 -0
- package/dist/types/utils/streams.d.mts +3 -0
- package/dist/types/utils/strings.d.mts +6 -0
- package/dist/types/utils/url.d.mts +2 -0
- package/dist/types/utils/words.d.mts +1 -0
- package/dist/utils.js +4475 -803
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +39737 -41318
- package/external/blessed-contrib/lib/widget/charts/line.js +172 -149
- package/package.json +41 -37
- package/shadow-bin/npm +0 -0
- package/shadow-bin/npx +0 -0
- package/shadow-bin/pnpm +0 -0
- package/shadow-bin/yarn +0 -0
- package/dist/types/commands/manifest/convert-gradle-to-facts.d.mts +0 -19
- package/dist/types/commands/manifest/convert-maven-to-facts.d.mts +0 -19
- package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts +0 -22
- package/dist/types/commands/manifest/enumerate-workspaces.d.mts +0 -22
- package/dist/types/commands/manifest/expand-env-var-refs.d.mts +0 -9
- package/dist/types/sea/archive-paths.d.mts +0 -6
- package/external/@socketsecurity/registry/LICENSE +0 -21
- package/external/@socketsecurity/registry/README.md +0 -9
- package/external/@socketsecurity/registry/extensions.json +0 -28
- package/external/@socketsecurity/registry/external/@inquirer/confirm.js +0 -3165
- package/external/@socketsecurity/registry/external/@inquirer/input.js +0 -3202
- package/external/@socketsecurity/registry/external/@inquirer/password.js +0 -3307
- package/external/@socketsecurity/registry/external/@inquirer/search.js +0 -3519
- package/external/@socketsecurity/registry/external/@inquirer/select.js +0 -3655
- package/external/@socketsecurity/registry/external/@npmcli/package-json/index.js +0 -21406
- package/external/@socketsecurity/registry/external/@npmcli/package-json/lib/read-package.js +0 -183
- package/external/@socketsecurity/registry/external/@npmcli/package-json/lib/sort.js +0 -274
- package/external/@socketsecurity/registry/external/@npmcli/promise-spawn.js +0 -704
- package/external/@socketsecurity/registry/external/@socketregistry/is-unicode-supported.js +0 -54
- package/external/@socketsecurity/registry/external/@socketregistry/packageurl-js.js +0 -4516
- package/external/@socketsecurity/registry/external/@socketregistry/yocto-spinner.js +0 -453
- package/external/@socketsecurity/registry/external/@yarnpkg/extensions.js +0 -1406
- package/external/@socketsecurity/registry/external/browserslist.js +0 -20496
- package/external/@socketsecurity/registry/external/cacache.js +0 -16208
- package/external/@socketsecurity/registry/external/debug.js +0 -1163
- package/external/@socketsecurity/registry/external/fast-glob.js +0 -7994
- package/external/@socketsecurity/registry/external/fast-sort.js +0 -181
- package/external/@socketsecurity/registry/external/libnpmpack.js +0 -106271
- package/external/@socketsecurity/registry/external/make-fetch-happen.js +0 -38997
- package/external/@socketsecurity/registry/external/normalize-package-data.js +0 -5343
- package/external/@socketsecurity/registry/external/npm-package-arg.js +0 -5773
- package/external/@socketsecurity/registry/external/pacote.js +0 -74109
- package/external/@socketsecurity/registry/external/picomatch.js +0 -2307
- package/external/@socketsecurity/registry/external/semver.js +0 -2618
- package/external/@socketsecurity/registry/external/signal-exit.js +0 -336
- package/external/@socketsecurity/registry/external/spdx-correct.js +0 -1457
- package/external/@socketsecurity/registry/external/spdx-expression-parse.js +0 -1043
- package/external/@socketsecurity/registry/external/streaming-iterables.js +0 -326
- package/external/@socketsecurity/registry/external/validate-npm-package-name.js +0 -108
- package/external/@socketsecurity/registry/external/which.js +0 -405
- package/external/@socketsecurity/registry/external/yoctocolors-cjs.js +0 -101
- package/external/@socketsecurity/registry/index.js +0 -31
- package/external/@socketsecurity/registry/lib/agent.js +0 -390
- package/external/@socketsecurity/registry/lib/arrays.js +0 -89
- package/external/@socketsecurity/registry/lib/bin.js +0 -650
- package/external/@socketsecurity/registry/lib/constants/abort-controller.js +0 -15
- package/external/@socketsecurity/registry/lib/constants/abort-signal.js +0 -27
- package/external/@socketsecurity/registry/lib/constants/at-latest.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/biome-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/bun-lock.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/bun-lockb.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/bun.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ci.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/column-limit.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/copy-left-licenses.js +0 -27
- package/external/@socketsecurity/registry/lib/constants/darwin.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/dot-git-dir.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/dot-package-lock-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/dot-socket-dir.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/empty-file.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/empty-value.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/env.js +0 -59
- package/external/@socketsecurity/registry/lib/constants/eslint-config-js.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/esnext.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/exec-path.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-cjs.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-cmd.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-cts.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-dts.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-js.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-lock.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-lockb.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-md.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-mjs.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-mts.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-ps1.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-yaml.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-yml.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/extensions-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/extensions.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/get-ipc.js +0 -10
- package/external/@socketsecurity/registry/lib/constants/gitignore.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/index.js +0 -139
- package/external/@socketsecurity/registry/lib/constants/ipc-handler.js +0 -19
- package/external/@socketsecurity/registry/lib/constants/ipc-object.js +0 -6
- package/external/@socketsecurity/registry/lib/constants/ipc-promise.js +0 -47
- package/external/@socketsecurity/registry/lib/constants/ipc-target.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/k-internals-symbol.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/latest.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license-glob-recursive.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license-glob.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license-original-glob-recursive.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license-original-glob.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license-original.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/lifecycle-script-names.js +0 -18
- package/external/@socketsecurity/registry/lib/constants/loop-sentinel.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/maintained-node-versions.js +0 -47
- package/external/@socketsecurity/registry/lib/constants/manifest-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/mit.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/node-auth-token.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/node-debug-flags.js +0 -9
- package/external/@socketsecurity/registry/lib/constants/node-env.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/node-harden-flags.js +0 -29
- package/external/@socketsecurity/registry/lib/constants/node-modules-glob-recursive.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/node-modules.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/node-no-warnings-flags.js +0 -16
- package/external/@socketsecurity/registry/lib/constants/node-version.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/npm-exec-path.js +0 -5
- package/external/@socketsecurity/registry/lib/constants/npm-real-exec-path.js +0 -6
- package/external/@socketsecurity/registry/lib/constants/npm-shrinkwrap-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/npm.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/npx.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/overrides.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/package-default-node-range.js +0 -6
- package/external/@socketsecurity/registry/lib/constants/package-default-socket-categories.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/package-default-version.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/package-extensions.js +0 -47
- package/external/@socketsecurity/registry/lib/constants/package-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/package-lock-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/packument-cache.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/pacote-cache-path.js +0 -9
- package/external/@socketsecurity/registry/lib/constants/pnpm-exec-path.js +0 -5
- package/external/@socketsecurity/registry/lib/constants/pnpm-lock-yaml.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/pnpm.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/pre-commit.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/readme-glob-recursive.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/readme-glob.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/readme-md.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/registry-scope-delimiter.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/registry.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/resolutions.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-github-org.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-ipc-handshake.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-override-scope.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-public-api-token.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-registry-npm-org.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-registry-package-name.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-registry-repo-name.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-registry-scope.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-security-scope.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/spinner.js +0 -4
- package/external/@socketsecurity/registry/lib/constants/supports-node-compile-cache-api.js +0 -8
- package/external/@socketsecurity/registry/lib/constants/supports-node-compile-cache-env-var.js +0 -8
- package/external/@socketsecurity/registry/lib/constants/supports-node-disable-warning-flag.js +0 -8
- package/external/@socketsecurity/registry/lib/constants/supports-node-permission-flag.js +0 -8
- package/external/@socketsecurity/registry/lib/constants/supports-node-require-module.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/supports-node-run.js +0 -8
- package/external/@socketsecurity/registry/lib/constants/supports-process-send.js +0 -5
- package/external/@socketsecurity/registry/lib/constants/ts-libs-available.js +0 -22
- package/external/@socketsecurity/registry/lib/constants/ts-types-available.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/tsconfig-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/undefined-token.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/unknown-error.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/unknown-value.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/unlicenced.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/unlicensed.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/utf8.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/vitest.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/vlt-lock-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/vlt.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/win32.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/yarn-berry.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/yarn-classic.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/yarn-exec-path.js +0 -5
- package/external/@socketsecurity/registry/lib/constants/yarn-lock.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/yarn.js +0 -3
- package/external/@socketsecurity/registry/lib/debug.js +0 -264
- package/external/@socketsecurity/registry/lib/env.js +0 -62
- package/external/@socketsecurity/registry/lib/fs.js +0 -556
- package/external/@socketsecurity/registry/lib/functions.js +0 -20
- package/external/@socketsecurity/registry/lib/globs.js +0 -145
- package/external/@socketsecurity/registry/lib/json.js +0 -69
- package/external/@socketsecurity/registry/lib/logger.js +0 -534
- package/external/@socketsecurity/registry/lib/objects.js +0 -422
- package/external/@socketsecurity/registry/lib/packages.js +0 -1379
- package/external/@socketsecurity/registry/lib/path.js +0 -231
- package/external/@socketsecurity/registry/lib/promises.js +0 -286
- package/external/@socketsecurity/registry/lib/prompts.js +0 -63
- package/external/@socketsecurity/registry/lib/regexps.js +0 -23
- package/external/@socketsecurity/registry/lib/sorts.js +0 -70
- package/external/@socketsecurity/registry/lib/spawn.js +0 -252
- package/external/@socketsecurity/registry/lib/spinner.js +0 -205
- package/external/@socketsecurity/registry/lib/streams.js +0 -84
- package/external/@socketsecurity/registry/lib/strings.js +0 -235
- package/external/@socketsecurity/registry/lib/url.js +0 -68
- package/external/@socketsecurity/registry/lib/words.js +0 -45
- package/external/@socketsecurity/registry/manifest.json +0 -1875
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
module.exports = new Set([
|
|
4
|
-
'AGPL-3.0-or-later',
|
|
5
|
-
'AGPL-3.0',
|
|
6
|
-
'AGPL-3.0-only',
|
|
7
|
-
'AGPL-1.0-or-later',
|
|
8
|
-
'AGPL-1.0',
|
|
9
|
-
'AGPL-1.0-only',
|
|
10
|
-
'CC-BY-SA-4.0',
|
|
11
|
-
'CC-BY-SA-3.0',
|
|
12
|
-
'CC-BY-SA-2.0',
|
|
13
|
-
'CC-BY-SA-1.0',
|
|
14
|
-
'EPL-2.0',
|
|
15
|
-
'EPL-1.0',
|
|
16
|
-
'EUPL-1.2',
|
|
17
|
-
'EUPL-1.1',
|
|
18
|
-
'GPL-3.0-or-later',
|
|
19
|
-
'GPL-3.0',
|
|
20
|
-
'GPL-3.0-only',
|
|
21
|
-
'GPL-2.0-or-later',
|
|
22
|
-
'GPL-2.0',
|
|
23
|
-
'GPL-2.0-only',
|
|
24
|
-
'GPL-1.0-or-later',
|
|
25
|
-
'GPL-1.0',
|
|
26
|
-
'GPL-1.0-only'
|
|
27
|
-
])
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const { freeze: ObjectFreeze, hasOwn: ObjectHasOwn } = Object
|
|
4
|
-
const { env } = process
|
|
5
|
-
|
|
6
|
-
const { envAsBoolean, envAsString } = /*@__PURE__*/ require('../env')
|
|
7
|
-
const WIN32 = /*@__PURE__*/ require('./win32')
|
|
8
|
-
|
|
9
|
-
const DEBUG = envAsString(env.DEBUG)
|
|
10
|
-
const HOME = envAsString(env.HOME)
|
|
11
|
-
|
|
12
|
-
module.exports = ObjectFreeze({
|
|
13
|
-
__proto__: null,
|
|
14
|
-
// Windows-specific AppData folder for application data.
|
|
15
|
-
APPDATA: envAsString(env.APPDATA),
|
|
16
|
-
// CI is always set to 'true' in a GitHub action.
|
|
17
|
-
// https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
|
|
18
|
-
// Libraries like yocto-colors check for CI not by value but my existence,
|
|
19
|
-
// e.g. `'CI' in process.env`.
|
|
20
|
-
CI: ObjectHasOwn(env, 'CI'),
|
|
21
|
-
// Enable debug logging based on the 'debug' package.
|
|
22
|
-
// https://socket.dev/npm/package/debug/overview/4.4.1
|
|
23
|
-
DEBUG,
|
|
24
|
-
// User home directory.
|
|
25
|
-
HOME,
|
|
26
|
-
// The absolute location of the %localappdata% folder on Windows used to store
|
|
27
|
-
// user-specific, non-roaming application data, like temporary files, cached
|
|
28
|
-
// data, and program settings, that are specific to the current machine and user.
|
|
29
|
-
LOCALAPPDATA: envAsString(env.LOCALAPPDATA),
|
|
30
|
-
// Set the debug log level (notice, error, warn, info, verbose, http, silly).
|
|
31
|
-
LOG_LEVEL: envAsString(env.LOG_LEVEL),
|
|
32
|
-
// .github/workflows/provenance.yml defines this.
|
|
33
|
-
// https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-nodejs-packages
|
|
34
|
-
NODE_AUTH_TOKEN: envAsString(env.NODE_AUTH_TOKEN),
|
|
35
|
-
// NODE_ENV is a recognized convention, but not a built-in Node.js feature.
|
|
36
|
-
NODE_ENV:
|
|
37
|
-
envAsString(env.NODE_ENV).toLowerCase() === 'production'
|
|
38
|
-
? 'production'
|
|
39
|
-
: 'development',
|
|
40
|
-
// A space-separated list of command-line options. `options...` are interpreted
|
|
41
|
-
// before command-line options, so command-line options will override or compound
|
|
42
|
-
// after anything in `options...`. Node.js will exit with an error if an option
|
|
43
|
-
// that is not allowed in the environment is used, such as `-p` or a script file.
|
|
44
|
-
// https://nodejs.org/api/cli.html#node_optionsoptions
|
|
45
|
-
NODE_OPTIONS: envAsString(env.NODE_OPTIONS),
|
|
46
|
-
// PRE_COMMIT is set to '1' by our 'test-pre-commit' script run by the
|
|
47
|
-
// .husky/pre-commit hook.
|
|
48
|
-
PRE_COMMIT: envAsBoolean(env.PRE_COMMIT),
|
|
49
|
-
// Enable debug logging in Socket CLI.
|
|
50
|
-
SOCKET_CLI_DEBUG: !!DEBUG || envAsBoolean(env.SOCKET_CLI_DEBUG),
|
|
51
|
-
// VITEST=true is set by the Vitest test runner.
|
|
52
|
-
// https://vitest.dev/config/#configuring-vitest
|
|
53
|
-
VITEST: envAsBoolean(env.VITEST),
|
|
54
|
-
// The location of the base directory on Linux and MacOS used to store
|
|
55
|
-
// user-specific data files, defaulting to $HOME/.local/share if not set or empty.
|
|
56
|
-
XDG_DATA_HOME: WIN32
|
|
57
|
-
? ''
|
|
58
|
-
: envAsString(env['XDG_DATA_HOME']) || (HOME ? `${HOME}/.local/share` : '')
|
|
59
|
-
})
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const getIpc = /*@__PURE__*/ require('./get-ipc')
|
|
4
|
-
const { createConstantsObject } = /*@__PURE__*/ require('../objects')
|
|
5
|
-
const { toKebabCase } = /*@__PURE__*/ require('../strings')
|
|
6
|
-
|
|
7
|
-
const props = {
|
|
8
|
-
// Lazily defined values are initialized as `undefined` to keep their key order.
|
|
9
|
-
AT_LATEST: '@latest',
|
|
10
|
-
BIOME_JSON: 'biome.json',
|
|
11
|
-
BUN: 'bun',
|
|
12
|
-
BUN_LOCK: 'bun.lock',
|
|
13
|
-
BUN_LOCKB: 'bun.lockb',
|
|
14
|
-
CI: 'CI',
|
|
15
|
-
COLUMN_LIMIT: 80,
|
|
16
|
-
DARWIN: undefined,
|
|
17
|
-
DOT_GIT_DIR: '.git',
|
|
18
|
-
DOT_PACKAGE_LOCK_JSON: '.package-lock.json',
|
|
19
|
-
DOT_SOCKET_DIR: '.socket',
|
|
20
|
-
EMPTY_FILE: '/* empty */\n',
|
|
21
|
-
EMPTY_VALUE: '<value>',
|
|
22
|
-
ENV: undefined,
|
|
23
|
-
ESLINT_CONFIG_JS: 'eslint.config.js',
|
|
24
|
-
ESNEXT: 'esnext',
|
|
25
|
-
EXT_CJS: '.cjs',
|
|
26
|
-
EXT_CMD: '.cmd',
|
|
27
|
-
EXT_CTS: '.cts',
|
|
28
|
-
EXT_DTS: '.d.ts',
|
|
29
|
-
EXT_JS: '.js',
|
|
30
|
-
EXT_JSON: '.json',
|
|
31
|
-
EXT_LOCK: '.lock',
|
|
32
|
-
EXT_LOCKB: '.lockb',
|
|
33
|
-
EXT_MD: '.md',
|
|
34
|
-
EXT_MJS: '.mjs',
|
|
35
|
-
EXT_MTS: '.mts',
|
|
36
|
-
EXT_PS1: '.ps1',
|
|
37
|
-
EXT_YAML: '.yaml',
|
|
38
|
-
EXT_YML: '.yml',
|
|
39
|
-
EXTENSIONS: 'extensions',
|
|
40
|
-
EXTENSIONS_JSON: 'extensions.json',
|
|
41
|
-
GITIGNORE: '.gitignore',
|
|
42
|
-
LATEST: 'latest',
|
|
43
|
-
LICENSE: 'LICENSE',
|
|
44
|
-
LICENSE_GLOB: 'LICEN[CS]E{[.-]*,}',
|
|
45
|
-
LICENSE_GLOB_RECURSIVE: '**/LICEN[CS]E{[.-]*,}',
|
|
46
|
-
LICENSE_ORIGINAL: 'LICENSE.original',
|
|
47
|
-
LICENSE_ORIGINAL_GLOB: '*.original{.*,}',
|
|
48
|
-
LICENSE_ORIGINAL_GLOB_RECURSIVE: '**/*.original{.*,}',
|
|
49
|
-
LOOP_SENTINEL: 1000000,
|
|
50
|
-
MANIFEST_JSON: 'manifest.json',
|
|
51
|
-
MIT: 'MIT',
|
|
52
|
-
NODE_AUTH_TOKEN: 'NODE_AUTH_TOKEN',
|
|
53
|
-
NODE_ENV: 'NODE_ENV',
|
|
54
|
-
NODE_MODULES: 'node_modules',
|
|
55
|
-
NODE_MODULES_GLOB_RECURSIVE: '**/node_modules',
|
|
56
|
-
NODE_VERSION: undefined,
|
|
57
|
-
NPM: 'npm',
|
|
58
|
-
NPM_SHRINKWRAP_JSON: 'npm-shrinkwrap.json',
|
|
59
|
-
NPX: 'npx',
|
|
60
|
-
OVERRIDES: 'overrides',
|
|
61
|
-
PACKAGE_DEFAULT_SOCKET_CATEGORIES: undefined,
|
|
62
|
-
PACKAGE_DEFAULT_NODE_RANGE: undefined,
|
|
63
|
-
PACKAGE_DEFAULT_VERSION: '1.0.0',
|
|
64
|
-
PACKAGE_JSON: 'package.json',
|
|
65
|
-
PACKAGE_LOCK_JSON: 'package-lock.json',
|
|
66
|
-
PNPM: 'pnpm',
|
|
67
|
-
PNPM_LOCK_YAML: 'pnpm-lock.yaml',
|
|
68
|
-
PRE_COMMIT: 'PRE_COMMIT',
|
|
69
|
-
README_GLOB: 'README{.*,}',
|
|
70
|
-
README_GLOB_RECURSIVE: '**/README{.*,}',
|
|
71
|
-
README_MD: 'README.md',
|
|
72
|
-
REGISTRY_SCOPE_DELIMITER: '__',
|
|
73
|
-
REGISTRY: 'registry',
|
|
74
|
-
RESOLUTIONS: 'resolutions',
|
|
75
|
-
SOCKET_GITHUB_ORG: 'SocketDev',
|
|
76
|
-
SOCKET_IPC_HANDSHAKE: 'SOCKET_IPC_HANDSHAKE',
|
|
77
|
-
SOCKET_OVERRIDE_SCOPE: '@socketoverride',
|
|
78
|
-
SOCKET_PUBLIC_API_TOKEN:
|
|
79
|
-
'sktsec_t_--RAN5U4ivauy4w37-6aoKyYPDt5ZbaT5JBVMqiwKo_api',
|
|
80
|
-
SOCKET_REGISTRY_NPM_ORG: 'socketregistry',
|
|
81
|
-
SOCKET_REGISTRY_PACKAGE_NAME: '@socketsecurity/registry',
|
|
82
|
-
SOCKET_REGISTRY_REPO_NAME: 'socket-registry',
|
|
83
|
-
SOCKET_REGISTRY_SCOPE: '@socketregistry',
|
|
84
|
-
SOCKET_SECURITY_SCOPE: '@socketsecurity',
|
|
85
|
-
SUPPORTS_NODE_COMPILE_CACHE_API: undefined,
|
|
86
|
-
SUPPORTS_NODE_COMPILE_CACHE_ENV_VAR: undefined,
|
|
87
|
-
SUPPORTS_NODE_DISABLE_WARNING_FLAG: undefined,
|
|
88
|
-
SUPPORTS_NODE_PERMISSION_FLAG: undefined,
|
|
89
|
-
SUPPORTS_NODE_REQUIRE_MODULE: undefined,
|
|
90
|
-
SUPPORTS_NODE_RUN: undefined,
|
|
91
|
-
SUPPORTS_PROCESS_SEND: undefined,
|
|
92
|
-
TSCONFIG_JSON: 'tsconfig.json',
|
|
93
|
-
UNDEFINED_TOKEN: undefined,
|
|
94
|
-
UNKNOWN_ERROR: 'Unknown error',
|
|
95
|
-
UNKNOWN_VALUE: '<unknown>',
|
|
96
|
-
UNLICENCED: 'UNLICENCED',
|
|
97
|
-
UNLICENSED: 'UNLICENSED',
|
|
98
|
-
UTF8: 'utf8',
|
|
99
|
-
VITEST: 'VITEST',
|
|
100
|
-
VLT: 'vlt',
|
|
101
|
-
VLT_LOCK_JSON: 'vlt-lock.json',
|
|
102
|
-
WIN32: undefined,
|
|
103
|
-
YARN: 'yarn',
|
|
104
|
-
YARN_BERRY: 'yarn/berry',
|
|
105
|
-
YARN_CLASSIC: 'yarn/classic',
|
|
106
|
-
YARN_LOCK: 'yarn.lock',
|
|
107
|
-
abortController: undefined,
|
|
108
|
-
abortSignal: undefined,
|
|
109
|
-
copyLeftLicenses: undefined,
|
|
110
|
-
execPath: undefined,
|
|
111
|
-
ipcObject: undefined,
|
|
112
|
-
lifecycleScriptNames: undefined,
|
|
113
|
-
maintainedNodeVersions: undefined,
|
|
114
|
-
nodeDebugFlags: undefined,
|
|
115
|
-
nodeHardenFlags: undefined,
|
|
116
|
-
nodeNoWarningsFlags: undefined,
|
|
117
|
-
npmExecPath: undefined,
|
|
118
|
-
npmRealExecPath: undefined,
|
|
119
|
-
packageExtensions: undefined,
|
|
120
|
-
pnpmExecPath: undefined,
|
|
121
|
-
packumentCache: undefined,
|
|
122
|
-
pacoteCachePath: undefined,
|
|
123
|
-
spinner: undefined,
|
|
124
|
-
tsLibsAvailable: undefined,
|
|
125
|
-
tsTypesAvailable: undefined,
|
|
126
|
-
yarnExecPath: undefined
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
module.exports = createConstantsObject(props, {
|
|
130
|
-
getters: Object.fromEntries(
|
|
131
|
-
Object.keys(props)
|
|
132
|
-
.filter(k => props[k] === undefined)
|
|
133
|
-
.map(k => [k, () => require(`./${toKebabCase(k)}`)])
|
|
134
|
-
),
|
|
135
|
-
internals: {
|
|
136
|
-
createConstantsObject,
|
|
137
|
-
getIpc
|
|
138
|
-
}
|
|
139
|
-
})
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
// Mutable handler to simulate a frozen target.
|
|
4
|
-
const handler = {
|
|
5
|
-
__proto__: null,
|
|
6
|
-
defineProperty: () => true,
|
|
7
|
-
deleteProperty: () => false,
|
|
8
|
-
preventExtensions() {
|
|
9
|
-
// Prevent a proxy trap invariant error.
|
|
10
|
-
// https://tc39.es/ecma262/#sec-proxy-object-internal-methods-and-internal-slots-isextensible
|
|
11
|
-
const target = /*@__PURE__*/ require('./ipc-target')
|
|
12
|
-
Object.preventExtensions(target)
|
|
13
|
-
return true
|
|
14
|
-
},
|
|
15
|
-
set: () => false,
|
|
16
|
-
setPrototypeOf: () => false
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
module.exports = handler
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const { assign: ObjectAssign, freeze: ObjectFreeze } = Object
|
|
4
|
-
|
|
5
|
-
module.exports = new Promise(
|
|
6
|
-
// The Promise executor is immediately executed.
|
|
7
|
-
resolve => {
|
|
8
|
-
if (
|
|
9
|
-
!(typeof process === 'object' && process !== null) ||
|
|
10
|
-
// Manually check instead of lazily accessing constants.SUPPORTS_PROCESS_SEND
|
|
11
|
-
// because constants is not initialized yet.
|
|
12
|
-
typeof process.send !== 'function'
|
|
13
|
-
) {
|
|
14
|
-
resolve(/*@__PURE__*/ require('./ipc-object'))
|
|
15
|
-
return
|
|
16
|
-
}
|
|
17
|
-
const abortSignal = /*@__PURE__*/ require('./abort-signal')
|
|
18
|
-
const finish = () => {
|
|
19
|
-
abortSignal.removeEventListener('abort', finish)
|
|
20
|
-
process.removeListener('message', onmessage)
|
|
21
|
-
resolve(/*@__PURE__*/ require('./ipc-object'))
|
|
22
|
-
}
|
|
23
|
-
const onmessage = rawData => {
|
|
24
|
-
if (rawData !== null && typeof rawData === 'object') {
|
|
25
|
-
const { SOCKET_IPC_HANDSHAKE: source } = {
|
|
26
|
-
__proto__: null,
|
|
27
|
-
...rawData
|
|
28
|
-
}
|
|
29
|
-
const target = /*@__PURE__*/ require('./ipc-target')
|
|
30
|
-
ObjectAssign(target, source)
|
|
31
|
-
ObjectFreeze(target)
|
|
32
|
-
// The handler of a Proxy is mutable after proxy instantiation.
|
|
33
|
-
// We delete the traps to defer to native behavior.
|
|
34
|
-
const handler = /*@__PURE__*/ require('./ipc-handler')
|
|
35
|
-
for (const trapName in handler) {
|
|
36
|
-
delete handler[trapName]
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
finish()
|
|
40
|
-
}
|
|
41
|
-
abortSignal.addEventListener('abort', finish, { once: true })
|
|
42
|
-
process.on('message', onmessage)
|
|
43
|
-
// The timeout of 1,000 milliseconds, i.e. 1 second, is to prevent an unresolved
|
|
44
|
-
// promised. It should be more than enough time for the ipc object handshake.
|
|
45
|
-
setTimeout(finish, 1000)
|
|
46
|
-
}
|
|
47
|
-
)
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
module.exports = new Set(
|
|
4
|
-
[
|
|
5
|
-
'dependencies',
|
|
6
|
-
'prepublishOnly',
|
|
7
|
-
...[
|
|
8
|
-
'install',
|
|
9
|
-
'pack',
|
|
10
|
-
'prepare',
|
|
11
|
-
'publish',
|
|
12
|
-
'restart',
|
|
13
|
-
'start',
|
|
14
|
-
'stop',
|
|
15
|
-
'version'
|
|
16
|
-
].map(n => [`pre${n}`, n, `post${n}`])
|
|
17
|
-
].flat()
|
|
18
|
-
)
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const { freeze: ObjectFreeze } = Object
|
|
4
|
-
|
|
5
|
-
// Under the hood browserlist uses the node-releases package which is out of date:
|
|
6
|
-
// https://github.com/chicoxyzzy/node-releases/issues/37
|
|
7
|
-
//
|
|
8
|
-
// So we maintain a manual version list for now.
|
|
9
|
-
// https://nodejs.org/en/about/previous-releases#looking-for-the-latest-release-of-a-version-branch
|
|
10
|
-
//
|
|
11
|
-
// Updated May 10th, 2025.
|
|
12
|
-
const manualNext = '24.0.1'
|
|
13
|
-
const manualCurr = '22.15.0'
|
|
14
|
-
const manualPrev = '20.19.1'
|
|
15
|
-
const manualLast = '18.20.8'
|
|
16
|
-
|
|
17
|
-
const browsersList = /*@__PURE__*/ require('../../external/browserslist')
|
|
18
|
-
const query = browsersList('maintained node versions')
|
|
19
|
-
// Trim value, e.g. 'node 22.15.0' to '22.15.0'.
|
|
20
|
-
.map(s => s.slice(5 /*'node '.length*/))
|
|
21
|
-
// browsersList returns results in descending order.
|
|
22
|
-
const queryNext = query.at(0) ?? manualNext
|
|
23
|
-
const queryCurr = query.at(1) ?? manualCurr
|
|
24
|
-
const queryPrev = query.at(2) ?? manualPrev
|
|
25
|
-
const queryLast = query.at(-1) ?? manualLast
|
|
26
|
-
|
|
27
|
-
const semver = /*@__PURE__*/ require('../../external/semver')
|
|
28
|
-
const next = semver.gt(manualNext, queryNext) ? manualNext : queryNext
|
|
29
|
-
|
|
30
|
-
const current = semver.maxSatisfying(
|
|
31
|
-
[queryCurr, manualCurr],
|
|
32
|
-
`^${semver.major(queryCurr)}`
|
|
33
|
-
)
|
|
34
|
-
const previous = semver.maxSatisfying(
|
|
35
|
-
[queryPrev, manualPrev],
|
|
36
|
-
`^${semver.major(queryPrev)}`
|
|
37
|
-
)
|
|
38
|
-
const last = semver.lt(manualLast, queryLast) ? manualLast : queryLast
|
|
39
|
-
|
|
40
|
-
module.exports = ObjectFreeze(
|
|
41
|
-
Object.assign([last, previous, current, next], {
|
|
42
|
-
last,
|
|
43
|
-
previous,
|
|
44
|
-
current,
|
|
45
|
-
next
|
|
46
|
-
})
|
|
47
|
-
)
|