@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
|
@@ -230,10 +230,9 @@ function requireCjs() {
|
|
|
230
230
|
}
|
|
231
231
|
const result = {}
|
|
232
232
|
if (mod != null) {
|
|
233
|
-
for (
|
|
233
|
+
for (var k in mod)
|
|
234
234
|
if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
|
|
235
235
|
__createBinding(result, mod, k)
|
|
236
|
-
}
|
|
237
236
|
}
|
|
238
237
|
__setModuleDefault(result, mod)
|
|
239
238
|
return result
|
|
@@ -245,9 +244,8 @@ function requireCjs() {
|
|
|
245
244
|
if (
|
|
246
245
|
p !== 'default' &&
|
|
247
246
|
!Object.prototype.hasOwnProperty.call(exports, p)
|
|
248
|
-
)
|
|
247
|
+
)
|
|
249
248
|
__createBinding(exports, m, p)
|
|
250
|
-
}
|
|
251
249
|
}
|
|
252
250
|
}
|
|
253
251
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -17,7 +17,7 @@ declare namespace LoggerModule {
|
|
|
17
17
|
export interface Task {
|
|
18
18
|
run<T>(f: () => T): T
|
|
19
19
|
}
|
|
20
|
-
export const incLogCallCountSymbol: symbol
|
|
20
|
+
export const incLogCallCountSymbol: unique symbol
|
|
21
21
|
export const LOG_SYMBOLS: LogSymbols
|
|
22
22
|
export class Logger extends Console {
|
|
23
23
|
static get LOG_SYMBOLS(): LogSymbols
|
|
@@ -27,6 +27,8 @@ declare namespace LoggerModule {
|
|
|
27
27
|
ignoreErrors?: boolean | undefined
|
|
28
28
|
)
|
|
29
29
|
constructor(options: ConsoleConstructorOptions)
|
|
30
|
+
[incLogCallCountSymbol](): Logger
|
|
31
|
+
'Symbol(logger.logCallCount++)': Logger
|
|
30
32
|
assert: LoggerMethods['assert']
|
|
31
33
|
clear: LoggerMethods['clear']
|
|
32
34
|
count: LoggerMethods['count']
|
|
@@ -46,7 +46,7 @@ const LOG_SYMBOLS = /*@__PURE__*/ (() => {
|
|
|
46
46
|
for (const trapName of Reflect.ownKeys(Reflect)) {
|
|
47
47
|
const fn = Reflect[trapName]
|
|
48
48
|
if (typeof fn === 'function') {
|
|
49
|
-
handler[trapName] =
|
|
49
|
+
handler[trapName] = (...args) => {
|
|
50
50
|
init()
|
|
51
51
|
return fn(...args)
|
|
52
52
|
}
|
|
@@ -55,28 +55,47 @@ const LOG_SYMBOLS = /*@__PURE__*/ (() => {
|
|
|
55
55
|
return new Proxy(target, handler)
|
|
56
56
|
})()
|
|
57
57
|
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
const boundConsoleEntries = [
|
|
59
|
+
// Add bound properties from console[kBindProperties](ignoreErrors, colorMode, groupIndentation).
|
|
60
|
+
// https://github.com/nodejs/node/blob/v24.0.1/lib/internal/console/constructor.js#L230-L265
|
|
61
|
+
'_stderrErrorHandler',
|
|
62
|
+
'_stdoutErrorHandler',
|
|
63
|
+
// Add methods that need to be bound to function properly.
|
|
64
|
+
'assert',
|
|
65
|
+
'clear',
|
|
66
|
+
'count',
|
|
67
|
+
'countReset',
|
|
68
|
+
'createTask',
|
|
69
|
+
'debug',
|
|
70
|
+
'dir',
|
|
71
|
+
'dirxml',
|
|
72
|
+
'error',
|
|
73
|
+
'group',
|
|
74
|
+
'groupCollapsed',
|
|
75
|
+
'groupEnd',
|
|
76
|
+
'info',
|
|
77
|
+
'log',
|
|
78
|
+
'table',
|
|
79
|
+
'time',
|
|
80
|
+
'timeEnd',
|
|
81
|
+
'timeLog',
|
|
82
|
+
'trace',
|
|
83
|
+
'warn'
|
|
84
|
+
]
|
|
85
|
+
.filter(n => typeof console[n] === 'function')
|
|
86
|
+
.map(n => [n, console[n].bind(console)])
|
|
64
87
|
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
88
|
+
const consolePropAttributes = {
|
|
89
|
+
__proto__: null,
|
|
90
|
+
writable: true,
|
|
91
|
+
enumerable: false,
|
|
92
|
+
configurable: true
|
|
93
|
+
}
|
|
68
94
|
|
|
69
95
|
const incLogCallCountSymbol = Symbol.for('logger.logCallCount++')
|
|
70
96
|
|
|
71
97
|
const privateConsole = new WeakMap()
|
|
72
98
|
|
|
73
|
-
const symbolTypeToMethodName = {
|
|
74
|
-
fail: 'error',
|
|
75
|
-
info: 'info',
|
|
76
|
-
success: 'log',
|
|
77
|
-
warn: 'warn'
|
|
78
|
-
}
|
|
79
|
-
|
|
80
99
|
/*@__PURE__*/
|
|
81
100
|
class Logger {
|
|
82
101
|
static LOG_SYMBOLS = LOG_SYMBOLS
|
|
@@ -94,60 +113,46 @@ class Logger {
|
|
|
94
113
|
stdout: process.stdout,
|
|
95
114
|
stderr: process.stderr
|
|
96
115
|
})
|
|
97
|
-
for (const { 0: key, 1: method } of
|
|
116
|
+
for (const { 0: key, 1: method } of boundConsoleEntries) {
|
|
98
117
|
newConsole[key] = method
|
|
99
118
|
}
|
|
100
119
|
privateConsole.set(this, newConsole)
|
|
101
120
|
}
|
|
102
|
-
Object.defineProperties(
|
|
103
|
-
this,
|
|
104
|
-
Object.fromEntries(
|
|
105
|
-
consoleSymbols.map(key => [
|
|
106
|
-
key,
|
|
107
|
-
{
|
|
108
|
-
__proto__: null,
|
|
109
|
-
configurable: true,
|
|
110
|
-
value: console[key],
|
|
111
|
-
writable: true
|
|
112
|
-
}
|
|
113
|
-
])
|
|
114
|
-
)
|
|
115
|
-
)
|
|
116
121
|
}
|
|
117
122
|
|
|
118
123
|
#apply(methodName, args) {
|
|
124
|
+
const con = privateConsole.get(this)
|
|
119
125
|
const text = args.at(0)
|
|
120
|
-
const console = privateConsole.get(this)
|
|
121
126
|
let extras
|
|
122
127
|
if (typeof text === 'string') {
|
|
123
128
|
extras = args.slice(1)
|
|
124
|
-
|
|
129
|
+
con[methodName](`${this.#indention}${text}`)
|
|
125
130
|
this[incLogCallCountSymbol]()
|
|
126
131
|
} else {
|
|
127
132
|
extras = args
|
|
128
133
|
}
|
|
129
134
|
if (extras.length) {
|
|
130
|
-
|
|
135
|
+
con[methodName](...extras)
|
|
131
136
|
this[incLogCallCountSymbol]()
|
|
132
137
|
}
|
|
133
138
|
return this
|
|
134
139
|
}
|
|
135
140
|
|
|
136
141
|
#symbolApply(symbolType, args) {
|
|
137
|
-
|
|
142
|
+
const con = privateConsole.get(this)
|
|
138
143
|
let text = args.at(0)
|
|
144
|
+
let extras
|
|
139
145
|
if (typeof text === 'string') {
|
|
140
146
|
extras = args.slice(1)
|
|
141
147
|
} else {
|
|
142
148
|
extras = args
|
|
143
149
|
text = ''
|
|
144
150
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
console[methodName](`${this.#indention}${LOG_SYMBOLS[symbolType]} ${text}`)
|
|
151
|
+
// Note: Meta status messages (info/fail/etc) always go to stderr.
|
|
152
|
+
con.error(`${this.#indention}${LOG_SYMBOLS[symbolType]} ${text}`)
|
|
148
153
|
this[incLogCallCountSymbol]()
|
|
149
154
|
if (extras.length) {
|
|
150
|
-
|
|
155
|
+
con.error(...extras)
|
|
151
156
|
this[incLogCallCountSymbol]()
|
|
152
157
|
}
|
|
153
158
|
return this
|
|
@@ -159,6 +164,28 @@ class Logger {
|
|
|
159
164
|
|
|
160
165
|
[incLogCallCountSymbol]() {
|
|
161
166
|
this.#logCallCount += 1
|
|
167
|
+
return this
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
assert(value, ...message) {
|
|
171
|
+
const con = privateConsole.get(this)
|
|
172
|
+
con.assert(value, ...message)
|
|
173
|
+
return value ? this : this[incLogCallCountSymbol]()
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
clear() {
|
|
177
|
+
const con = privateConsole.get(this)
|
|
178
|
+
con.clear()
|
|
179
|
+
if (con._stdout.isTTY) {
|
|
180
|
+
this.#logCallCount = 0
|
|
181
|
+
}
|
|
182
|
+
return this
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
count(label) {
|
|
186
|
+
const con = privateConsole.get(this)
|
|
187
|
+
con.count(label)
|
|
188
|
+
return this[incLogCallCountSymbol]()
|
|
162
189
|
}
|
|
163
190
|
|
|
164
191
|
dedent(spaces = 2) {
|
|
@@ -166,6 +193,18 @@ class Logger {
|
|
|
166
193
|
return this
|
|
167
194
|
}
|
|
168
195
|
|
|
196
|
+
dir(obj, options) {
|
|
197
|
+
const con = privateConsole.get(this)
|
|
198
|
+
con.dir(obj, options)
|
|
199
|
+
return this[incLogCallCountSymbol]()
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
dirxml(...data) {
|
|
203
|
+
const con = privateConsole.get(this)
|
|
204
|
+
con.dirxml(data)
|
|
205
|
+
return this[incLogCallCountSymbol]()
|
|
206
|
+
}
|
|
207
|
+
|
|
169
208
|
error(...args) {
|
|
170
209
|
return this.#apply('error', args)
|
|
171
210
|
}
|
|
@@ -174,6 +213,18 @@ class Logger {
|
|
|
174
213
|
return this.#symbolApply('fail', args)
|
|
175
214
|
}
|
|
176
215
|
|
|
216
|
+
group(...label) {
|
|
217
|
+
const con = privateConsole.get(this)
|
|
218
|
+
con.group(...label)
|
|
219
|
+
return label.length ? this[incLogCallCountSymbol]() : this
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// groupCollapsed is an alias of group.
|
|
223
|
+
// https://nodejs.org/api/console.html#consolegroupcollapsed
|
|
224
|
+
groupCollapsed(...label) {
|
|
225
|
+
return this.group(...label)
|
|
226
|
+
}
|
|
227
|
+
|
|
177
228
|
indent(spaces = 2) {
|
|
178
229
|
this.#indention += ' '.repeat(spaces)
|
|
179
230
|
return this
|
|
@@ -196,43 +247,72 @@ class Logger {
|
|
|
196
247
|
return this.#symbolApply('success', args)
|
|
197
248
|
}
|
|
198
249
|
|
|
199
|
-
|
|
200
|
-
|
|
250
|
+
table(tabularData, properties) {
|
|
251
|
+
const con = privateConsole.get(this)
|
|
252
|
+
con.table(tabularData, properties)
|
|
253
|
+
return this[incLogCallCountSymbol]()
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
timeEnd(label) {
|
|
257
|
+
const con = privateConsole.get(this)
|
|
258
|
+
con.timeEnd(label)
|
|
259
|
+
return this[incLogCallCountSymbol]()
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
timeLog(label, ...data) {
|
|
263
|
+
const con = privateConsole.get(this)
|
|
264
|
+
con.timeLog(label, ...data)
|
|
265
|
+
return this[incLogCallCountSymbol]()
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
trace(message, ...args) {
|
|
269
|
+
const con = privateConsole.get(this)
|
|
270
|
+
con.trace(message, ...args)
|
|
271
|
+
return this[incLogCallCountSymbol]()
|
|
201
272
|
}
|
|
202
|
-
}
|
|
203
273
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
if (!Logger.prototype[key] && typeof value === 'function') {
|
|
207
|
-
mixinKeys.push(key)
|
|
274
|
+
warn(...args) {
|
|
275
|
+
return this.#symbolApply('warn', args)
|
|
208
276
|
}
|
|
209
277
|
}
|
|
210
278
|
|
|
211
279
|
Object.defineProperties(
|
|
212
280
|
Logger.prototype,
|
|
213
|
-
Object.fromEntries(
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
281
|
+
Object.fromEntries(
|
|
282
|
+
(() => {
|
|
283
|
+
const entries = [
|
|
284
|
+
[
|
|
285
|
+
Symbol.toStringTag,
|
|
286
|
+
{
|
|
287
|
+
__proto__: null,
|
|
288
|
+
configurable: true,
|
|
289
|
+
value: 'logger'
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
]
|
|
293
|
+
for (const { 0: key, 1: value } of Object.entries(console)) {
|
|
294
|
+
if (!Logger.prototype[key] && typeof value === 'function') {
|
|
295
|
+
// Dynamically name the log method without using Object.defineProperty.
|
|
296
|
+
const { [key]: func } = {
|
|
297
|
+
[key](...args) {
|
|
298
|
+
const con = privateConsole.get(this)
|
|
299
|
+
const result = con[key](...args)
|
|
300
|
+
return result === undefined || result === con ? this : result
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
entries.push([
|
|
304
|
+
key,
|
|
305
|
+
{
|
|
306
|
+
__proto__: null,
|
|
307
|
+
...consolePropAttributes,
|
|
308
|
+
value: func
|
|
309
|
+
}
|
|
310
|
+
])
|
|
311
|
+
}
|
|
233
312
|
}
|
|
234
|
-
|
|
235
|
-
|
|
313
|
+
return entries
|
|
314
|
+
})()
|
|
315
|
+
)
|
|
236
316
|
)
|
|
237
317
|
|
|
238
318
|
const logger = new Logger()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/registry",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.187",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Socket.dev registry helpers methods and metadata",
|
|
6
6
|
"keywords": [
|
|
@@ -612,7 +612,7 @@
|
|
|
612
612
|
"@babel/plugin-transform-runtime": "7.27.1",
|
|
613
613
|
"@babel/runtime": "7.27.1",
|
|
614
614
|
"@biomejs/biome": "1.9.4",
|
|
615
|
-
"@dotenvx/dotenvx": "1.44.
|
|
615
|
+
"@dotenvx/dotenvx": "1.44.1",
|
|
616
616
|
"@inquirer/confirm": "5.1.10",
|
|
617
617
|
"@inquirer/input": "4.1.10",
|
|
618
618
|
"@inquirer/password": "4.0.13",
|