@socketsecurity/cli-with-sentry 0.15.41 → 0.15.43
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/dist/cli.js +7 -7
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +3 -3
- package/dist/constants.js.map +1 -1
- package/dist/types/cli.d.mts +2 -0
- package/dist/types/cli.d.mts.map +1 -0
- package/dist/types/commands/analytics/cmd-analytics.d.mts +10 -0
- package/dist/types/commands/analytics/cmd-analytics.d.mts.map +1 -0
- package/dist/types/commands/analytics/fetch-org-analytics.d.mts +4 -0
- package/dist/types/commands/analytics/fetch-org-analytics.d.mts.map +1 -0
- package/dist/types/commands/analytics/fetch-repo-analytics.d.mts +4 -0
- package/dist/types/commands/analytics/fetch-repo-analytics.d.mts.map +1 -0
- package/dist/types/commands/analytics/handle-analytics.d.mts +9 -0
- package/dist/types/commands/analytics/handle-analytics.d.mts.map +1 -0
- package/dist/types/commands/analytics/output-analytics.d.mts +28 -0
- package/dist/types/commands/analytics/output-analytics.d.mts.map +1 -0
- package/dist/types/commands/audit-log/cmd-audit-log.d.mts +10 -0
- package/dist/types/commands/audit-log/cmd-audit-log.d.mts.map +1 -0
- package/dist/types/commands/audit-log/fetch-audit-log.d.mts +10 -0
- package/dist/types/commands/audit-log/fetch-audit-log.d.mts.map +1 -0
- package/dist/types/commands/audit-log/handle-audit-log.d.mts +9 -0
- package/dist/types/commands/audit-log/handle-audit-log.d.mts.map +1 -0
- package/dist/types/commands/audit-log/output-audit-log.d.mts +22 -0
- package/dist/types/commands/audit-log/output-audit-log.d.mts.map +1 -0
- package/dist/types/commands/cdxgen/cmd-cdxgen.d.mts +10 -0
- package/dist/types/commands/cdxgen/cmd-cdxgen.d.mts.map +1 -0
- 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 +10 -0
- package/dist/types/commands/ci/cmd-ci.d.mts.map +1 -0
- package/dist/types/commands/ci/fetch-default-org-slug.d.mts +4 -0
- package/dist/types/commands/ci/fetch-default-org-slug.d.mts.map +1 -0
- package/dist/types/commands/ci/handle-ci.d.mts +2 -0
- package/dist/types/commands/ci/handle-ci.d.mts.map +1 -0
- package/dist/types/commands/config/cmd-config-auto.d.mts +10 -0
- package/dist/types/commands/config/cmd-config-auto.d.mts.map +1 -0
- package/dist/types/commands/config/cmd-config-get.d.mts +10 -0
- package/dist/types/commands/config/cmd-config-get.d.mts.map +1 -0
- package/dist/types/commands/config/cmd-config-list.d.mts +10 -0
- package/dist/types/commands/config/cmd-config-list.d.mts.map +1 -0
- package/dist/types/commands/config/cmd-config-set.d.mts +10 -0
- package/dist/types/commands/config/cmd-config-set.d.mts.map +1 -0
- package/dist/types/commands/config/cmd-config-unset.d.mts +10 -0
- package/dist/types/commands/config/cmd-config-unset.d.mts.map +1 -0
- package/dist/types/commands/config/cmd-config.d.mts +3 -0
- package/dist/types/commands/config/cmd-config.d.mts.map +1 -0
- package/dist/types/commands/config/discover-config-value.d.mts +3 -0
- package/dist/types/commands/config/discover-config-value.d.mts.map +1 -0
- package/dist/types/commands/config/handle-config-auto.d.mts +7 -0
- package/dist/types/commands/config/handle-config-auto.d.mts.map +1 -0
- package/dist/types/commands/config/handle-config-get.d.mts +7 -0
- package/dist/types/commands/config/handle-config-get.d.mts.map +1 -0
- package/dist/types/commands/config/handle-config-set.d.mts +8 -0
- package/dist/types/commands/config/handle-config-set.d.mts.map +1 -0
- package/dist/types/commands/config/handle-config-unset.d.mts +7 -0
- package/dist/types/commands/config/handle-config-unset.d.mts.map +1 -0
- package/dist/types/commands/config/output-config-auto.d.mts +4 -0
- package/dist/types/commands/config/output-config-auto.d.mts.map +1 -0
- package/dist/types/commands/config/output-config-get.d.mts +4 -0
- package/dist/types/commands/config/output-config-get.d.mts.map +1 -0
- package/dist/types/commands/config/output-config-list.d.mts +6 -0
- package/dist/types/commands/config/output-config-list.d.mts.map +1 -0
- package/dist/types/commands/config/output-config-set.d.mts +3 -0
- package/dist/types/commands/config/output-config-set.d.mts.map +1 -0
- package/dist/types/commands/config/output-config-unset.d.mts +3 -0
- package/dist/types/commands/config/output-config-unset.d.mts.map +1 -0
- package/dist/types/commands/dependencies/cmd-dependencies.d.mts +10 -0
- package/dist/types/commands/dependencies/cmd-dependencies.d.mts.map +1 -0
- package/dist/types/commands/dependencies/fetch-dependencies.d.mts +7 -0
- package/dist/types/commands/dependencies/fetch-dependencies.d.mts.map +1 -0
- package/dist/types/commands/dependencies/handle-dependencies.d.mts +7 -0
- package/dist/types/commands/dependencies/handle-dependencies.d.mts.map +1 -0
- package/dist/types/commands/dependencies/output-dependencies.d.mts +8 -0
- package/dist/types/commands/dependencies/output-dependencies.d.mts.map +1 -0
- package/dist/types/commands/diff-scan/cmd-diff-scan-get.d.mts +10 -0
- package/dist/types/commands/diff-scan/cmd-diff-scan-get.d.mts.map +1 -0
- package/dist/types/commands/diff-scan/cmd-diff-scan.d.mts +3 -0
- package/dist/types/commands/diff-scan/cmd-diff-scan.d.mts.map +1 -0
- package/dist/types/commands/diff-scan/fetch-diff-scan.d.mts +8 -0
- package/dist/types/commands/diff-scan/fetch-diff-scan.d.mts.map +1 -0
- package/dist/types/commands/diff-scan/handle-diff-scan.d.mts +10 -0
- package/dist/types/commands/diff-scan/handle-diff-scan.d.mts.map +1 -0
- package/dist/types/commands/diff-scan/output-diff-scan.d.mts +8 -0
- package/dist/types/commands/diff-scan/output-diff-scan.d.mts.map +1 -0
- package/dist/types/commands/fix/cmd-fix.d.mts +10 -0
- package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -0
- package/dist/types/commands/fix/git.d.mts +33 -0
- package/dist/types/commands/fix/git.d.mts.map +1 -0
- package/dist/types/commands/fix/handle-fix.d.mts +13 -0
- package/dist/types/commands/fix/handle-fix.d.mts.map +1 -0
- package/dist/types/commands/fix/npm-fix.d.mts +15 -0
- package/dist/types/commands/fix/npm-fix.d.mts.map +1 -0
- package/dist/types/commands/fix/open-pr.d.mts +51 -0
- package/dist/types/commands/fix/open-pr.d.mts.map +1 -0
- package/dist/types/commands/fix/output-fix-result.d.mts +3 -0
- package/dist/types/commands/fix/output-fix-result.d.mts.map +1 -0
- package/dist/types/commands/fix/pnpm-fix.d.mts +15 -0
- package/dist/types/commands/fix/pnpm-fix.d.mts.map +1 -0
- package/dist/types/commands/fix/run-fix.d.mts +12 -0
- package/dist/types/commands/fix/run-fix.d.mts.map +1 -0
- package/dist/types/commands/fix/shared.d.mts +9 -0
- package/dist/types/commands/fix/shared.d.mts.map +1 -0
- package/dist/types/commands/info/cmd-info.d.mts +10 -0
- package/dist/types/commands/info/cmd-info.d.mts.map +1 -0
- package/dist/types/commands/info/fetch-package-info.d.mts +3 -0
- package/dist/types/commands/info/fetch-package-info.d.mts.map +1 -0
- package/dist/types/commands/info/handle-package-info.d.mts +17 -0
- package/dist/types/commands/info/handle-package-info.d.mts.map +1 -0
- package/dist/types/commands/info/output-package-info.d.mts +10 -0
- package/dist/types/commands/info/output-package-info.d.mts.map +1 -0
- 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 -0
- package/dist/types/commands/login/apply-login.d.mts.map +1 -0
- package/dist/types/commands/login/attempt-login.d.mts +2 -0
- package/dist/types/commands/login/attempt-login.d.mts.map +1 -0
- package/dist/types/commands/login/cmd-login.d.mts +10 -0
- package/dist/types/commands/login/cmd-login.d.mts.map +1 -0
- package/dist/types/commands/logout/apply-logout.d.mts +2 -0
- package/dist/types/commands/logout/apply-logout.d.mts.map +1 -0
- package/dist/types/commands/logout/attempt-logout.d.mts +2 -0
- package/dist/types/commands/logout/attempt-logout.d.mts.map +1 -0
- package/dist/types/commands/logout/cmd-logout.d.mts +10 -0
- package/dist/types/commands/logout/cmd-logout.d.mts.map +1 -0
- package/dist/types/commands/manifest/cmd-manifest-auto.d.mts +10 -0
- package/dist/types/commands/manifest/cmd-manifest-auto.d.mts.map +1 -0
- 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 +10 -0
- package/dist/types/commands/manifest/cmd-manifest-conda.d.mts.map +1 -0
- package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts +10 -0
- package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts.map +1 -0
- package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts +10 -0
- package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts.map +1 -0
- package/dist/types/commands/manifest/cmd-manifest-scala.d.mts +10 -0
- package/dist/types/commands/manifest/cmd-manifest-scala.d.mts.map +1 -0
- package/dist/types/commands/manifest/cmd-manifest-setup.d.mts +10 -0
- package/dist/types/commands/manifest/cmd-manifest-setup.d.mts.map +1 -0
- package/dist/types/commands/manifest/cmd-manifest.d.mts +10 -0
- package/dist/types/commands/manifest/cmd-manifest.d.mts.map +1 -0
- package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts +8 -0
- package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts.map +1 -0
- package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts +7 -0
- package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts.map +1 -0
- package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts +8 -0
- package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts.map +1 -0
- package/dist/types/commands/manifest/detect-manifest-actions.d.mts +13 -0
- package/dist/types/commands/manifest/detect-manifest-actions.d.mts.map +1 -0
- package/dist/types/commands/manifest/generate_auto_manifest.d.mts +9 -0
- package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +1 -0
- package/dist/types/commands/manifest/handle-manifest-conda.d.mts +9 -0
- package/dist/types/commands/manifest/handle-manifest-conda.d.mts.map +1 -0
- package/dist/types/commands/manifest/handle-manifest-setup.d.mts +2 -0
- package/dist/types/commands/manifest/handle-manifest-setup.d.mts.map +1 -0
- package/dist/types/commands/manifest/output-manifest-setup.d.mts +3 -0
- package/dist/types/commands/manifest/output-manifest-setup.d.mts.map +1 -0
- package/dist/types/commands/manifest/output-requirements.d.mts +6 -0
- package/dist/types/commands/manifest/output-requirements.d.mts.map +1 -0
- package/dist/types/commands/manifest/run-cdxgen.d.mts +2 -0
- package/dist/types/commands/manifest/run-cdxgen.d.mts.map +1 -0
- package/dist/types/commands/manifest/setup-manifest-config.d.mts +3 -0
- package/dist/types/commands/manifest/setup-manifest-config.d.mts.map +1 -0
- package/dist/types/commands/npm/cmd-npm.d.mts +10 -0
- package/dist/types/commands/npm/cmd-npm.d.mts.map +1 -0
- package/dist/types/commands/npx/cmd-npx.d.mts +10 -0
- package/dist/types/commands/npx/cmd-npx.d.mts.map +1 -0
- package/dist/types/commands/oops/cmd-oops.d.mts +10 -0
- package/dist/types/commands/oops/cmd-oops.d.mts.map +1 -0
- package/dist/types/commands/optimize/add-overrides.d.mts +20 -0
- package/dist/types/commands/optimize/add-overrides.d.mts.map +1 -0
- package/dist/types/commands/optimize/apply-optimization.d.mts +9 -0
- package/dist/types/commands/optimize/apply-optimization.d.mts.map +1 -0
- package/dist/types/commands/optimize/cmd-optimize.d.mts +10 -0
- package/dist/types/commands/optimize/cmd-optimize.d.mts.map +1 -0
- package/dist/types/commands/optimize/deps-includes-by-agent.d.mts +4 -0
- package/dist/types/commands/optimize/deps-includes-by-agent.d.mts.map +1 -0
- package/dist/types/commands/optimize/get-dependency-entries.d.mts +3 -0
- package/dist/types/commands/optimize/get-dependency-entries.d.mts.map +1 -0
- package/dist/types/commands/optimize/get-overrides-by-agent.d.mts +9 -0
- package/dist/types/commands/optimize/get-overrides-by-agent.d.mts.map +1 -0
- package/dist/types/commands/optimize/handle-optimize.d.mts +8 -0
- package/dist/types/commands/optimize/handle-optimize.d.mts.map +1 -0
- package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts +3 -0
- package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts.map +1 -0
- package/dist/types/commands/optimize/ls-by-agent.d.mts +7 -0
- package/dist/types/commands/optimize/ls-by-agent.d.mts.map +1 -0
- package/dist/types/commands/optimize/output-optimize-result.d.mts +9 -0
- package/dist/types/commands/optimize/output-optimize-result.d.mts.map +1 -0
- package/dist/types/commands/optimize/shared.d.mts +2 -0
- package/dist/types/commands/optimize/shared.d.mts.map +1 -0
- package/dist/types/commands/optimize/types.d.mts +9 -0
- package/dist/types/commands/optimize/types.d.mts.map +1 -0
- package/dist/types/commands/optimize/update-lockfile.d.mts +11 -0
- package/dist/types/commands/optimize/update-lockfile.d.mts.map +1 -0
- package/dist/types/commands/optimize/update-manifest-by-agent.d.mts +5 -0
- package/dist/types/commands/optimize/update-manifest-by-agent.d.mts.map +1 -0
- package/dist/types/commands/organization/cmd-organization-list.d.mts +10 -0
- package/dist/types/commands/organization/cmd-organization-list.d.mts.map +1 -0
- package/dist/types/commands/organization/cmd-organization-policy-license.d.mts +10 -0
- package/dist/types/commands/organization/cmd-organization-policy-license.d.mts.map +1 -0
- package/dist/types/commands/organization/cmd-organization-policy-security.d.mts +10 -0
- package/dist/types/commands/organization/cmd-organization-policy-security.d.mts.map +1 -0
- package/dist/types/commands/organization/cmd-organization-policy.d.mts +3 -0
- package/dist/types/commands/organization/cmd-organization-policy.d.mts.map +1 -0
- package/dist/types/commands/organization/cmd-organization-quota.d.mts +10 -0
- package/dist/types/commands/organization/cmd-organization-quota.d.mts.map +1 -0
- package/dist/types/commands/organization/cmd-organization.d.mts +3 -0
- package/dist/types/commands/organization/cmd-organization.d.mts.map +1 -0
- package/dist/types/commands/organization/fetch-license-policy.d.mts +4 -0
- package/dist/types/commands/organization/fetch-license-policy.d.mts.map +1 -0
- package/dist/types/commands/organization/fetch-organization-list.d.mts +4 -0
- package/dist/types/commands/organization/fetch-organization-list.d.mts.map +1 -0
- package/dist/types/commands/organization/fetch-quota.d.mts +4 -0
- package/dist/types/commands/organization/fetch-quota.d.mts.map +1 -0
- package/dist/types/commands/organization/fetch-security-policy.d.mts +4 -0
- package/dist/types/commands/organization/fetch-security-policy.d.mts.map +1 -0
- package/dist/types/commands/organization/handle-license-policy.d.mts +3 -0
- package/dist/types/commands/organization/handle-license-policy.d.mts.map +1 -0
- package/dist/types/commands/organization/handle-organization-list.d.mts +3 -0
- package/dist/types/commands/organization/handle-organization-list.d.mts.map +1 -0
- package/dist/types/commands/organization/handle-quota.d.mts +3 -0
- package/dist/types/commands/organization/handle-quota.d.mts.map +1 -0
- package/dist/types/commands/organization/handle-security-policy.d.mts +3 -0
- package/dist/types/commands/organization/handle-security-policy.d.mts.map +1 -0
- package/dist/types/commands/organization/output-license-policy.d.mts +4 -0
- package/dist/types/commands/organization/output-license-policy.d.mts.map +1 -0
- package/dist/types/commands/organization/output-organization-list.d.mts +4 -0
- package/dist/types/commands/organization/output-organization-list.d.mts.map +1 -0
- package/dist/types/commands/organization/output-quota.d.mts +4 -0
- package/dist/types/commands/organization/output-quota.d.mts.map +1 -0
- package/dist/types/commands/organization/output-security-policy.d.mts +4 -0
- package/dist/types/commands/organization/output-security-policy.d.mts.map +1 -0
- package/dist/types/commands/package/cmd-package-score.d.mts +10 -0
- package/dist/types/commands/package/cmd-package-score.d.mts.map +1 -0
- package/dist/types/commands/package/cmd-package-shallow.d.mts +17 -0
- package/dist/types/commands/package/cmd-package-shallow.d.mts.map +1 -0
- package/dist/types/commands/package/cmd-package.d.mts +3 -0
- package/dist/types/commands/package/cmd-package.d.mts.map +1 -0
- package/dist/types/commands/package/fetch-purl-deep-score.d.mts +51 -0
- package/dist/types/commands/package/fetch-purl-deep-score.d.mts.map +1 -0
- package/dist/types/commands/package/fetch-purls-shallow-score.d.mts +4 -0
- package/dist/types/commands/package/fetch-purls-shallow-score.d.mts.map +1 -0
- package/dist/types/commands/package/handle-purl-deep-score.d.mts +3 -0
- package/dist/types/commands/package/handle-purl-deep-score.d.mts.map +1 -0
- package/dist/types/commands/package/handle-purls-shallow-score.d.mts +6 -0
- package/dist/types/commands/package/handle-purls-shallow-score.d.mts.map +1 -0
- package/dist/types/commands/package/output-purl-score.d.mts +4 -0
- package/dist/types/commands/package/output-purl-score.d.mts.map +1 -0
- package/dist/types/commands/package/output-purls-shallow-score.d.mts +4 -0
- package/dist/types/commands/package/output-purls-shallow-score.d.mts.map +1 -0
- package/dist/types/commands/package/parse-package-specifiers.d.mts +9 -0
- package/dist/types/commands/package/parse-package-specifiers.d.mts.map +1 -0
- package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts +10 -0
- package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts.map +1 -0
- package/dist/types/commands/raw-npm/run-raw-npm.d.mts +2 -0
- package/dist/types/commands/raw-npm/run-raw-npm.d.mts.map +1 -0
- package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts +10 -0
- package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts.map +1 -0
- package/dist/types/commands/raw-npx/run-raw-npx.d.mts +2 -0
- package/dist/types/commands/raw-npx/run-raw-npx.d.mts.map +1 -0
- package/dist/types/commands/report/cmd-report-create.d.mts +10 -0
- package/dist/types/commands/report/cmd-report-create.d.mts.map +1 -0
- package/dist/types/commands/report/cmd-report-view.d.mts +10 -0
- package/dist/types/commands/report/cmd-report-view.d.mts.map +1 -0
- package/dist/types/commands/report/cmd-report.d.mts +3 -0
- package/dist/types/commands/report/cmd-report.d.mts.map +1 -0
- package/dist/types/commands/repos/cmd-repos-create.d.mts +10 -0
- package/dist/types/commands/repos/cmd-repos-create.d.mts.map +1 -0
- package/dist/types/commands/repos/cmd-repos-del.d.mts +10 -0
- package/dist/types/commands/repos/cmd-repos-del.d.mts.map +1 -0
- package/dist/types/commands/repos/cmd-repos-list.d.mts +10 -0
- package/dist/types/commands/repos/cmd-repos-list.d.mts.map +1 -0
- package/dist/types/commands/repos/cmd-repos-update.d.mts +10 -0
- package/dist/types/commands/repos/cmd-repos-update.d.mts.map +1 -0
- package/dist/types/commands/repos/cmd-repos-view.d.mts +10 -0
- package/dist/types/commands/repos/cmd-repos-view.d.mts.map +1 -0
- package/dist/types/commands/repos/cmd-repos.d.mts +3 -0
- package/dist/types/commands/repos/cmd-repos.d.mts.map +1 -0
- package/dist/types/commands/repos/fetch-create-repo.d.mts +11 -0
- package/dist/types/commands/repos/fetch-create-repo.d.mts.map +1 -0
- package/dist/types/commands/repos/fetch-delete-repo.d.mts +4 -0
- package/dist/types/commands/repos/fetch-delete-repo.d.mts.map +1 -0
- package/dist/types/commands/repos/fetch-list-all-repos.d.mts +8 -0
- package/dist/types/commands/repos/fetch-list-all-repos.d.mts.map +1 -0
- package/dist/types/commands/repos/fetch-list-repos.d.mts +10 -0
- package/dist/types/commands/repos/fetch-list-repos.d.mts.map +1 -0
- package/dist/types/commands/repos/fetch-update-repo.d.mts +11 -0
- package/dist/types/commands/repos/fetch-update-repo.d.mts.map +1 -0
- package/dist/types/commands/repos/fetch-view-repo.d.mts +4 -0
- package/dist/types/commands/repos/fetch-view-repo.d.mts.map +1 -0
- package/dist/types/commands/repos/handle-create-repo.d.mts +10 -0
- package/dist/types/commands/repos/handle-create-repo.d.mts.map +1 -0
- package/dist/types/commands/repos/handle-delete-repo.d.mts +3 -0
- package/dist/types/commands/repos/handle-delete-repo.d.mts.map +1 -0
- package/dist/types/commands/repos/handle-list-repos.d.mts +11 -0
- package/dist/types/commands/repos/handle-list-repos.d.mts.map +1 -0
- package/dist/types/commands/repos/handle-update-repo.d.mts +10 -0
- package/dist/types/commands/repos/handle-update-repo.d.mts.map +1 -0
- package/dist/types/commands/repos/handle-view-repo.d.mts +3 -0
- package/dist/types/commands/repos/handle-view-repo.d.mts.map +1 -0
- package/dist/types/commands/repos/output-create-repo.d.mts +4 -0
- package/dist/types/commands/repos/output-create-repo.d.mts.map +1 -0
- package/dist/types/commands/repos/output-delete-repo.d.mts +4 -0
- package/dist/types/commands/repos/output-delete-repo.d.mts.map +1 -0
- package/dist/types/commands/repos/output-list-repos.d.mts +4 -0
- package/dist/types/commands/repos/output-list-repos.d.mts.map +1 -0
- package/dist/types/commands/repos/output-update-repo.d.mts +4 -0
- package/dist/types/commands/repos/output-update-repo.d.mts.map +1 -0
- package/dist/types/commands/repos/output-view-repo.d.mts +4 -0
- package/dist/types/commands/repos/output-view-repo.d.mts.map +1 -0
- package/dist/types/commands/scan/cmd-scan-create.d.mts +10 -0
- package/dist/types/commands/scan/cmd-scan-create.d.mts.map +1 -0
- package/dist/types/commands/scan/cmd-scan-del.d.mts +10 -0
- package/dist/types/commands/scan/cmd-scan-del.d.mts.map +1 -0
- package/dist/types/commands/scan/cmd-scan-diff.d.mts +10 -0
- package/dist/types/commands/scan/cmd-scan-diff.d.mts.map +1 -0
- package/dist/types/commands/scan/cmd-scan-github.d.mts +10 -0
- package/dist/types/commands/scan/cmd-scan-github.d.mts.map +1 -0
- package/dist/types/commands/scan/cmd-scan-list.d.mts +3 -0
- package/dist/types/commands/scan/cmd-scan-list.d.mts.map +1 -0
- package/dist/types/commands/scan/cmd-scan-metadata.d.mts +3 -0
- package/dist/types/commands/scan/cmd-scan-metadata.d.mts.map +1 -0
- package/dist/types/commands/scan/cmd-scan-report.d.mts +3 -0
- package/dist/types/commands/scan/cmd-scan-report.d.mts.map +1 -0
- package/dist/types/commands/scan/cmd-scan-setup.d.mts +10 -0
- package/dist/types/commands/scan/cmd-scan-setup.d.mts.map +1 -0
- package/dist/types/commands/scan/cmd-scan-view.d.mts +3 -0
- package/dist/types/commands/scan/cmd-scan-view.d.mts.map +1 -0
- package/dist/types/commands/scan/cmd-scan.d.mts +3 -0
- package/dist/types/commands/scan/cmd-scan.d.mts.map +1 -0
- package/dist/types/commands/scan/create-scan-from-github.d.mts +12 -0
- package/dist/types/commands/scan/create-scan-from-github.d.mts.map +1 -0
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +11 -0
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +1 -0
- package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts +4 -0
- package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts.map +1 -0
- package/dist/types/commands/scan/fetch-diff-scan.d.mts +8 -0
- package/dist/types/commands/scan/fetch-diff-scan.d.mts.map +1 -0
- package/dist/types/commands/scan/fetch-list-scans.d.mts +13 -0
- package/dist/types/commands/scan/fetch-list-scans.d.mts.map +1 -0
- package/dist/types/commands/scan/fetch-report-data.d.mts +12 -0
- package/dist/types/commands/scan/fetch-report-data.d.mts.map +1 -0
- package/dist/types/commands/scan/fetch-scan-metadata.d.mts +4 -0
- package/dist/types/commands/scan/fetch-scan-metadata.d.mts.map +1 -0
- package/dist/types/commands/scan/fetch-scan.d.mts +4 -0
- package/dist/types/commands/scan/fetch-scan.d.mts.map +1 -0
- package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +4 -0
- package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts.map +1 -0
- package/dist/types/commands/scan/generate-report.d.mts +43 -0
- package/dist/types/commands/scan/generate-report.d.mts.map +1 -0
- package/dist/types/commands/scan/handle-create-github-scan.d.mts +12 -0
- package/dist/types/commands/scan/handle-create-github-scan.d.mts.map +1 -0
- package/dist/types/commands/scan/handle-create-new-scan.d.mts +21 -0
- package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -0
- package/dist/types/commands/scan/handle-delete-scan.d.mts +3 -0
- package/dist/types/commands/scan/handle-delete-scan.d.mts.map +1 -0
- package/dist/types/commands/scan/handle-diff-scan.d.mts +10 -0
- package/dist/types/commands/scan/handle-diff-scan.d.mts.map +1 -0
- package/dist/types/commands/scan/handle-list-scans.d.mts +13 -0
- package/dist/types/commands/scan/handle-list-scans.d.mts.map +1 -0
- package/dist/types/commands/scan/handle-scan-config.d.mts +2 -0
- package/dist/types/commands/scan/handle-scan-config.d.mts.map +1 -0
- package/dist/types/commands/scan/handle-scan-metadata.d.mts +3 -0
- package/dist/types/commands/scan/handle-scan-metadata.d.mts.map +1 -0
- package/dist/types/commands/scan/handle-scan-report.d.mts +12 -0
- package/dist/types/commands/scan/handle-scan-report.d.mts.map +1 -0
- package/dist/types/commands/scan/handle-scan-view.d.mts +3 -0
- package/dist/types/commands/scan/handle-scan-view.d.mts.map +1 -0
- package/dist/types/commands/scan/output-create-new-scan.d.mts +4 -0
- package/dist/types/commands/scan/output-create-new-scan.d.mts.map +1 -0
- package/dist/types/commands/scan/output-delete-scan.d.mts +4 -0
- package/dist/types/commands/scan/output-delete-scan.d.mts.map +1 -0
- package/dist/types/commands/scan/output-diff-scan.d.mts +8 -0
- package/dist/types/commands/scan/output-diff-scan.d.mts.map +1 -0
- package/dist/types/commands/scan/output-list-scans.d.mts +4 -0
- package/dist/types/commands/scan/output-list-scans.d.mts.map +1 -0
- package/dist/types/commands/scan/output-scan-config-result.d.mts +3 -0
- package/dist/types/commands/scan/output-scan-config-result.d.mts.map +1 -0
- package/dist/types/commands/scan/output-scan-metadata.d.mts +4 -0
- package/dist/types/commands/scan/output-scan-metadata.d.mts.map +1 -0
- package/dist/types/commands/scan/output-scan-report.d.mts +20 -0
- package/dist/types/commands/scan/output-scan-report.d.mts.map +1 -0
- package/dist/types/commands/scan/output-scan-view.d.mts +4 -0
- package/dist/types/commands/scan/output-scan-view.d.mts.map +1 -0
- package/dist/types/commands/scan/setup-scan-config.d.mts +3 -0
- package/dist/types/commands/scan/setup-scan-config.d.mts.map +1 -0
- package/dist/types/commands/scan/stream-scan.d.mts +2 -0
- package/dist/types/commands/scan/stream-scan.d.mts.map +1 -0
- package/dist/types/commands/scan/suggest-org-slug.d.mts +2 -0
- package/dist/types/commands/scan/suggest-org-slug.d.mts.map +1 -0
- package/dist/types/commands/scan/suggest-repo-slug.d.mts +5 -0
- package/dist/types/commands/scan/suggest-repo-slug.d.mts.map +1 -0
- package/dist/types/commands/scan/suggest_branch_slug.d.mts +2 -0
- package/dist/types/commands/scan/suggest_branch_slug.d.mts.map +1 -0
- package/dist/types/commands/scan/suggest_target.d.mts +2 -0
- package/dist/types/commands/scan/suggest_target.d.mts.map +1 -0
- package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts +10 -0
- package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts.map +1 -0
- package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts +10 -0
- package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts.map +1 -0
- package/dist/types/commands/threat-feed/handle-threat-feed.d.mts +10 -0
- package/dist/types/commands/threat-feed/handle-threat-feed.d.mts.map +1 -0
- package/dist/types/commands/threat-feed/output-threat-feed.d.mts +4 -0
- package/dist/types/commands/threat-feed/output-threat-feed.d.mts.map +1 -0
- package/dist/types/commands/threat-feed/types.d.mts +15 -0
- package/dist/types/commands/threat-feed/types.d.mts.map +1 -0
- 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 -0
- package/dist/types/commands/wrapper/add-socket-wrapper.d.mts.map +1 -0
- package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts +2 -0
- package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts.map +1 -0
- package/dist/types/commands/wrapper/cmd-wrapper.d.mts +10 -0
- package/dist/types/commands/wrapper/cmd-wrapper.d.mts.map +1 -0
- package/dist/types/commands/wrapper/postinstall-wrapper.d.mts +2 -0
- package/dist/types/commands/wrapper/postinstall-wrapper.d.mts.map +1 -0
- package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts +2 -0
- package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts.map +1 -0
- package/dist/types/constants.d.mts +128 -0
- package/dist/types/constants.d.mts.map +1 -0
- package/dist/types/flags.d.mts +16 -0
- package/dist/types/flags.d.mts.map +1 -0
- package/dist/types/instrument-with-sentry.d.mts +2 -0
- package/dist/types/instrument-with-sentry.d.mts.map +1 -0
- package/dist/types/shadow/npm/arborist/index.d.mts +19 -0
- package/dist/types/shadow/npm/arborist/index.d.mts.map +1 -0
- package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts +24 -0
- package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts.map +1 -0
- package/dist/types/shadow/npm/arborist/types.d.mts +119 -0
- package/dist/types/shadow/npm/arborist/types.d.mts.map +1 -0
- package/dist/types/shadow/npm/arborist-helpers.d.mts +35 -0
- package/dist/types/shadow/npm/arborist-helpers.d.mts.map +1 -0
- package/dist/types/shadow/npm/bin.d.mts +2 -0
- package/dist/types/shadow/npm/bin.d.mts.map +1 -0
- package/dist/types/shadow/npm/inject.d.mts +2 -0
- package/dist/types/shadow/npm/inject.d.mts.map +1 -0
- package/dist/types/shadow/npm/install.d.mts +13 -0
- package/dist/types/shadow/npm/install.d.mts.map +1 -0
- package/dist/types/shadow/npm/link.d.mts +2 -0
- package/dist/types/shadow/npm/link.d.mts.map +1 -0
- package/dist/types/shadow/npm/paths.d.mts +7 -0
- package/dist/types/shadow/npm/paths.d.mts.map +1 -0
- package/dist/types/shadow/npm/proc-log/index.d.mts +3 -0
- package/dist/types/shadow/npm/proc-log/index.d.mts.map +1 -0
- package/dist/types/types.d.mts +29 -0
- package/dist/types/types.d.mts.map +1 -0
- package/dist/types/utils/agent.d.mts +12 -0
- package/dist/types/utils/agent.d.mts.map +1 -0
- package/dist/types/utils/alert/artifact.d.mts +34 -0
- package/dist/types/utils/alert/artifact.d.mts.map +1 -0
- package/dist/types/utils/alert/fix.d.mts +6 -0
- package/dist/types/utils/alert/fix.d.mts.map +1 -0
- package/dist/types/utils/alert/severity.d.mts +14 -0
- package/dist/types/utils/alert/severity.d.mts.map +1 -0
- package/dist/types/utils/alerts-map.d.mts +25 -0
- package/dist/types/utils/alerts-map.d.mts.map +1 -0
- package/dist/types/utils/api.d.mts +13 -0
- package/dist/types/utils/api.d.mts.map +1 -0
- package/dist/types/utils/check-input.d.mts +9 -0
- package/dist/types/utils/check-input.d.mts.map +1 -0
- package/dist/types/utils/cmd.d.mts +4 -0
- package/dist/types/utils/cmd.d.mts.map +1 -0
- package/dist/types/utils/color-or-markdown.d.mts +16 -0
- package/dist/types/utils/color-or-markdown.d.mts.map +1 -0
- 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 +31 -0
- package/dist/types/utils/config.d.mts.map +1 -0
- package/dist/types/utils/determine-org-slug.d.mts +2 -0
- package/dist/types/utils/determine-org-slug.d.mts.map +1 -0
- package/dist/types/utils/errors.d.mts +14 -0
- package/dist/types/utils/errors.d.mts.map +1 -0
- package/dist/types/utils/fail-msg-with-badge.d.mts +2 -0
- package/dist/types/utils/fail-msg-with-badge.d.mts.map +1 -0
- package/dist/types/utils/fs.d.mts +22 -0
- package/dist/types/utils/fs.d.mts.map +1 -0
- package/dist/types/utils/get-output-kind.d.mts +3 -0
- package/dist/types/utils/get-output-kind.d.mts.map +1 -0
- package/dist/types/utils/glob.d.mts +14 -0
- package/dist/types/utils/glob.d.mts.map +1 -0
- package/dist/types/utils/map-to-object.d.mts +10 -0
- package/dist/types/utils/map-to-object.d.mts.map +1 -0
- package/dist/types/utils/markdown.d.mts +10 -0
- package/dist/types/utils/markdown.d.mts.map +1 -0
- package/dist/types/utils/meow-with-subcommands.d.mts +50 -0
- package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -0
- package/dist/types/utils/npm-package-arg.d.mts +4 -0
- package/dist/types/utils/npm-package-arg.d.mts.map +1 -0
- package/dist/types/utils/npm-paths.d.mts +7 -0
- package/dist/types/utils/npm-paths.d.mts.map +1 -0
- package/dist/types/utils/objects.d.mts +3 -0
- package/dist/types/utils/objects.d.mts.map +1 -0
- package/dist/types/utils/output-formatting.d.mts +15 -0
- package/dist/types/utils/output-formatting.d.mts.map +1 -0
- package/dist/types/utils/package-environment.d.mts +57 -0
- package/dist/types/utils/package-environment.d.mts.map +1 -0
- package/dist/types/utils/path-resolve.d.mts +10 -0
- package/dist/types/utils/path-resolve.d.mts.map +1 -0
- package/dist/types/utils/pnpm.d.mts +11 -0
- package/dist/types/utils/pnpm.d.mts.map +1 -0
- package/dist/types/utils/purl.d.mts +3 -0
- package/dist/types/utils/purl.d.mts.map +1 -0
- package/dist/types/utils/sdk.d.mts +8 -0
- package/dist/types/utils/sdk.d.mts.map +1 -0
- package/dist/types/utils/semver.d.mts +8 -0
- package/dist/types/utils/semver.d.mts.map +1 -0
- package/dist/types/utils/serialize-result-json.d.mts +5 -0
- package/dist/types/utils/serialize-result-json.d.mts.map +1 -0
- package/dist/types/utils/socket-package-alert.d.mts +77 -0
- package/dist/types/utils/socket-package-alert.d.mts.map +1 -0
- package/dist/types/utils/socket-url.d.mts +9 -0
- package/dist/types/utils/socket-url.d.mts.map +1 -0
- package/dist/types/utils/socketjson.d.mts +56 -0
- package/dist/types/utils/socketjson.d.mts.map +1 -0
- package/dist/types/utils/spec.d.mts +4 -0
- package/dist/types/utils/spec.d.mts.map +1 -0
- package/dist/types/utils/strings.d.mts +2 -0
- package/dist/types/utils/strings.d.mts.map +1 -0
- package/dist/types/utils/translations.d.mts +593 -0
- package/dist/types/utils/translations.d.mts.map +1 -0
- package/dist/types/utils/walk-nested-map.d.mts +7 -0
- package/dist/types/utils/walk-nested-map.d.mts.map +1 -0
- package/dist/utils.js +115 -23
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +1107 -1077
- package/external/@socketsecurity/registry/external/browserslist.js +395 -358
- package/external/@socketsecurity/registry/lib/debug.js +15 -5
- package/external/@socketsecurity/registry/lib/logger.js +3 -10
- package/external/@socketsecurity/registry/lib/strings.js +9 -1
- package/package.json +19 -19
package/dist/utils.js
CHANGED
|
@@ -1093,13 +1093,43 @@ async function meowWithSubcommands(subcommands, options) {
|
|
|
1093
1093
|
};
|
|
1094
1094
|
|
|
1095
1095
|
// No further args or first arg is a flag (shrug)
|
|
1096
|
-
|
|
1096
|
+
const isRootCommand = name === 'socket' && (!commandOrAliasName || commandOrAliasName?.startsWith('-'));
|
|
1097
|
+
if (isRootCommand) {
|
|
1098
|
+
flags['help'] = {
|
|
1099
|
+
type: 'boolean',
|
|
1100
|
+
hidden: false,
|
|
1101
|
+
// Only show on root
|
|
1102
|
+
description: 'Give you detailed help information about any sub-command'
|
|
1103
|
+
};
|
|
1104
|
+
flags['config'] = {
|
|
1105
|
+
type: 'string',
|
|
1106
|
+
hidden: false,
|
|
1107
|
+
// Only show on root
|
|
1108
|
+
description: 'Allows you to temp overrides the internal CLI config'
|
|
1109
|
+
};
|
|
1097
1110
|
flags['dryRun'] = {
|
|
1098
1111
|
type: 'boolean',
|
|
1099
|
-
default: false,
|
|
1100
1112
|
hidden: false,
|
|
1101
1113
|
// Only show on root
|
|
1102
|
-
description: 'Do input validation for a command and exit
|
|
1114
|
+
description: 'Do input validation for a sub-command and then exit'
|
|
1115
|
+
};
|
|
1116
|
+
flags['json'] = {
|
|
1117
|
+
type: 'boolean',
|
|
1118
|
+
hidden: false,
|
|
1119
|
+
// Only show on root
|
|
1120
|
+
description: 'Ensure stdout only receives proper JSON (Most non-interactive commands support this)'
|
|
1121
|
+
};
|
|
1122
|
+
flags['markdown'] = {
|
|
1123
|
+
type: 'boolean',
|
|
1124
|
+
hidden: false,
|
|
1125
|
+
// Only show on root
|
|
1126
|
+
description: 'Ensure stdout only receives a markdown report (Many commands that support --json also support this)'
|
|
1127
|
+
};
|
|
1128
|
+
flags['version'] = {
|
|
1129
|
+
type: 'boolean',
|
|
1130
|
+
hidden: false,
|
|
1131
|
+
// Only show on root
|
|
1132
|
+
description: 'Show version of CLI'
|
|
1103
1133
|
};
|
|
1104
1134
|
}
|
|
1105
1135
|
|
|
@@ -1172,35 +1202,97 @@ async function meowWithSubcommands(subcommands, options) {
|
|
|
1172
1202
|
delete subcommands['info'];
|
|
1173
1203
|
delete subcommands['report'];
|
|
1174
1204
|
}
|
|
1205
|
+
function formatCommandsForHelp() {
|
|
1206
|
+
if (!isTestingV1()) {
|
|
1207
|
+
return getHelpListOutput({
|
|
1208
|
+
...objects.toSortedObject(Object.fromEntries(Object.entries(subcommands).filter(({
|
|
1209
|
+
1: subcommand
|
|
1210
|
+
}) => !subcommand.hidden))),
|
|
1211
|
+
...objects.toSortedObject(Object.fromEntries(Object.entries(aliases).filter(({
|
|
1212
|
+
1: alias
|
|
1213
|
+
}) => {
|
|
1214
|
+
const {
|
|
1215
|
+
hidden
|
|
1216
|
+
} = alias;
|
|
1217
|
+
const cmdName = hidden ? '' : alias.argv[0];
|
|
1218
|
+
const subcommand = cmdName ? subcommands[cmdName] : undefined;
|
|
1219
|
+
return subcommand && !subcommand.hidden;
|
|
1220
|
+
})))
|
|
1221
|
+
}, 6);
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
// "Bucket" some commands for easier usage
|
|
1225
|
+
|
|
1226
|
+
const commands = new Set(['analytics', 'audit-log', 'config', 'dependencies', 'fix', 'install', 'login', 'logout', 'manifest', 'npm', 'npx', 'optimize', 'organization', 'package', 'raw-npm', 'raw-npx', 'repos', 'scan', 'threat-feed', 'uninstall', 'wrapper']);
|
|
1227
|
+
Object.entries(subcommands).filter(([_name, subcommand]) => !subcommand.hidden).map(([name]) => name).forEach(name => {
|
|
1228
|
+
if (commands.has(name)) {
|
|
1229
|
+
commands.delete(name);
|
|
1230
|
+
} else {
|
|
1231
|
+
logger.logger.fail('Received a visible command that was not added to the list here;', name);
|
|
1232
|
+
}
|
|
1233
|
+
});
|
|
1234
|
+
if (commands.size) {
|
|
1235
|
+
logger.logger.fail('Found commands in the list that were not marked as public or were not defined at all:', Array.from(commands).sort());
|
|
1236
|
+
}
|
|
1237
|
+
const out = [];
|
|
1238
|
+
out.push('All commands have their own --help page');
|
|
1239
|
+
out.push(' ');
|
|
1240
|
+
out.push(' Main commands');
|
|
1241
|
+
out.push(' ');
|
|
1242
|
+
out.push(' socket login Setup the CLI with an API Token and defaults');
|
|
1243
|
+
out.push(' socket scan create Create a new Scan and report');
|
|
1244
|
+
out.push(' socket package score Request the (shallow) security score of a particular package');
|
|
1245
|
+
out.push(' socket ci Shorthand for CI; socket scan create --report --no-interactive');
|
|
1246
|
+
out.push(' ');
|
|
1247
|
+
out.push(' Socket API');
|
|
1248
|
+
out.push(' ');
|
|
1249
|
+
out.push(' analytics Look up analytics data');
|
|
1250
|
+
out.push(' audit-log Look up the audit log for an organization');
|
|
1251
|
+
out.push(' organization Manage organization account details');
|
|
1252
|
+
out.push(' package Look up published package details');
|
|
1253
|
+
out.push(' repository Manage registered repositories');
|
|
1254
|
+
out.push(' scan Manage Socket scans');
|
|
1255
|
+
out.push(' threat-feed [beta] View the threat feed');
|
|
1256
|
+
out.push(' ');
|
|
1257
|
+
out.push(' Local tools');
|
|
1258
|
+
out.push(' ');
|
|
1259
|
+
out.push(' fix Update dependencies with "fixable" Socket alerts');
|
|
1260
|
+
out.push(' manifest Generate a dependency manifest for certain languages');
|
|
1261
|
+
out.push(' npm npm wrapper functionality');
|
|
1262
|
+
out.push(' npx npx wrapper functionality');
|
|
1263
|
+
out.push(' optimize Optimize dependencies with @socketregistry overrides');
|
|
1264
|
+
out.push(' raw-npm Temporarily disable the Socket npm wrapper');
|
|
1265
|
+
out.push(' raw-npx Temporarily disable the Socket npx wrapper');
|
|
1266
|
+
out.push(' ');
|
|
1267
|
+
out.push(' CLI configuration');
|
|
1268
|
+
out.push(' ');
|
|
1269
|
+
out.push(' config Manage the CLI configuration directly');
|
|
1270
|
+
out.push(' install Manually install CLI tab completion on your system');
|
|
1271
|
+
out.push(' login Socket API login and CLI setup');
|
|
1272
|
+
out.push(' logout Socket API logout');
|
|
1273
|
+
out.push(' uninstall Remove the CLI tab completion from your system');
|
|
1274
|
+
out.push(' wrapper Enable or disable the Socket npm/npx wrapper');
|
|
1275
|
+
return out.join('\n');
|
|
1276
|
+
}
|
|
1175
1277
|
|
|
1176
1278
|
// Parse it again. Config overrides should now be applied (may affect help).
|
|
1279
|
+
// Note: this is displayed as help screen if the command does not override it
|
|
1280
|
+
// (which is the case for most sub-commands with sub-commands)
|
|
1177
1281
|
const cli2 = vendor.meow(`
|
|
1178
1282
|
Usage
|
|
1179
1283
|
$ ${name} <command>
|
|
1180
1284
|
|
|
1181
|
-
Commands
|
|
1182
|
-
${
|
|
1183
|
-
...objects.toSortedObject(Object.fromEntries(Object.entries(subcommands).filter(({
|
|
1184
|
-
1: subcommand
|
|
1185
|
-
}) => !subcommand.hidden))),
|
|
1186
|
-
...objects.toSortedObject(Object.fromEntries(Object.entries(aliases).filter(({
|
|
1187
|
-
1: alias
|
|
1188
|
-
}) => {
|
|
1189
|
-
const {
|
|
1190
|
-
hidden
|
|
1191
|
-
} = alias;
|
|
1192
|
-
const cmdName = hidden ? '' : alias.argv[0];
|
|
1193
|
-
const subcommand = cmdName ? subcommands[cmdName] : undefined;
|
|
1194
|
-
return subcommand && !subcommand.hidden;
|
|
1195
|
-
})))
|
|
1196
|
-
}, 6)}
|
|
1285
|
+
${isRootCommand && isTestingV1() ? '' : ' Commands'}
|
|
1286
|
+
${formatCommandsForHelp()}
|
|
1197
1287
|
|
|
1198
|
-
Options
|
|
1199
|
-
${getFlagListOutput(flags, 6)
|
|
1288
|
+
${isRootCommand && isTestingV1() ? ' Options' : ' Options'}${isRootCommand ? ' (Note: all CLI commands have these flags even when not displayed in their help)\n' : ''}
|
|
1289
|
+
${getFlagListOutput(flags, 6, isTestingV1() ? {
|
|
1290
|
+
padName: 25
|
|
1291
|
+
} : undefined)}
|
|
1200
1292
|
|
|
1201
1293
|
Examples
|
|
1202
1294
|
$ ${name} --help
|
|
1203
|
-
|
|
1295
|
+
${isRootCommand ? ` $ ${name} scan create` : ''}${isRootCommand ? `\n $ ${name} package score npm left-pad` : ''}`, {
|
|
1204
1296
|
argv,
|
|
1205
1297
|
importMeta,
|
|
1206
1298
|
...additionalOptions,
|
|
@@ -3130,5 +3222,5 @@ exports.updateConfigValue = updateConfigValue;
|
|
|
3130
3222
|
exports.validationFlags = validationFlags;
|
|
3131
3223
|
exports.walkNestedMap = walkNestedMap;
|
|
3132
3224
|
exports.writeSocketJson = writeSocketJson;
|
|
3133
|
-
//# debugId=
|
|
3225
|
+
//# debugId=bf60df12-bcc2-4bec-9805-5a2aace6e3a3
|
|
3134
3226
|
//# sourceMappingURL=utils.js.map
|