@socketsecurity/cli-with-sentry 0.15.10 → 0.15.12
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/bin/cli.js +6 -6
- package/dist/.config/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/cli.js +5731 -6607
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +274 -305
- package/dist/constants.js.map +1 -1
- package/dist/instrument-with-sentry.js +28 -34
- package/dist/instrument-with-sentry.js.map +1 -1
- package/dist/shadow-bin.js +96 -123
- package/dist/shadow-bin.js.map +1 -1
- package/dist/shadow-inject.js +470 -580
- package/dist/shadow-inject.js.map +1 -1
- package/dist/socket-completion.bash +221 -0
- package/dist/types/cli.d.mts +2 -2
- package/dist/types/commands/analytics/cmd-analytics.d.mts +9 -15
- package/dist/types/commands/analytics/fetch-org-analytics.d.mts +4 -6
- package/dist/types/commands/analytics/fetch-repo-analytics.d.mts +4 -7
- package/dist/types/commands/analytics/handle-analytics.d.mts +9 -15
- package/dist/types/commands/analytics/handle-analytics.d.mts.map +1 -1
- package/dist/types/commands/analytics/output-analytics.d.mts +26 -46
- package/dist/types/commands/analytics/output-analytics.d.mts.map +1 -1
- package/dist/types/commands/audit-log/cmd-audit-log.d.mts +9 -15
- package/dist/types/commands/audit-log/fetch-audit-log.d.mts +10 -16
- package/dist/types/commands/audit-log/fetch-audit-log.d.mts.map +1 -1
- package/dist/types/commands/audit-log/handle-audit-log.d.mts +9 -15
- package/dist/types/commands/audit-log/handle-audit-log.d.mts.map +1 -1
- package/dist/types/commands/audit-log/output-audit-log.d.mts +22 -47
- package/dist/types/commands/audit-log/output-audit-log.d.mts.map +1 -1
- package/dist/types/commands/cdxgen/cmd-cdxgen.d.mts +9 -15
- package/dist/types/commands/cdxgen/cmd-cdxgen.d.mts.map +1 -1
- package/dist/types/commands/cdxgen/handle-cdxgen.d.mts +4 -0
- package/dist/types/commands/cdxgen/handle-cdxgen.d.mts.map +1 -0
- package/dist/types/commands/ci/cmd-ci.d.mts +9 -15
- package/dist/types/commands/ci/fetch-default-org-slug.d.mts +3 -3
- package/dist/types/commands/ci/handle-ci.d.mts +2 -2
- package/dist/types/commands/config/cmd-config-auto.d.mts +9 -15
- package/dist/types/commands/config/cmd-config-get.d.mts +9 -15
- package/dist/types/commands/config/cmd-config-list.d.mts +9 -15
- package/dist/types/commands/config/cmd-config-set.d.mts +9 -15
- package/dist/types/commands/config/cmd-config-unset.d.mts +9 -15
- package/dist/types/commands/config/cmd-config.d.mts +3 -3
- package/dist/types/commands/config/discover-config-value.d.mts +3 -5
- package/dist/types/commands/config/discover-config-value.d.mts.map +1 -1
- package/dist/types/commands/config/handle-config-auto.d.mts +7 -10
- package/dist/types/commands/config/handle-config-auto.d.mts.map +1 -1
- package/dist/types/commands/config/handle-config-get.d.mts +7 -10
- package/dist/types/commands/config/handle-config-get.d.mts.map +1 -1
- package/dist/types/commands/config/handle-config-set.d.mts +8 -12
- package/dist/types/commands/config/handle-config-set.d.mts.map +1 -1
- package/dist/types/commands/config/handle-config-unset.d.mts +7 -10
- package/dist/types/commands/config/handle-config-unset.d.mts.map +1 -1
- package/dist/types/commands/config/output-config-auto.d.mts +4 -8
- package/dist/types/commands/config/output-config-get.d.mts +4 -8
- package/dist/types/commands/config/output-config-list.d.mts +6 -9
- package/dist/types/commands/config/output-config-list.d.mts.map +1 -1
- package/dist/types/commands/config/output-config-set.d.mts +3 -6
- package/dist/types/commands/config/output-config-unset.d.mts +3 -6
- package/dist/types/commands/dependencies/cmd-dependencies.d.mts +9 -15
- package/dist/types/commands/dependencies/fetch-dependencies.d.mts +7 -10
- package/dist/types/commands/dependencies/fetch-dependencies.d.mts.map +1 -1
- package/dist/types/commands/dependencies/handle-dependencies.d.mts +7 -11
- package/dist/types/commands/dependencies/handle-dependencies.d.mts.map +1 -1
- package/dist/types/commands/dependencies/output-dependencies.d.mts +8 -15
- package/dist/types/commands/dependencies/output-dependencies.d.mts.map +1 -1
- package/dist/types/commands/diff-scan/cmd-diff-scan-get.d.mts +9 -15
- package/dist/types/commands/diff-scan/cmd-diff-scan.d.mts +3 -3
- package/dist/types/commands/diff-scan/fetch-diff-scan.d.mts +8 -12
- package/dist/types/commands/diff-scan/fetch-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/diff-scan/handle-diff-scan.d.mts +10 -17
- package/dist/types/commands/diff-scan/handle-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/diff-scan/output-diff-scan.d.mts +8 -15
- package/dist/types/commands/diff-scan/output-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/fix/cmd-fix.d.mts +9 -15
- package/dist/types/commands/fix/git.d.mts +14 -49
- package/dist/types/commands/fix/npm-fix.d.mts +4 -16
- package/dist/types/commands/fix/npm-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/open-pr.d.mts +20 -46
- package/dist/types/commands/fix/open-pr.d.mts.map +1 -1
- package/dist/types/commands/fix/pnpm-fix.d.mts +4 -16
- package/dist/types/commands/fix/pnpm-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/run-fix.d.mts +3 -3
- package/dist/types/commands/fix/shared.d.mts +9 -15
- package/dist/types/commands/fix/types.d.mts +16 -16
- package/dist/types/commands/info/cmd-info.d.mts +9 -15
- package/dist/types/commands/info/fetch-package-info.d.mts +3 -7
- package/dist/types/commands/info/handle-package-info.d.mts +15 -22
- package/dist/types/commands/info/handle-package-info.d.mts.map +1 -1
- package/dist/types/commands/info/output-package-info.d.mts +10 -18
- package/dist/types/commands/info/output-package-info.d.mts.map +1 -1
- package/dist/types/commands/install/cmd-install-completion.d.mts +10 -0
- package/dist/types/commands/install/cmd-install-completion.d.mts.map +1 -0
- package/dist/types/commands/install/cmd-install.d.mts +3 -0
- package/dist/types/commands/install/cmd-install.d.mts.map +1 -0
- package/dist/types/commands/install/handle-install-completion.d.mts +2 -0
- package/dist/types/commands/install/handle-install-completion.d.mts.map +1 -0
- package/dist/types/commands/install/output-install-completion.d.mts +12 -0
- package/dist/types/commands/install/output-install-completion.d.mts.map +1 -0
- package/dist/types/commands/install/setup-tab-completion.d.mts +13 -0
- package/dist/types/commands/install/setup-tab-completion.d.mts.map +1 -0
- package/dist/types/commands/login/apply-login.d.mts +2 -7
- package/dist/types/commands/login/attempt-login.d.mts +2 -5
- package/dist/types/commands/login/attempt-login.d.mts.map +1 -1
- package/dist/types/commands/login/cmd-login.d.mts +9 -15
- package/dist/types/commands/logout/apply-logout.d.mts +2 -2
- package/dist/types/commands/logout/attempt-logout.d.mts +2 -2
- package/dist/types/commands/logout/cmd-logout.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest-auto.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts +10 -0
- package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +1 -0
- package/dist/types/commands/manifest/cmd-manifest-conda.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest-scala.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest.d.mts.map +1 -1
- package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts +7 -15
- package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts +2 -8
- package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts +2 -8
- package/dist/types/commands/manifest/handle-manifest-conda.d.mts +3 -9
- package/dist/types/commands/manifest/output-requirements.d.mts +6 -10
- package/dist/types/commands/{cdxgen → manifest}/run-cdxgen.d.mts +2 -2
- package/dist/types/commands/manifest/run-cdxgen.d.mts.map +1 -0
- package/dist/types/commands/npm/cmd-npm.d.mts +9 -15
- package/dist/types/commands/npx/cmd-npx.d.mts +9 -15
- package/dist/types/commands/oops/cmd-oops.d.mts +9 -15
- package/dist/types/commands/optimize/add-overrides.d.mts +18 -22
- package/dist/types/commands/optimize/apply-optimization.d.mts +2 -6
- package/dist/types/commands/optimize/cmd-optimize.d.mts +9 -15
- package/dist/types/commands/optimize/deps-includes-by-agent.d.mts +4 -7
- package/dist/types/commands/optimize/get-dependency-entries.d.mts +3 -5
- package/dist/types/commands/optimize/get-overrides-by-agent.d.mts +8 -11
- package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts +3 -10
- package/dist/types/commands/optimize/ls-by-agent.d.mts +6 -13
- package/dist/types/commands/optimize/shared.d.mts +2 -2
- package/dist/types/commands/optimize/types.d.mts +7 -7
- package/dist/types/commands/optimize/update-lockfile.d.mts +9 -12
- package/dist/types/commands/optimize/update-manifest-by-agent.d.mts +5 -11
- package/dist/types/commands/organization/cmd-organization-list.d.mts +9 -15
- package/dist/types/commands/organization/cmd-organization-policy-license.d.mts +9 -15
- package/dist/types/commands/organization/cmd-organization-policy-security.d.mts +9 -15
- package/dist/types/commands/organization/cmd-organization-policy.d.mts +3 -3
- package/dist/types/commands/organization/cmd-organization-quota.d.mts +9 -15
- package/dist/types/commands/organization/cmd-organization.d.mts +3 -3
- package/dist/types/commands/organization/fetch-license-policy.d.mts +4 -6
- package/dist/types/commands/organization/fetch-organization-list.d.mts +4 -6
- package/dist/types/commands/organization/fetch-quota.d.mts +4 -6
- package/dist/types/commands/organization/fetch-security-policy.d.mts +4 -6
- package/dist/types/commands/organization/handle-license-policy.d.mts +3 -6
- package/dist/types/commands/organization/handle-organization-list.d.mts +3 -5
- package/dist/types/commands/organization/handle-quota.d.mts +3 -3
- package/dist/types/commands/organization/handle-security-policy.d.mts +3 -6
- package/dist/types/commands/organization/output-license-policy.d.mts +4 -7
- package/dist/types/commands/organization/output-organization-list.d.mts +4 -7
- package/dist/types/commands/organization/output-quota.d.mts +4 -7
- package/dist/types/commands/organization/output-security-policy.d.mts +4 -7
- package/dist/types/commands/package/cmd-package-score.d.mts +9 -15
- package/dist/types/commands/package/cmd-package-shallow.d.mts +16 -22
- package/dist/types/commands/package/cmd-package.d.mts +3 -3
- package/dist/types/commands/package/fetch-purl-deep-score.d.mts +49 -51
- package/dist/types/commands/package/fetch-purls-shallow-score.d.mts +4 -6
- package/dist/types/commands/package/handle-purl-deep-score.d.mts +3 -6
- package/dist/types/commands/package/handle-purls-shallow-score.d.mts +6 -9
- package/dist/types/commands/package/handle-purls-shallow-score.d.mts.map +1 -1
- package/dist/types/commands/package/output-purl-score.d.mts +4 -8
- package/dist/types/commands/package/output-purls-shallow-score.d.mts +4 -8
- package/dist/types/commands/package/parse-package-specifiers.d.mts +5 -8
- package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts +9 -15
- package/dist/types/commands/raw-npm/run-raw-npm.d.mts +2 -4
- package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts +9 -15
- package/dist/types/commands/raw-npx/run-raw-npx.d.mts +2 -4
- package/dist/types/commands/report/cmd-report-create.d.mts +9 -15
- package/dist/types/commands/report/cmd-report-view.d.mts +9 -15
- package/dist/types/commands/report/cmd-report.d.mts +3 -3
- package/dist/types/commands/repos/cmd-repos-create.d.mts +9 -15
- package/dist/types/commands/repos/cmd-repos-del.d.mts +9 -15
- package/dist/types/commands/repos/cmd-repos-list.d.mts +9 -15
- package/dist/types/commands/repos/cmd-repos-update.d.mts +9 -15
- package/dist/types/commands/repos/cmd-repos-view.d.mts +9 -15
- package/dist/types/commands/repos/cmd-repos.d.mts +3 -3
- package/dist/types/commands/repos/fetch-create-repo.d.mts +11 -18
- package/dist/types/commands/repos/fetch-create-repo.d.mts.map +1 -1
- package/dist/types/commands/repos/fetch-delete-repo.d.mts +4 -7
- package/dist/types/commands/repos/fetch-list-repos.d.mts +10 -16
- package/dist/types/commands/repos/fetch-list-repos.d.mts.map +1 -1
- package/dist/types/commands/repos/fetch-update-repo.d.mts +11 -18
- package/dist/types/commands/repos/fetch-update-repo.d.mts.map +1 -1
- package/dist/types/commands/repos/fetch-view-repo.d.mts +4 -7
- package/dist/types/commands/repos/handle-create-repo.d.mts +10 -20
- package/dist/types/commands/repos/handle-create-repo.d.mts.map +1 -1
- package/dist/types/commands/repos/handle-delete-repo.d.mts +3 -7
- package/dist/types/commands/repos/handle-list-repos.d.mts +10 -17
- package/dist/types/commands/repos/handle-list-repos.d.mts.map +1 -1
- package/dist/types/commands/repos/handle-update-repo.d.mts +10 -20
- package/dist/types/commands/repos/handle-update-repo.d.mts.map +1 -1
- package/dist/types/commands/repos/handle-view-repo.d.mts +3 -7
- package/dist/types/commands/repos/output-create-repo.d.mts +4 -8
- package/dist/types/commands/repos/output-delete-repo.d.mts +4 -8
- package/dist/types/commands/repos/output-list-repos.d.mts +4 -7
- package/dist/types/commands/repos/output-update-repo.d.mts +4 -8
- package/dist/types/commands/repos/output-view-repo.d.mts +4 -7
- package/dist/types/commands/scan/cmd-scan-create.d.mts +9 -15
- package/dist/types/commands/scan/cmd-scan-del.d.mts +9 -15
- package/dist/types/commands/scan/cmd-scan-diff.d.mts +9 -15
- package/dist/types/commands/scan/cmd-scan-list.d.mts +3 -3
- package/dist/types/commands/scan/cmd-scan-metadata.d.mts +3 -3
- package/dist/types/commands/scan/cmd-scan-report.d.mts +3 -3
- package/dist/types/commands/scan/cmd-scan-view.d.mts +3 -3
- package/dist/types/commands/scan/cmd-scan.d.mts +3 -3
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +11 -26
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts +4 -7
- package/dist/types/commands/scan/fetch-diff-scan.d.mts +8 -12
- package/dist/types/commands/scan/fetch-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-list-scans.d.mts +13 -22
- package/dist/types/commands/scan/fetch-list-scans.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-report-data.d.mts +8 -14
- package/dist/types/commands/scan/fetch-scan-metadata.d.mts +4 -7
- package/dist/types/commands/scan/fetch-scan.d.mts +4 -7
- package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +4 -6
- package/dist/types/commands/scan/generate-report.d.mts +36 -50
- package/dist/types/commands/scan/generate-report.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-create-new-scan.d.mts +20 -37
- package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-delete-scan.d.mts +3 -7
- package/dist/types/commands/scan/handle-diff-scan.d.mts +10 -17
- package/dist/types/commands/scan/handle-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-list-scans.d.mts +13 -23
- package/dist/types/commands/scan/handle-list-scans.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-scan-metadata.d.mts +3 -7
- package/dist/types/commands/scan/handle-scan-report.d.mts +12 -21
- package/dist/types/commands/scan/handle-scan-report.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-scan-view.d.mts +3 -8
- package/dist/types/commands/scan/output-create-new-scan.d.mts +4 -8
- package/dist/types/commands/scan/output-delete-scan.d.mts +4 -7
- package/dist/types/commands/scan/output-diff-scan.d.mts +8 -15
- package/dist/types/commands/scan/output-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/output-list-scans.d.mts +4 -7
- package/dist/types/commands/scan/output-scan-metadata.d.mts +4 -8
- package/dist/types/commands/scan/output-scan-report.d.mts +20 -38
- package/dist/types/commands/scan/output-scan-report.d.mts.map +1 -1
- package/dist/types/commands/scan/output-scan-view.d.mts +4 -10
- package/dist/types/commands/scan/stream-scan.d.mts +2 -6
- package/dist/types/commands/scan/suggest-org-slug.d.mts +2 -2
- package/dist/types/commands/scan/suggest-repo-slug.d.mts +4 -4
- package/dist/types/commands/scan/suggest_branch_slug.d.mts +2 -4
- package/dist/types/commands/scan/suggest_target.d.mts +2 -2
- package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts +9 -15
- package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts +10 -16
- package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts.map +1 -1
- package/dist/types/commands/threat-feed/handle-threat-feed.d.mts +10 -17
- package/dist/types/commands/threat-feed/handle-threat-feed.d.mts.map +1 -1
- package/dist/types/commands/threat-feed/output-threat-feed.d.mts +4 -7
- package/dist/types/commands/threat-feed/types.d.mts +12 -12
- package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts +9 -0
- package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts.map +1 -0
- package/dist/types/commands/uninstall/cmd-uninstall.d.mts +3 -0
- package/dist/types/commands/uninstall/cmd-uninstall.d.mts.map +1 -0
- package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts +2 -0
- package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts.map +1 -0
- package/dist/types/commands/uninstall/output-uninstall-completion.d.mts +6 -0
- package/dist/types/commands/uninstall/output-uninstall-completion.d.mts.map +1 -0
- package/dist/types/commands/uninstall/teardown-tab-completion.d.mts +6 -0
- package/dist/types/commands/uninstall/teardown-tab-completion.d.mts.map +1 -0
- package/dist/types/commands/wrapper/add-socket-wrapper.d.mts +2 -2
- package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts +2 -2
- package/dist/types/commands/wrapper/cmd-wrapper.d.mts +9 -15
- package/dist/types/commands/wrapper/postinstall-wrapper.d.mts +2 -2
- package/dist/types/commands/wrapper/postinstall-wrapper.d.mts.map +1 -1
- package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts +2 -2
- package/dist/types/constants.d.mts +125 -135
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/flags.d.mts +14 -17
- package/dist/types/flags.d.mts.map +1 -1
- package/dist/types/instrument-with-sentry.d.mts +2 -2
- package/dist/types/shadow/npm/arborist/index.d.mts +2 -2
- package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts +19 -24
- package/dist/types/shadow/npm/arborist/lib/arborist/types.d.mts +43 -71
- package/dist/types/shadow/npm/arborist/lib/dep-valid.d.mts +3 -8
- package/dist/types/shadow/npm/arborist/lib/edge.d.mts +58 -71
- package/dist/types/shadow/npm/arborist/lib/node.d.mts +55 -91
- package/dist/types/shadow/npm/arborist/lib/override-set.d.mts +26 -32
- package/dist/types/shadow/npm/arborist-helpers.d.mts +33 -66
- package/dist/types/shadow/npm/arborist-helpers.d.mts.map +1 -1
- package/dist/types/shadow/npm/bin.d.mts +2 -5
- package/dist/types/shadow/npm/inject.d.mts +2 -2
- package/dist/types/shadow/npm/install.d.mts +11 -16
- package/dist/types/shadow/npm/link.d.mts +2 -5
- package/dist/types/shadow/npm/paths.d.mts +7 -7
- package/dist/types/shadow/npm/proc-log/index.d.mts +3 -6
- package/dist/types/types.d.mts +15 -17
- package/dist/types/utils/agent.d.mts +11 -14
- package/dist/types/utils/alert/artifact.d.mts +32 -50
- package/dist/types/utils/alert/fix.d.mts +5 -5
- package/dist/types/utils/alert/severity.d.mts +12 -24
- package/dist/types/utils/alerts-map.d.mts +23 -36
- package/dist/types/utils/api.d.mts +11 -34
- package/dist/types/utils/check-input.d.mts +9 -12
- package/dist/types/utils/cmd.d.mts +4 -4
- package/dist/types/utils/color-or-markdown.d.mts +14 -23
- package/dist/types/utils/color-or-markdown.d.mts.map +1 -1
- package/dist/types/utils/completion.d.mts +11 -0
- package/dist/types/utils/completion.d.mts.map +1 -0
- package/dist/types/utils/config.d.mts +22 -31
- package/dist/types/utils/config.d.mts.map +1 -1
- package/dist/types/utils/determine-org-slug.d.mts +2 -7
- package/dist/types/utils/errors.d.mts +12 -21
- package/dist/types/utils/fail-msg-with-badge.d.mts +2 -5
- package/dist/types/utils/fs.d.mts +21 -52
- package/dist/types/utils/get-output-kind.d.mts +3 -6
- package/dist/types/utils/glob.d.mts +13 -24
- package/dist/types/utils/map-to-object.d.mts +4 -6
- package/dist/types/utils/markdown.d.mts +4 -15
- package/dist/types/utils/meow-with-subcommands.d.mts +34 -46
- package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
- package/dist/types/utils/npm-paths.d.mts +7 -7
- package/dist/types/utils/npm-paths.d.mts.map +1 -1
- package/dist/types/utils/objects.d.mts +3 -8
- package/dist/types/utils/output-formatting.d.mts +14 -24
- package/dist/types/utils/package-environment.d.mts +51 -72
- package/dist/types/utils/package-environment.d.mts.map +1 -1
- package/dist/types/utils/path-resolve.d.mts +9 -14
- package/dist/types/utils/pnpm.d.mts +9 -7
- package/dist/types/utils/pnpm.d.mts.map +1 -1
- package/dist/types/utils/sdk.d.mts +8 -12
- package/dist/types/utils/semver.d.mts +5 -17
- package/dist/types/utils/serialize-result-json.d.mts +3 -3
- package/dist/types/utils/socket-package-alert.d.mts +62 -81
- package/dist/types/utils/socket-url.d.mts +9 -15
- package/dist/types/utils/spec.d.mts +4 -7
- package/dist/types/utils/spec.d.mts.map +1 -1
- package/dist/types/utils/strings.d.mts +2 -5
- package/dist/types/utils/translations.d.mts +592 -592
- package/dist/types/utils/walk-nested-map.d.mts +7 -10
- package/dist/utils.js +1531 -1833
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +38333 -51605
- package/dist/vendor.js.map +1 -1
- package/external/@socketsecurity/registry/external/@npmcli/package-json/index.js +5 -8
- package/external/@socketsecurity/registry/external/@npmcli/promise-spawn.js +2 -4
- package/external/@socketsecurity/registry/external/cacache.js +1 -2
- package/external/@socketsecurity/registry/external/libnpmpack.js +36 -76
- package/external/@socketsecurity/registry/external/make-fetch-happen.js +31 -67
- package/external/@socketsecurity/registry/external/pacote.js +36 -76
- package/external/@socketsecurity/registry/external/tinyglobby.js +3 -6
- package/external/@socketsecurity/registry/external/which.js +2 -4
- package/external/@socketsecurity/registry/lib/logger.d.ts +4 -1
- package/external/@socketsecurity/registry/lib/logger.js +160 -73
- package/external/@socketsecurity/registry/lib/spinner.js +5 -1
- package/external/@socketsecurity/registry/package.json +2 -2
- package/external/blessed/lib/alias.js +475 -468
- package/external/blessed/lib/blessed.js +12 -12
- package/external/blessed/lib/colors.js +234 -194
- package/external/blessed/lib/events.js +64 -70
- package/external/blessed/lib/gpmclient.js +117 -141
- package/external/blessed/lib/helpers.js +89 -94
- package/external/blessed/lib/keys.js +169 -342
- package/external/blessed/lib/program.js +2130 -2365
- package/external/blessed/lib/tput.js +1183 -1276
- package/external/blessed/lib/unicode.js +400 -522
- package/external/blessed/lib/widget.js +14 -14
- package/external/blessed/lib/widgets/ansiimage.js +90 -96
- package/external/blessed/lib/widgets/bigtext.js +91 -102
- package/external/blessed/lib/widgets/box.js +8 -8
- package/external/blessed/lib/widgets/button.js +23 -23
- package/external/blessed/lib/widgets/checkbox.js +50 -54
- package/external/blessed/lib/widgets/element.js +1415 -1716
- package/external/blessed/lib/widgets/filemanager.js +107 -118
- package/external/blessed/lib/widgets/form.js +144 -178
- package/external/blessed/lib/widgets/image.js +26 -36
- package/external/blessed/lib/widgets/input.js +8 -8
- package/external/blessed/lib/widgets/layout.js +103 -119
- package/external/blessed/lib/widgets/line.js +17 -20
- package/external/blessed/lib/widgets/list.js +349 -402
- package/external/blessed/lib/widgets/listbar.js +265 -306
- package/external/blessed/lib/widgets/listtable.js +133 -146
- package/external/blessed/lib/widgets/loading.js +31 -31
- package/external/blessed/lib/widgets/log.js +41 -40
- package/external/blessed/lib/widgets/message.js +64 -86
- package/external/blessed/lib/widgets/node.js +175 -207
- package/external/blessed/lib/widgets/overlayimage.js +360 -437
- package/external/blessed/lib/widgets/progressbar.js +79 -88
- package/external/blessed/lib/widgets/prompt.js +54 -61
- package/external/blessed/lib/widgets/question.js +48 -61
- package/external/blessed/lib/widgets/radiobutton.js +26 -27
- package/external/blessed/lib/widgets/radioset.js +8 -8
- package/external/blessed/lib/widgets/screen.js +1186 -1375
- package/external/blessed/lib/widgets/scrollablebox.js +202 -228
- package/external/blessed/lib/widgets/scrollabletext.js +9 -9
- package/external/blessed/lib/widgets/table.js +187 -216
- package/external/blessed/lib/widgets/terminal.js +258 -298
- package/external/blessed/lib/widgets/text.js +9 -9
- package/external/blessed/lib/widgets/textarea.js +188 -222
- package/external/blessed/lib/widgets/textbox.js +34 -36
- package/external/blessed/lib/widgets/video.js +55 -59
- package/external/blessed/usr/fonts/ter-u14b.json +1 -1
- package/external/blessed/usr/fonts/ter-u14n.json +1 -1
- package/external/blessed/vendor/tng.js +1016 -1144
- package/external/blessed-contrib/lib/layout/grid.js +345 -377
- package/external/blessed-contrib/lib/widget/charts/bar.js +6612 -7139
- package/external/blessed-contrib/lib/widget/charts/line.js +16224 -23941
- package/external/blessed-contrib/lib/widget/table.js +78 -96
- package/package.json +9 -9
- package/dist/types/commands/cdxgen/run-cdxgen.d.mts.map +0 -1
|
@@ -1,75 +1,62 @@
|
|
|
1
|
-
import { SafeNode } from './node.mts'
|
|
2
|
-
import { SafeOverrideSet } from './override-set.mts'
|
|
3
|
-
import type { Edge as BaseEdge, DependencyProblem } from '@npmcli/arborist'
|
|
4
|
-
type EdgeClass = Omit<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
optional: boolean
|
|
19
|
-
overrides: SafeOverrideSet | undefined
|
|
20
|
-
peer: boolean
|
|
21
|
-
peerConflicted: boolean
|
|
22
|
-
rawSpec: string
|
|
23
|
-
get accept(): string | undefined
|
|
24
|
-
get spec(): string
|
|
25
|
-
get to(): SafeNode | null
|
|
26
|
-
new (...args: any): EdgeClass
|
|
27
|
-
detach(): void
|
|
28
|
-
reload(hard?: boolean): void
|
|
29
|
-
satisfiedBy(node: SafeNode): boolean
|
|
30
|
-
}
|
|
1
|
+
import { SafeNode } from './node.mts';
|
|
2
|
+
import { SafeOverrideSet } from './override-set.mts';
|
|
3
|
+
import type { Edge as BaseEdge, DependencyProblem } from '@npmcli/arborist';
|
|
4
|
+
type EdgeClass = Omit<BaseEdge, 'accept' | 'detach' | 'optional' | 'overrides' | 'peer' | 'peerConflicted' | 'rawSpec' | 'reload' | 'satisfiedBy' | 'spec' | 'to'> & {
|
|
5
|
+
optional: boolean;
|
|
6
|
+
overrides: SafeOverrideSet | undefined;
|
|
7
|
+
peer: boolean;
|
|
8
|
+
peerConflicted: boolean;
|
|
9
|
+
rawSpec: string;
|
|
10
|
+
get accept(): string | undefined;
|
|
11
|
+
get spec(): string;
|
|
12
|
+
get to(): SafeNode | null;
|
|
13
|
+
new (...args: any): EdgeClass;
|
|
14
|
+
detach(): void;
|
|
15
|
+
reload(hard?: boolean): void;
|
|
16
|
+
satisfiedBy(node: SafeNode): boolean;
|
|
17
|
+
};
|
|
31
18
|
export type EdgeOptions = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
export type ErrorStatus = DependencyProblem | 'OK'
|
|
19
|
+
type: string;
|
|
20
|
+
name: string;
|
|
21
|
+
spec: string;
|
|
22
|
+
from: SafeNode;
|
|
23
|
+
accept?: string | undefined;
|
|
24
|
+
overrides?: SafeOverrideSet | undefined;
|
|
25
|
+
to?: SafeNode | undefined;
|
|
26
|
+
};
|
|
27
|
+
export type ErrorStatus = DependencyProblem | 'OK';
|
|
41
28
|
export type Explanation = {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} | null
|
|
51
|
-
export declare const Edge: EdgeClass
|
|
29
|
+
type: string;
|
|
30
|
+
name: string;
|
|
31
|
+
spec: string;
|
|
32
|
+
bundled: boolean;
|
|
33
|
+
overridden: boolean;
|
|
34
|
+
error: ErrorStatus | undefined;
|
|
35
|
+
rawSpec: string | undefined;
|
|
36
|
+
from: object | undefined;
|
|
37
|
+
} | null;
|
|
38
|
+
export declare const Edge: EdgeClass;
|
|
52
39
|
export declare class SafeEdge extends Edge {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
40
|
+
#private;
|
|
41
|
+
constructor(options: EdgeOptions);
|
|
42
|
+
get bundled(): boolean;
|
|
43
|
+
get error(): "DETACHED" | "MISSING" | "PEER LOCAL" | "INVALID" | null;
|
|
44
|
+
get from(): SafeNode | null;
|
|
45
|
+
get spec(): string;
|
|
46
|
+
get to(): SafeNode | null;
|
|
47
|
+
detach(): void;
|
|
48
|
+
explain(): {
|
|
49
|
+
type: string;
|
|
50
|
+
name: string;
|
|
51
|
+
spec: string;
|
|
52
|
+
bundled: boolean;
|
|
53
|
+
overridden: boolean;
|
|
54
|
+
error: ErrorStatus | undefined;
|
|
55
|
+
rawSpec: string | undefined;
|
|
56
|
+
from: object | undefined;
|
|
57
|
+
};
|
|
58
|
+
reload(hard?: boolean): void;
|
|
59
|
+
satisfiedBy(node: SafeNode): boolean;
|
|
73
60
|
}
|
|
74
|
-
export {}
|
|
75
|
-
//# sourceMappingURL=edge.d.mts.map
|
|
61
|
+
export {};
|
|
62
|
+
//# sourceMappingURL=edge.d.mts.map
|
|
@@ -1,94 +1,58 @@
|
|
|
1
|
-
import { SafeOverrideSet } from './override-set.mts'
|
|
2
|
-
import type { SafeEdge } from './edge.mts'
|
|
3
|
-
import type { Node as BaseNode } from '@npmcli/arborist'
|
|
4
|
-
type NodeClass = Omit<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
edgesOut: Map<string, SafeEdge>
|
|
42
|
-
from: SafeNode | null
|
|
43
|
-
hasShrinkwrap: boolean
|
|
44
|
-
inShrinkwrap: boolean | undefined
|
|
45
|
-
integrity?: string | null
|
|
46
|
-
isTop: boolean | undefined
|
|
47
|
-
meta: BaseNode['meta'] & {
|
|
48
|
-
addEdge(edge: SafeEdge): void
|
|
49
|
-
}
|
|
50
|
-
overrides: SafeOverrideSet | undefined
|
|
51
|
-
target: SafeNode
|
|
52
|
-
versions: string[]
|
|
53
|
-
get inDepBundle(): boolean
|
|
54
|
-
get packageName(): string | null
|
|
55
|
-
get parent(): SafeNode | null
|
|
56
|
-
set parent(value: SafeNode | null)
|
|
57
|
-
get resolveParent(): SafeNode | null
|
|
58
|
-
get root(): SafeNode | null
|
|
59
|
-
set root(value: SafeNode | null)
|
|
60
|
-
new (...args: any): NodeClass
|
|
61
|
-
addEdgeIn(edge: SafeEdge): void
|
|
62
|
-
addEdgeOut(edge: SafeEdge): void
|
|
63
|
-
canDedupe(preferDedupe?: boolean): boolean
|
|
64
|
-
canReplace(node: SafeNode, ignorePeers?: string[]): boolean
|
|
65
|
-
canReplaceWith(node: SafeNode, ignorePeers?: string[]): boolean
|
|
66
|
-
deleteEdgeIn(edge: SafeEdge): void
|
|
67
|
-
matches(node: SafeNode): boolean
|
|
68
|
-
recalculateOutEdgesOverrides(): void
|
|
69
|
-
resolve(name: string): SafeNode
|
|
70
|
-
updateOverridesEdgeInAdded(
|
|
71
|
-
otherOverrideSet: SafeOverrideSet | undefined
|
|
72
|
-
): boolean
|
|
73
|
-
updateOverridesEdgeInRemoved(otherOverrideSet: SafeOverrideSet): boolean
|
|
74
|
-
}
|
|
1
|
+
import { SafeOverrideSet } from './override-set.mts';
|
|
2
|
+
import type { SafeEdge } from './edge.mts';
|
|
3
|
+
import type { Node as BaseNode } from '@npmcli/arborist';
|
|
4
|
+
type NodeClass = Omit<BaseNode, 'addEdgeIn' | 'addEdgeOut' | 'canDedupe' | 'canReplace' | 'canReplaceWith' | 'children' | 'deleteEdgeIn' | 'edgesIn' | 'edgesOut' | 'from' | 'hasShrinkwrap' | 'inDepBundle' | 'inShrinkwrap' | 'integrity' | 'isTop' | 'matches' | 'meta' | 'name' | 'overrides' | 'packageName' | 'parent' | 'recalculateOutEdgesOverrides' | 'resolve' | 'resolveParent' | 'root' | 'target' | 'updateOverridesEdgeInAdded' | 'updateOverridesEdgeInRemoved' | 'version' | 'versions'> & {
|
|
5
|
+
name: string;
|
|
6
|
+
version: string;
|
|
7
|
+
children: Map<string, SafeNode | LinkClass>;
|
|
8
|
+
edgesIn: Set<SafeEdge>;
|
|
9
|
+
edgesOut: Map<string, SafeEdge>;
|
|
10
|
+
from: SafeNode | null;
|
|
11
|
+
hasShrinkwrap: boolean;
|
|
12
|
+
inShrinkwrap: boolean | undefined;
|
|
13
|
+
integrity?: string | null;
|
|
14
|
+
isTop: boolean | undefined;
|
|
15
|
+
meta: BaseNode['meta'] & {
|
|
16
|
+
addEdge(edge: SafeEdge): void;
|
|
17
|
+
};
|
|
18
|
+
overrides: SafeOverrideSet | undefined;
|
|
19
|
+
target: SafeNode;
|
|
20
|
+
versions: string[];
|
|
21
|
+
get inDepBundle(): boolean;
|
|
22
|
+
get packageName(): string | null;
|
|
23
|
+
get parent(): SafeNode | null;
|
|
24
|
+
set parent(value: SafeNode | null);
|
|
25
|
+
get resolveParent(): SafeNode | null;
|
|
26
|
+
get root(): SafeNode | null;
|
|
27
|
+
set root(value: SafeNode | null);
|
|
28
|
+
new (...args: any): NodeClass;
|
|
29
|
+
addEdgeIn(edge: SafeEdge): void;
|
|
30
|
+
addEdgeOut(edge: SafeEdge): void;
|
|
31
|
+
canDedupe(preferDedupe?: boolean): boolean;
|
|
32
|
+
canReplace(node: SafeNode, ignorePeers?: string[]): boolean;
|
|
33
|
+
canReplaceWith(node: SafeNode, ignorePeers?: string[]): boolean;
|
|
34
|
+
deleteEdgeIn(edge: SafeEdge): void;
|
|
35
|
+
matches(node: SafeNode): boolean;
|
|
36
|
+
recalculateOutEdgesOverrides(): void;
|
|
37
|
+
resolve(name: string): SafeNode;
|
|
38
|
+
updateOverridesEdgeInAdded(otherOverrideSet: SafeOverrideSet | undefined): boolean;
|
|
39
|
+
updateOverridesEdgeInRemoved(otherOverrideSet: SafeOverrideSet): boolean;
|
|
40
|
+
};
|
|
75
41
|
export type LinkClass = Omit<NodeClass, 'isLink'> & {
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
declare const Node: NodeClass
|
|
42
|
+
readonly isLink: true;
|
|
43
|
+
};
|
|
44
|
+
declare const Node: NodeClass;
|
|
79
45
|
export declare class SafeNode extends Node {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
otherOverrideSet: SafeOverrideSet
|
|
90
|
-
): boolean
|
|
91
|
-
updateOverridesEdgeInRemoved(otherOverrideSet: SafeOverrideSet): boolean
|
|
46
|
+
canDedupe(preferDedupe?: boolean): boolean;
|
|
47
|
+
canReplaceWith(node: SafeNode, ignorePeers?: string[]): boolean;
|
|
48
|
+
deleteEdgeIn(edge: SafeEdge): void;
|
|
49
|
+
addEdgeIn(edge: SafeEdge): void;
|
|
50
|
+
get overridden(): boolean;
|
|
51
|
+
set parent(newParent: SafeNode);
|
|
52
|
+
recalculateOutEdgesOverrides(): void;
|
|
53
|
+
set root(newRoot: SafeNode);
|
|
54
|
+
updateOverridesEdgeInAdded(otherOverrideSet: SafeOverrideSet | undefined): boolean;
|
|
55
|
+
updateOverridesEdgeInRemoved(otherOverrideSet: SafeOverrideSet): boolean;
|
|
92
56
|
}
|
|
93
|
-
export {}
|
|
94
|
-
//# sourceMappingURL=node.d.mts.map
|
|
57
|
+
export {};
|
|
58
|
+
//# sourceMappingURL=node.d.mts.map
|
|
@@ -1,36 +1,30 @@
|
|
|
1
|
-
import type { SafeEdge } from './edge.mts'
|
|
2
|
-
import type { SafeNode } from './node.mts'
|
|
1
|
+
import type { SafeEdge } from './edge.mts';
|
|
2
|
+
import type { SafeNode } from './node.mts';
|
|
3
3
|
interface OverrideSetClass {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
children: Map<string, SafeOverrideSet>;
|
|
5
|
+
key: string | undefined;
|
|
6
|
+
keySpec: string | undefined;
|
|
7
|
+
name: string | undefined;
|
|
8
|
+
parent: SafeOverrideSet | undefined;
|
|
9
|
+
value: string | undefined;
|
|
10
|
+
version: string | undefined;
|
|
11
|
+
new (...args: any[]): OverrideSetClass;
|
|
12
|
+
get isRoot(): boolean;
|
|
13
|
+
get ruleset(): Map<string, SafeOverrideSet>;
|
|
14
|
+
ancestry(): Generator<SafeOverrideSet>;
|
|
15
|
+
childrenAreEqual(otherOverrideSet: SafeOverrideSet | undefined): boolean;
|
|
16
|
+
getEdgeRule(edge: SafeEdge): SafeOverrideSet;
|
|
17
|
+
getNodeRule(node: SafeNode): SafeOverrideSet;
|
|
18
|
+
getMatchingRule(node: SafeNode): SafeOverrideSet | null;
|
|
19
|
+
isEqual(otherOverrideSet: SafeOverrideSet | undefined): boolean;
|
|
20
20
|
}
|
|
21
|
-
declare const OverrideSet: OverrideSetClass
|
|
21
|
+
declare const OverrideSet: OverrideSetClass;
|
|
22
22
|
export declare class SafeOverrideSet extends OverrideSet {
|
|
23
|
-
|
|
24
|
-
first: SafeOverrideSet | undefined,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
first: SafeOverrideSet | undefined,
|
|
29
|
-
second: SafeOverrideSet | undefined
|
|
30
|
-
): SafeOverrideSet | undefined
|
|
31
|
-
childrenAreEqual(otherOverrideSet: SafeOverrideSet): boolean
|
|
32
|
-
getEdgeRule(edge: SafeEdge): SafeOverrideSet
|
|
33
|
-
isEqual(otherOverrideSet: SafeOverrideSet | undefined): boolean
|
|
23
|
+
static doOverrideSetsConflict(first: SafeOverrideSet | undefined, second: SafeOverrideSet | undefined): boolean;
|
|
24
|
+
static findSpecificOverrideSet(first: SafeOverrideSet | undefined, second: SafeOverrideSet | undefined): SafeOverrideSet | undefined;
|
|
25
|
+
childrenAreEqual(otherOverrideSet: SafeOverrideSet): boolean;
|
|
26
|
+
getEdgeRule(edge: SafeEdge): SafeOverrideSet;
|
|
27
|
+
isEqual(otherOverrideSet: SafeOverrideSet | undefined): boolean;
|
|
34
28
|
}
|
|
35
|
-
export {}
|
|
36
|
-
//# sourceMappingURL=override-set.d.mts.map
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=override-set.d.mts.map
|
|
@@ -1,70 +1,37 @@
|
|
|
1
|
-
import { fetchPackagePackument } from '@socketsecurity/registry/lib/packages'
|
|
2
|
-
import type { RangeStyle } from '../../utils/semver.mts'
|
|
3
|
-
import type { SafeArborist } from './arborist/lib/arborist/index.mts'
|
|
4
|
-
import type { Diff } from './arborist/lib/arborist/types.mts'
|
|
5
|
-
import type { SafeNode } from './arborist/lib/node.mts'
|
|
6
|
-
import type {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export declare function findBestPatchVersion(
|
|
13
|
-
node: SafeNode,
|
|
14
|
-
availableVersions: string[],
|
|
15
|
-
vulnerableVersionRange?: string,
|
|
16
|
-
_firstPatchedVersionIdentifier?: string | undefined
|
|
17
|
-
): string | null
|
|
18
|
-
export declare function findPackageNode(
|
|
19
|
-
tree: SafeNode,
|
|
20
|
-
name: string,
|
|
21
|
-
version?: string | undefined
|
|
22
|
-
): SafeNode | undefined
|
|
23
|
-
export declare function findPackageNodes(
|
|
24
|
-
tree: SafeNode,
|
|
25
|
-
name: string,
|
|
26
|
-
version?: string | undefined
|
|
27
|
-
): SafeNode[]
|
|
1
|
+
import { fetchPackagePackument } from '@socketsecurity/registry/lib/packages';
|
|
2
|
+
import type { RangeStyle } from '../../utils/semver.mts';
|
|
3
|
+
import type { SafeArborist } from './arborist/lib/arborist/index.mts';
|
|
4
|
+
import type { Diff } from './arborist/lib/arborist/types.mts';
|
|
5
|
+
import type { LinkClass, SafeNode } from './arborist/lib/node.mts';
|
|
6
|
+
import type { AlertIncludeFilter, AlertsByPkgId } from '../../utils/socket-package-alert.mts';
|
|
7
|
+
import type { EditablePackageJson } from '@socketsecurity/registry/lib/packages';
|
|
8
|
+
import type { Spinner } from '@socketsecurity/registry/lib/spinner';
|
|
9
|
+
export declare function findBestPatchVersion(node: SafeNode, availableVersions: string[], vulnerableVersionRange?: string, _firstPatchedVersionIdentifier?: string | undefined): string | null;
|
|
10
|
+
export declare function findPackageNode(tree: SafeNode, name: string, version?: string | undefined): SafeNode | undefined;
|
|
11
|
+
export declare function findPackageNodes(tree: SafeNode, name: string, version?: string | undefined): SafeNode[];
|
|
28
12
|
export type GetAlertsMapFromArboristOptions = {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
export declare function getAlertsMapFromArborist(
|
|
35
|
-
arb: SafeArborist,
|
|
36
|
-
options_?: GetAlertsMapFromArboristOptions | undefined
|
|
37
|
-
): Promise<AlertsByPkgId>
|
|
13
|
+
consolidate?: boolean | undefined;
|
|
14
|
+
include?: AlertIncludeFilter | undefined;
|
|
15
|
+
nothrow?: boolean | undefined;
|
|
16
|
+
spinner?: Spinner | undefined;
|
|
17
|
+
};
|
|
18
|
+
export declare function getAlertsMapFromArborist(arb: SafeArborist, options_?: GetAlertsMapFromArboristOptions | undefined): Promise<AlertsByPkgId>;
|
|
38
19
|
export type DiffQueryIncludeFilter = {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
20
|
+
unchanged?: boolean | undefined;
|
|
21
|
+
unknownOrigin?: boolean | undefined;
|
|
22
|
+
};
|
|
42
23
|
export type DiffQueryOptions = {
|
|
43
|
-
|
|
44
|
-
}
|
|
24
|
+
include?: DiffQueryIncludeFilter | undefined;
|
|
25
|
+
};
|
|
45
26
|
export type PackageDetail = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
export declare function getDetailsFromDiff(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
):
|
|
53
|
-
export
|
|
54
|
-
export
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
>
|
|
58
|
-
export declare function updateNode(
|
|
59
|
-
node: SafeNode,
|
|
60
|
-
newVersion: string,
|
|
61
|
-
newVersionPackument: Packument['versions'][number]
|
|
62
|
-
): void
|
|
63
|
-
export declare function updatePackageJsonFromNode(
|
|
64
|
-
editablePkgJson: EditablePackageJson,
|
|
65
|
-
tree: SafeNode,
|
|
66
|
-
node: SafeNode,
|
|
67
|
-
newVersion: string,
|
|
68
|
-
rangeStyle?: RangeStyle | undefined
|
|
69
|
-
): boolean
|
|
70
|
-
//# sourceMappingURL=arborist-helpers.d.mts.map
|
|
27
|
+
node: SafeNode;
|
|
28
|
+
existing?: SafeNode | undefined;
|
|
29
|
+
};
|
|
30
|
+
export declare function getDetailsFromDiff(diff_: Diff | null, options?: DiffQueryOptions | undefined): PackageDetail[];
|
|
31
|
+
export declare function getTargetNode(nodeOrLink: SafeNode | LinkClass): SafeNode;
|
|
32
|
+
export declare function getTargetNode<T>(nodeOrLink: T): SafeNode | null;
|
|
33
|
+
export declare function isTopLevel(tree: SafeNode, node: SafeNode): boolean;
|
|
34
|
+
export type Packument = Exclude<Awaited<ReturnType<typeof fetchPackagePackument>>, null>;
|
|
35
|
+
export declare function updateNode(node: SafeNode, newVersion: string, newVersionPackument: Packument['versions'][number]): void;
|
|
36
|
+
export declare function updatePackageJsonFromNode(editablePkgJson: EditablePackageJson, tree: SafeNode, node: SafeNode, newVersion: string, rangeStyle?: RangeStyle | undefined): boolean;
|
|
37
|
+
//# sourceMappingURL=arborist-helpers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arborist-helpers.d.mts","sourceRoot":"","sources":["../../../../src/shadow/npm/arborist-helpers.mts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAA;AAS7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAA;AAE7D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"arborist-helpers.d.mts","sourceRoot":"","sources":["../../../../src/shadow/npm/arborist-helpers.mts"],"names":[],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {}
|
|
2
|
-
//# sourceMappingURL=inject.d.mts.map
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=inject.d.mts.map
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import { spawn } from '@socketsecurity/registry/lib/spawn'
|
|
2
|
-
import type { Spinner } from '@socketsecurity/registry/lib/spinner'
|
|
3
|
-
type SpawnOption = Exclude<Parameters<typeof spawn>[2], undefined
|
|
1
|
+
import { spawn } from '@socketsecurity/registry/lib/spawn';
|
|
2
|
+
import type { Spinner } from '@socketsecurity/registry/lib/spinner';
|
|
3
|
+
type SpawnOption = Exclude<Parameters<typeof spawn>[2], undefined>;
|
|
4
4
|
export type SafeNpmInstallOptions = SpawnOption & {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export declare function safeNpmInstall(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
string,
|
|
14
|
-
Record<any, any> | undefined
|
|
15
|
-
>
|
|
16
|
-
export {}
|
|
17
|
-
//# sourceMappingURL=install.d.mts.map
|
|
5
|
+
agentExecPath?: string | undefined;
|
|
6
|
+
args?: string[] | readonly string[] | undefined;
|
|
7
|
+
ipc?: object | undefined;
|
|
8
|
+
spinner?: Spinner | undefined;
|
|
9
|
+
};
|
|
10
|
+
export declare function safeNpmInstall(options?: SafeNpmInstallOptions): import("@socketsecurity/registry/lib/spawn").SpawnResult<string, Record<any, any> | undefined>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=install.d.mts.map
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
export declare function installLinks(
|
|
2
|
-
|
|
3
|
-
binName: 'npm' | 'npx'
|
|
4
|
-
): Promise<string>
|
|
5
|
-
//# sourceMappingURL=link.d.mts.map
|
|
1
|
+
export declare function installLinks(realBinPath: string, binName: 'npm' | 'npx'): Promise<string>;
|
|
2
|
+
//# sourceMappingURL=link.d.mts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare function getArboristPackagePath(): string
|
|
2
|
-
export declare function getArboristClassPath(): string
|
|
3
|
-
export declare function getArboristDepValidPath(): string
|
|
4
|
-
export declare function getArboristEdgeClassPath(): string
|
|
5
|
-
export declare function getArboristNodeClassPath(): string
|
|
6
|
-
export declare function getArboristOverrideSetClassPath(): string
|
|
7
|
-
//# sourceMappingURL=paths.d.mts.map
|
|
1
|
+
export declare function getArboristPackagePath(): string;
|
|
2
|
+
export declare function getArboristClassPath(): string;
|
|
3
|
+
export declare function getArboristDepValidPath(): string;
|
|
4
|
+
export declare function getArboristEdgeClassPath(): string;
|
|
5
|
+
export declare function getArboristNodeClassPath(): string;
|
|
6
|
+
export declare function getArboristOverrideSetClassPath(): string;
|
|
7
|
+
//# sourceMappingURL=paths.d.mts.map
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export type Logger =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
| undefined
|
|
5
|
-
export declare function getLogger(): Logger
|
|
6
|
-
//# sourceMappingURL=index.d.mts.map
|
|
1
|
+
export type Logger = typeof import('npmlog') | typeof import('proc-log') | undefined;
|
|
2
|
+
export declare function getLogger(): Logger;
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
package/dist/types/types.d.mts
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
export type StringKeyValueObject = {
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
export type OutputKind = 'json' | 'markdown' | 'text'
|
|
5
|
-
export type CResult<T> =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=types.d.mts.map
|
|
2
|
+
[key: string]: string;
|
|
3
|
+
};
|
|
4
|
+
export type OutputKind = 'json' | 'markdown' | 'text';
|
|
5
|
+
export type CResult<T> = {
|
|
6
|
+
ok: true;
|
|
7
|
+
data: T;
|
|
8
|
+
message?: string;
|
|
9
|
+
} | {
|
|
10
|
+
ok: false;
|
|
11
|
+
code?: number;
|
|
12
|
+
message: string;
|
|
13
|
+
cause?: string;
|
|
14
|
+
data?: unknown;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=types.d.mts.map
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { spawn } from '@socketsecurity/registry/lib/spawn'
|
|
2
|
-
import { Spinner } from '@socketsecurity/registry/lib/spinner'
|
|
3
|
-
import type { EnvDetails } from './package-environment.mts'
|
|
4
|
-
type SpawnOption = Exclude<Parameters<typeof spawn>[2], undefined
|
|
1
|
+
import { spawn } from '@socketsecurity/registry/lib/spawn';
|
|
2
|
+
import { Spinner } from '@socketsecurity/registry/lib/spinner';
|
|
3
|
+
import type { EnvDetails } from './package-environment.mts';
|
|
4
|
+
type SpawnOption = Exclude<Parameters<typeof spawn>[2], undefined>;
|
|
5
5
|
export type AgentInstallOptions = SpawnOption & {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
export type AgentSpawnResult = ReturnType<typeof spawn
|
|
10
|
-
export declare function runAgentInstall(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
): AgentSpawnResult
|
|
14
|
-
export {}
|
|
15
|
-
//# sourceMappingURL=agent.d.mts.map
|
|
6
|
+
args?: string[] | readonly string[] | undefined;
|
|
7
|
+
spinner?: Spinner | undefined;
|
|
8
|
+
};
|
|
9
|
+
export type AgentSpawnResult = ReturnType<typeof spawn>;
|
|
10
|
+
export declare function runAgentInstall(pkgEnvDetails: EnvDetails, options?: AgentInstallOptions | undefined): AgentSpawnResult;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=agent.d.mts.map
|