@socketsecurity/cli-with-sentry 1.16.0 → 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 +19 -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 +2120 -4305
- 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 -6
- 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 +4481 -806
- 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 +43 -36
- 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,35 +1,44 @@
|
|
|
1
1
|
import type { NpmOverrides, Overrides, PnpmOrYarnOverrides } from './types.mts';
|
|
2
2
|
import type { Agent, EnvDetails } from '../../utils/package-environment.mts';
|
|
3
|
-
import type { PackageJson } from '
|
|
4
|
-
|
|
3
|
+
import type { PackageJson } from '../../utils/packages.mts';
|
|
4
|
+
import type { Document } from 'yaml';
|
|
5
|
+
export declare function getOverridesDataBun(pkgEnvDetails: EnvDetails, pkgJson?: PackageJson): {
|
|
5
6
|
type: "yarn/berry";
|
|
6
7
|
overrides: PnpmOrYarnOverrides;
|
|
7
8
|
};
|
|
8
9
|
// npm overrides documentation:
|
|
9
10
|
// https://docs.npmjs.com/cli/v10/configuring-npm/package-json#overrides
|
|
10
|
-
export declare function getOverridesDataNpm(pkgEnvDetails: EnvDetails, pkgJson?:
|
|
11
|
+
export declare function getOverridesDataNpm(pkgEnvDetails: EnvDetails, pkgJson?: PackageJson): {
|
|
11
12
|
type: "npm";
|
|
12
13
|
overrides: NpmOverrides;
|
|
13
14
|
};
|
|
14
15
|
// pnpm overrides documentation:
|
|
15
16
|
// https://pnpm.io/package_json#pnpmoverrides
|
|
16
|
-
export declare function getOverridesDataPnpm(pkgEnvDetails: EnvDetails, pkgJson?:
|
|
17
|
+
export declare function getOverridesDataPnpm(pkgEnvDetails: EnvDetails, pkgJson?: PackageJson): {
|
|
17
18
|
type: "pnpm";
|
|
18
19
|
overrides: PnpmOrYarnOverrides;
|
|
19
20
|
};
|
|
20
|
-
export declare function
|
|
21
|
+
export declare function readPnpmWorkspaceOverrides(pkgPath: string): Promise<{
|
|
22
|
+
document: Document<import("yaml").Node, true>;
|
|
23
|
+
filename: string;
|
|
24
|
+
originalOverrides: PnpmOrYarnOverrides;
|
|
25
|
+
overrides: PnpmOrYarnOverrides;
|
|
26
|
+
source: string;
|
|
27
|
+
}>;
|
|
28
|
+
export type PnpmWorkspaceOverrides = Awaited<ReturnType<typeof readPnpmWorkspaceOverrides>>;
|
|
29
|
+
export declare function getOverridesDataVlt(pkgEnvDetails: EnvDetails, pkgJson?: PackageJson): {
|
|
21
30
|
type: "vlt";
|
|
22
31
|
overrides: NpmOverrides;
|
|
23
32
|
};
|
|
24
33
|
// Yarn resolutions documentation:
|
|
25
34
|
// https://yarnpkg.com/configuration/manifest#resolutions
|
|
26
|
-
export declare function getOverridesDataYarn(pkgEnvDetails: EnvDetails, pkgJson?:
|
|
35
|
+
export declare function getOverridesDataYarn(pkgEnvDetails: EnvDetails, pkgJson?: PackageJson): {
|
|
27
36
|
type: "yarn/berry";
|
|
28
37
|
overrides: PnpmOrYarnOverrides;
|
|
29
38
|
};
|
|
30
39
|
// Yarn resolutions documentation:
|
|
31
40
|
// https://classic.yarnpkg.com/en/docs/selective-version-resolutions
|
|
32
|
-
export declare function getOverridesDataYarnClassic(pkgEnvDetails: EnvDetails, pkgJson?:
|
|
41
|
+
export declare function getOverridesDataYarnClassic(pkgEnvDetails: EnvDetails, pkgJson?: PackageJson): {
|
|
33
42
|
type: "yarn/classic";
|
|
34
43
|
overrides: PnpmOrYarnOverrides;
|
|
35
44
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Spinner } from '
|
|
1
|
+
import { Spinner } from '../../utils/spinner.mts';
|
|
2
2
|
import type { CResult } from '../../types.mts';
|
|
3
|
+
import type { Logger } from '../../utils/logger.mts';
|
|
3
4
|
import type { EnvDetails } from '../../utils/package-environment.mts';
|
|
4
|
-
import type { Logger } from '@socketsecurity/registry/lib/logger';
|
|
5
5
|
export type UpdateLockfileOptions = {
|
|
6
6
|
cmdName?: string | undefined;
|
|
7
7
|
logger?: Logger | undefined;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PnpmWorkspaceOverrides } from './get-overrides-by-agent.mts';
|
|
2
|
+
import type { Overrides, PnpmOrYarnOverrides } from './types.mts';
|
|
2
3
|
import type { Agent } from '../../utils/package-environment.mts';
|
|
3
|
-
import type { EditablePackageJson } from '
|
|
4
|
+
import type { EditablePackageJson } from '../../utils/packages.mts';
|
|
4
5
|
export declare function updateOverridesField(editablePkgJson: EditablePackageJson, overrides: Overrides): void;
|
|
5
6
|
export declare function updateResolutionsField(editablePkgJson: EditablePackageJson, overrides: Overrides): void;
|
|
6
7
|
export declare function updatePnpmField(editablePkgJson: EditablePackageJson, overrides: Overrides): void;
|
|
8
|
+
export declare function updatePnpmWorkspaceOverrides({ document, filename, originalOverrides, source }: PnpmWorkspaceOverrides, overrides: PnpmOrYarnOverrides): Promise<void>;
|
|
7
9
|
export declare function updateManifest(agent: Agent, editablePkgJson: EditablePackageJson, overrides: Overrides): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CResult } from '../../types.mts';
|
|
2
2
|
import type { SetupSdkOptions } from '../../utils/sdk.mts';
|
|
3
|
-
import type {
|
|
3
|
+
import type { PurlRecord } from '@socketsecurity/sdk';
|
|
4
4
|
export type FetchPurlsShallowScoreOptions = {
|
|
5
5
|
sdkOpts?: SetupSdkOptions | undefined;
|
|
6
6
|
};
|
|
7
|
-
export declare function fetchPurlsShallowScore(purls: string[], options?: FetchPurlsShallowScoreOptions | undefined): Promise<CResult<
|
|
7
|
+
export declare function fetchPurlsShallowScore(purls: string[], options?: FetchPurlsShallowScoreOptions | undefined): Promise<CResult<PurlRecord[]>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CResult } from '../../types.mts';
|
|
2
2
|
import type { SetupSdkOptions } from '../../utils/sdk.mts';
|
|
3
|
-
import type { Spinner } from '
|
|
3
|
+
import type { Spinner } from '../../utils/spinner.mts';
|
|
4
4
|
import type { SocketSdkSuccessResult } from '@socketsecurity/sdk';
|
|
5
5
|
export type FetchSupportedScanFileNamesOptions = {
|
|
6
6
|
orgSlug?: string | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FOLD_SETTING, REPORT_LEVEL } from './types.mts';
|
|
2
2
|
import type { CResult } from '../../types.mts';
|
|
3
3
|
import type { SocketArtifact } from '../../utils/alert/artifact.mts';
|
|
4
|
-
import type { Spinner } from '
|
|
4
|
+
import type { Spinner } from '../../utils/spinner.mts';
|
|
5
5
|
type AlertKey = string;
|
|
6
6
|
type EcoMap = Map<string, ReportLeafNode | PackageMap>;
|
|
7
7
|
type FileMap = Map<string, ReportLeafNode | Map<AlertKey, ReportLeafNode>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ReachabilityOptions } from './perform-reachability-analysis.mts';
|
|
2
2
|
import type { REPORT_LEVEL } from './types.mts';
|
|
3
3
|
import type { OutputKind } from '../../types.mts';
|
|
4
|
-
import type { Remap } from '
|
|
4
|
+
import type { Remap } from '../../utils/objects.mts';
|
|
5
|
+
import type { CommandHints } from '../manifest/run-manifest-facts.mts';
|
|
5
6
|
export type GeneratedScanFiles = {
|
|
6
7
|
cleanup: () => Promise<void>;
|
|
7
8
|
files: string[];
|
|
@@ -16,6 +17,9 @@ export type HandleCreateNewScanConfig = {
|
|
|
16
17
|
defaultBranch: boolean;
|
|
17
18
|
// Supplies the complete scan input and replaces manifest discovery.
|
|
18
19
|
generateScanFiles?: (() => Promise<GeneratedScanFiles>) | undefined;
|
|
20
|
+
// The flags the invoking command takes that facts generation's remedies may
|
|
21
|
+
// name; none by default.
|
|
22
|
+
hints?: CommandHints | undefined;
|
|
19
23
|
interactive: boolean;
|
|
20
24
|
orgSlug: string;
|
|
21
25
|
pendingHead: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CResult, OutputKind } from '../../types.mts';
|
|
2
|
-
import type { Spinner } from '
|
|
2
|
+
import type { Spinner } from '../../utils/spinner.mts';
|
|
3
3
|
import type { FullScanResult } from '@socketsecurity/sdk';
|
|
4
4
|
export type ReachabilityFallback = {
|
|
5
5
|
cause?: string | undefined;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { CResult, OutputKind } from '../../types.mts';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type { SocketSdkData } from '@socketsecurity/sdk';
|
|
3
|
+
type DiffScanData = SocketSdkData<'GetOrgDiffScan'>;
|
|
4
|
+
export declare function outputDiffScan(result: CResult<DiffScanData>, { depth, file, outputKind }: {
|
|
4
5
|
depth: number;
|
|
5
6
|
file: string;
|
|
6
7
|
outputKind: OutputKind;
|
|
7
8
|
}): Promise<void>;
|
|
9
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CResult, OutputKind } from '../../types.mts';
|
|
2
2
|
import type { FactsOnlyTypes } from '../../utils/coana.mts';
|
|
3
3
|
import type { PURL_Type } from '../../utils/ecosystem.mts';
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
4
|
+
import type { Spinner } from '../../utils/spinner.mts';
|
|
5
|
+
import type { SocketFactsSidecarEntry } from '../manifest/run-manifest-facts.mts';
|
|
6
6
|
export type ReachabilityOptions = {
|
|
7
7
|
// The ecosystems to generate Socket facts for; undefined when off.
|
|
8
8
|
dynamicSbomInference: FactsOnlyTypes | undefined;
|
|
@@ -22,7 +22,6 @@ export type ReachabilityOptions = {
|
|
|
22
22
|
reachDisableExternalToolChecks: boolean;
|
|
23
23
|
reachDisableAnalytics: boolean;
|
|
24
24
|
reachEcosystems: PURL_Type[];
|
|
25
|
-
reachEnableAnalysisSplitting: boolean;
|
|
26
25
|
reachExcludePaths: string[];
|
|
27
26
|
reachRetainFactsFile: boolean;
|
|
28
27
|
reachSkipCache: boolean;
|
|
@@ -40,10 +39,9 @@ export type ReachabilityAnalysisOptions = {
|
|
|
40
39
|
outputPath?: string | undefined;
|
|
41
40
|
packagePaths: string[];
|
|
42
41
|
reachabilityOptions: ReachabilityOptions;
|
|
43
|
-
// Resolved-paths sidecar from the auto-manifest run; passed to coana so it
|
|
44
|
-
// reuses these paths instead of re-resolving the build.
|
|
45
|
-
resolvedPathsSidecar?: ResolvedPathsSidecar | undefined;
|
|
46
42
|
repoName?: string | undefined;
|
|
43
|
+
// What facts generation kept of each build root, for Coana to read back.
|
|
44
|
+
socketFactsSidecar?: SocketFactsSidecarEntry[] | undefined;
|
|
47
45
|
spinner?: Spinner | undefined;
|
|
48
46
|
target: string;
|
|
49
47
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { FactsOnlyTypes } from '../../utils/coana.mts';
|
|
2
2
|
import type { PURL_Type } from '../../utils/ecosystem.mts';
|
|
3
|
-
import type {
|
|
4
|
-
// Who consumes the facts: Coana for `fix` and `reach` (which also resolves
|
|
5
|
-
// artifact paths), or only the scan upload.
|
|
6
|
-
export type FactsConsumer = 'fix' | 'reach' | 'upload';
|
|
3
|
+
import type { CommandHints, SocketFactsContext } from '../manifest/run-manifest-facts.mts';
|
|
7
4
|
export type DynamicSbomInferenceResult = {
|
|
8
5
|
// Facts files of dropped runs, which the scan must not collect.
|
|
9
6
|
discardedFactsPaths: string[];
|
|
@@ -11,22 +8,17 @@ export type DynamicSbomInferenceResult = {
|
|
|
11
8
|
// these types' artifacts only from facts files.
|
|
12
9
|
factsOnlyTypes: FactsOnlyTypes;
|
|
13
10
|
factsPaths: string[];
|
|
14
|
-
resolvedPathsSidecar: ResolvedPathsSidecar | undefined;
|
|
15
11
|
};
|
|
16
12
|
// Recursively discovers and generates Socket facts for every independent
|
|
17
|
-
// build root of the selected ecosystems under `cwd
|
|
18
|
-
// facts
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
consumer: FactsConsumer;
|
|
13
|
+
// build root of the selected ecosystems under `cwd`. Without a work dir, the
|
|
14
|
+
// facts are only uploaded.
|
|
15
|
+
export declare function runDynamicSbomInference({ context, cwd, excludePaths, hints, purlTypes }: {
|
|
16
|
+
context: SocketFactsContext;
|
|
22
17
|
cwd: string;
|
|
23
18
|
excludePaths: string[];
|
|
19
|
+
hints: CommandHints;
|
|
24
20
|
purlTypes: readonly PURL_Type[];
|
|
25
|
-
// sbt provisions its Scala toolchain under this directory and reach's
|
|
26
|
-
// artifactPaths point into it, so it must outlive whoever consumes them.
|
|
27
|
-
// Only meaningful for `reach`.
|
|
28
|
-
sbtTmpDir: string | undefined;
|
|
29
21
|
}): Promise<DynamicSbomInferenceResult>;
|
|
30
22
|
// `paths` without the facts files discovery discarded: each holds what was
|
|
31
|
-
// there before the scan,
|
|
23
|
+
// there before the scan, not a kept build's.
|
|
32
24
|
export declare function withoutDiscardedFacts(paths: string[], discarded: readonly string[] | undefined): Promise<string[]>;
|
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
type RuntimeAbortSignal = globalThis.AbortSignal;
|
|
2
|
+
type RuntimeAbortController = {
|
|
3
|
+
signal: RuntimeAbortSignal;
|
|
4
|
+
abort(reason?: unknown): void;
|
|
5
|
+
};
|
|
6
|
+
declare const kInternalsSymbol: unique symbol;
|
|
7
|
+
declare function getIpc<K extends string | undefined>(key?: K): Promise<unknown>;
|
|
8
|
+
type ConstantAttributes<P extends Record<string, unknown>, G extends Record<string, () => unknown>, I extends Record<string, unknown>> = {
|
|
9
|
+
props: Readonly<P>;
|
|
10
|
+
getters: Readonly<G>;
|
|
11
|
+
internals: Readonly<I>;
|
|
12
|
+
};
|
|
13
|
+
type ConstantInternals<P extends Record<string, unknown>, G extends Record<string, () => unknown>, I extends Record<string, unknown>> = I & {
|
|
14
|
+
readonly attributes: ConstantAttributes<P, G, I>;
|
|
15
|
+
readonly lazyGetterStats: Readonly<{
|
|
16
|
+
initialized: Set<string | symbol>;
|
|
17
|
+
}>;
|
|
18
|
+
readonly createConstantsObject: typeof createConstantsObject;
|
|
19
|
+
readonly getIpc: typeof getIpc;
|
|
20
|
+
};
|
|
21
|
+
declare function createConstantsObject<P extends Record<string, unknown>, G extends Record<string, () => unknown>, I extends Record<string, unknown>>(props: P, options?: {
|
|
22
|
+
getters?: G;
|
|
23
|
+
internals?: I;
|
|
24
|
+
}): P & {
|
|
25
|
+
readonly kInternalsSymbol: typeof kInternalsSymbol;
|
|
26
|
+
readonly [kInternalsSymbol]: ConstantInternals<P, G, I>;
|
|
27
|
+
} & { readonly [K in keyof G]: ReturnType<G[K]>; };
|
|
28
|
+
declare const baseEnv: Readonly<{
|
|
29
|
+
APPDATA: string;
|
|
30
|
+
CI: boolean;
|
|
31
|
+
DEBUG: string;
|
|
32
|
+
HOME: string;
|
|
33
|
+
LOCALAPPDATA: string;
|
|
34
|
+
LOG_LEVEL: string;
|
|
35
|
+
NODE_AUTH_TOKEN: string;
|
|
36
|
+
NODE_ENV: string;
|
|
37
|
+
NODE_OPTIONS: string;
|
|
38
|
+
PRE_COMMIT: boolean;
|
|
39
|
+
SOCKET_CLI_DEBUG: boolean;
|
|
40
|
+
VITEST: boolean;
|
|
41
|
+
XDG_DATA_HOME: string;
|
|
42
|
+
}>;
|
|
43
|
+
declare function realNpm(): string;
|
|
44
|
+
declare function realPnpm(): string;
|
|
45
|
+
declare const runtimeConstants: {
|
|
46
|
+
readonly AT_LATEST: "@latest";
|
|
47
|
+
readonly BIOME_JSON: "biome.json";
|
|
48
|
+
readonly BUN: "bun";
|
|
49
|
+
readonly BUN_LOCK: "bun.lock";
|
|
50
|
+
readonly BUN_LOCKB: "bun.lockb";
|
|
51
|
+
readonly CI: "CI";
|
|
52
|
+
readonly COLUMN_LIMIT: 80;
|
|
53
|
+
readonly DOT_GIT_DIR: ".git";
|
|
54
|
+
readonly DOT_PACKAGE_LOCK_JSON: ".package-lock.json";
|
|
55
|
+
readonly DOT_SOCKET_DIR: ".socket";
|
|
56
|
+
readonly EMPTY_FILE: "/* empty */\n";
|
|
57
|
+
readonly EMPTY_VALUE: "<value>";
|
|
58
|
+
readonly ESLINT_CONFIG_JS: "eslint.config.js";
|
|
59
|
+
readonly ESNEXT: "esnext";
|
|
60
|
+
readonly EXT_CJS: ".cjs";
|
|
61
|
+
readonly EXT_CMD: ".cmd";
|
|
62
|
+
readonly EXT_CTS: ".cts";
|
|
63
|
+
readonly EXT_DTS: ".d.ts";
|
|
64
|
+
readonly EXT_JS: ".js";
|
|
65
|
+
readonly EXT_JSON: ".json";
|
|
66
|
+
readonly EXT_LOCK: ".lock";
|
|
67
|
+
readonly EXT_LOCKB: ".lockb";
|
|
68
|
+
readonly EXT_MD: ".md";
|
|
69
|
+
readonly EXT_MJS: ".mjs";
|
|
70
|
+
readonly EXT_MTS: ".mts";
|
|
71
|
+
readonly EXT_PS1: ".ps1";
|
|
72
|
+
readonly EXT_YAML: ".yaml";
|
|
73
|
+
readonly EXT_YML: ".yml";
|
|
74
|
+
readonly EXTENSIONS: "extensions";
|
|
75
|
+
readonly EXTENSIONS_JSON: "extensions.json";
|
|
76
|
+
readonly GITIGNORE: ".gitignore";
|
|
77
|
+
readonly LATEST: "latest";
|
|
78
|
+
readonly LICENSE: "LICENSE";
|
|
79
|
+
readonly LICENSE_GLOB: "LICEN[CS]E{[.-]*,}";
|
|
80
|
+
readonly LICENSE_GLOB_RECURSIVE: "**/LICEN[CS]E{[.-]*,}";
|
|
81
|
+
readonly LICENSE_ORIGINAL: "LICENSE.original";
|
|
82
|
+
readonly LICENSE_ORIGINAL_GLOB: "*.original{.*,}";
|
|
83
|
+
readonly LICENSE_ORIGINAL_GLOB_RECURSIVE: "**/*.original{.*,}";
|
|
84
|
+
readonly LOOP_SENTINEL: 1000000;
|
|
85
|
+
readonly MANIFEST_JSON: "manifest.json";
|
|
86
|
+
readonly MIT: "MIT";
|
|
87
|
+
readonly NODE_AUTH_TOKEN: "NODE_AUTH_TOKEN";
|
|
88
|
+
readonly NODE_ENV: "NODE_ENV";
|
|
89
|
+
readonly NODE_MODULES: "node_modules";
|
|
90
|
+
readonly NODE_MODULES_GLOB_RECURSIVE: "**/node_modules";
|
|
91
|
+
readonly NPM: "npm";
|
|
92
|
+
readonly NPM_SHRINKWRAP_JSON: "npm-shrinkwrap.json";
|
|
93
|
+
readonly NPX: "npx";
|
|
94
|
+
readonly OVERRIDES: "overrides";
|
|
95
|
+
readonly PACKAGE_DEFAULT_VERSION: "1.0.0";
|
|
96
|
+
readonly PACKAGE_JSON: "package.json";
|
|
97
|
+
readonly PACKAGE_LOCK_JSON: "package-lock.json";
|
|
98
|
+
readonly PNPM: "pnpm";
|
|
99
|
+
readonly PNPM_LOCK_YAML: "pnpm-lock.yaml";
|
|
100
|
+
readonly PRE_COMMIT: "PRE_COMMIT";
|
|
101
|
+
readonly README_GLOB: "README{.*,}";
|
|
102
|
+
readonly README_GLOB_RECURSIVE: "**/README{.*,}";
|
|
103
|
+
readonly README_MD: "README.md";
|
|
104
|
+
readonly REGISTRY: "registry";
|
|
105
|
+
readonly REGISTRY_SCOPE_DELIMITER: "__";
|
|
106
|
+
readonly RESOLUTIONS: "resolutions";
|
|
107
|
+
readonly SOCKET_GITHUB_ORG: "SocketDev";
|
|
108
|
+
readonly SOCKET_IPC_HANDSHAKE: "SOCKET_IPC_HANDSHAKE";
|
|
109
|
+
readonly SOCKET_OVERRIDE_SCOPE: "@socketoverride";
|
|
110
|
+
readonly SOCKET_PUBLIC_API_TOKEN: "sktsec_t_--RAN5U4ivauy4w37-6aoKyYPDt5ZbaT5JBVMqiwKo_api";
|
|
111
|
+
readonly SOCKET_REGISTRY_NPM_ORG: "socketregistry";
|
|
112
|
+
readonly SOCKET_REGISTRY_PACKAGE_NAME: "@socketsecurity/registry";
|
|
113
|
+
readonly SOCKET_REGISTRY_REPO_NAME: "socket-registry";
|
|
114
|
+
readonly SOCKET_REGISTRY_SCOPE: "@socketregistry";
|
|
115
|
+
readonly SOCKET_SECURITY_SCOPE: "@socketsecurity";
|
|
116
|
+
readonly TSCONFIG_JSON: "tsconfig.json";
|
|
117
|
+
readonly UNKNOWN_ERROR: "Unknown error";
|
|
118
|
+
readonly UNKNOWN_VALUE: "<unknown>";
|
|
119
|
+
readonly UNLICENCED: "UNLICENCED";
|
|
120
|
+
readonly UNLICENSED: "UNLICENSED";
|
|
121
|
+
readonly UTF8: "utf8";
|
|
122
|
+
readonly VITEST: "VITEST";
|
|
123
|
+
readonly VLT: "vlt";
|
|
124
|
+
readonly VLT_LOCK_JSON: "vlt-lock.json";
|
|
125
|
+
readonly YARN: "yarn";
|
|
126
|
+
readonly YARN_BERRY: "yarn/berry";
|
|
127
|
+
readonly YARN_CLASSIC: "yarn/classic";
|
|
128
|
+
readonly YARN_LOCK: "yarn.lock";
|
|
129
|
+
} & {
|
|
130
|
+
readonly kInternalsSymbol: typeof kInternalsSymbol;
|
|
131
|
+
readonly [kInternalsSymbol]: ConstantInternals<{
|
|
132
|
+
readonly AT_LATEST: "@latest";
|
|
133
|
+
readonly BIOME_JSON: "biome.json";
|
|
134
|
+
readonly BUN: "bun";
|
|
135
|
+
readonly BUN_LOCK: "bun.lock";
|
|
136
|
+
readonly BUN_LOCKB: "bun.lockb";
|
|
137
|
+
readonly CI: "CI";
|
|
138
|
+
readonly COLUMN_LIMIT: 80;
|
|
139
|
+
readonly DOT_GIT_DIR: ".git";
|
|
140
|
+
readonly DOT_PACKAGE_LOCK_JSON: ".package-lock.json";
|
|
141
|
+
readonly DOT_SOCKET_DIR: ".socket";
|
|
142
|
+
readonly EMPTY_FILE: "/* empty */\n";
|
|
143
|
+
readonly EMPTY_VALUE: "<value>";
|
|
144
|
+
readonly ESLINT_CONFIG_JS: "eslint.config.js";
|
|
145
|
+
readonly ESNEXT: "esnext";
|
|
146
|
+
readonly EXT_CJS: ".cjs";
|
|
147
|
+
readonly EXT_CMD: ".cmd";
|
|
148
|
+
readonly EXT_CTS: ".cts";
|
|
149
|
+
readonly EXT_DTS: ".d.ts";
|
|
150
|
+
readonly EXT_JS: ".js";
|
|
151
|
+
readonly EXT_JSON: ".json";
|
|
152
|
+
readonly EXT_LOCK: ".lock";
|
|
153
|
+
readonly EXT_LOCKB: ".lockb";
|
|
154
|
+
readonly EXT_MD: ".md";
|
|
155
|
+
readonly EXT_MJS: ".mjs";
|
|
156
|
+
readonly EXT_MTS: ".mts";
|
|
157
|
+
readonly EXT_PS1: ".ps1";
|
|
158
|
+
readonly EXT_YAML: ".yaml";
|
|
159
|
+
readonly EXT_YML: ".yml";
|
|
160
|
+
readonly EXTENSIONS: "extensions";
|
|
161
|
+
readonly EXTENSIONS_JSON: "extensions.json";
|
|
162
|
+
readonly GITIGNORE: ".gitignore";
|
|
163
|
+
readonly LATEST: "latest";
|
|
164
|
+
readonly LICENSE: "LICENSE";
|
|
165
|
+
readonly LICENSE_GLOB: "LICEN[CS]E{[.-]*,}";
|
|
166
|
+
readonly LICENSE_GLOB_RECURSIVE: "**/LICEN[CS]E{[.-]*,}";
|
|
167
|
+
readonly LICENSE_ORIGINAL: "LICENSE.original";
|
|
168
|
+
readonly LICENSE_ORIGINAL_GLOB: "*.original{.*,}";
|
|
169
|
+
readonly LICENSE_ORIGINAL_GLOB_RECURSIVE: "**/*.original{.*,}";
|
|
170
|
+
readonly LOOP_SENTINEL: 1000000;
|
|
171
|
+
readonly MANIFEST_JSON: "manifest.json";
|
|
172
|
+
readonly MIT: "MIT";
|
|
173
|
+
readonly NODE_AUTH_TOKEN: "NODE_AUTH_TOKEN";
|
|
174
|
+
readonly NODE_ENV: "NODE_ENV";
|
|
175
|
+
readonly NODE_MODULES: "node_modules";
|
|
176
|
+
readonly NODE_MODULES_GLOB_RECURSIVE: "**/node_modules";
|
|
177
|
+
readonly NPM: "npm";
|
|
178
|
+
readonly NPM_SHRINKWRAP_JSON: "npm-shrinkwrap.json";
|
|
179
|
+
readonly NPX: "npx";
|
|
180
|
+
readonly OVERRIDES: "overrides";
|
|
181
|
+
readonly PACKAGE_DEFAULT_VERSION: "1.0.0";
|
|
182
|
+
readonly PACKAGE_JSON: "package.json";
|
|
183
|
+
readonly PACKAGE_LOCK_JSON: "package-lock.json";
|
|
184
|
+
readonly PNPM: "pnpm";
|
|
185
|
+
readonly PNPM_LOCK_YAML: "pnpm-lock.yaml";
|
|
186
|
+
readonly PRE_COMMIT: "PRE_COMMIT";
|
|
187
|
+
readonly README_GLOB: "README{.*,}";
|
|
188
|
+
readonly README_GLOB_RECURSIVE: "**/README{.*,}";
|
|
189
|
+
readonly README_MD: "README.md";
|
|
190
|
+
readonly REGISTRY: "registry";
|
|
191
|
+
readonly REGISTRY_SCOPE_DELIMITER: "__";
|
|
192
|
+
readonly RESOLUTIONS: "resolutions";
|
|
193
|
+
readonly SOCKET_GITHUB_ORG: "SocketDev";
|
|
194
|
+
readonly SOCKET_IPC_HANDSHAKE: "SOCKET_IPC_HANDSHAKE";
|
|
195
|
+
readonly SOCKET_OVERRIDE_SCOPE: "@socketoverride";
|
|
196
|
+
readonly SOCKET_PUBLIC_API_TOKEN: "sktsec_t_--RAN5U4ivauy4w37-6aoKyYPDt5ZbaT5JBVMqiwKo_api";
|
|
197
|
+
readonly SOCKET_REGISTRY_NPM_ORG: "socketregistry";
|
|
198
|
+
readonly SOCKET_REGISTRY_PACKAGE_NAME: "@socketsecurity/registry";
|
|
199
|
+
readonly SOCKET_REGISTRY_REPO_NAME: "socket-registry";
|
|
200
|
+
readonly SOCKET_REGISTRY_SCOPE: "@socketregistry";
|
|
201
|
+
readonly SOCKET_SECURITY_SCOPE: "@socketsecurity";
|
|
202
|
+
readonly TSCONFIG_JSON: "tsconfig.json";
|
|
203
|
+
readonly UNKNOWN_ERROR: "Unknown error";
|
|
204
|
+
readonly UNKNOWN_VALUE: "<unknown>";
|
|
205
|
+
readonly UNLICENCED: "UNLICENCED";
|
|
206
|
+
readonly UNLICENSED: "UNLICENSED";
|
|
207
|
+
readonly UTF8: "utf8";
|
|
208
|
+
readonly VITEST: "VITEST";
|
|
209
|
+
readonly VLT: "vlt";
|
|
210
|
+
readonly VLT_LOCK_JSON: "vlt-lock.json";
|
|
211
|
+
readonly YARN: "yarn";
|
|
212
|
+
readonly YARN_BERRY: "yarn/berry";
|
|
213
|
+
readonly YARN_CLASSIC: "yarn/classic";
|
|
214
|
+
readonly YARN_LOCK: "yarn.lock";
|
|
215
|
+
}, {
|
|
216
|
+
abortSignal: () => AbortSignal;
|
|
217
|
+
execPath: () => string;
|
|
218
|
+
maintainedNodeVersions: () => Readonly<string[] & {
|
|
219
|
+
last: string;
|
|
220
|
+
previous: string;
|
|
221
|
+
current: string;
|
|
222
|
+
next: string;
|
|
223
|
+
}>;
|
|
224
|
+
NODE_VERSION: () => string;
|
|
225
|
+
nodeNoWarningsFlags: () => readonly string[];
|
|
226
|
+
npmExecPath: typeof realNpm;
|
|
227
|
+
npmRealExecPath: () => string;
|
|
228
|
+
pnpmExecPath: typeof realPnpm;
|
|
229
|
+
spinner: () => import("../utils/spinner.mts").Spinner;
|
|
230
|
+
SUPPORTS_NODE_PERMISSION_FLAG: () => boolean;
|
|
231
|
+
SUPPORTS_NODE_COMPILE_CACHE_ENV_VAR: () => boolean;
|
|
232
|
+
WIN32: () => boolean;
|
|
233
|
+
abortController: () => RuntimeAbortController;
|
|
234
|
+
DARWIN: () => boolean;
|
|
235
|
+
ENV: () => Readonly<{
|
|
236
|
+
APPDATA: string;
|
|
237
|
+
CI: boolean;
|
|
238
|
+
DEBUG: string;
|
|
239
|
+
HOME: string;
|
|
240
|
+
LOCALAPPDATA: string;
|
|
241
|
+
LOG_LEVEL: string;
|
|
242
|
+
NODE_AUTH_TOKEN: string;
|
|
243
|
+
NODE_ENV: string;
|
|
244
|
+
NODE_OPTIONS: string;
|
|
245
|
+
PRE_COMMIT: boolean;
|
|
246
|
+
SOCKET_CLI_DEBUG: boolean;
|
|
247
|
+
VITEST: boolean;
|
|
248
|
+
XDG_DATA_HOME: string;
|
|
249
|
+
}>;
|
|
250
|
+
}, {
|
|
251
|
+
createConstantsObject: typeof createConstantsObject;
|
|
252
|
+
getIpc: typeof getIpc;
|
|
253
|
+
}>;
|
|
254
|
+
} & {
|
|
255
|
+
readonly abortSignal: AbortSignal;
|
|
256
|
+
readonly execPath: string;
|
|
257
|
+
readonly maintainedNodeVersions: Readonly<string[] & {
|
|
258
|
+
last: string;
|
|
259
|
+
previous: string;
|
|
260
|
+
current: string;
|
|
261
|
+
next: string;
|
|
262
|
+
}>;
|
|
263
|
+
readonly NODE_VERSION: string;
|
|
264
|
+
readonly nodeNoWarningsFlags: readonly string[];
|
|
265
|
+
readonly npmExecPath: string;
|
|
266
|
+
readonly npmRealExecPath: string;
|
|
267
|
+
readonly pnpmExecPath: string;
|
|
268
|
+
readonly spinner: import("../utils/spinner.mts").Spinner;
|
|
269
|
+
readonly SUPPORTS_NODE_PERMISSION_FLAG: boolean;
|
|
270
|
+
readonly SUPPORTS_NODE_COMPILE_CACHE_ENV_VAR: boolean;
|
|
271
|
+
readonly WIN32: boolean;
|
|
272
|
+
readonly abortController: RuntimeAbortController;
|
|
273
|
+
readonly DARWIN: boolean;
|
|
274
|
+
readonly ENV: Readonly<{
|
|
275
|
+
APPDATA: string;
|
|
276
|
+
CI: boolean;
|
|
277
|
+
DEBUG: string;
|
|
278
|
+
HOME: string;
|
|
279
|
+
LOCALAPPDATA: string;
|
|
280
|
+
LOG_LEVEL: string;
|
|
281
|
+
NODE_AUTH_TOKEN: string;
|
|
282
|
+
NODE_ENV: string;
|
|
283
|
+
NODE_OPTIONS: string;
|
|
284
|
+
PRE_COMMIT: boolean;
|
|
285
|
+
SOCKET_CLI_DEBUG: boolean;
|
|
286
|
+
VITEST: boolean;
|
|
287
|
+
XDG_DATA_HOME: string;
|
|
288
|
+
}>;
|
|
289
|
+
};
|
|
290
|
+
declare const runtimeConstantsAttribs: ConstantAttributes<{
|
|
291
|
+
readonly AT_LATEST: "@latest";
|
|
292
|
+
readonly BIOME_JSON: "biome.json";
|
|
293
|
+
readonly BUN: "bun";
|
|
294
|
+
readonly BUN_LOCK: "bun.lock";
|
|
295
|
+
readonly BUN_LOCKB: "bun.lockb";
|
|
296
|
+
readonly CI: "CI";
|
|
297
|
+
readonly COLUMN_LIMIT: 80;
|
|
298
|
+
readonly DOT_GIT_DIR: ".git";
|
|
299
|
+
readonly DOT_PACKAGE_LOCK_JSON: ".package-lock.json";
|
|
300
|
+
readonly DOT_SOCKET_DIR: ".socket";
|
|
301
|
+
readonly EMPTY_FILE: "/* empty */\n";
|
|
302
|
+
readonly EMPTY_VALUE: "<value>";
|
|
303
|
+
readonly ESLINT_CONFIG_JS: "eslint.config.js";
|
|
304
|
+
readonly ESNEXT: "esnext";
|
|
305
|
+
readonly EXT_CJS: ".cjs";
|
|
306
|
+
readonly EXT_CMD: ".cmd";
|
|
307
|
+
readonly EXT_CTS: ".cts";
|
|
308
|
+
readonly EXT_DTS: ".d.ts";
|
|
309
|
+
readonly EXT_JS: ".js";
|
|
310
|
+
readonly EXT_JSON: ".json";
|
|
311
|
+
readonly EXT_LOCK: ".lock";
|
|
312
|
+
readonly EXT_LOCKB: ".lockb";
|
|
313
|
+
readonly EXT_MD: ".md";
|
|
314
|
+
readonly EXT_MJS: ".mjs";
|
|
315
|
+
readonly EXT_MTS: ".mts";
|
|
316
|
+
readonly EXT_PS1: ".ps1";
|
|
317
|
+
readonly EXT_YAML: ".yaml";
|
|
318
|
+
readonly EXT_YML: ".yml";
|
|
319
|
+
readonly EXTENSIONS: "extensions";
|
|
320
|
+
readonly EXTENSIONS_JSON: "extensions.json";
|
|
321
|
+
readonly GITIGNORE: ".gitignore";
|
|
322
|
+
readonly LATEST: "latest";
|
|
323
|
+
readonly LICENSE: "LICENSE";
|
|
324
|
+
readonly LICENSE_GLOB: "LICEN[CS]E{[.-]*,}";
|
|
325
|
+
readonly LICENSE_GLOB_RECURSIVE: "**/LICEN[CS]E{[.-]*,}";
|
|
326
|
+
readonly LICENSE_ORIGINAL: "LICENSE.original";
|
|
327
|
+
readonly LICENSE_ORIGINAL_GLOB: "*.original{.*,}";
|
|
328
|
+
readonly LICENSE_ORIGINAL_GLOB_RECURSIVE: "**/*.original{.*,}";
|
|
329
|
+
readonly LOOP_SENTINEL: 1000000;
|
|
330
|
+
readonly MANIFEST_JSON: "manifest.json";
|
|
331
|
+
readonly MIT: "MIT";
|
|
332
|
+
readonly NODE_AUTH_TOKEN: "NODE_AUTH_TOKEN";
|
|
333
|
+
readonly NODE_ENV: "NODE_ENV";
|
|
334
|
+
readonly NODE_MODULES: "node_modules";
|
|
335
|
+
readonly NODE_MODULES_GLOB_RECURSIVE: "**/node_modules";
|
|
336
|
+
readonly NPM: "npm";
|
|
337
|
+
readonly NPM_SHRINKWRAP_JSON: "npm-shrinkwrap.json";
|
|
338
|
+
readonly NPX: "npx";
|
|
339
|
+
readonly OVERRIDES: "overrides";
|
|
340
|
+
readonly PACKAGE_DEFAULT_VERSION: "1.0.0";
|
|
341
|
+
readonly PACKAGE_JSON: "package.json";
|
|
342
|
+
readonly PACKAGE_LOCK_JSON: "package-lock.json";
|
|
343
|
+
readonly PNPM: "pnpm";
|
|
344
|
+
readonly PNPM_LOCK_YAML: "pnpm-lock.yaml";
|
|
345
|
+
readonly PRE_COMMIT: "PRE_COMMIT";
|
|
346
|
+
readonly README_GLOB: "README{.*,}";
|
|
347
|
+
readonly README_GLOB_RECURSIVE: "**/README{.*,}";
|
|
348
|
+
readonly README_MD: "README.md";
|
|
349
|
+
readonly REGISTRY: "registry";
|
|
350
|
+
readonly REGISTRY_SCOPE_DELIMITER: "__";
|
|
351
|
+
readonly RESOLUTIONS: "resolutions";
|
|
352
|
+
readonly SOCKET_GITHUB_ORG: "SocketDev";
|
|
353
|
+
readonly SOCKET_IPC_HANDSHAKE: "SOCKET_IPC_HANDSHAKE";
|
|
354
|
+
readonly SOCKET_OVERRIDE_SCOPE: "@socketoverride";
|
|
355
|
+
readonly SOCKET_PUBLIC_API_TOKEN: "sktsec_t_--RAN5U4ivauy4w37-6aoKyYPDt5ZbaT5JBVMqiwKo_api";
|
|
356
|
+
readonly SOCKET_REGISTRY_NPM_ORG: "socketregistry";
|
|
357
|
+
readonly SOCKET_REGISTRY_PACKAGE_NAME: "@socketsecurity/registry";
|
|
358
|
+
readonly SOCKET_REGISTRY_REPO_NAME: "socket-registry";
|
|
359
|
+
readonly SOCKET_REGISTRY_SCOPE: "@socketregistry";
|
|
360
|
+
readonly SOCKET_SECURITY_SCOPE: "@socketsecurity";
|
|
361
|
+
readonly TSCONFIG_JSON: "tsconfig.json";
|
|
362
|
+
readonly UNKNOWN_ERROR: "Unknown error";
|
|
363
|
+
readonly UNKNOWN_VALUE: "<unknown>";
|
|
364
|
+
readonly UNLICENCED: "UNLICENCED";
|
|
365
|
+
readonly UNLICENSED: "UNLICENSED";
|
|
366
|
+
readonly UTF8: "utf8";
|
|
367
|
+
readonly VITEST: "VITEST";
|
|
368
|
+
readonly VLT: "vlt";
|
|
369
|
+
readonly VLT_LOCK_JSON: "vlt-lock.json";
|
|
370
|
+
readonly YARN: "yarn";
|
|
371
|
+
readonly YARN_BERRY: "yarn/berry";
|
|
372
|
+
readonly YARN_CLASSIC: "yarn/classic";
|
|
373
|
+
readonly YARN_LOCK: "yarn.lock";
|
|
374
|
+
}, {
|
|
375
|
+
abortSignal: () => AbortSignal;
|
|
376
|
+
execPath: () => string;
|
|
377
|
+
maintainedNodeVersions: () => Readonly<string[] & {
|
|
378
|
+
last: string;
|
|
379
|
+
previous: string;
|
|
380
|
+
current: string;
|
|
381
|
+
next: string;
|
|
382
|
+
}>;
|
|
383
|
+
NODE_VERSION: () => string;
|
|
384
|
+
nodeNoWarningsFlags: () => readonly string[];
|
|
385
|
+
npmExecPath: typeof realNpm;
|
|
386
|
+
npmRealExecPath: () => string;
|
|
387
|
+
pnpmExecPath: typeof realPnpm;
|
|
388
|
+
spinner: () => import("../utils/spinner.mts").Spinner;
|
|
389
|
+
SUPPORTS_NODE_PERMISSION_FLAG: () => boolean;
|
|
390
|
+
SUPPORTS_NODE_COMPILE_CACHE_ENV_VAR: () => boolean;
|
|
391
|
+
WIN32: () => boolean;
|
|
392
|
+
abortController: () => RuntimeAbortController;
|
|
393
|
+
DARWIN: () => boolean;
|
|
394
|
+
ENV: () => Readonly<{
|
|
395
|
+
APPDATA: string;
|
|
396
|
+
CI: boolean;
|
|
397
|
+
DEBUG: string;
|
|
398
|
+
HOME: string;
|
|
399
|
+
LOCALAPPDATA: string;
|
|
400
|
+
LOG_LEVEL: string;
|
|
401
|
+
NODE_AUTH_TOKEN: string;
|
|
402
|
+
NODE_ENV: string;
|
|
403
|
+
NODE_OPTIONS: string;
|
|
404
|
+
PRE_COMMIT: boolean;
|
|
405
|
+
SOCKET_CLI_DEBUG: boolean;
|
|
406
|
+
VITEST: boolean;
|
|
407
|
+
XDG_DATA_HOME: string;
|
|
408
|
+
}>;
|
|
409
|
+
}, {
|
|
410
|
+
createConstantsObject: typeof createConstantsObject;
|
|
411
|
+
getIpc: typeof getIpc;
|
|
412
|
+
}>;
|
|
413
|
+
export { createConstantsObject, getIpc, kInternalsSymbol, runtimeConstantsAttribs, };
|
|
414
|
+
export type RuntimeConstants = typeof runtimeConstants;
|
|
415
|
+
export type RuntimeEnv = typeof baseEnv;
|
|
416
|
+
export type RuntimeInternals = (typeof runtimeConstants)[typeof kInternalsSymbol];
|
|
417
|
+
export default runtimeConstants;
|