@socketsecurity/cli-with-sentry 0.15.42 → 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 +6 -6
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arborist-helpers.d.mts","sourceRoot":"","sources":["../../../../src/shadow/npm/arborist-helpers.mts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAA;AAU7E,OAAO,KAAK,EACV,gBAAgB,EAChB,IAAI,EAEJ,SAAS,EACT,SAAS,EACV,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACd,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAA;AAChF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAA;AAcnE,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,EAAE,EAC3B,sBAAsB,CAAC,EAAE,MAAM,EAC/B,8BAA8B,CAAC,EAAE,MAAM,GAAG,SAAS,GAClD,MAAM,GAAG,IAAI,CAwBf;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAC3B,SAAS,GAAG,SAAS,CA+BvB;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAC3B,SAAS,EAAE,CAgCb;AAED,MAAM,MAAM,+BAA+B,GAAG;IAC5C,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACjC,OAAO,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAA;IACxC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,CAAA;AAED,wBAAsB,wBAAwB,CAC5C,GAAG,EAAE,gBAAgB,EACrB,QAAQ,CAAC,EAAE,+BAA+B,GAAG,SAAS,GACrD,OAAO,CAAC,aAAa,CAAC,CAkDxB;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC/B,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAA;CAC7C,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,SAAS,CAAA;IACf,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;CACjC,CAAA;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,IAAI,GAAG,IAAI,EAClB,OAAO,CAAC,EAAE,gBAAgB,GAAG,SAAS,GACrC,aAAa,EAAE,CA+EjB;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAC3E,wBAAgB,aAAa,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,GAAG,SAAS,GAAG,IAAI,CAAA;AAKjE,wBAAgB,UAAU,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAEpE;AAED,MAAM,MAAM,SAAS,GAAG,OAAO,CAC7B,OAAO,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,EACjD,IAAI,CACL,CAAA;AAED,wBAAgB,UAAU,CACxB,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,MAAM,EAClB,mBAAmB,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,GACjD,IAAI,CAsDN;AAED,wBAAgB,yBAAyB,CACvC,eAAe,EAAE,mBAAmB,EACpC,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,GAClC,OAAO,CA+CT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.d.mts","sourceRoot":"","sources":["../../../../src/shadow/npm/bin.mts"],"names":[],"mappings":"AAiBA,wBAA8B,SAAS,CACrC,OAAO,EAAE,KAAK,GAAG,KAAK,EACtB,IAAI,WAAwB,iBA0G7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inject.d.mts","sourceRoot":"","sources":["../../../../src/shadow/npm/inject.mts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { spawn } from '@socketsecurity/registry/lib/spawn';
|
|
2
|
+
import type { SpawnResult } from '@socketsecurity/registry/lib/spawn';
|
|
3
|
+
import type { Spinner } from '@socketsecurity/registry/lib/spinner';
|
|
4
|
+
type SpawnOption = Exclude<Parameters<typeof spawn>[2], undefined>;
|
|
5
|
+
export type SafeNpmInstallOptions = SpawnOption & {
|
|
6
|
+
agentExecPath?: string | undefined;
|
|
7
|
+
args?: string[] | readonly string[] | undefined;
|
|
8
|
+
ipc?: object | undefined;
|
|
9
|
+
spinner?: Spinner | undefined;
|
|
10
|
+
};
|
|
11
|
+
export declare function safeNpmInstall(options?: SafeNpmInstallOptions): SpawnResult<string, Record<any, any> | undefined>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=install.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install.d.mts","sourceRoot":"","sources":["../../../../src/shadow/npm/install.mts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,EAAE,MAAM,oCAAoC,CAAA;AAK1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAA;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAA;AASnE,KAAK,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;AAElE,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG;IAChD,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,CAAA;IAC/C,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,CAAA;AAED,wBAAgB,cAAc,CAC5B,OAAO,CAAC,EAAE,qBAAqB,GAC9B,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC,CAmFnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.d.mts","sourceRoot":"","sources":["../../../../src/shadow/npm/link.mts"],"names":[],"mappings":"AAYA,wBAAsB,YAAY,CAChC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,KAAK,GAAG,KAAK,GACrB,OAAO,CAAC,MAAM,CAAC,CAwBjB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function getArboristPackagePath(): string;
|
|
2
|
+
export declare function getArboristClassPath(): string;
|
|
3
|
+
export declare function getArboristDepValidPath(): string;
|
|
4
|
+
export declare function getArboristEdgeClassPath(): string;
|
|
5
|
+
export declare function getArboristNodeClassPath(): string;
|
|
6
|
+
export declare function getArboristOverrideSetClassPath(): string;
|
|
7
|
+
//# sourceMappingURL=paths.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.d.mts","sourceRoot":"","sources":["../../../../src/shadow/npm/paths.mts"],"names":[],"mappings":"AAQA,wBAAgB,sBAAsB,WAgBrC;AAGD,wBAAgB,oBAAoB,WAQnC;AAGD,wBAAgB,uBAAuB,WAQtC;AAGD,wBAAgB,wBAAwB,WAKvC;AAGD,wBAAgB,wBAAwB,WAKvC;AAGD,wBAAgB,+BAA+B,WAQ9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../../src/shadow/npm/proc-log/index.mts"],"names":[],"mappings":"AA0CA,MAAM,MAAM,MAAM,GACd,cAAc,QAAQ,CAAC,GACvB,cAAc,UAAU,CAAC,GACzB,SAAS,CAAA;AAGb,wBAAgB,SAAS,IAAI,MAAM,CAclC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type StringKeyValueObject = {
|
|
2
|
+
[key: string]: string;
|
|
3
|
+
};
|
|
4
|
+
export type OutputKind = 'json' | 'markdown' | 'text';
|
|
5
|
+
// CResult is akin to the "Result" or "Outcome" or "Either" pattern.
|
|
6
|
+
// Main difference might be that it's less strict about the error side of
|
|
7
|
+
// things, but still assumes a message is returned explaining the error.
|
|
8
|
+
// "CResult" is easier to grep for than "result". Short for CliJsonResult.
|
|
9
|
+
export type CResult<T> = {
|
|
10
|
+
ok: true;
|
|
11
|
+
data: T;
|
|
12
|
+
// The message prop may contain warnings that we want to convey.
|
|
13
|
+
message?: string;
|
|
14
|
+
} | {
|
|
15
|
+
ok: false;
|
|
16
|
+
// This should be set to process.exitCode if this
|
|
17
|
+
// payload is actually displayed to the user.
|
|
18
|
+
// Defaults to 1 if not set.
|
|
19
|
+
code?: number;
|
|
20
|
+
// Short message, for non-json this would show in
|
|
21
|
+
// the red banner part of an error message.
|
|
22
|
+
message: string;
|
|
23
|
+
// Full explanation. Shown after the red banner of
|
|
24
|
+
// a non-json error message. Optional.
|
|
25
|
+
cause?: string;
|
|
26
|
+
// If set, this may conform to the actual payload.
|
|
27
|
+
data?: unknown;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/types.mts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAA;AAE5D,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAA;AAErD,oEAAoE;AACpE,yEAAyE;AACzE,wEAAwE;AACxE,0EAA0E;AAC1E,MAAM,MAAM,OAAO,CAAC,CAAC,IACjB;IACE,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,EAAE,CAAC,CAAA;IACP,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,GACD;IACE,EAAE,EAAE,KAAK,CAAA;IACT,iDAAiD;IACjD,6CAA6C;IAC7C,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iDAAiD;IACjD,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAA;IACf,kDAAkD;IAClD,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kDAAkD;IAClD,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { spawn } from '@socketsecurity/registry/lib/spawn';
|
|
2
|
+
import { Spinner } from '@socketsecurity/registry/lib/spinner';
|
|
3
|
+
import type { EnvDetails } from './package-environment.mts';
|
|
4
|
+
type SpawnOption = Exclude<Parameters<typeof spawn>[2], undefined>;
|
|
5
|
+
export type AgentInstallOptions = SpawnOption & {
|
|
6
|
+
args?: string[] | readonly string[] | undefined;
|
|
7
|
+
spinner?: Spinner | undefined;
|
|
8
|
+
};
|
|
9
|
+
export type AgentSpawnResult = ReturnType<typeof spawn>;
|
|
10
|
+
export declare function runAgentInstall(pkgEnvDetails: EnvDetails, options?: AgentInstallOptions | undefined): AgentSpawnResult;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=agent.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.mts","sourceRoot":"","sources":["../../../src/utils/agent.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oCAAoC,CAAA;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAA;AAM9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAI3D,KAAK,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;AAElE,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG;IAC9C,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,CAAA;IAC/C,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAA;AAEvD,wBAAgB,eAAe,CAC7B,aAAa,EAAE,UAAU,EACzB,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAAS,GACxC,gBAAgB,CAmClB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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;
|
|
11
|
+
props: CveProps;
|
|
12
|
+
}>;
|
|
13
|
+
export type ArtifactAlertUpgrade = Remap<Omit<CompactSocketArtifactAlert, 'type'> & {
|
|
14
|
+
type: 'socketUpgradeAvailable';
|
|
15
|
+
}>;
|
|
16
|
+
export type CompactSocketArtifactAlert = Remap<Omit<SocketArtifactAlert, 'category' | 'end' | 'file' | 'start'>>;
|
|
17
|
+
export type CompactSocketArtifact = Remap<Omit<SocketArtifact, 'alerts' | 'batchIndex' | 'size'> & {
|
|
18
|
+
alerts: CompactSocketArtifactAlert[];
|
|
19
|
+
}>;
|
|
20
|
+
export type CveProps = {
|
|
21
|
+
firstPatchedVersionIdentifier?: string;
|
|
22
|
+
vulnerableVersionRange: string;
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
};
|
|
25
|
+
export type SocketArtifact = Remap<Omit<components['schemas']['SocketArtifact'], 'alerts'> & {
|
|
26
|
+
alerts?: SocketArtifactAlert[];
|
|
27
|
+
}>;
|
|
28
|
+
export type SocketArtifactAlert = Remap<Omit<components['schemas']['SocketAlert'], 'action' | 'props' | 'type'> & {
|
|
29
|
+
type: ALERT_TYPE;
|
|
30
|
+
action?: 'error' | 'monitor' | 'warn' | 'ignore';
|
|
31
|
+
props?: any | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
export declare function isArtifactAlertCve(alert: CompactSocketArtifactAlert): alert is ArtifactAlertCve;
|
|
34
|
+
//# sourceMappingURL=artifact.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifact.d.mts","sourceRoot":"","sources":["../../../../src/utils/alert/artifact.mts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAE3E,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAA;AAElE,MAAM,MAAM,UAAU,GAAG,MAAM,WAAW,CACxC,UAAU,CAAC,sBAAsB,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC,qBAAqB,CAAC,CAC7G,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,WAAW,GAAG,SAAS,GAAG,aAAa,CAAA;AAE5E,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAClC,IAAI,CAAC,0BAA0B,EAAE,MAAM,CAAC,GAAG;IACzC,IAAI,EAAE,cAAc,CAAA;CACrB,CACF,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,KAAK,CACzC,IAAI,CAAC,0BAA0B,EAAE,OAAO,GAAG,MAAM,CAAC,GAAG;IACnD,IAAI,EAAE,cAAc,CAAA;IACpB,KAAK,EAAE,QAAQ,CAAA;CAChB,CACF,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,KAAK,CACtC,IAAI,CAAC,0BAA0B,EAAE,MAAM,CAAC,GAAG;IACzC,IAAI,EAAE,wBAAwB,CAAA;CAC/B,CACF,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAC5C,IAAI,CAAC,mBAAmB,EAAE,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC,CACjE,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,KAAK,CACvC,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,YAAY,GAAG,MAAM,CAAC,GAAG;IACvD,MAAM,EAAE,0BAA0B,EAAE,CAAA;CACrC,CACF,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,6BAA6B,CAAC,EAAE,MAAM,CAAA;IACtC,sBAAsB,EAAE,MAAM,CAAA;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,KAAK,CAChC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC,EAAE,QAAQ,CAAC,GAAG;IACxD,MAAM,CAAC,EAAE,mBAAmB,EAAE,CAAA;CAC/B,CACF,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,KAAK,CACrC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC,GAAG;IACxE,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAA;IAChD,KAAK,CAAC,EAAE,GAAG,GAAG,SAAS,CAAA;CACxB,CACF,CAAA;AASD,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,0BAA0B,GAChC,KAAK,IAAI,gBAAgB,CAQ3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fix.d.mts","sourceRoot":"","sources":["../../../../src/utils/alert/fix.mts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;EAIzB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SocketSdkReturnType } from '@socketsecurity/sdk';
|
|
2
|
+
export declare const ALERT_SEVERITY: Readonly<{
|
|
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
|
+
// Ordered from most severe to least.
|
|
11
|
+
export declare const ALERT_SEVERITIES_SORTED: ReadonlyArray<SocketSdkAlert['severity']>;
|
|
12
|
+
export declare function formatSeverityCount(severityCount: Record<SocketSdkAlert['severity'], number>): string;
|
|
13
|
+
export declare function getSeverityCount(issues: SocketSdkAlertList, lowestToInclude: SocketSdkAlert['severity'] | undefined): Record<SocketSdkAlert['severity'], number>;
|
|
14
|
+
//# sourceMappingURL=severity.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"severity.d.mts","sourceRoot":"","sources":["../../../../src/utils/alert/severity.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAE9D,eAAO,MAAM,cAAc;;;;;EAKzB,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAC5B,mBAAmB,CAAC,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEtD,MAAM,MAAM,cAAc,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,SAC5D,MAAM,CAAC,GACP,SAAS,GACT,CAAC,GACD,KAAK,CAAA;AAET,qCAAqC;AACrC,eAAO,MAAM,uBAAuB,EAAE,aAAa,CACjD,cAAc,CAAC,UAAU,CAAC,CAC4B,CAAA;AAexD,wBAAgB,mBAAmB,CACjC,aAAa,EAAE,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,GACxD,MAAM,CAQR;AAED,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,kBAAkB,EAC1B,eAAe,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,GACtD,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,CAiB5C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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';
|
|
4
|
+
export type GetAlertsMapFromPnpmLockfileOptions = {
|
|
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>;
|
|
14
|
+
export type GetAlertsMapFromPurlsOptions = {
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alerts-map.d.mts","sourceRoot":"","sources":["../../../src/utils/alerts-map.mts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACd,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAA;AAEnE,MAAM,MAAM,mCAAmC,GAAG;IAChD,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACjC,OAAO,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAA;IACxC,SAAS,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAA;IACjD,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,CAAA;AAED,wBAAsB,4BAA4B,CAChD,QAAQ,EAAE,cAAc,EACxB,OAAO,CAAC,EAAE,mCAAmC,GAAG,SAAS,GACxD,OAAO,CAAC,aAAa,CAAC,CAMxB;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACjC,OAAO,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAA;IACxC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAA;IACjD,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,CAAA;AAED,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EACnC,QAAQ,CAAC,EAAE,4BAA4B,GAAG,SAAS,GAClD,OAAO,CAAC,aAAa,CAAC,CAqFxB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CResult } from '../types.mts';
|
|
2
|
+
import type { SocketSdkOperations, SocketSdkResultType, SocketSdkReturnType } from '@socketsecurity/sdk';
|
|
3
|
+
// TODO: this function is removed after v1.0.0
|
|
4
|
+
export declare function handleUnsuccessfulApiResponse<T extends SocketSdkOperations>(_name: T, error: string, cause: string, status: number): never;
|
|
5
|
+
export declare function handleApiCall<T extends SocketSdkOperations>(value: Promise<SocketSdkResultType<T>>, fetchingDesc: string): Promise<CResult<SocketSdkReturnType<T>['data']>>;
|
|
6
|
+
export declare function handleApiCallNoSpinner<T extends SocketSdkOperations>(value: Promise<SocketSdkResultType<T>>, description: string): Promise<CResult<SocketSdkReturnType<T>['data']>>;
|
|
7
|
+
export declare function getErrorMessageForHttpStatusCode(code: number): Promise<string>;
|
|
8
|
+
// The API server that should be used for operations.
|
|
9
|
+
export declare function getDefaultApiBaseUrl(): string | undefined;
|
|
10
|
+
export declare function queryApi(path: string, apiToken: string): Promise<Response>;
|
|
11
|
+
export declare function queryApiSafeText(path: string, fetchSpinnerDesc?: string): Promise<CResult<string>>;
|
|
12
|
+
export declare function queryApiSafeJson<T>(path: string, fetchSpinnerDesc?: string): Promise<CResult<T>>;
|
|
13
|
+
//# sourceMappingURL=api.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.mts","sourceRoot":"","sources":["../../../src/utils/api.mts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EAEV,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,qBAAqB,CAAA;AAE5B,8CAA8C;AAC9C,wBAAgB,6BAA6B,CAAC,CAAC,SAAS,mBAAmB,EACzE,KAAK,EAAE,CAAC,EACR,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,KAAK,CAaP;AAED,wBAAsB,aAAa,CAAC,CAAC,SAAS,mBAAmB,EAC/D,KAAK,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,EACtC,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAsDlD;AAED,wBAAsB,sBAAsB,CAAC,CAAC,SAAS,mBAAmB,EACxE,KAAK,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,EACtC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAuClD;AAED,wBAAsB,gCAAgC,CAAC,IAAI,EAAE,MAAM,mBAclE;AAED,qDAAqD;AACrD,wBAAgB,oBAAoB,IAAI,MAAM,GAAG,SAAS,CAUzD;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,qBAa5D;AAED,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,MAAM,EACZ,gBAAgB,CAAC,EAAE,MAAM,GACxB,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CA2E1B;AAED,wBAAsB,gBAAgB,CAAC,CAAC,EACtC,IAAI,EAAE,MAAM,EACZ,gBAAgB,SAAK,GACpB,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAmBrB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-input.d.mts","sourceRoot":"","sources":["../../../src/utils/check-input.mts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,UAAU,EACtB,GAAG,MAAM,EAAE,KAAK,CAAC;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC3B,CAAC,GACD,OAAO,CA6CT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmd.d.mts","sourceRoot":"","sources":["../../../src/utils/cmd.mts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,UAc9C;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAGtE;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,WAExC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import indentString from '@socketregistry/indent-string/index.cjs';
|
|
2
|
+
export declare class ColorOrMarkdown {
|
|
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;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=color-or-markdown.d.mts.map
|
|
@@ -0,0 +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;IAE3B,YAAY,WAAW,EAAE,OAAO,EAE/B;IAED,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEzB;IAED,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,SAAI,GAAG,MAAM,CAItC;IAED,SAAS,CACP,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,EACE,QAAe,EACf,aAAa,EACd,GAAE;QACD,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;QAC9B,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAC/B,UAUP;IAED,MAAM,CACJ,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,GACvC,UAAU,CAAC,OAAO,YAAY,CAAC,CAEjC;IAED,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE3B;IAED,IAAI,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAIvB;IAED,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAK5B;CACF"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import config from '@socketsecurity/config';
|
|
2
|
+
import type { CResult } from '../types.mts';
|
|
3
|
+
export interface LocalConfig {
|
|
4
|
+
apiBaseUrl?: string | null | undefined;
|
|
5
|
+
// @deprecated ; use apiToken. when loading a config, if this prop exists it
|
|
6
|
+
// is deleted and set to apiToken instead, and then persisted.
|
|
7
|
+
// should only happen once for legacy users.
|
|
8
|
+
apiKey?: string | null | undefined;
|
|
9
|
+
apiProxy?: string | null | undefined;
|
|
10
|
+
apiToken?: string | null | undefined;
|
|
11
|
+
defaultOrg?: string;
|
|
12
|
+
enforcedOrgs?: string[] | readonly string[] | null | undefined;
|
|
13
|
+
// Temporary to prepare (and mark) CLI API changes for the major bump
|
|
14
|
+
isTestingV1?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const sensitiveConfigKeys: Set<keyof LocalConfig>;
|
|
17
|
+
export declare const supportedConfigKeys: Map<keyof LocalConfig, string>;
|
|
18
|
+
export declare function findSocketYmlSync(dir?: string): {
|
|
19
|
+
path: string;
|
|
20
|
+
parsed: config.SocketYml;
|
|
21
|
+
} | null;
|
|
22
|
+
export declare function getConfigValue<Key extends keyof LocalConfig>(key: Key): CResult<LocalConfig[Key]>;
|
|
23
|
+
// This version squashes errors, returning undefined instead.
|
|
24
|
+
// Should be used when we can reasonably predict the call can't fail.
|
|
25
|
+
export declare function getConfigValueOrUndef<Key extends keyof LocalConfig>(key: Key): LocalConfig[Key] | undefined;
|
|
26
|
+
export declare function isReadOnlyConfig(): boolean;
|
|
27
|
+
export declare function isTestingV1(): boolean;
|
|
28
|
+
export declare function overrideCachedConfig(jsonConfig: unknown): CResult<undefined>;
|
|
29
|
+
export declare function overrideConfigApiToken(apiToken: unknown): void;
|
|
30
|
+
export declare function updateConfigValue<Key extends keyof LocalConfig>(key: keyof LocalConfig, value: LocalConfig[Key]): CResult<undefined | string>;
|
|
31
|
+
//# sourceMappingURL=config.d.mts.map
|
|
@@ -0,0 +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;IACtC,4EAA4E;IAC5E,4EAA4E;IAC5E,0DAA0D;IAC1D,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;IAC9D,qEAAqE;IACrE,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;AAED,6DAA6D;AAC7D,qEAAqE;AACrE,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,QASvD;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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"determine-org-slug.d.mts","sourceRoot":"","sources":["../../../src/utils/determine-org-slug.mts"],"names":[],"mappings":"AAKA,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,OAAO,EACpB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAyBvC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type EventHintOrCaptureContext = {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
} | Function;
|
|
4
|
+
export declare class AuthError extends Error {
|
|
5
|
+
}
|
|
6
|
+
export declare class InputError extends Error {
|
|
7
|
+
body: string | undefined;
|
|
8
|
+
constructor(message: string, body?: string);
|
|
9
|
+
}
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.mts","sourceRoot":"","sources":["../../../src/utils/errors.mts"],"names":[],"mappings":"AAWA,KAAK,yBAAyB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,QAAQ,CAAA;AAElE,qBAAa,SAAU,SAAQ,KAAK;CAAG;AAEvC,qBAAa,UAAW,SAAQ,KAAK;IAC5B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IAE/B,YAAY,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAGzC;CACF;AAED,wBAAsB,gBAAgB,CACpC,SAAS,EAAE,OAAO,EAClB,IAAI,CAAC,EAAE,yBAAyB,GAAG,SAAS,GAC3C,OAAO,CAAC,MAAM,CAAC,CAKjB;AAED,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,OAAO,EAClB,IAAI,CAAC,EAAE,yBAAyB,GAAG,SAAS,GAC3C,MAAM,CAOR;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,MAAM,CAAC,cAAc,CAKhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fail-msg-with-badge.d.mts","sourceRoot":"","sources":["../../../src/utils/fail-msg-with-badge.mts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,GAAG,SAAS,GACtB,MAAM,CAER"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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>;
|
|
6
|
+
export type FindUpOptions = {
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fs.d.mts","sourceRoot":"","sources":["../../../src/utils/fs.mts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAA;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EACV,qBAAqB,EACrB,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAIlD,wBAAsB,iBAAiB,CAAC,GAAG,SAAgB,iBAG1D;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;CACjC,CAAA;AAED,wBAAsB,MAAM,CAC1B,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EACvB,EAAE,GAAmB,EAAE,MAAoB,EAAE,EAAE,aAAa,GAC3D,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAqB7B;AAED,MAAM,MAAM,eAAe,GAAG,KAAK,CACjC,qBAAqB,GACnB,SAAS,GAAG;IACV,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC5B,CACJ,CAAA;AAED,wBAAsB,cAAc,CAClC,QAAQ,EAAE,QAAQ,GAAG,UAAU,EAC/B,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,GACpC,OAAO,CAAC,MAAM,CAAC,CAMjB;AAED,wBAAsB,YAAY,CAChC,QAAQ,EAAE,QAAQ,GAAG,UAAU,EAC/B,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,GACpC,OAAO,CAAC,MAAM,CAAC,CAMjB;AAED,wBAAsB,YAAY,CAChC,QAAQ,EAAE,QAAQ,GAAG,UAAU,EAC/B,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG;IAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,GAAG,SAAS,GACtE,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;AAgB9B,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG;IAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,GAAG,SAAS,GACtE,MAAM,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-output-kind.d.mts","sourceRoot":"","sources":["../../../src/utils/get-output-kind.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,UAAU,CAQ1E"}
|
|
@@ -0,0 +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(entries: string[] | readonly string[], supportedFiles: SocketSdkReturnType<'getReportSupportedFiles'>['data']): Promise<string[]>;
|
|
6
|
+
type GlobWithGitIgnoreOptions = GlobOptions & {
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glob.d.mts","sourceRoot":"","sources":["../../../src/utils/glob.mts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAoJ7C,wBAAsB,gCAAgC,CACpD,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EACrC,cAAc,EAAE,mBAAmB,CAAC,yBAAyB,CAAC,CAAC,MAAM,CAAC,GACrE,OAAO,CAAC,MAAM,EAAE,CAAC,CAcnB;AAED,KAAK,wBAAwB,GAAG,WAAW,GAAG;IAC5C,YAAY,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;CACrC,CAAA;AAED,wBAAsB,iBAAiB,CACrC,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EACtC,OAAO,EAAE,wBAAwB,qBAsDlC;AAED,wBAAsB,eAAe,CAAC,GAAG,SAAgB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAK5E;AAED,wBAAsB,aAAa,CACjC,KAAK,EAAE,KAAK,EACZ,GAAG,SAAgB,GAClB,OAAO,CAAC,MAAM,EAAE,CAAC,CASnB;AAED,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,GAClC,MAAM,EAAE,CAGV"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface NestedRecord<T> {
|
|
2
|
+
[key: string]: T | NestedRecord<T>;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Convert a Map<string, Map|string> to a nested object of similar shape.
|
|
6
|
+
* The goal is to serialize it with JSON.stringify, which Map can't do.
|
|
7
|
+
*/
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-to-object.d.mts","sourceRoot":"","sources":["../../../src/utils/map-to-object.mts"],"names":[],"mappings":"AAAA,UAAU,YAAY,CAAC,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAAA;CACnC;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC3B,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,GACpD,YAAY,CAAC,CAAC,CAAC,CAOjB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function mdTableStringNumber(title1: string, title2: string, obj: Record<string, number | string>): string;
|
|
2
|
+
export declare function mdTable<T extends Array<Record<string, string>>>(logs: T,
|
|
3
|
+
// This is saying "an array of strings and the strings are a valid key of elements of T"
|
|
4
|
+
// In turn, T is defined above as the audit log event type from our OpenAPI docs.
|
|
5
|
+
cols: Array<string & keyof T[number]>, titles?: string[]): string;
|
|
6
|
+
export declare function mdTableOfPairs(arr: Array<[string, string]>,
|
|
7
|
+
// This is saying "an array of strings and the strings are a valid key of elements of T"
|
|
8
|
+
// In turn, T is defined above as the audit log event type from our OpenAPI docs.
|
|
9
|
+
cols: string[]): string;
|
|
10
|
+
//# sourceMappingURL=markdown.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.d.mts","sourceRoot":"","sources":["../../../src/utils/markdown.mts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GACnC,MAAM,CAuBR;AAED,wBAAgB,OAAO,CAAC,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAC7D,IAAI,EAAE,CAAC;AACP,wFAAwF;AACxF,iFAAiF;AACjF,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,EACrC,MAAM,GAAE,MAAM,EAAS,GACtB,MAAM,CAsCR;AAED,wBAAgB,cAAc,CAC5B,GAAG,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC5B,wFAAwF;AACxF,iFAAiF;AACjF,IAAI,EAAE,MAAM,EAAE,GACb,MAAM,CA4BR"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { MeowFlags } from '../flags.mts';
|
|
2
|
+
import type { Options, Result } from 'meow';
|
|
3
|
+
interface CliAlias {
|
|
4
|
+
description: string;
|
|
5
|
+
argv: readonly string[];
|
|
6
|
+
hidden?: boolean | undefined;
|
|
7
|
+
}
|
|
8
|
+
type CliAliases = Record<string, CliAlias>;
|
|
9
|
+
type CliSubcommandRun = (argv: string[] | readonly string[], importMeta: ImportMeta, context: {
|
|
10
|
+
parentName: string;
|
|
11
|
+
}) => Promise<void> | void;
|
|
12
|
+
export interface CliSubcommand {
|
|
13
|
+
description: string;
|
|
14
|
+
hidden?: boolean | undefined;
|
|
15
|
+
run: CliSubcommandRun;
|
|
16
|
+
}
|
|
17
|
+
// Property names are picked such that the name is at the top when the props
|
|
18
|
+
// get ordered by alphabet while flags is near the bottom and the help text
|
|
19
|
+
// at the bottom, because they tend ot occupy the most lines of code.
|
|
20
|
+
export interface CliCommandConfig {
|
|
21
|
+
commandName: string; // tmp optional while we migrate
|
|
22
|
+
description: string;
|
|
23
|
+
hidden: boolean;
|
|
24
|
+
flags: MeowFlags; // tmp optional while we migrate
|
|
25
|
+
help: (command: string, config: CliCommandConfig) => string;
|
|
26
|
+
}
|
|
27
|
+
interface MeowOptions extends Options<any> {
|
|
28
|
+
aliases?: CliAliases | undefined;
|
|
29
|
+
argv: readonly string[];
|
|
30
|
+
name: string;
|
|
31
|
+
// When no sub-command is given, default to this sub-command
|
|
32
|
+
defaultSub?: string;
|
|
33
|
+
}
|
|
34
|
+
export declare function getLastSeenCommand(): string;
|
|
35
|
+
export declare function meowWithSubcommands(subcommands: Record<string, CliSubcommand>, options: MeowOptions): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Note: meow will exit immediately if it calls its .showHelp()
|
|
38
|
+
*/
|
|
39
|
+
export declare function meowOrExit({
|
|
40
|
+
// allowUnknownFlags, // commands that pass-through args need to allow this
|
|
41
|
+
argv, config, importMeta, parentName }: {
|
|
42
|
+
allowUnknownFlags?: boolean | undefined;
|
|
43
|
+
argv: readonly string[];
|
|
44
|
+
config: CliCommandConfig;
|
|
45
|
+
parentName: string;
|
|
46
|
+
importMeta: ImportMeta;
|
|
47
|
+
}): Result<MeowFlags>;
|
|
48
|
+
export declare function emitBanner(name: string): void;
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=meow-with-subcommands.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meow-with-subcommands.d.mts","sourceRoot":"","sources":["../../../src/utils/meow-with-subcommands.mts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAE3C,UAAU,QAAQ;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B;AAED,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;AAE1C,KAAK,gBAAgB,GAAG,CACtB,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAClC,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,KAC5B,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;AAEzB,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,GAAG,EAAE,gBAAgB,CAAA;CACtB;AAED,4EAA4E;AAC5E,2EAA2E;AAC3E,qEAAqE;AACrE,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAA,CAAC,gCAAgC;IACpD,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,SAAS,CAAA,CAAC,gCAAgC;IACjD,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,KAAK,MAAM,CAAA;CAC5D;AAED,UAAU,WAAY,SAAQ,OAAO,CAAC,GAAG,CAAC;IACxC,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,CAAA;IAChC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAMD,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC1C,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC,CAiUf;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC;AACzB,2EAA2E;AAC3E,IAAI,EACJ,MAAM,EACN,UAAU,EACV,UAAU,EACX,EAAE;IACD,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACvC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,MAAM,EAAE,gBAAgB,CAAA;IACxB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,UAAU,CAAA;CACvB,GAAG,MAAM,CAAC,SAAS,CAAC,CA0DpB;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,QAUtC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import npmPackageArg from 'npm-package-arg';
|
|
2
|
+
export type { AliasResult, FileResult, HostedGit, HostedGitResult, RegistryResult, Result, URLResult, } from 'npm-package-arg';
|
|
3
|
+
export declare function npa(...args: Parameters<typeof npmPackageArg>): ReturnType<typeof npmPackageArg> | null;
|
|
4
|
+
//# sourceMappingURL=npm-package-arg.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npm-package-arg.d.mts","sourceRoot":"","sources":["../../../src/utils/npm-package-arg.mts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAE3C,YAAY,EACV,WAAW,EACX,UAAU,EACV,SAAS,EACT,eAAe,EACf,cAAc,EACd,MAAM,EACN,SAAS,GACV,MAAM,iBAAiB,CAAA;AAExB,wBAAgB,GAAG,CACjB,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,GACxC,UAAU,CAAC,OAAO,aAAa,CAAC,GAAG,IAAI,CAKzC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function isNpmBinPathShadowed(): boolean;
|
|
2
|
+
export declare function isNpxBinPathShadowed(): boolean;
|
|
3
|
+
export declare function getNpmBinPath(): string;
|
|
4
|
+
export declare function getNpmPath(): string;
|
|
5
|
+
export declare function getNpmRequire(): NodeJS.Require;
|
|
6
|
+
export declare function getNpxBinPath(): string;
|
|
7
|
+
//# sourceMappingURL=npm-paths.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npm-paths.d.mts","sourceRoot":"","sources":["../../../src/utils/npm-paths.mts"],"names":[],"mappings":"AAqCA,wBAAgB,oBAAoB,YAEnC;AAED,wBAAgB,oBAAoB,YAEnC;AAGD,wBAAgB,aAAa,IAAI,MAAM,CAQtC;AAGD,wBAAgB,UAAU,WAkBzB;AAGD,wBAAgB,aAAa,IAAI,MAAM,CAAC,OAAO,CAY9C;AAGD,wBAAgB,aAAa,IAAI,MAAM,CAQtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objects.d.mts","sourceRoot":"","sources":["../../../src/utils/objects.mts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,KAAK,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5D,GAAG,EAAE,CAAC,GACL,QAAQ,CAAC,CAAC,CAAC,CAEb;AAED,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,EACnE,KAAK,EAAE,CAAC,EACR,IAAI,EAAE,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,GACvB,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAMZ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MeowFlags } from '../flags.mts';
|
|
2
|
+
type HelpListOptions = {
|
|
3
|
+
keyPrefix?: string | undefined;
|
|
4
|
+
padName?: number | undefined;
|
|
5
|
+
};
|
|
6
|
+
type ListDescription = {
|
|
7
|
+
description: string;
|
|
8
|
+
} | {
|
|
9
|
+
description: string;
|
|
10
|
+
hidden: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare function getFlagListOutput(list: MeowFlags, indent: number, { keyPrefix, padName }?: HelpListOptions): string;
|
|
13
|
+
export declare function getHelpListOutput(list: Record<string, ListDescription>, indent: number, { keyPrefix, padName }?: HelpListOptions): string;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=output-formatting.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-formatting.d.mts","sourceRoot":"","sources":["../../../src/utils/output-formatting.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,KAAK,eAAe,GAAG;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B,CAAA;AAED,KAAK,eAAe,GAChB;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GACvB;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAAA;AAE5C,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,MAAM,EACd,EAAE,SAAgB,EAAE,OAAO,EAAE,kBAAwB,GACpD,MAAM,CAQR;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,EACrC,MAAM,EAAE,MAAM,EACd,EAAE,SAAc,EAAE,OAAY,EAAE,kBAAwB,GACvD,MAAM,CAiBR"}
|