@socketsecurity/cli-with-sentry 0.15.11 → 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 +3 -1
- package/external/@socketsecurity/registry/lib/logger.js +149 -69
- 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 +8 -8
- package/dist/types/commands/cdxgen/run-cdxgen.d.mts.map +0 -1
|
@@ -1,51 +1,33 @@
|
|
|
1
|
-
import type { Remap } from '@socketsecurity/registry/lib/objects'
|
|
2
|
-
import type { components, operations } from '@socketsecurity/sdk/types/api'
|
|
3
|
-
export type ALERT_ACTION = 'error' | 'monitor' | 'warn' | 'ignore'
|
|
4
|
-
export type ALERT_TYPE = keyof NonNullable<
|
|
5
|
-
|
|
6
|
-
>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type: CVE_ALERT_TYPE
|
|
11
|
-
}
|
|
12
|
-
>
|
|
13
|
-
export type ArtifactAlertCveFixable = Remap<
|
|
14
|
-
Omit<CompactSocketArtifactAlert, 'props' | 'type'> & {
|
|
15
|
-
type: CVE_ALERT_TYPE
|
|
1
|
+
import type { Remap } from '@socketsecurity/registry/lib/objects';
|
|
2
|
+
import type { components, operations } from '@socketsecurity/sdk/types/api';
|
|
3
|
+
export type ALERT_ACTION = 'error' | 'monitor' | 'warn' | 'ignore';
|
|
4
|
+
export type ALERT_TYPE = keyof NonNullable<operations['getOrgSecurityPolicy']['responses']['200']['content']['application/json']['securityPolicyRules']>;
|
|
5
|
+
export type CVE_ALERT_TYPE = 'cve' | 'mediumCVE' | 'mildCVE' | 'criticalCVE';
|
|
6
|
+
export type ArtifactAlertCve = Remap<Omit<CompactSocketArtifactAlert, 'type'> & {
|
|
7
|
+
type: CVE_ALERT_TYPE;
|
|
8
|
+
}>;
|
|
9
|
+
export type ArtifactAlertCveFixable = Remap<Omit<CompactSocketArtifactAlert, 'props' | 'type'> & {
|
|
10
|
+
type: CVE_ALERT_TYPE;
|
|
16
11
|
props: {
|
|
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
|
-
export type SocketArtifactAlert = Remap<
|
|
42
|
-
Omit<components['schemas']['SocketAlert'], 'action' | 'props' | 'type'> & {
|
|
43
|
-
type: ALERT_TYPE
|
|
44
|
-
action?: 'error' | 'monitor' | 'warn' | 'ignore'
|
|
45
|
-
props?: any | undefined
|
|
46
|
-
}
|
|
47
|
-
>
|
|
48
|
-
export declare function isArtifactAlertCve(
|
|
49
|
-
alert: CompactSocketArtifactAlert
|
|
50
|
-
): alert is ArtifactAlertCve
|
|
51
|
-
//# sourceMappingURL=artifact.d.mts.map
|
|
12
|
+
firstPatchedVersionIdentifier: string;
|
|
13
|
+
vulnerableVersionRange: string;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
export type ArtifactAlertUpgrade = Remap<Omit<CompactSocketArtifactAlert, 'type'> & {
|
|
18
|
+
type: 'socketUpgradeAvailable';
|
|
19
|
+
}>;
|
|
20
|
+
export type CompactSocketArtifactAlert = Remap<Omit<SocketArtifactAlert, 'category' | 'end' | 'file' | 'start'>>;
|
|
21
|
+
export type CompactSocketArtifact = Remap<Omit<SocketArtifact, 'alerts' | 'batchIndex' | 'size'> & {
|
|
22
|
+
alerts: CompactSocketArtifactAlert[];
|
|
23
|
+
}>;
|
|
24
|
+
export type SocketArtifact = Remap<Omit<components['schemas']['SocketArtifact'], 'alerts'> & {
|
|
25
|
+
alerts?: SocketArtifactAlert[];
|
|
26
|
+
}>;
|
|
27
|
+
export type SocketArtifactAlert = Remap<Omit<components['schemas']['SocketAlert'], 'action' | 'props' | 'type'> & {
|
|
28
|
+
type: ALERT_TYPE;
|
|
29
|
+
action?: 'error' | 'monitor' | 'warn' | 'ignore';
|
|
30
|
+
props?: any | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
export declare function isArtifactAlertCve(alert: CompactSocketArtifactAlert): alert is ArtifactAlertCve;
|
|
33
|
+
//# sourceMappingURL=artifact.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const ALERT_FIX_TYPE: Readonly<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=fix.d.mts.map
|
|
2
|
+
readonly cve: "cve";
|
|
3
|
+
readonly remove: "remove";
|
|
4
|
+
readonly upgrade: "upgrade";
|
|
5
|
+
}>;
|
|
6
|
+
//# sourceMappingURL=fix.d.mts.map
|
|
@@ -1,25 +1,13 @@
|
|
|
1
|
-
import type { SocketSdkReturnType } from '@socketsecurity/sdk'
|
|
1
|
+
import type { SocketSdkReturnType } from '@socketsecurity/sdk';
|
|
2
2
|
export declare const ALERT_SEVERITY: Readonly<{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export type SocketSdkAlertList =
|
|
9
|
-
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
: never
|
|
15
|
-
export declare const ALERT_SEVERITIES_SORTED: ReadonlyArray<
|
|
16
|
-
SocketSdkAlert['severity']
|
|
17
|
-
>
|
|
18
|
-
export declare function formatSeverityCount(
|
|
19
|
-
severityCount: Record<SocketSdkAlert['severity'], number>
|
|
20
|
-
): string
|
|
21
|
-
export declare function getSeverityCount(
|
|
22
|
-
issues: SocketSdkAlertList,
|
|
23
|
-
lowestToInclude: SocketSdkAlert['severity'] | undefined
|
|
24
|
-
): Record<SocketSdkAlert['severity'], number>
|
|
25
|
-
//# sourceMappingURL=severity.d.mts.map
|
|
3
|
+
readonly critical: "critical";
|
|
4
|
+
readonly high: "high";
|
|
5
|
+
readonly middle: "middle";
|
|
6
|
+
readonly low: "low";
|
|
7
|
+
}>;
|
|
8
|
+
export type SocketSdkAlertList = SocketSdkReturnType<'getIssuesByNPMPackage'>['data'];
|
|
9
|
+
export type SocketSdkAlert = SocketSdkAlertList[number]['value'] extends infer U | undefined ? U : never;
|
|
10
|
+
export declare const ALERT_SEVERITIES_SORTED: ReadonlyArray<SocketSdkAlert['severity']>;
|
|
11
|
+
export declare function formatSeverityCount(severityCount: Record<SocketSdkAlert['severity'], number>): string;
|
|
12
|
+
export declare function getSeverityCount(issues: SocketSdkAlertList, lowestToInclude: SocketSdkAlert['severity'] | undefined): Record<SocketSdkAlert['severity'], number>;
|
|
13
|
+
//# sourceMappingURL=severity.d.mts.map
|
|
@@ -1,38 +1,25 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from './socket-package-alert.mts'
|
|
5
|
-
import type { LockfileObject } from '@pnpm/lockfile.fs'
|
|
6
|
-
import type { Spinner } from '@socketsecurity/registry/lib/spinner'
|
|
1
|
+
import type { AlertIncludeFilter, AlertsByPkgId } from './socket-package-alert.mts';
|
|
2
|
+
import type { LockfileObject } from '@pnpm/lockfile.fs';
|
|
3
|
+
import type { Spinner } from '@socketsecurity/registry/lib/spinner';
|
|
7
4
|
export type GetAlertsMapFromPnpmLockfileOptions = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
| undefined
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
export declare function getAlertsMapFromPnpmLockfile(
|
|
19
|
-
lockfile: LockfileObject,
|
|
20
|
-
options_?: GetAlertsMapFromPnpmLockfileOptions | undefined
|
|
21
|
-
): Promise<AlertsByPkgId>
|
|
5
|
+
consolidate?: boolean | undefined;
|
|
6
|
+
include?: AlertIncludeFilter | undefined;
|
|
7
|
+
overrides?: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
} | undefined;
|
|
10
|
+
nothrow?: boolean | undefined;
|
|
11
|
+
spinner?: Spinner | undefined;
|
|
12
|
+
};
|
|
13
|
+
export declare function getAlertsMapFromPnpmLockfile(lockfile: LockfileObject, options_?: GetAlertsMapFromPnpmLockfileOptions | undefined): Promise<AlertsByPkgId>;
|
|
22
14
|
export type GetAlertsMapFromPurlsOptions = {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
| undefined
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export declare function getAlertsMapFromPurls(
|
|
35
|
-
purls: string[] | readonly string[],
|
|
36
|
-
options_?: GetAlertsMapFromPurlsOptions | undefined
|
|
37
|
-
): Promise<AlertsByPkgId>
|
|
38
|
-
//# sourceMappingURL=alerts-map.d.mts.map
|
|
15
|
+
consolidate?: boolean | undefined;
|
|
16
|
+
include?: AlertIncludeFilter | undefined;
|
|
17
|
+
limit?: number | undefined;
|
|
18
|
+
overrides?: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
} | undefined;
|
|
21
|
+
nothrow?: boolean | undefined;
|
|
22
|
+
spinner?: Spinner | undefined;
|
|
23
|
+
};
|
|
24
|
+
export declare function getAlertsMapFromPurls(purls: string[] | readonly string[], options_?: GetAlertsMapFromPurlsOptions | undefined): Promise<AlertsByPkgId>;
|
|
25
|
+
//# sourceMappingURL=alerts-map.d.mts.map
|
|
@@ -1,34 +1,11 @@
|
|
|
1
|
-
import type { CResult } from '../types.mts'
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare function
|
|
11
|
-
|
|
12
|
-
fetchingDesc: string
|
|
13
|
-
): Promise<CResult<SocketSdkReturnType<T>['data']>>
|
|
14
|
-
export declare function handleApiCallNoSpinner<T extends SocketSdkOperations>(
|
|
15
|
-
value: Promise<SocketSdkResultType<T>>,
|
|
16
|
-
description: string
|
|
17
|
-
): Promise<CResult<SocketSdkReturnType<T>['data']>>
|
|
18
|
-
export declare function getErrorMessageForHttpStatusCode(
|
|
19
|
-
code: number
|
|
20
|
-
): Promise<string>
|
|
21
|
-
export declare function getDefaultApiBaseUrl(): string | undefined
|
|
22
|
-
export declare function queryApi(
|
|
23
|
-
path: string,
|
|
24
|
-
apiToken: string
|
|
25
|
-
): Promise<Response>
|
|
26
|
-
export declare function queryApiSafeText(
|
|
27
|
-
path: string,
|
|
28
|
-
fetchSpinnerDesc?: string
|
|
29
|
-
): Promise<CResult<string>>
|
|
30
|
-
export declare function queryApiSafeJson<T>(
|
|
31
|
-
path: string,
|
|
32
|
-
fetchSpinnerDesc?: string
|
|
33
|
-
): Promise<CResult<T>>
|
|
34
|
-
//# sourceMappingURL=api.d.mts.map
|
|
1
|
+
import type { CResult } from '../types.mts';
|
|
2
|
+
import type { SocketSdkOperations, SocketSdkResultType, SocketSdkReturnType } from '@socketsecurity/sdk';
|
|
3
|
+
export declare function handleUnsuccessfulApiResponse<T extends SocketSdkOperations>(_name: T, error: string, cause: string, status: number): never;
|
|
4
|
+
export declare function handleApiCall<T extends SocketSdkOperations>(value: Promise<SocketSdkResultType<T>>, fetchingDesc: string): Promise<CResult<SocketSdkReturnType<T>['data']>>;
|
|
5
|
+
export declare function handleApiCallNoSpinner<T extends SocketSdkOperations>(value: Promise<SocketSdkResultType<T>>, description: string): Promise<CResult<SocketSdkReturnType<T>['data']>>;
|
|
6
|
+
export declare function getErrorMessageForHttpStatusCode(code: number): Promise<string>;
|
|
7
|
+
export declare function getDefaultApiBaseUrl(): string | undefined;
|
|
8
|
+
export declare function queryApi(path: string, apiToken: string): Promise<Response>;
|
|
9
|
+
export declare function queryApiSafeText(path: string, fetchSpinnerDesc?: string): Promise<CResult<string>>;
|
|
10
|
+
export declare function queryApiSafeJson<T>(path: string, fetchSpinnerDesc?: string): Promise<CResult<T>>;
|
|
11
|
+
//# sourceMappingURL=api.d.mts.map
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import type { OutputKind } from '../types.mts'
|
|
2
|
-
export declare function checkCommandInput(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}>
|
|
11
|
-
): boolean
|
|
12
|
-
//# sourceMappingURL=check-input.d.mts.map
|
|
1
|
+
import type { OutputKind } from '../types.mts';
|
|
2
|
+
export declare function checkCommandInput(outputKind: OutputKind, ...checks: Array<{
|
|
3
|
+
fail: string;
|
|
4
|
+
message: string;
|
|
5
|
+
pass: string;
|
|
6
|
+
test: boolean;
|
|
7
|
+
nook?: boolean | undefined;
|
|
8
|
+
}>): boolean;
|
|
9
|
+
//# sourceMappingURL=check-input.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function cmdFlagsToString(args: string[]): string
|
|
2
|
-
export declare function cmdPrefixMessage(cmdName: string, text: string): string
|
|
3
|
-
export declare function isHelpFlag(cmdArg: string): boolean
|
|
4
|
-
//# sourceMappingURL=cmd.d.mts.map
|
|
1
|
+
export declare function cmdFlagsToString(args: string[]): string;
|
|
2
|
+
export declare function cmdPrefixMessage(cmdName: string, text: string): string;
|
|
3
|
+
export declare function isHelpFlag(cmdArg: string): boolean;
|
|
4
|
+
//# sourceMappingURL=cmd.d.mts.map
|
|
@@ -1,25 +1,16 @@
|
|
|
1
|
-
import indentString from '@socketregistry/indent-string/index.cjs'
|
|
1
|
+
import indentString from '@socketregistry/indent-string/index.cjs';
|
|
2
2
|
export declare class ColorOrMarkdown {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
fallbackToUrl?: boolean | undefined
|
|
16
|
-
}
|
|
17
|
-
): string
|
|
18
|
-
indent(
|
|
19
|
-
...args: Parameters<typeof indentString>
|
|
20
|
-
): ReturnType<typeof indentString>
|
|
21
|
-
italic(text: string): string
|
|
22
|
-
json(value: any): string
|
|
23
|
-
list(items: string[]): string
|
|
3
|
+
useMarkdown: boolean;
|
|
4
|
+
constructor(useMarkdown: boolean);
|
|
5
|
+
bold(text: string): string;
|
|
6
|
+
header(text: string, level?: number): string;
|
|
7
|
+
hyperlink(text: string, url: string | undefined, { fallback, fallbackToUrl, }?: {
|
|
8
|
+
fallback?: boolean | undefined;
|
|
9
|
+
fallbackToUrl?: boolean | undefined;
|
|
10
|
+
}): string;
|
|
11
|
+
indent(...args: Parameters<typeof indentString>): ReturnType<typeof indentString>;
|
|
12
|
+
italic(text: string): string;
|
|
13
|
+
json(value: any): string;
|
|
14
|
+
list(items: string[]): string;
|
|
24
15
|
}
|
|
25
|
-
//# sourceMappingURL=color-or-markdown.d.mts.map
|
|
16
|
+
//# sourceMappingURL=color-or-markdown.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-or-markdown.d.mts","sourceRoot":"","sources":["../../../src/utils/color-or-markdown.mts"],"names":[],"mappings":"AAGA,OAAO,YAAY,MAAM,yCAAyC,CAAA;AAElE,qBAAa,eAAe;IACnB,WAAW,EAAE,OAAO,CAAA;gBAEf,WAAW,EAAE,OAAO;IAIhC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAI1B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,SAAI,GAAG,MAAM;IAMvC,SAAS,CACP,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,EACE,QAAe,EACf,aAAa,
|
|
1
|
+
{"version":3,"file":"color-or-markdown.d.mts","sourceRoot":"","sources":["../../../src/utils/color-or-markdown.mts"],"names":[],"mappings":"AAGA,OAAO,YAAY,MAAM,yCAAyC,CAAA;AAElE,qBAAa,eAAe;IACnB,WAAW,EAAE,OAAO,CAAA;gBAEf,WAAW,EAAE,OAAO;IAIhC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAI1B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,SAAI,GAAG,MAAM;IAMvC,SAAS,CACP,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,EACE,QAAe,EACf,aAAa,GACd,GAAE;QACD,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;QAC9B,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAC/B;IAYR,MAAM,CACJ,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,GACvC,UAAU,CAAC,OAAO,YAAY,CAAC;IAIlC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAI5B,IAAI,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM;IAMxB,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM;CAM9B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CResult } from '../types.mts';
|
|
2
|
+
export declare const COMPLETION_CMD_PREFIX = "complete -F _socket_completion";
|
|
3
|
+
export declare function getCompletionSourcingCommand(): CResult<string>;
|
|
4
|
+
export declare function getBashrcDetails(targetCommandName: string): CResult<{
|
|
5
|
+
completionCommand: string;
|
|
6
|
+
sourcingCommand: string;
|
|
7
|
+
toAddToBashrc: string;
|
|
8
|
+
targetName: string;
|
|
9
|
+
targetPath: string;
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=completion.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completion.d.mts","sourceRoot":"","sources":["../../../src/utils/completion.mts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAE3C,eAAO,MAAM,qBAAqB,mCAAmC,CAAA;AAErE,wBAAgB,4BAA4B,IAAI,OAAO,CAAC,MAAM,CAAC,CAiB9D;AAED,wBAAgB,gBAAgB,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC;IACnE,iBAAiB,EAAE,MAAM,CAAA;IACzB,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAC,CA6CD"}
|
|
@@ -1,34 +1,25 @@
|
|
|
1
|
-
import config from '@socketsecurity/config'
|
|
2
|
-
import type { CResult } from '../types.mts'
|
|
1
|
+
import config from '@socketsecurity/config';
|
|
2
|
+
import type { CResult } from '../types.mts';
|
|
3
3
|
export interface LocalConfig {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
apiBaseUrl?: string | null | undefined;
|
|
5
|
+
apiKey?: string | null | undefined;
|
|
6
|
+
apiProxy?: string | null | undefined;
|
|
7
|
+
apiToken?: string | null | undefined;
|
|
8
|
+
defaultOrg?: string;
|
|
9
|
+
enforcedOrgs?: string[] | readonly string[] | null | undefined;
|
|
10
|
+
isTestingV1?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare function overrideCachedConfig(
|
|
15
|
-
jsonConfig: unknown
|
|
16
|
-
): CResult<undefined>
|
|
17
|
-
export declare function overrideConfigApiToken(apiToken: unknown): void
|
|
12
|
+
export declare const sensitiveConfigKeys: Set<keyof LocalConfig>;
|
|
13
|
+
export declare const supportedConfigKeys: Map<keyof LocalConfig, string>;
|
|
18
14
|
export declare function findSocketYmlSync(dir?: string): {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} | null
|
|
22
|
-
export declare function getConfigValue<Key extends keyof LocalConfig>(
|
|
23
|
-
|
|
24
|
-
):
|
|
25
|
-
export declare function
|
|
26
|
-
|
|
27
|
-
):
|
|
28
|
-
export declare function
|
|
29
|
-
|
|
30
|
-
key: keyof LocalConfig,
|
|
31
|
-
value: LocalConfig[Key]
|
|
32
|
-
): CResult<undefined | string>
|
|
33
|
-
export declare function isTestingV1(): boolean
|
|
34
|
-
//# sourceMappingURL=config.d.mts.map
|
|
15
|
+
path: string;
|
|
16
|
+
parsed: config.SocketYml;
|
|
17
|
+
} | null;
|
|
18
|
+
export declare function getConfigValue<Key extends keyof LocalConfig>(key: Key): CResult<LocalConfig[Key]>;
|
|
19
|
+
export declare function getConfigValueOrUndef<Key extends keyof LocalConfig>(key: Key): LocalConfig[Key] | undefined;
|
|
20
|
+
export declare function isReadOnlyConfig(): boolean;
|
|
21
|
+
export declare function isTestingV1(): boolean;
|
|
22
|
+
export declare function overrideCachedConfig(jsonConfig: unknown): CResult<undefined>;
|
|
23
|
+
export declare function overrideConfigApiToken(apiToken: unknown): void;
|
|
24
|
+
export declare function updateConfigValue<Key extends keyof LocalConfig>(key: keyof LocalConfig, value: LocalConfig[Key]): CResult<undefined | string>;
|
|
25
|
+
//# sourceMappingURL=config.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.mts","sourceRoot":"","sources":["../../../src/utils/config.mts"],"names":[],"mappings":"AAGA,OAAO,MAAM,MAAM,wBAAwB,CAAA;AAO3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAE3C,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAItC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAClC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACpC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACpC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,CAAA;IAE9D,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,GAAG,CAAC,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"config.d.mts","sourceRoot":"","sources":["../../../src/utils/config.mts"],"names":[],"mappings":"AAGA,OAAO,MAAM,MAAM,wBAAwB,CAAA;AAO3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAE3C,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAItC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAClC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACpC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACpC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,CAAA;IAE9D,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,GAAG,CAAC,MAAM,WAAW,CAAyB,CAAA;AAEhF,eAAO,MAAM,mBAAmB,EAAE,GAAG,CAAC,MAAM,WAAW,EAAE,MAAM,CAa7D,CAAA;AAkDF,wBAAgB,iBAAiB,CAAC,GAAG,SAAgB;;;SAuBpD;AAED,wBAAgB,cAAc,CAAC,GAAG,SAAS,MAAM,WAAW,EAC1D,GAAG,EAAE,GAAG,GACP,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAO3B;AAID,wBAAgB,qBAAqB,CAAC,GAAG,SAAS,MAAM,WAAW,EACjE,GAAG,EAAE,GAAG,GACP,WAAW,CAAC,GAAG,CAAC,GAAG,SAAS,CAO9B;AAED,wBAAgB,gBAAgB,YAE/B;AAED,wBAAgB,WAAW,YAE1B;AAMD,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CA4C5E;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,OAAO,QAQvD;AAGD,wBAAgB,iBAAiB,CAAC,GAAG,SAAS,MAAM,WAAW,EAC7D,GAAG,EAAE,MAAM,WAAW,EACtB,KAAK,EAAE,WAAW,CAAC,GAAG,CAAC,GACtB,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC,CAmC7B"}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
export declare function determineOrgSlug(
|
|
2
|
-
|
|
3
|
-
firstArg: string,
|
|
4
|
-
interactive: boolean,
|
|
5
|
-
dryRun: boolean
|
|
6
|
-
): Promise<[string, string | undefined]>
|
|
7
|
-
//# sourceMappingURL=determine-org-slug.d.mts.map
|
|
1
|
+
export declare function determineOrgSlug(orgFlag: string, firstArg: string, interactive: boolean, dryRun: boolean): Promise<[string, string | undefined]>;
|
|
2
|
+
//# sourceMappingURL=determine-org-slug.d.mts.map
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
type EventHintOrCaptureContext =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare class AuthError extends Error {}
|
|
1
|
+
type EventHintOrCaptureContext = {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
} | Function;
|
|
4
|
+
export declare class AuthError extends Error {
|
|
5
|
+
}
|
|
7
6
|
export declare class InputError extends Error {
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
body: string | undefined;
|
|
8
|
+
constructor(message: string, body?: string);
|
|
10
9
|
}
|
|
11
|
-
export declare function captureException(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
exception: unknown,
|
|
17
|
-
hint?: EventHintOrCaptureContext | undefined
|
|
18
|
-
): string
|
|
19
|
-
export declare function isErrnoException(
|
|
20
|
-
value: unknown
|
|
21
|
-
): value is NodeJS.ErrnoException
|
|
22
|
-
export {}
|
|
23
|
-
//# sourceMappingURL=errors.d.mts.map
|
|
10
|
+
export declare function captureException(exception: unknown, hint?: EventHintOrCaptureContext | undefined): Promise<string>;
|
|
11
|
+
export declare function captureExceptionSync(exception: unknown, hint?: EventHintOrCaptureContext | undefined): string;
|
|
12
|
+
export declare function isErrnoException(value: unknown): value is NodeJS.ErrnoException;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=errors.d.mts.map
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
export declare function failMsgWithBadge(
|
|
2
|
-
|
|
3
|
-
msg: string | undefined
|
|
4
|
-
): string
|
|
5
|
-
//# sourceMappingURL=fail-msg-with-badge.d.mts.map
|
|
1
|
+
export declare function failMsgWithBadge(badge: string, msg: string | undefined): string;
|
|
2
|
+
//# sourceMappingURL=fail-msg-with-badge.d.mts.map
|
|
@@ -1,53 +1,22 @@
|
|
|
1
|
-
import type { Remap } from '@socketsecurity/registry/lib/objects'
|
|
2
|
-
import type { Abortable } from 'node:events'
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
PathLike,
|
|
7
|
-
PathOrFileDescriptor
|
|
8
|
-
} from 'node:fs'
|
|
9
|
-
import type { FileHandle } from 'node:fs/promises'
|
|
10
|
-
export declare function removeNodeModules(cwd?: string): Promise<void>
|
|
1
|
+
import type { Remap } from '@socketsecurity/registry/lib/objects';
|
|
2
|
+
import type { Abortable } from 'node:events';
|
|
3
|
+
import type { ObjectEncodingOptions, OpenMode, PathLike, PathOrFileDescriptor } from 'node:fs';
|
|
4
|
+
import type { FileHandle } from 'node:fs/promises';
|
|
5
|
+
export declare function removeNodeModules(cwd?: string): Promise<void>;
|
|
11
6
|
export type FindUpOptions = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
export declare function findUp(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
): Promise<Buffer>
|
|
29
|
-
export declare function readFileUtf8(
|
|
30
|
-
filepath: PathLike | FileHandle,
|
|
31
|
-
options?: ReadFileOptions | undefined
|
|
32
|
-
): Promise<string>
|
|
33
|
-
export declare function safeReadFile(
|
|
34
|
-
filepath: PathLike | FileHandle,
|
|
35
|
-
options?:
|
|
36
|
-
| 'utf8'
|
|
37
|
-
| 'utf-8'
|
|
38
|
-
| {
|
|
39
|
-
encoding: 'utf8' | 'utf-8'
|
|
40
|
-
}
|
|
41
|
-
| undefined
|
|
42
|
-
): Promise<string | undefined>
|
|
43
|
-
export declare function safeReadFileSync(
|
|
44
|
-
filepath: PathOrFileDescriptor,
|
|
45
|
-
options?:
|
|
46
|
-
| 'utf8'
|
|
47
|
-
| 'utf-8'
|
|
48
|
-
| {
|
|
49
|
-
encoding: 'utf8' | 'utf-8'
|
|
50
|
-
}
|
|
51
|
-
| undefined
|
|
52
|
-
): string | undefined
|
|
53
|
-
//# sourceMappingURL=fs.d.mts.map
|
|
7
|
+
cwd?: string | undefined;
|
|
8
|
+
signal?: AbortSignal | undefined;
|
|
9
|
+
};
|
|
10
|
+
export declare function findUp(name: string | string[], { cwd, signal }: FindUpOptions): Promise<string | undefined>;
|
|
11
|
+
export type ReadFileOptions = Remap<ObjectEncodingOptions & Abortable & {
|
|
12
|
+
flag?: OpenMode | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
export declare function readFileBinary(filepath: PathLike | FileHandle, options?: ReadFileOptions | undefined): Promise<Buffer>;
|
|
15
|
+
export declare function readFileUtf8(filepath: PathLike | FileHandle, options?: ReadFileOptions | undefined): Promise<string>;
|
|
16
|
+
export declare function safeReadFile(filepath: PathLike | FileHandle, options?: 'utf8' | 'utf-8' | {
|
|
17
|
+
encoding: 'utf8' | 'utf-8';
|
|
18
|
+
} | undefined): Promise<string | undefined>;
|
|
19
|
+
export declare function safeReadFileSync(filepath: PathOrFileDescriptor, options?: 'utf8' | 'utf-8' | {
|
|
20
|
+
encoding: 'utf8' | 'utf-8';
|
|
21
|
+
} | undefined): string | undefined;
|
|
22
|
+
//# sourceMappingURL=fs.d.mts.map
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import type { OutputKind } from '../types.mts'
|
|
2
|
-
export declare function getOutputKind(
|
|
3
|
-
|
|
4
|
-
markdown: unknown
|
|
5
|
-
): OutputKind
|
|
6
|
-
//# sourceMappingURL=get-output-kind.d.mts.map
|
|
1
|
+
import type { OutputKind } from '../types.mts';
|
|
2
|
+
export declare function getOutputKind(json: unknown, markdown: unknown): OutputKind;
|
|
3
|
+
//# sourceMappingURL=get-output-kind.d.mts.map
|
|
@@ -1,25 +1,14 @@
|
|
|
1
|
-
import type { Agent } from './package-environment.mts'
|
|
2
|
-
import type { SocketYml } from '@socketsecurity/config'
|
|
3
|
-
import type { SocketSdkReturnType } from '@socketsecurity/sdk'
|
|
4
|
-
import type { GlobOptions } from 'tinyglobby'
|
|
5
|
-
export declare function filterGlobResultToSupportedFiles(
|
|
6
|
-
entries: string[] | readonly string[],
|
|
7
|
-
supportedFiles: SocketSdkReturnType<'getReportSupportedFiles'>['data']
|
|
8
|
-
): Promise<string[]>
|
|
1
|
+
import type { Agent } from './package-environment.mts';
|
|
2
|
+
import type { SocketYml } from '@socketsecurity/config';
|
|
3
|
+
import type { SocketSdkReturnType } from '@socketsecurity/sdk';
|
|
4
|
+
import type { GlobOptions } from 'tinyglobby';
|
|
5
|
+
export declare function filterGlobResultToSupportedFiles(entries: string[] | readonly string[], supportedFiles: SocketSdkReturnType<'getReportSupportedFiles'>['data']): Promise<string[]>;
|
|
9
6
|
type GlobWithGitIgnoreOptions = GlobOptions & {
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
export declare function globWithGitIgnore(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
):
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
agent: Agent,
|
|
19
|
-
cwd?: string
|
|
20
|
-
): Promise<string[]>
|
|
21
|
-
export declare function pathsToGlobPatterns(
|
|
22
|
-
paths: string[] | readonly string[]
|
|
23
|
-
): string[]
|
|
24
|
-
export {}
|
|
25
|
-
//# sourceMappingURL=glob.d.mts.map
|
|
7
|
+
socketConfig?: SocketYml | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare function globWithGitIgnore(patterns: string[] | readonly string[], options: GlobWithGitIgnoreOptions): Promise<string[]>;
|
|
10
|
+
export declare function globNodeModules(cwd?: string): Promise<string[]>;
|
|
11
|
+
export declare function globWorkspace(agent: Agent, cwd?: string): Promise<string[]>;
|
|
12
|
+
export declare function pathsToGlobPatterns(paths: string[] | readonly string[]): string[];
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=glob.d.mts.map
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
interface NestedRecord<T> {
|
|
2
|
-
|
|
2
|
+
[key: string]: T | NestedRecord<T>;
|
|
3
3
|
}
|
|
4
4
|
/**
|
|
5
5
|
* Convert a Map<string, Map|string> to a nested object of similar shape.
|
|
6
6
|
* The goal is to serialize it with JSON.stringify, which Map can't do.
|
|
7
7
|
*/
|
|
8
|
-
export declare function mapToObject<T>(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export {}
|
|
12
|
-
//# sourceMappingURL=map-to-object.d.mts.map
|
|
8
|
+
export declare function mapToObject<T>(map: Map<string, T | Map<string, T | Map<string, T>>>): NestedRecord<T>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=map-to-object.d.mts.map
|