@socketsecurity/cli-with-sentry 0.15.19 → 0.15.21
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/README.md +3 -3
- package/dist/cli.js +1318 -451
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +17 -29
- package/dist/constants.js.map +1 -1
- package/dist/utils.js +16 -16
- package/dist/utils.js.map +1 -1
- package/package.json +9 -8
- package/dist/.config/tsconfig.dts.tsbuildinfo +0 -1
- package/dist/types/cli.d.mts +0 -3
- package/dist/types/cli.d.mts.map +0 -1
- package/dist/types/commands/analytics/cmd-analytics.d.mts +0 -10
- package/dist/types/commands/analytics/cmd-analytics.d.mts.map +0 -1
- package/dist/types/commands/analytics/fetch-org-analytics.d.mts +0 -4
- package/dist/types/commands/analytics/fetch-org-analytics.d.mts.map +0 -1
- package/dist/types/commands/analytics/fetch-repo-analytics.d.mts +0 -4
- package/dist/types/commands/analytics/fetch-repo-analytics.d.mts.map +0 -1
- package/dist/types/commands/analytics/handle-analytics.d.mts +0 -9
- package/dist/types/commands/analytics/handle-analytics.d.mts.map +0 -1
- package/dist/types/commands/analytics/output-analytics.d.mts +0 -28
- package/dist/types/commands/analytics/output-analytics.d.mts.map +0 -1
- package/dist/types/commands/audit-log/cmd-audit-log.d.mts +0 -10
- package/dist/types/commands/audit-log/cmd-audit-log.d.mts.map +0 -1
- package/dist/types/commands/audit-log/fetch-audit-log.d.mts +0 -10
- package/dist/types/commands/audit-log/fetch-audit-log.d.mts.map +0 -1
- package/dist/types/commands/audit-log/handle-audit-log.d.mts +0 -9
- package/dist/types/commands/audit-log/handle-audit-log.d.mts.map +0 -1
- package/dist/types/commands/audit-log/output-audit-log.d.mts +0 -22
- package/dist/types/commands/audit-log/output-audit-log.d.mts.map +0 -1
- package/dist/types/commands/cdxgen/cmd-cdxgen.d.mts +0 -10
- package/dist/types/commands/cdxgen/cmd-cdxgen.d.mts.map +0 -1
- package/dist/types/commands/cdxgen/handle-cdxgen.d.mts +0 -4
- package/dist/types/commands/cdxgen/handle-cdxgen.d.mts.map +0 -1
- package/dist/types/commands/ci/cmd-ci.d.mts +0 -10
- package/dist/types/commands/ci/cmd-ci.d.mts.map +0 -1
- package/dist/types/commands/ci/fetch-default-org-slug.d.mts +0 -3
- package/dist/types/commands/ci/fetch-default-org-slug.d.mts.map +0 -1
- package/dist/types/commands/ci/handle-ci.d.mts +0 -2
- package/dist/types/commands/ci/handle-ci.d.mts.map +0 -1
- package/dist/types/commands/config/cmd-config-auto.d.mts +0 -10
- package/dist/types/commands/config/cmd-config-auto.d.mts.map +0 -1
- package/dist/types/commands/config/cmd-config-get.d.mts +0 -10
- package/dist/types/commands/config/cmd-config-get.d.mts.map +0 -1
- package/dist/types/commands/config/cmd-config-list.d.mts +0 -10
- package/dist/types/commands/config/cmd-config-list.d.mts.map +0 -1
- package/dist/types/commands/config/cmd-config-set.d.mts +0 -10
- package/dist/types/commands/config/cmd-config-set.d.mts.map +0 -1
- package/dist/types/commands/config/cmd-config-unset.d.mts +0 -10
- package/dist/types/commands/config/cmd-config-unset.d.mts.map +0 -1
- package/dist/types/commands/config/cmd-config.d.mts +0 -3
- package/dist/types/commands/config/cmd-config.d.mts.map +0 -1
- package/dist/types/commands/config/discover-config-value.d.mts +0 -3
- package/dist/types/commands/config/discover-config-value.d.mts.map +0 -1
- package/dist/types/commands/config/handle-config-auto.d.mts +0 -7
- package/dist/types/commands/config/handle-config-auto.d.mts.map +0 -1
- package/dist/types/commands/config/handle-config-get.d.mts +0 -7
- package/dist/types/commands/config/handle-config-get.d.mts.map +0 -1
- package/dist/types/commands/config/handle-config-set.d.mts +0 -8
- package/dist/types/commands/config/handle-config-set.d.mts.map +0 -1
- package/dist/types/commands/config/handle-config-unset.d.mts +0 -7
- package/dist/types/commands/config/handle-config-unset.d.mts.map +0 -1
- package/dist/types/commands/config/output-config-auto.d.mts +0 -4
- package/dist/types/commands/config/output-config-auto.d.mts.map +0 -1
- package/dist/types/commands/config/output-config-get.d.mts +0 -4
- package/dist/types/commands/config/output-config-get.d.mts.map +0 -1
- package/dist/types/commands/config/output-config-list.d.mts +0 -6
- package/dist/types/commands/config/output-config-list.d.mts.map +0 -1
- package/dist/types/commands/config/output-config-set.d.mts +0 -3
- package/dist/types/commands/config/output-config-set.d.mts.map +0 -1
- package/dist/types/commands/config/output-config-unset.d.mts +0 -3
- package/dist/types/commands/config/output-config-unset.d.mts.map +0 -1
- package/dist/types/commands/dependencies/cmd-dependencies.d.mts +0 -10
- package/dist/types/commands/dependencies/cmd-dependencies.d.mts.map +0 -1
- package/dist/types/commands/dependencies/fetch-dependencies.d.mts +0 -7
- package/dist/types/commands/dependencies/fetch-dependencies.d.mts.map +0 -1
- package/dist/types/commands/dependencies/handle-dependencies.d.mts +0 -7
- package/dist/types/commands/dependencies/handle-dependencies.d.mts.map +0 -1
- package/dist/types/commands/dependencies/output-dependencies.d.mts +0 -8
- package/dist/types/commands/dependencies/output-dependencies.d.mts.map +0 -1
- package/dist/types/commands/diff-scan/cmd-diff-scan-get.d.mts +0 -10
- package/dist/types/commands/diff-scan/cmd-diff-scan-get.d.mts.map +0 -1
- package/dist/types/commands/diff-scan/cmd-diff-scan.d.mts +0 -3
- package/dist/types/commands/diff-scan/cmd-diff-scan.d.mts.map +0 -1
- package/dist/types/commands/diff-scan/fetch-diff-scan.d.mts +0 -8
- package/dist/types/commands/diff-scan/fetch-diff-scan.d.mts.map +0 -1
- package/dist/types/commands/diff-scan/handle-diff-scan.d.mts +0 -10
- package/dist/types/commands/diff-scan/handle-diff-scan.d.mts.map +0 -1
- package/dist/types/commands/diff-scan/output-diff-scan.d.mts +0 -8
- package/dist/types/commands/diff-scan/output-diff-scan.d.mts.map +0 -1
- package/dist/types/commands/fix/cmd-fix.d.mts +0 -10
- package/dist/types/commands/fix/cmd-fix.d.mts.map +0 -1
- package/dist/types/commands/fix/git.d.mts +0 -14
- package/dist/types/commands/fix/git.d.mts.map +0 -1
- package/dist/types/commands/fix/npm-fix.d.mts +0 -4
- package/dist/types/commands/fix/npm-fix.d.mts.map +0 -1
- package/dist/types/commands/fix/open-pr.d.mts +0 -28
- package/dist/types/commands/fix/open-pr.d.mts.map +0 -1
- package/dist/types/commands/fix/pnpm-fix.d.mts +0 -4
- package/dist/types/commands/fix/pnpm-fix.d.mts.map +0 -1
- package/dist/types/commands/fix/run-fix.d.mts +0 -3
- package/dist/types/commands/fix/run-fix.d.mts.map +0 -1
- package/dist/types/commands/fix/shared.d.mts +0 -9
- package/dist/types/commands/fix/shared.d.mts.map +0 -1
- package/dist/types/commands/fix/types.d.mts +0 -18
- package/dist/types/commands/fix/types.d.mts.map +0 -1
- package/dist/types/commands/info/cmd-info.d.mts +0 -10
- package/dist/types/commands/info/cmd-info.d.mts.map +0 -1
- package/dist/types/commands/info/fetch-package-info.d.mts +0 -3
- package/dist/types/commands/info/fetch-package-info.d.mts.map +0 -1
- package/dist/types/commands/info/handle-package-info.d.mts +0 -17
- package/dist/types/commands/info/handle-package-info.d.mts.map +0 -1
- package/dist/types/commands/info/output-package-info.d.mts +0 -10
- package/dist/types/commands/info/output-package-info.d.mts.map +0 -1
- package/dist/types/commands/install/cmd-install-completion.d.mts +0 -10
- package/dist/types/commands/install/cmd-install-completion.d.mts.map +0 -1
- package/dist/types/commands/install/cmd-install.d.mts +0 -3
- package/dist/types/commands/install/cmd-install.d.mts.map +0 -1
- package/dist/types/commands/install/handle-install-completion.d.mts +0 -2
- package/dist/types/commands/install/handle-install-completion.d.mts.map +0 -1
- package/dist/types/commands/install/output-install-completion.d.mts +0 -12
- package/dist/types/commands/install/output-install-completion.d.mts.map +0 -1
- package/dist/types/commands/install/setup-tab-completion.d.mts +0 -13
- package/dist/types/commands/install/setup-tab-completion.d.mts.map +0 -1
- package/dist/types/commands/login/apply-login.d.mts +0 -2
- package/dist/types/commands/login/apply-login.d.mts.map +0 -1
- package/dist/types/commands/login/attempt-login.d.mts +0 -2
- package/dist/types/commands/login/attempt-login.d.mts.map +0 -1
- package/dist/types/commands/login/cmd-login.d.mts +0 -10
- package/dist/types/commands/login/cmd-login.d.mts.map +0 -1
- package/dist/types/commands/logout/apply-logout.d.mts +0 -2
- package/dist/types/commands/logout/apply-logout.d.mts.map +0 -1
- package/dist/types/commands/logout/attempt-logout.d.mts +0 -2
- package/dist/types/commands/logout/attempt-logout.d.mts.map +0 -1
- package/dist/types/commands/logout/cmd-logout.d.mts +0 -10
- package/dist/types/commands/logout/cmd-logout.d.mts.map +0 -1
- package/dist/types/commands/manifest/cmd-manifest-auto.d.mts +0 -10
- package/dist/types/commands/manifest/cmd-manifest-auto.d.mts.map +0 -1
- package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts +0 -10
- package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +0 -1
- package/dist/types/commands/manifest/cmd-manifest-conda.d.mts +0 -10
- package/dist/types/commands/manifest/cmd-manifest-conda.d.mts.map +0 -1
- package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts +0 -10
- package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts.map +0 -1
- package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts +0 -10
- package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts.map +0 -1
- package/dist/types/commands/manifest/cmd-manifest-scala.d.mts +0 -10
- package/dist/types/commands/manifest/cmd-manifest-scala.d.mts.map +0 -1
- package/dist/types/commands/manifest/cmd-manifest.d.mts +0 -10
- package/dist/types/commands/manifest/cmd-manifest.d.mts.map +0 -1
- package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts +0 -7
- package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts.map +0 -1
- package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts +0 -2
- package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts.map +0 -1
- package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts +0 -2
- package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts.map +0 -1
- package/dist/types/commands/manifest/detect-manifest-actions.d.mts +0 -9
- package/dist/types/commands/manifest/detect-manifest-actions.d.mts.map +0 -1
- package/dist/types/commands/manifest/generate_auto_manifest.d.mts +0 -4
- package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +0 -1
- package/dist/types/commands/manifest/handle-manifest-conda.d.mts +0 -3
- package/dist/types/commands/manifest/handle-manifest-conda.d.mts.map +0 -1
- package/dist/types/commands/manifest/output-requirements.d.mts +0 -6
- package/dist/types/commands/manifest/output-requirements.d.mts.map +0 -1
- package/dist/types/commands/manifest/run-cdxgen.d.mts +0 -2
- package/dist/types/commands/manifest/run-cdxgen.d.mts.map +0 -1
- package/dist/types/commands/npm/cmd-npm.d.mts +0 -10
- package/dist/types/commands/npm/cmd-npm.d.mts.map +0 -1
- package/dist/types/commands/npx/cmd-npx.d.mts +0 -10
- package/dist/types/commands/npx/cmd-npx.d.mts.map +0 -1
- package/dist/types/commands/oops/cmd-oops.d.mts +0 -10
- package/dist/types/commands/oops/cmd-oops.d.mts.map +0 -1
- package/dist/types/commands/optimize/add-overrides.d.mts +0 -20
- package/dist/types/commands/optimize/add-overrides.d.mts.map +0 -1
- package/dist/types/commands/optimize/apply-optimization.d.mts +0 -2
- package/dist/types/commands/optimize/apply-optimization.d.mts.map +0 -1
- package/dist/types/commands/optimize/cmd-optimize.d.mts +0 -10
- package/dist/types/commands/optimize/cmd-optimize.d.mts.map +0 -1
- package/dist/types/commands/optimize/deps-includes-by-agent.d.mts +0 -4
- package/dist/types/commands/optimize/deps-includes-by-agent.d.mts.map +0 -1
- package/dist/types/commands/optimize/get-dependency-entries.d.mts +0 -3
- package/dist/types/commands/optimize/get-dependency-entries.d.mts.map +0 -1
- package/dist/types/commands/optimize/get-overrides-by-agent.d.mts +0 -9
- package/dist/types/commands/optimize/get-overrides-by-agent.d.mts.map +0 -1
- package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts +0 -3
- package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts.map +0 -1
- package/dist/types/commands/optimize/ls-by-agent.d.mts +0 -7
- package/dist/types/commands/optimize/ls-by-agent.d.mts.map +0 -1
- package/dist/types/commands/optimize/shared.d.mts +0 -2
- package/dist/types/commands/optimize/shared.d.mts.map +0 -1
- package/dist/types/commands/optimize/types.d.mts +0 -9
- package/dist/types/commands/optimize/types.d.mts.map +0 -1
- package/dist/types/commands/optimize/update-lockfile.d.mts +0 -10
- package/dist/types/commands/optimize/update-lockfile.d.mts.map +0 -1
- package/dist/types/commands/optimize/update-manifest-by-agent.d.mts +0 -5
- package/dist/types/commands/optimize/update-manifest-by-agent.d.mts.map +0 -1
- package/dist/types/commands/organization/cmd-organization-list.d.mts +0 -10
- package/dist/types/commands/organization/cmd-organization-list.d.mts.map +0 -1
- package/dist/types/commands/organization/cmd-organization-policy-license.d.mts +0 -10
- package/dist/types/commands/organization/cmd-organization-policy-license.d.mts.map +0 -1
- package/dist/types/commands/organization/cmd-organization-policy-security.d.mts +0 -10
- package/dist/types/commands/organization/cmd-organization-policy-security.d.mts.map +0 -1
- package/dist/types/commands/organization/cmd-organization-policy.d.mts +0 -3
- package/dist/types/commands/organization/cmd-organization-policy.d.mts.map +0 -1
- package/dist/types/commands/organization/cmd-organization-quota.d.mts +0 -10
- package/dist/types/commands/organization/cmd-organization-quota.d.mts.map +0 -1
- package/dist/types/commands/organization/cmd-organization.d.mts +0 -3
- package/dist/types/commands/organization/cmd-organization.d.mts.map +0 -1
- package/dist/types/commands/organization/fetch-license-policy.d.mts +0 -4
- package/dist/types/commands/organization/fetch-license-policy.d.mts.map +0 -1
- package/dist/types/commands/organization/fetch-organization-list.d.mts +0 -4
- package/dist/types/commands/organization/fetch-organization-list.d.mts.map +0 -1
- package/dist/types/commands/organization/fetch-quota.d.mts +0 -4
- package/dist/types/commands/organization/fetch-quota.d.mts.map +0 -1
- package/dist/types/commands/organization/fetch-security-policy.d.mts +0 -4
- package/dist/types/commands/organization/fetch-security-policy.d.mts.map +0 -1
- package/dist/types/commands/organization/handle-license-policy.d.mts +0 -3
- package/dist/types/commands/organization/handle-license-policy.d.mts.map +0 -1
- package/dist/types/commands/organization/handle-organization-list.d.mts +0 -3
- package/dist/types/commands/organization/handle-organization-list.d.mts.map +0 -1
- package/dist/types/commands/organization/handle-quota.d.mts +0 -3
- package/dist/types/commands/organization/handle-quota.d.mts.map +0 -1
- package/dist/types/commands/organization/handle-security-policy.d.mts +0 -3
- package/dist/types/commands/organization/handle-security-policy.d.mts.map +0 -1
- package/dist/types/commands/organization/output-license-policy.d.mts +0 -4
- package/dist/types/commands/organization/output-license-policy.d.mts.map +0 -1
- package/dist/types/commands/organization/output-organization-list.d.mts +0 -4
- package/dist/types/commands/organization/output-organization-list.d.mts.map +0 -1
- package/dist/types/commands/organization/output-quota.d.mts +0 -4
- package/dist/types/commands/organization/output-quota.d.mts.map +0 -1
- package/dist/types/commands/organization/output-security-policy.d.mts +0 -4
- package/dist/types/commands/organization/output-security-policy.d.mts.map +0 -1
- package/dist/types/commands/package/cmd-package-score.d.mts +0 -10
- package/dist/types/commands/package/cmd-package-score.d.mts.map +0 -1
- package/dist/types/commands/package/cmd-package-shallow.d.mts +0 -17
- package/dist/types/commands/package/cmd-package-shallow.d.mts.map +0 -1
- package/dist/types/commands/package/cmd-package.d.mts +0 -3
- package/dist/types/commands/package/cmd-package.d.mts.map +0 -1
- package/dist/types/commands/package/fetch-purl-deep-score.d.mts +0 -51
- package/dist/types/commands/package/fetch-purl-deep-score.d.mts.map +0 -1
- package/dist/types/commands/package/fetch-purls-shallow-score.d.mts +0 -4
- package/dist/types/commands/package/fetch-purls-shallow-score.d.mts.map +0 -1
- package/dist/types/commands/package/handle-purl-deep-score.d.mts +0 -3
- package/dist/types/commands/package/handle-purl-deep-score.d.mts.map +0 -1
- package/dist/types/commands/package/handle-purls-shallow-score.d.mts +0 -6
- package/dist/types/commands/package/handle-purls-shallow-score.d.mts.map +0 -1
- package/dist/types/commands/package/output-purl-score.d.mts +0 -4
- package/dist/types/commands/package/output-purl-score.d.mts.map +0 -1
- package/dist/types/commands/package/output-purls-shallow-score.d.mts +0 -4
- package/dist/types/commands/package/output-purls-shallow-score.d.mts.map +0 -1
- package/dist/types/commands/package/parse-package-specifiers.d.mts +0 -5
- package/dist/types/commands/package/parse-package-specifiers.d.mts.map +0 -1
- package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts +0 -10
- package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts.map +0 -1
- package/dist/types/commands/raw-npm/run-raw-npm.d.mts +0 -2
- package/dist/types/commands/raw-npm/run-raw-npm.d.mts.map +0 -1
- package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts +0 -10
- package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts.map +0 -1
- package/dist/types/commands/raw-npx/run-raw-npx.d.mts +0 -2
- package/dist/types/commands/raw-npx/run-raw-npx.d.mts.map +0 -1
- package/dist/types/commands/report/cmd-report-create.d.mts +0 -10
- package/dist/types/commands/report/cmd-report-create.d.mts.map +0 -1
- package/dist/types/commands/report/cmd-report-view.d.mts +0 -10
- package/dist/types/commands/report/cmd-report-view.d.mts.map +0 -1
- package/dist/types/commands/report/cmd-report.d.mts +0 -3
- package/dist/types/commands/report/cmd-report.d.mts.map +0 -1
- package/dist/types/commands/repos/cmd-repos-create.d.mts +0 -10
- package/dist/types/commands/repos/cmd-repos-create.d.mts.map +0 -1
- package/dist/types/commands/repos/cmd-repos-del.d.mts +0 -10
- package/dist/types/commands/repos/cmd-repos-del.d.mts.map +0 -1
- package/dist/types/commands/repos/cmd-repos-list.d.mts +0 -10
- package/dist/types/commands/repos/cmd-repos-list.d.mts.map +0 -1
- package/dist/types/commands/repos/cmd-repos-update.d.mts +0 -10
- package/dist/types/commands/repos/cmd-repos-update.d.mts.map +0 -1
- package/dist/types/commands/repos/cmd-repos-view.d.mts +0 -10
- package/dist/types/commands/repos/cmd-repos-view.d.mts.map +0 -1
- package/dist/types/commands/repos/cmd-repos.d.mts +0 -3
- package/dist/types/commands/repos/cmd-repos.d.mts.map +0 -1
- package/dist/types/commands/repos/fetch-create-repo.d.mts +0 -11
- package/dist/types/commands/repos/fetch-create-repo.d.mts.map +0 -1
- package/dist/types/commands/repos/fetch-delete-repo.d.mts +0 -4
- package/dist/types/commands/repos/fetch-delete-repo.d.mts.map +0 -1
- package/dist/types/commands/repos/fetch-list-all-repos.d.mts +0 -8
- package/dist/types/commands/repos/fetch-list-all-repos.d.mts.map +0 -1
- package/dist/types/commands/repos/fetch-list-repos.d.mts +0 -10
- package/dist/types/commands/repos/fetch-list-repos.d.mts.map +0 -1
- package/dist/types/commands/repos/fetch-update-repo.d.mts +0 -11
- package/dist/types/commands/repos/fetch-update-repo.d.mts.map +0 -1
- package/dist/types/commands/repos/fetch-view-repo.d.mts +0 -4
- package/dist/types/commands/repos/fetch-view-repo.d.mts.map +0 -1
- package/dist/types/commands/repos/handle-create-repo.d.mts +0 -10
- package/dist/types/commands/repos/handle-create-repo.d.mts.map +0 -1
- package/dist/types/commands/repos/handle-delete-repo.d.mts +0 -3
- package/dist/types/commands/repos/handle-delete-repo.d.mts.map +0 -1
- package/dist/types/commands/repos/handle-list-repos.d.mts +0 -11
- package/dist/types/commands/repos/handle-list-repos.d.mts.map +0 -1
- package/dist/types/commands/repos/handle-update-repo.d.mts +0 -10
- package/dist/types/commands/repos/handle-update-repo.d.mts.map +0 -1
- package/dist/types/commands/repos/handle-view-repo.d.mts +0 -3
- package/dist/types/commands/repos/handle-view-repo.d.mts.map +0 -1
- package/dist/types/commands/repos/output-create-repo.d.mts +0 -4
- package/dist/types/commands/repos/output-create-repo.d.mts.map +0 -1
- package/dist/types/commands/repos/output-delete-repo.d.mts +0 -4
- package/dist/types/commands/repos/output-delete-repo.d.mts.map +0 -1
- package/dist/types/commands/repos/output-list-repos.d.mts +0 -4
- package/dist/types/commands/repos/output-list-repos.d.mts.map +0 -1
- package/dist/types/commands/repos/output-update-repo.d.mts +0 -4
- package/dist/types/commands/repos/output-update-repo.d.mts.map +0 -1
- package/dist/types/commands/repos/output-view-repo.d.mts +0 -4
- package/dist/types/commands/repos/output-view-repo.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-create.d.mts +0 -10
- package/dist/types/commands/scan/cmd-scan-create.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-del.d.mts +0 -10
- package/dist/types/commands/scan/cmd-scan-del.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-diff.d.mts +0 -10
- package/dist/types/commands/scan/cmd-scan-diff.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-list.d.mts +0 -3
- package/dist/types/commands/scan/cmd-scan-list.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-metadata.d.mts +0 -3
- package/dist/types/commands/scan/cmd-scan-metadata.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-report.d.mts +0 -3
- package/dist/types/commands/scan/cmd-scan-report.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-view.d.mts +0 -3
- package/dist/types/commands/scan/cmd-scan-view.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan.d.mts +0 -3
- package/dist/types/commands/scan/cmd-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +0 -11
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts +0 -4
- package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/fetch-diff-scan.d.mts +0 -8
- package/dist/types/commands/scan/fetch-diff-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/fetch-list-scans.d.mts +0 -13
- package/dist/types/commands/scan/fetch-list-scans.d.mts.map +0 -1
- package/dist/types/commands/scan/fetch-report-data.d.mts +0 -12
- package/dist/types/commands/scan/fetch-report-data.d.mts.map +0 -1
- package/dist/types/commands/scan/fetch-scan-metadata.d.mts +0 -4
- package/dist/types/commands/scan/fetch-scan-metadata.d.mts.map +0 -1
- package/dist/types/commands/scan/fetch-scan.d.mts +0 -4
- package/dist/types/commands/scan/fetch-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +0 -4
- package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts.map +0 -1
- package/dist/types/commands/scan/generate-report.d.mts +0 -41
- package/dist/types/commands/scan/generate-report.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-create-new-scan.d.mts +0 -21
- package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-delete-scan.d.mts +0 -3
- package/dist/types/commands/scan/handle-delete-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-diff-scan.d.mts +0 -10
- package/dist/types/commands/scan/handle-diff-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-list-scans.d.mts +0 -13
- package/dist/types/commands/scan/handle-list-scans.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-scan-metadata.d.mts +0 -3
- package/dist/types/commands/scan/handle-scan-metadata.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-scan-report.d.mts +0 -12
- package/dist/types/commands/scan/handle-scan-report.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-scan-view.d.mts +0 -3
- package/dist/types/commands/scan/handle-scan-view.d.mts.map +0 -1
- package/dist/types/commands/scan/output-create-new-scan.d.mts +0 -4
- package/dist/types/commands/scan/output-create-new-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/output-delete-scan.d.mts +0 -4
- package/dist/types/commands/scan/output-delete-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/output-diff-scan.d.mts +0 -8
- package/dist/types/commands/scan/output-diff-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/output-list-scans.d.mts +0 -4
- package/dist/types/commands/scan/output-list-scans.d.mts.map +0 -1
- package/dist/types/commands/scan/output-scan-metadata.d.mts +0 -4
- package/dist/types/commands/scan/output-scan-metadata.d.mts.map +0 -1
- package/dist/types/commands/scan/output-scan-report.d.mts +0 -20
- package/dist/types/commands/scan/output-scan-report.d.mts.map +0 -1
- package/dist/types/commands/scan/output-scan-view.d.mts +0 -4
- package/dist/types/commands/scan/output-scan-view.d.mts.map +0 -1
- package/dist/types/commands/scan/stream-scan.d.mts +0 -2
- package/dist/types/commands/scan/stream-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/suggest-org-slug.d.mts +0 -2
- package/dist/types/commands/scan/suggest-org-slug.d.mts.map +0 -1
- package/dist/types/commands/scan/suggest-repo-slug.d.mts +0 -5
- package/dist/types/commands/scan/suggest-repo-slug.d.mts.map +0 -1
- package/dist/types/commands/scan/suggest_branch_slug.d.mts +0 -2
- package/dist/types/commands/scan/suggest_branch_slug.d.mts.map +0 -1
- package/dist/types/commands/scan/suggest_target.d.mts +0 -2
- package/dist/types/commands/scan/suggest_target.d.mts.map +0 -1
- package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts +0 -10
- package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts.map +0 -1
- package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts +0 -10
- package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts.map +0 -1
- package/dist/types/commands/threat-feed/handle-threat-feed.d.mts +0 -10
- package/dist/types/commands/threat-feed/handle-threat-feed.d.mts.map +0 -1
- package/dist/types/commands/threat-feed/output-threat-feed.d.mts +0 -4
- package/dist/types/commands/threat-feed/output-threat-feed.d.mts.map +0 -1
- package/dist/types/commands/threat-feed/types.d.mts +0 -15
- package/dist/types/commands/threat-feed/types.d.mts.map +0 -1
- package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts +0 -9
- package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts.map +0 -1
- package/dist/types/commands/uninstall/cmd-uninstall.d.mts +0 -3
- package/dist/types/commands/uninstall/cmd-uninstall.d.mts.map +0 -1
- package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts +0 -2
- package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts.map +0 -1
- package/dist/types/commands/uninstall/output-uninstall-completion.d.mts +0 -6
- package/dist/types/commands/uninstall/output-uninstall-completion.d.mts.map +0 -1
- package/dist/types/commands/uninstall/teardown-tab-completion.d.mts +0 -6
- package/dist/types/commands/uninstall/teardown-tab-completion.d.mts.map +0 -1
- package/dist/types/commands/wrapper/add-socket-wrapper.d.mts +0 -2
- package/dist/types/commands/wrapper/add-socket-wrapper.d.mts.map +0 -1
- package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts +0 -2
- package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts.map +0 -1
- package/dist/types/commands/wrapper/cmd-wrapper.d.mts +0 -10
- package/dist/types/commands/wrapper/cmd-wrapper.d.mts.map +0 -1
- package/dist/types/commands/wrapper/postinstall-wrapper.d.mts +0 -2
- package/dist/types/commands/wrapper/postinstall-wrapper.d.mts.map +0 -1
- package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts +0 -2
- package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts.map +0 -1
- package/dist/types/constants.d.mts +0 -127
- package/dist/types/constants.d.mts.map +0 -1
- package/dist/types/flags.d.mts +0 -14
- package/dist/types/flags.d.mts.map +0 -1
- package/dist/types/instrument-with-sentry.d.mts +0 -2
- package/dist/types/instrument-with-sentry.d.mts.map +0 -1
- package/dist/types/shadow/npm/arborist/index.d.mts +0 -2
- package/dist/types/shadow/npm/arborist/index.d.mts.map +0 -1
- package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts +0 -22
- package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts.map +0 -1
- package/dist/types/shadow/npm/arborist/lib/arborist/types.d.mts +0 -47
- package/dist/types/shadow/npm/arborist/lib/arborist/types.d.mts.map +0 -1
- package/dist/types/shadow/npm/arborist/lib/dep-valid.d.mts +0 -3
- package/dist/types/shadow/npm/arborist/lib/dep-valid.d.mts.map +0 -1
- package/dist/types/shadow/npm/arborist/lib/edge.d.mts +0 -62
- package/dist/types/shadow/npm/arborist/lib/edge.d.mts.map +0 -1
- package/dist/types/shadow/npm/arborist/lib/node.d.mts +0 -58
- package/dist/types/shadow/npm/arborist/lib/node.d.mts.map +0 -1
- package/dist/types/shadow/npm/arborist/lib/override-set.d.mts +0 -30
- package/dist/types/shadow/npm/arborist/lib/override-set.d.mts.map +0 -1
- package/dist/types/shadow/npm/arborist-helpers.d.mts +0 -37
- package/dist/types/shadow/npm/arborist-helpers.d.mts.map +0 -1
- package/dist/types/shadow/npm/bin.d.mts +0 -2
- package/dist/types/shadow/npm/bin.d.mts.map +0 -1
- package/dist/types/shadow/npm/inject.d.mts +0 -2
- package/dist/types/shadow/npm/inject.d.mts.map +0 -1
- package/dist/types/shadow/npm/install.d.mts +0 -12
- package/dist/types/shadow/npm/install.d.mts.map +0 -1
- package/dist/types/shadow/npm/link.d.mts +0 -2
- package/dist/types/shadow/npm/link.d.mts.map +0 -1
- package/dist/types/shadow/npm/paths.d.mts +0 -7
- package/dist/types/shadow/npm/paths.d.mts.map +0 -1
- package/dist/types/shadow/npm/proc-log/index.d.mts +0 -3
- package/dist/types/shadow/npm/proc-log/index.d.mts.map +0 -1
- package/dist/types/types.d.mts +0 -16
- package/dist/types/types.d.mts.map +0 -1
- package/dist/types/utils/agent.d.mts +0 -12
- package/dist/types/utils/agent.d.mts.map +0 -1
- package/dist/types/utils/alert/artifact.d.mts +0 -33
- package/dist/types/utils/alert/artifact.d.mts.map +0 -1
- package/dist/types/utils/alert/fix.d.mts +0 -6
- package/dist/types/utils/alert/fix.d.mts.map +0 -1
- package/dist/types/utils/alert/severity.d.mts +0 -13
- package/dist/types/utils/alert/severity.d.mts.map +0 -1
- package/dist/types/utils/alerts-map.d.mts +0 -25
- package/dist/types/utils/alerts-map.d.mts.map +0 -1
- package/dist/types/utils/api.d.mts +0 -11
- package/dist/types/utils/api.d.mts.map +0 -1
- package/dist/types/utils/check-input.d.mts +0 -9
- package/dist/types/utils/check-input.d.mts.map +0 -1
- package/dist/types/utils/cmd.d.mts +0 -4
- package/dist/types/utils/cmd.d.mts.map +0 -1
- package/dist/types/utils/color-or-markdown.d.mts +0 -16
- package/dist/types/utils/color-or-markdown.d.mts.map +0 -1
- package/dist/types/utils/completion.d.mts +0 -11
- package/dist/types/utils/completion.d.mts.map +0 -1
- package/dist/types/utils/config.d.mts +0 -25
- package/dist/types/utils/config.d.mts.map +0 -1
- package/dist/types/utils/determine-org-slug.d.mts +0 -2
- package/dist/types/utils/determine-org-slug.d.mts.map +0 -1
- package/dist/types/utils/errors.d.mts +0 -14
- package/dist/types/utils/errors.d.mts.map +0 -1
- package/dist/types/utils/fail-msg-with-badge.d.mts +0 -2
- package/dist/types/utils/fail-msg-with-badge.d.mts.map +0 -1
- package/dist/types/utils/fs.d.mts +0 -22
- package/dist/types/utils/fs.d.mts.map +0 -1
- package/dist/types/utils/get-output-kind.d.mts +0 -3
- package/dist/types/utils/get-output-kind.d.mts.map +0 -1
- package/dist/types/utils/glob.d.mts +0 -14
- package/dist/types/utils/glob.d.mts.map +0 -1
- package/dist/types/utils/map-to-object.d.mts +0 -10
- package/dist/types/utils/map-to-object.d.mts.map +0 -1
- package/dist/types/utils/markdown.d.mts +0 -4
- package/dist/types/utils/markdown.d.mts.map +0 -1
- package/dist/types/utils/meow-with-subcommands.d.mts +0 -45
- package/dist/types/utils/meow-with-subcommands.d.mts.map +0 -1
- package/dist/types/utils/npm-paths.d.mts +0 -7
- package/dist/types/utils/npm-paths.d.mts.map +0 -1
- package/dist/types/utils/objects.d.mts +0 -3
- package/dist/types/utils/objects.d.mts.map +0 -1
- package/dist/types/utils/output-formatting.d.mts +0 -15
- package/dist/types/utils/output-formatting.d.mts.map +0 -1
- package/dist/types/utils/package-environment.d.mts +0 -54
- package/dist/types/utils/package-environment.d.mts.map +0 -1
- package/dist/types/utils/path-resolve.d.mts +0 -10
- package/dist/types/utils/path-resolve.d.mts.map +0 -1
- package/dist/types/utils/pnpm.d.mts +0 -9
- package/dist/types/utils/pnpm.d.mts.map +0 -1
- package/dist/types/utils/sdk.d.mts +0 -8
- package/dist/types/utils/sdk.d.mts.map +0 -1
- package/dist/types/utils/semver.d.mts +0 -5
- package/dist/types/utils/semver.d.mts.map +0 -1
- package/dist/types/utils/serialize-result-json.d.mts +0 -3
- package/dist/types/utils/serialize-result-json.d.mts.map +0 -1
- package/dist/types/utils/socket-package-alert.d.mts +0 -71
- package/dist/types/utils/socket-package-alert.d.mts.map +0 -1
- package/dist/types/utils/socket-url.d.mts +0 -9
- package/dist/types/utils/socket-url.d.mts.map +0 -1
- package/dist/types/utils/spec.d.mts +0 -4
- package/dist/types/utils/spec.d.mts.map +0 -1
- package/dist/types/utils/strings.d.mts +0 -2
- package/dist/types/utils/strings.d.mts.map +0 -1
- package/dist/types/utils/translations.d.mts +0 -593
- package/dist/types/utils/translations.d.mts.map +0 -1
- package/dist/types/utils/walk-nested-map.d.mts +0 -7
- package/dist/types/utils/walk-nested-map.d.mts.map +0 -1
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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;gBAEnB,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;CAI3C;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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,4 +0,0 @@
|
|
|
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, cols: Array<string & keyof T[number]>, titles?: string[]): string;
|
|
3
|
-
export declare function mdTableOfPairs(arr: Array<[string, string]>, cols: string[]): string;
|
|
4
|
-
//# sourceMappingURL=markdown.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,EAGP,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,EAG5B,IAAI,EAAE,MAAM,EAAE,GACb,MAAM,CA4BR"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { MeowFlags } from '../flags.mts';
|
|
2
|
-
import type { Options } 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
|
-
export interface CliCommandConfig {
|
|
18
|
-
commandName: string;
|
|
19
|
-
description: string;
|
|
20
|
-
hidden: boolean;
|
|
21
|
-
flags: MeowFlags;
|
|
22
|
-
help: (command: string, config: CliCommandConfig) => string;
|
|
23
|
-
}
|
|
24
|
-
interface MeowOptions extends Options<any> {
|
|
25
|
-
aliases?: CliAliases | undefined;
|
|
26
|
-
argv: readonly string[];
|
|
27
|
-
name: string;
|
|
28
|
-
defaultSub?: string;
|
|
29
|
-
}
|
|
30
|
-
export declare function getLastSeenCommand(): string;
|
|
31
|
-
export declare function meowWithSubcommands(subcommands: Record<string, CliSubcommand>, options: MeowOptions): Promise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* Note: meow will exit immediately if it calls its .showHelp()
|
|
34
|
-
*/
|
|
35
|
-
export declare function meowOrExit({ allowUnknownFlags, // commands that pass-through args need to allow this
|
|
36
|
-
argv, config, importMeta, parentName, }: {
|
|
37
|
-
allowUnknownFlags?: boolean | undefined;
|
|
38
|
-
argv: readonly string[];
|
|
39
|
-
config: CliCommandConfig;
|
|
40
|
-
parentName: string;
|
|
41
|
-
importMeta: ImportMeta;
|
|
42
|
-
}): import("meow").Result<MeowFlags>;
|
|
43
|
-
export declare function emitBanner(name: string): void;
|
|
44
|
-
export {};
|
|
45
|
-
//# sourceMappingURL=meow-with-subcommands.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,MAAM,CAAA;AAEnC,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;AAKD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,SAAS,CAAA;IAChB,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;IAEZ,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,CA2Kf;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,EACzB,iBAAiB,EAAE,qDAAqD;AACxE,IAAI,EACJ,MAAM,EACN,UAAU,EACV,UAAU,GACX,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,oCAoDA;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,QAUtC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { MeowFlags } from '../flags.mts';
|
|
2
|
-
type HelpListOptions = {
|
|
3
|
-
keyPrefix: string;
|
|
4
|
-
padName: number;
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB,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"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Logger } from '@socketsecurity/registry/lib/logger';
|
|
2
|
-
import type { Remap } from '@socketsecurity/registry/lib/objects';
|
|
3
|
-
import type { EditablePackageJson } from '@socketsecurity/registry/lib/packages';
|
|
4
|
-
import type { SemVer } from 'semver';
|
|
5
|
-
export declare const AGENTS: readonly ["bun", "npm", "pnpm", "yarn/berry", "yarn/classic", "vlt"];
|
|
6
|
-
export type Agent = (typeof AGENTS)[number];
|
|
7
|
-
type EnvBase = {
|
|
8
|
-
agent: Agent;
|
|
9
|
-
agentExecPath: string;
|
|
10
|
-
agentSupported: boolean;
|
|
11
|
-
features: {
|
|
12
|
-
npmBuggyOverrides: boolean;
|
|
13
|
-
};
|
|
14
|
-
nodeSupported: boolean;
|
|
15
|
-
nodeVersion: SemVer;
|
|
16
|
-
npmExecPath: string;
|
|
17
|
-
pkgRequirements: {
|
|
18
|
-
agent: string;
|
|
19
|
-
node: string;
|
|
20
|
-
};
|
|
21
|
-
pkgSupports: {
|
|
22
|
-
agent: boolean;
|
|
23
|
-
node: boolean;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export type EnvDetails = Readonly<Remap<EnvBase & {
|
|
27
|
-
agentVersion: SemVer;
|
|
28
|
-
editablePkgJson: EditablePackageJson;
|
|
29
|
-
lockName: string;
|
|
30
|
-
lockPath: string;
|
|
31
|
-
lockSrc: string;
|
|
32
|
-
pkgPath: string;
|
|
33
|
-
}>>;
|
|
34
|
-
export type PartialEnvDetails = Readonly<Remap<EnvBase & {
|
|
35
|
-
agentVersion: SemVer | undefined;
|
|
36
|
-
editablePkgJson: EditablePackageJson | undefined;
|
|
37
|
-
lockName: string | undefined;
|
|
38
|
-
lockPath: string | undefined;
|
|
39
|
-
lockSrc: string | undefined;
|
|
40
|
-
pkgPath: string | undefined;
|
|
41
|
-
}>>;
|
|
42
|
-
export type DetectOptions = {
|
|
43
|
-
cwd?: string | undefined;
|
|
44
|
-
onUnknown?: (pkgManager: string | undefined) => void;
|
|
45
|
-
};
|
|
46
|
-
export declare function detectPackageEnvironment({ cwd, onUnknown, }?: DetectOptions): Promise<EnvDetails | PartialEnvDetails>;
|
|
47
|
-
export type DetectAndValidateOptions = {
|
|
48
|
-
cmdName?: string | undefined;
|
|
49
|
-
logger?: Logger | undefined;
|
|
50
|
-
prod?: boolean | undefined;
|
|
51
|
-
};
|
|
52
|
-
export declare function detectAndValidatePackageEnvironment(cwd: string, options?: DetectAndValidateOptions | undefined): Promise<void | EnvDetails>;
|
|
53
|
-
export {};
|
|
54
|
-
//# sourceMappingURL=package-environment.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package-environment.d.mts","sourceRoot":"","sources":["../../../src/utils/package-environment.mts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAA;AAU5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAA;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAA;AAChF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAiBpC,eAAO,MAAM,MAAM,sEAA2D,CAAA;AAE9E,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAA;AA0I3C,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,KAAK,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,OAAO,CAAA;IACvB,QAAQ,EAAE;QAGR,iBAAiB,EAAE,OAAO,CAAA;KAC3B,CAAA;IACD,aAAa,EAAE,OAAO,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE;QACf,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,WAAW,EAAE;QACX,KAAK,EAAE,OAAO,CAAA;QACd,IAAI,EAAE,OAAO,CAAA;KACd,CAAA;CACF,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,QAAQ,CAC/B,KAAK,CACH,OAAO,GAAG;IACR,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,mBAAmB,CAAA;IACpC,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB,CACF,CACF,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CACtC,KAAK,CACH,OAAO,GAAG;IACR,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,eAAe,EAAE,mBAAmB,GAAG,SAAS,CAAA;IAChD,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B,CACF,CACF,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAA;CACrD,CAAA;AAED,wBAAsB,wBAAwB,CAAC,EAC7C,GAAmB,EACnB,SAAS,GACV,GAAE,aAAkB,GAAG,OAAO,CAAC,UAAU,GAAG,iBAAiB,CAAC,CAgK9D;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC3B,CAAA;AAED,wBAAsB,mCAAmC,CACvD,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,wBAAwB,GAAG,SAAS,GAC7C,OAAO,CAAC,IAAI,GAAG,UAAU,CAAC,CA2G5B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { SocketYml } from '@socketsecurity/config';
|
|
2
|
-
import type { SocketSdkReturnType } from '@socketsecurity/sdk';
|
|
3
|
-
export declare function findBinPathDetailsSync(binName: string): {
|
|
4
|
-
name: string;
|
|
5
|
-
path: string | undefined;
|
|
6
|
-
shadowed: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare function findNpmPathSync(npmBinPath: string): string | undefined;
|
|
9
|
-
export declare function getPackageFilesForScan(cwd: string, inputPaths: string[], supportedFiles: SocketSdkReturnType<'getReportSupportedFiles'>['data'], config?: SocketYml | undefined): Promise<string[]>;
|
|
10
|
-
//# sourceMappingURL=path-resolve.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path-resolve.d.mts","sourceRoot":"","sources":["../../../src/utils/path-resolve.mts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAI9D,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG;IACvD,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,QAAQ,EAAE,OAAO,CAAA;CAClB,CAmBA;AAED,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CA8CtE;AAED,wBAAsB,sBAAsB,CAC1C,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,EAAE,EACpB,cAAc,EAAE,mBAAmB,CAAC,yBAAyB,CAAC,CAAC,MAAM,CAAC,EACtE,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAC7B,OAAO,CAAC,MAAM,EAAE,CAAC,CA0CnB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { LockfileObject } from '@pnpm/lockfile.fs';
|
|
2
|
-
import type { SemVer } from 'semver';
|
|
3
|
-
export declare function extractPurlsFromPnpmLockfile(lockfile: LockfileObject): Promise<string[]>;
|
|
4
|
-
export declare function isPnpmDepPath(maybeDepPath: string): boolean;
|
|
5
|
-
export declare function parsePnpmLockfileVersion(version: string): SemVer;
|
|
6
|
-
export declare function readPnpmLockfile(lockfilePath: string): Promise<LockfileObject | null>;
|
|
7
|
-
export declare function stripLeadingPnpmDepPathSlash(depPath: string): string;
|
|
8
|
-
export declare function stripPnpmPeerSuffix(depPath: string): string;
|
|
9
|
-
//# sourceMappingURL=pnpm.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pnpm.d.mts","sourceRoot":"","sources":["../../../src/utils/pnpm.mts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAmB,MAAM,mBAAmB,CAAA;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,wBAAsB,4BAA4B,CAChD,QAAQ,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,EAAE,CAAC,CA8BnB;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED,wBAAsB,gBAAgB,CACpC,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAIhC;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEpE;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAG3D"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SocketSdk } from '@socketsecurity/sdk';
|
|
2
|
-
import type { CResult } from '../types.mts';
|
|
3
|
-
export declare function getDefaultToken(): string | undefined;
|
|
4
|
-
export declare function getVisibleTokenPrefix(): string;
|
|
5
|
-
export declare function hasDefaultToken(): boolean;
|
|
6
|
-
export declare function getPublicToken(): string;
|
|
7
|
-
export declare function setupSdk(apiToken?: string | undefined, apiBaseUrl?: string | undefined, proxy?: string | undefined): Promise<CResult<SocketSdk>>;
|
|
8
|
-
//# sourceMappingURL=sdk.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.mts","sourceRoot":"","sources":["../../../src/utils/sdk.mts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAA8B,MAAM,qBAAqB,CAAA;AAK3E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AA2B3C,wBAAgB,eAAe,IAAI,MAAM,GAAG,SAAS,CAapD;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAK9C;AAED,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAED,wBAAgB,cAAc,IAAI,MAAM,CAMvC;AAED,wBAAsB,QAAQ,CAC5B,QAAQ,GAAE,MAAM,GAAG,SAA6B,EAChD,UAAU,GAAE,MAAM,GAAG,SAAkC,EACvD,KAAK,GAAE,MAAM,GAAG,SAAiC,GAChD,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CA8B7B"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const RangeStyles: string[];
|
|
2
|
-
export type RangeStyle = 'caret' | 'gt' | 'gte' | 'lt' | 'lte' | 'pin' | 'preserve' | 'tilde';
|
|
3
|
-
export declare function applyRange(refRange: string, version: string, style?: RangeStyle): string;
|
|
4
|
-
export declare function getMajor(version: string): number | null;
|
|
5
|
-
//# sourceMappingURL=semver.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"semver.d.mts","sourceRoot":"","sources":["../../../src/utils/semver.mts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,UAAoD,CAAA;AAE5E,MAAM,MAAM,UAAU,GAClB,OAAO,GACP,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,KAAK,GACL,KAAK,GACL,UAAU,GACV,OAAO,CAAA;AAEX,wBAAgB,UAAU,CACxB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,UAAuB,GAC7B,MAAM,CAoCR;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAUvD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serialize-result-json.d.mts","sourceRoot":"","sources":["../../../src/utils/serialize-result-json.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAI3C,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,MAAM,CAoClE"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { ALERT_SEVERITY } from './alert/severity.mts';
|
|
2
|
-
import type { ALERT_ACTION, CompactSocketArtifact, CompactSocketArtifactAlert } from './alert/artifact.mts';
|
|
3
|
-
import type { Spinner } from '@socketsecurity/registry/lib/spinner';
|
|
4
|
-
export declare const ALERT_SEVERITY_COLOR: Readonly<{
|
|
5
|
-
readonly critical: "magenta";
|
|
6
|
-
readonly high: "red";
|
|
7
|
-
readonly middle: "yellow";
|
|
8
|
-
readonly low: "white";
|
|
9
|
-
}>;
|
|
10
|
-
export declare const ALERT_SEVERITY_ORDER: Readonly<{
|
|
11
|
-
readonly critical: 0;
|
|
12
|
-
readonly high: 1;
|
|
13
|
-
readonly middle: 2;
|
|
14
|
-
readonly low: 3;
|
|
15
|
-
readonly none: 4;
|
|
16
|
-
}>;
|
|
17
|
-
export type SocketPackageAlert = {
|
|
18
|
-
name: string;
|
|
19
|
-
version: string;
|
|
20
|
-
key: string;
|
|
21
|
-
type: string;
|
|
22
|
-
blocked: boolean;
|
|
23
|
-
critical: boolean;
|
|
24
|
-
fixable: boolean;
|
|
25
|
-
raw: CompactSocketArtifactAlert;
|
|
26
|
-
upgradable: boolean;
|
|
27
|
-
};
|
|
28
|
-
export type AlertsByPkgId = Map<string, SocketPackageAlert[]>;
|
|
29
|
-
export type RiskCounts = {
|
|
30
|
-
critical: number;
|
|
31
|
-
high: number;
|
|
32
|
-
middle: number;
|
|
33
|
-
low: number;
|
|
34
|
-
};
|
|
35
|
-
export type AlertIncludeFilter = {
|
|
36
|
-
actions?: ALERT_ACTION[] | undefined;
|
|
37
|
-
blocked?: boolean | undefined;
|
|
38
|
-
critical?: boolean | undefined;
|
|
39
|
-
cve?: boolean | undefined;
|
|
40
|
-
existing?: boolean | undefined;
|
|
41
|
-
unfixable?: boolean | undefined;
|
|
42
|
-
upgradable?: boolean | undefined;
|
|
43
|
-
};
|
|
44
|
-
export type AddSocketArtifactAlertToAlertsMapOptions = {
|
|
45
|
-
consolidate?: boolean | undefined;
|
|
46
|
-
include?: AlertIncludeFilter | undefined;
|
|
47
|
-
overrides?: {
|
|
48
|
-
[key: string]: string;
|
|
49
|
-
} | undefined;
|
|
50
|
-
spinner?: Spinner | undefined;
|
|
51
|
-
};
|
|
52
|
-
export declare function addArtifactToAlertsMap<T extends AlertsByPkgId>(artifact: CompactSocketArtifact, alertsByPkgId: T, options?: AddSocketArtifactAlertToAlertsMapOptions | undefined): Promise<T>;
|
|
53
|
-
export type CveExcludeFilter = {
|
|
54
|
-
upgradable?: boolean | undefined;
|
|
55
|
-
};
|
|
56
|
-
export type CveInfoByAlertKey = Map<string, {
|
|
57
|
-
firstPatchedVersionIdentifier: string;
|
|
58
|
-
vulnerableVersionRange: string;
|
|
59
|
-
}>;
|
|
60
|
-
export type CveInfoByPkgName = Map<string, CveInfoByAlertKey>;
|
|
61
|
-
export type GetCveInfoByPackageOptions = {
|
|
62
|
-
exclude?: CveExcludeFilter | undefined;
|
|
63
|
-
limit?: number | undefined;
|
|
64
|
-
};
|
|
65
|
-
export declare function getCveInfoFromAlertsMap(alertsMap: AlertsByPkgId, options?: GetCveInfoByPackageOptions | undefined): CveInfoByPkgName | null;
|
|
66
|
-
export type LogAlertsMapOptions = {
|
|
67
|
-
hideAt?: `${keyof typeof ALERT_SEVERITY}` | 'none' | undefined;
|
|
68
|
-
output?: NodeJS.WriteStream | undefined;
|
|
69
|
-
};
|
|
70
|
-
export declare function logAlertsMap(alertsMap: AlertsByPkgId, options: LogAlertsMapOptions): void;
|
|
71
|
-
//# sourceMappingURL=socket-package-alert.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"socket-package-alert.d.mts","sourceRoot":"","sources":["../../../src/utils/socket-package-alert.mts"],"names":[],"mappings":"AAYA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AASrD,OAAO,KAAK,EACV,YAAY,EAEZ,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAA;AAEnE,eAAO,MAAM,oBAAoB;;;;;EAK/B,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;EAM/B,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;IAChB,GAAG,EAAE,0BAA0B,CAAA;IAC/B,UAAU,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,MAAM,EAAE,kBAAkB,EAAE,CAAC,CAAA;AAsD7D,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAiDD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,CAAC,EAAE,YAAY,EAAE,GAAG,SAAS,CAAA;IACpC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC/B,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,wCAAwC,GAAG;IACrD,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;CAC9B,CAAA;AAED,wBAAsB,sBAAsB,CAAC,CAAC,SAAS,aAAa,EAClE,QAAQ,EAAE,qBAAqB,EAC/B,aAAa,EAAE,CAAC,EAChB,OAAO,CAAC,EAAE,wCAAwC,GAAG,SAAS,GAC7D,OAAO,CAAC,CAAC,CAAC,CA0HZ;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,GAAG,CACjC,MAAM,EACN;IACE,6BAA6B,EAAE,MAAM,CAAA;IACrC,sBAAsB,EAAE,MAAM,CAAA;CAC/B,CACF,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;AAE7D,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B,CAAA;AAED,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,aAAa,EACxB,OAAO,CAAC,EAAE,0BAA0B,GAAG,SAAS,GAC/C,gBAAgB,GAAG,IAAI,CA2DzB;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,CAAC,EAAE,GAAG,MAAM,OAAO,cAAc,EAAE,GAAG,MAAM,GAAG,SAAS,CAAA;IAC9D,MAAM,CAAC,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CAAA;CACxC,CAAA;AAED,wBAAgB,YAAY,CAC1B,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,mBAAmB,QA2K7B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { PackageURL } from '@socketregistry/packageurl-js';
|
|
2
|
-
import type { components } from '@socketsecurity/sdk/types/api';
|
|
3
|
-
type PurlLikeType = PackageURL | components['schemas']['SocketPURL'];
|
|
4
|
-
export declare function getPkgFullNameFromPurlObj(purlObj: PurlLikeType): string;
|
|
5
|
-
export declare function getSocketDevAlertUrl(alertType: string): string;
|
|
6
|
-
export declare function getSocketDevPackageOverviewUrlFromPurl(purlObj: PurlLikeType): string;
|
|
7
|
-
export declare function getSocketDevPackageOverviewUrl(ecosystem: string, fullName: string, version?: string | undefined): string;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=socket-url.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"socket-url.d.mts","sourceRoot":"","sources":["../../../src/utils/socket-url.mts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAE/D,KAAK,YAAY,GAAG,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAA;AAIpE,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAKvE;AAED,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED,wBAAgB,sCAAsC,CACpD,OAAO,EAAE,YAAY,GACpB,MAAM,CAGR;AAED,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAC3B,MAAM,CAKR"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spec.d.mts","sourceRoot":"","sources":["../../../src/utils/spec.mts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAI1D,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,CAKjE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"strings.d.mts","sourceRoot":"","sources":["../../../src/utils/strings.mts"],"names":[],"mappings":"AAAA,wBAAgB,oCAAoC,CAClD,IAAI,EAAE,MAAM,EAAE,EACd,SAAS,GAAE,MAAgB,GAC1B,MAAM,CAWR"}
|