@socketsecurity/cli-with-sentry 0.15.11 → 0.15.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +6 -6
- package/dist/.config/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/cli.js +5731 -6607
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +274 -305
- package/dist/constants.js.map +1 -1
- package/dist/instrument-with-sentry.js +28 -34
- package/dist/instrument-with-sentry.js.map +1 -1
- package/dist/shadow-bin.js +96 -123
- package/dist/shadow-bin.js.map +1 -1
- package/dist/shadow-inject.js +470 -580
- package/dist/shadow-inject.js.map +1 -1
- package/dist/socket-completion.bash +221 -0
- package/dist/types/cli.d.mts +2 -2
- package/dist/types/commands/analytics/cmd-analytics.d.mts +9 -15
- package/dist/types/commands/analytics/fetch-org-analytics.d.mts +4 -6
- package/dist/types/commands/analytics/fetch-repo-analytics.d.mts +4 -7
- package/dist/types/commands/analytics/handle-analytics.d.mts +9 -15
- package/dist/types/commands/analytics/handle-analytics.d.mts.map +1 -1
- package/dist/types/commands/analytics/output-analytics.d.mts +26 -46
- package/dist/types/commands/analytics/output-analytics.d.mts.map +1 -1
- package/dist/types/commands/audit-log/cmd-audit-log.d.mts +9 -15
- package/dist/types/commands/audit-log/fetch-audit-log.d.mts +10 -16
- package/dist/types/commands/audit-log/fetch-audit-log.d.mts.map +1 -1
- package/dist/types/commands/audit-log/handle-audit-log.d.mts +9 -15
- package/dist/types/commands/audit-log/handle-audit-log.d.mts.map +1 -1
- package/dist/types/commands/audit-log/output-audit-log.d.mts +22 -47
- package/dist/types/commands/audit-log/output-audit-log.d.mts.map +1 -1
- package/dist/types/commands/cdxgen/cmd-cdxgen.d.mts +9 -15
- package/dist/types/commands/cdxgen/cmd-cdxgen.d.mts.map +1 -1
- package/dist/types/commands/cdxgen/handle-cdxgen.d.mts +4 -0
- package/dist/types/commands/cdxgen/handle-cdxgen.d.mts.map +1 -0
- package/dist/types/commands/ci/cmd-ci.d.mts +9 -15
- package/dist/types/commands/ci/fetch-default-org-slug.d.mts +3 -3
- package/dist/types/commands/ci/handle-ci.d.mts +2 -2
- package/dist/types/commands/config/cmd-config-auto.d.mts +9 -15
- package/dist/types/commands/config/cmd-config-get.d.mts +9 -15
- package/dist/types/commands/config/cmd-config-list.d.mts +9 -15
- package/dist/types/commands/config/cmd-config-set.d.mts +9 -15
- package/dist/types/commands/config/cmd-config-unset.d.mts +9 -15
- package/dist/types/commands/config/cmd-config.d.mts +3 -3
- package/dist/types/commands/config/discover-config-value.d.mts +3 -5
- package/dist/types/commands/config/discover-config-value.d.mts.map +1 -1
- package/dist/types/commands/config/handle-config-auto.d.mts +7 -10
- package/dist/types/commands/config/handle-config-auto.d.mts.map +1 -1
- package/dist/types/commands/config/handle-config-get.d.mts +7 -10
- package/dist/types/commands/config/handle-config-get.d.mts.map +1 -1
- package/dist/types/commands/config/handle-config-set.d.mts +8 -12
- package/dist/types/commands/config/handle-config-set.d.mts.map +1 -1
- package/dist/types/commands/config/handle-config-unset.d.mts +7 -10
- package/dist/types/commands/config/handle-config-unset.d.mts.map +1 -1
- package/dist/types/commands/config/output-config-auto.d.mts +4 -8
- package/dist/types/commands/config/output-config-get.d.mts +4 -8
- package/dist/types/commands/config/output-config-list.d.mts +6 -9
- package/dist/types/commands/config/output-config-list.d.mts.map +1 -1
- package/dist/types/commands/config/output-config-set.d.mts +3 -6
- package/dist/types/commands/config/output-config-unset.d.mts +3 -6
- package/dist/types/commands/dependencies/cmd-dependencies.d.mts +9 -15
- package/dist/types/commands/dependencies/fetch-dependencies.d.mts +7 -10
- package/dist/types/commands/dependencies/fetch-dependencies.d.mts.map +1 -1
- package/dist/types/commands/dependencies/handle-dependencies.d.mts +7 -11
- package/dist/types/commands/dependencies/handle-dependencies.d.mts.map +1 -1
- package/dist/types/commands/dependencies/output-dependencies.d.mts +8 -15
- package/dist/types/commands/dependencies/output-dependencies.d.mts.map +1 -1
- package/dist/types/commands/diff-scan/cmd-diff-scan-get.d.mts +9 -15
- package/dist/types/commands/diff-scan/cmd-diff-scan.d.mts +3 -3
- package/dist/types/commands/diff-scan/fetch-diff-scan.d.mts +8 -12
- package/dist/types/commands/diff-scan/fetch-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/diff-scan/handle-diff-scan.d.mts +10 -17
- package/dist/types/commands/diff-scan/handle-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/diff-scan/output-diff-scan.d.mts +8 -15
- package/dist/types/commands/diff-scan/output-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/fix/cmd-fix.d.mts +9 -15
- package/dist/types/commands/fix/git.d.mts +14 -49
- package/dist/types/commands/fix/npm-fix.d.mts +4 -16
- package/dist/types/commands/fix/npm-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/open-pr.d.mts +20 -46
- package/dist/types/commands/fix/open-pr.d.mts.map +1 -1
- package/dist/types/commands/fix/pnpm-fix.d.mts +4 -16
- package/dist/types/commands/fix/pnpm-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/run-fix.d.mts +3 -3
- package/dist/types/commands/fix/shared.d.mts +9 -15
- package/dist/types/commands/fix/types.d.mts +16 -16
- package/dist/types/commands/info/cmd-info.d.mts +9 -15
- package/dist/types/commands/info/fetch-package-info.d.mts +3 -7
- package/dist/types/commands/info/handle-package-info.d.mts +15 -22
- package/dist/types/commands/info/handle-package-info.d.mts.map +1 -1
- package/dist/types/commands/info/output-package-info.d.mts +10 -18
- package/dist/types/commands/info/output-package-info.d.mts.map +1 -1
- package/dist/types/commands/install/cmd-install-completion.d.mts +10 -0
- package/dist/types/commands/install/cmd-install-completion.d.mts.map +1 -0
- package/dist/types/commands/install/cmd-install.d.mts +3 -0
- package/dist/types/commands/install/cmd-install.d.mts.map +1 -0
- package/dist/types/commands/install/handle-install-completion.d.mts +2 -0
- package/dist/types/commands/install/handle-install-completion.d.mts.map +1 -0
- package/dist/types/commands/install/output-install-completion.d.mts +12 -0
- package/dist/types/commands/install/output-install-completion.d.mts.map +1 -0
- package/dist/types/commands/install/setup-tab-completion.d.mts +13 -0
- package/dist/types/commands/install/setup-tab-completion.d.mts.map +1 -0
- package/dist/types/commands/login/apply-login.d.mts +2 -7
- package/dist/types/commands/login/attempt-login.d.mts +2 -5
- package/dist/types/commands/login/attempt-login.d.mts.map +1 -1
- package/dist/types/commands/login/cmd-login.d.mts +9 -15
- package/dist/types/commands/logout/apply-logout.d.mts +2 -2
- package/dist/types/commands/logout/attempt-logout.d.mts +2 -2
- package/dist/types/commands/logout/cmd-logout.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest-auto.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts +10 -0
- package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +1 -0
- package/dist/types/commands/manifest/cmd-manifest-conda.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest-scala.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest.d.mts.map +1 -1
- package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts +7 -15
- package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts +2 -8
- package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts +2 -8
- package/dist/types/commands/manifest/handle-manifest-conda.d.mts +3 -9
- package/dist/types/commands/manifest/output-requirements.d.mts +6 -10
- package/dist/types/commands/{cdxgen → manifest}/run-cdxgen.d.mts +2 -2
- package/dist/types/commands/manifest/run-cdxgen.d.mts.map +1 -0
- package/dist/types/commands/npm/cmd-npm.d.mts +9 -15
- package/dist/types/commands/npx/cmd-npx.d.mts +9 -15
- package/dist/types/commands/oops/cmd-oops.d.mts +9 -15
- package/dist/types/commands/optimize/add-overrides.d.mts +18 -22
- package/dist/types/commands/optimize/apply-optimization.d.mts +2 -6
- package/dist/types/commands/optimize/cmd-optimize.d.mts +9 -15
- package/dist/types/commands/optimize/deps-includes-by-agent.d.mts +4 -7
- package/dist/types/commands/optimize/get-dependency-entries.d.mts +3 -5
- package/dist/types/commands/optimize/get-overrides-by-agent.d.mts +8 -11
- package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts +3 -10
- package/dist/types/commands/optimize/ls-by-agent.d.mts +6 -13
- package/dist/types/commands/optimize/shared.d.mts +2 -2
- package/dist/types/commands/optimize/types.d.mts +7 -7
- package/dist/types/commands/optimize/update-lockfile.d.mts +9 -12
- package/dist/types/commands/optimize/update-manifest-by-agent.d.mts +5 -11
- package/dist/types/commands/organization/cmd-organization-list.d.mts +9 -15
- package/dist/types/commands/organization/cmd-organization-policy-license.d.mts +9 -15
- package/dist/types/commands/organization/cmd-organization-policy-security.d.mts +9 -15
- package/dist/types/commands/organization/cmd-organization-policy.d.mts +3 -3
- package/dist/types/commands/organization/cmd-organization-quota.d.mts +9 -15
- package/dist/types/commands/organization/cmd-organization.d.mts +3 -3
- package/dist/types/commands/organization/fetch-license-policy.d.mts +4 -6
- package/dist/types/commands/organization/fetch-organization-list.d.mts +4 -6
- package/dist/types/commands/organization/fetch-quota.d.mts +4 -6
- package/dist/types/commands/organization/fetch-security-policy.d.mts +4 -6
- package/dist/types/commands/organization/handle-license-policy.d.mts +3 -6
- package/dist/types/commands/organization/handle-organization-list.d.mts +3 -5
- package/dist/types/commands/organization/handle-quota.d.mts +3 -3
- package/dist/types/commands/organization/handle-security-policy.d.mts +3 -6
- package/dist/types/commands/organization/output-license-policy.d.mts +4 -7
- package/dist/types/commands/organization/output-organization-list.d.mts +4 -7
- package/dist/types/commands/organization/output-quota.d.mts +4 -7
- package/dist/types/commands/organization/output-security-policy.d.mts +4 -7
- package/dist/types/commands/package/cmd-package-score.d.mts +9 -15
- package/dist/types/commands/package/cmd-package-shallow.d.mts +16 -22
- package/dist/types/commands/package/cmd-package.d.mts +3 -3
- package/dist/types/commands/package/fetch-purl-deep-score.d.mts +49 -51
- package/dist/types/commands/package/fetch-purls-shallow-score.d.mts +4 -6
- package/dist/types/commands/package/handle-purl-deep-score.d.mts +3 -6
- package/dist/types/commands/package/handle-purls-shallow-score.d.mts +6 -9
- package/dist/types/commands/package/handle-purls-shallow-score.d.mts.map +1 -1
- package/dist/types/commands/package/output-purl-score.d.mts +4 -8
- package/dist/types/commands/package/output-purls-shallow-score.d.mts +4 -8
- package/dist/types/commands/package/parse-package-specifiers.d.mts +5 -8
- package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts +9 -15
- package/dist/types/commands/raw-npm/run-raw-npm.d.mts +2 -4
- package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts +9 -15
- package/dist/types/commands/raw-npx/run-raw-npx.d.mts +2 -4
- package/dist/types/commands/report/cmd-report-create.d.mts +9 -15
- package/dist/types/commands/report/cmd-report-view.d.mts +9 -15
- package/dist/types/commands/report/cmd-report.d.mts +3 -3
- package/dist/types/commands/repos/cmd-repos-create.d.mts +9 -15
- package/dist/types/commands/repos/cmd-repos-del.d.mts +9 -15
- package/dist/types/commands/repos/cmd-repos-list.d.mts +9 -15
- package/dist/types/commands/repos/cmd-repos-update.d.mts +9 -15
- package/dist/types/commands/repos/cmd-repos-view.d.mts +9 -15
- package/dist/types/commands/repos/cmd-repos.d.mts +3 -3
- package/dist/types/commands/repos/fetch-create-repo.d.mts +11 -18
- package/dist/types/commands/repos/fetch-create-repo.d.mts.map +1 -1
- package/dist/types/commands/repos/fetch-delete-repo.d.mts +4 -7
- package/dist/types/commands/repos/fetch-list-repos.d.mts +10 -16
- package/dist/types/commands/repos/fetch-list-repos.d.mts.map +1 -1
- package/dist/types/commands/repos/fetch-update-repo.d.mts +11 -18
- package/dist/types/commands/repos/fetch-update-repo.d.mts.map +1 -1
- package/dist/types/commands/repos/fetch-view-repo.d.mts +4 -7
- package/dist/types/commands/repos/handle-create-repo.d.mts +10 -20
- package/dist/types/commands/repos/handle-create-repo.d.mts.map +1 -1
- package/dist/types/commands/repos/handle-delete-repo.d.mts +3 -7
- package/dist/types/commands/repos/handle-list-repos.d.mts +10 -17
- package/dist/types/commands/repos/handle-list-repos.d.mts.map +1 -1
- package/dist/types/commands/repos/handle-update-repo.d.mts +10 -20
- package/dist/types/commands/repos/handle-update-repo.d.mts.map +1 -1
- package/dist/types/commands/repos/handle-view-repo.d.mts +3 -7
- package/dist/types/commands/repos/output-create-repo.d.mts +4 -8
- package/dist/types/commands/repos/output-delete-repo.d.mts +4 -8
- package/dist/types/commands/repos/output-list-repos.d.mts +4 -7
- package/dist/types/commands/repos/output-update-repo.d.mts +4 -8
- package/dist/types/commands/repos/output-view-repo.d.mts +4 -7
- package/dist/types/commands/scan/cmd-scan-create.d.mts +9 -15
- package/dist/types/commands/scan/cmd-scan-del.d.mts +9 -15
- package/dist/types/commands/scan/cmd-scan-diff.d.mts +9 -15
- package/dist/types/commands/scan/cmd-scan-list.d.mts +3 -3
- package/dist/types/commands/scan/cmd-scan-metadata.d.mts +3 -3
- package/dist/types/commands/scan/cmd-scan-report.d.mts +3 -3
- package/dist/types/commands/scan/cmd-scan-view.d.mts +3 -3
- package/dist/types/commands/scan/cmd-scan.d.mts +3 -3
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +11 -26
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts +4 -7
- package/dist/types/commands/scan/fetch-diff-scan.d.mts +8 -12
- package/dist/types/commands/scan/fetch-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-list-scans.d.mts +13 -22
- package/dist/types/commands/scan/fetch-list-scans.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-report-data.d.mts +8 -14
- package/dist/types/commands/scan/fetch-scan-metadata.d.mts +4 -7
- package/dist/types/commands/scan/fetch-scan.d.mts +4 -7
- package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +4 -6
- package/dist/types/commands/scan/generate-report.d.mts +36 -50
- package/dist/types/commands/scan/generate-report.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-create-new-scan.d.mts +20 -37
- package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-delete-scan.d.mts +3 -7
- package/dist/types/commands/scan/handle-diff-scan.d.mts +10 -17
- package/dist/types/commands/scan/handle-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-list-scans.d.mts +13 -23
- package/dist/types/commands/scan/handle-list-scans.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-scan-metadata.d.mts +3 -7
- package/dist/types/commands/scan/handle-scan-report.d.mts +12 -21
- package/dist/types/commands/scan/handle-scan-report.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-scan-view.d.mts +3 -8
- package/dist/types/commands/scan/output-create-new-scan.d.mts +4 -8
- package/dist/types/commands/scan/output-delete-scan.d.mts +4 -7
- package/dist/types/commands/scan/output-diff-scan.d.mts +8 -15
- package/dist/types/commands/scan/output-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/output-list-scans.d.mts +4 -7
- package/dist/types/commands/scan/output-scan-metadata.d.mts +4 -8
- package/dist/types/commands/scan/output-scan-report.d.mts +20 -38
- package/dist/types/commands/scan/output-scan-report.d.mts.map +1 -1
- package/dist/types/commands/scan/output-scan-view.d.mts +4 -10
- package/dist/types/commands/scan/stream-scan.d.mts +2 -6
- package/dist/types/commands/scan/suggest-org-slug.d.mts +2 -2
- package/dist/types/commands/scan/suggest-repo-slug.d.mts +4 -4
- package/dist/types/commands/scan/suggest_branch_slug.d.mts +2 -4
- package/dist/types/commands/scan/suggest_target.d.mts +2 -2
- package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts +9 -15
- package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts +10 -16
- package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts.map +1 -1
- package/dist/types/commands/threat-feed/handle-threat-feed.d.mts +10 -17
- package/dist/types/commands/threat-feed/handle-threat-feed.d.mts.map +1 -1
- package/dist/types/commands/threat-feed/output-threat-feed.d.mts +4 -7
- package/dist/types/commands/threat-feed/types.d.mts +12 -12
- package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts +9 -0
- package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts.map +1 -0
- package/dist/types/commands/uninstall/cmd-uninstall.d.mts +3 -0
- package/dist/types/commands/uninstall/cmd-uninstall.d.mts.map +1 -0
- package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts +2 -0
- package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts.map +1 -0
- package/dist/types/commands/uninstall/output-uninstall-completion.d.mts +6 -0
- package/dist/types/commands/uninstall/output-uninstall-completion.d.mts.map +1 -0
- package/dist/types/commands/uninstall/teardown-tab-completion.d.mts +6 -0
- package/dist/types/commands/uninstall/teardown-tab-completion.d.mts.map +1 -0
- package/dist/types/commands/wrapper/add-socket-wrapper.d.mts +2 -2
- package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts +2 -2
- package/dist/types/commands/wrapper/cmd-wrapper.d.mts +9 -15
- package/dist/types/commands/wrapper/postinstall-wrapper.d.mts +2 -2
- package/dist/types/commands/wrapper/postinstall-wrapper.d.mts.map +1 -1
- package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts +2 -2
- package/dist/types/constants.d.mts +125 -135
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/flags.d.mts +14 -17
- package/dist/types/flags.d.mts.map +1 -1
- package/dist/types/instrument-with-sentry.d.mts +2 -2
- package/dist/types/shadow/npm/arborist/index.d.mts +2 -2
- package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts +19 -24
- package/dist/types/shadow/npm/arborist/lib/arborist/types.d.mts +43 -71
- package/dist/types/shadow/npm/arborist/lib/dep-valid.d.mts +3 -8
- package/dist/types/shadow/npm/arborist/lib/edge.d.mts +58 -71
- package/dist/types/shadow/npm/arborist/lib/node.d.mts +55 -91
- package/dist/types/shadow/npm/arborist/lib/override-set.d.mts +26 -32
- package/dist/types/shadow/npm/arborist-helpers.d.mts +33 -66
- package/dist/types/shadow/npm/arborist-helpers.d.mts.map +1 -1
- package/dist/types/shadow/npm/bin.d.mts +2 -5
- package/dist/types/shadow/npm/inject.d.mts +2 -2
- package/dist/types/shadow/npm/install.d.mts +11 -16
- package/dist/types/shadow/npm/link.d.mts +2 -5
- package/dist/types/shadow/npm/paths.d.mts +7 -7
- package/dist/types/shadow/npm/proc-log/index.d.mts +3 -6
- package/dist/types/types.d.mts +15 -17
- package/dist/types/utils/agent.d.mts +11 -14
- package/dist/types/utils/alert/artifact.d.mts +32 -50
- package/dist/types/utils/alert/fix.d.mts +5 -5
- package/dist/types/utils/alert/severity.d.mts +12 -24
- package/dist/types/utils/alerts-map.d.mts +23 -36
- package/dist/types/utils/api.d.mts +11 -34
- package/dist/types/utils/check-input.d.mts +9 -12
- package/dist/types/utils/cmd.d.mts +4 -4
- package/dist/types/utils/color-or-markdown.d.mts +14 -23
- package/dist/types/utils/color-or-markdown.d.mts.map +1 -1
- package/dist/types/utils/completion.d.mts +11 -0
- package/dist/types/utils/completion.d.mts.map +1 -0
- package/dist/types/utils/config.d.mts +22 -31
- package/dist/types/utils/config.d.mts.map +1 -1
- package/dist/types/utils/determine-org-slug.d.mts +2 -7
- package/dist/types/utils/errors.d.mts +12 -21
- package/dist/types/utils/fail-msg-with-badge.d.mts +2 -5
- package/dist/types/utils/fs.d.mts +21 -52
- package/dist/types/utils/get-output-kind.d.mts +3 -6
- package/dist/types/utils/glob.d.mts +13 -24
- package/dist/types/utils/map-to-object.d.mts +4 -6
- package/dist/types/utils/markdown.d.mts +4 -15
- package/dist/types/utils/meow-with-subcommands.d.mts +34 -46
- package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
- package/dist/types/utils/npm-paths.d.mts +7 -7
- package/dist/types/utils/npm-paths.d.mts.map +1 -1
- package/dist/types/utils/objects.d.mts +3 -8
- package/dist/types/utils/output-formatting.d.mts +14 -24
- package/dist/types/utils/package-environment.d.mts +51 -72
- package/dist/types/utils/package-environment.d.mts.map +1 -1
- package/dist/types/utils/path-resolve.d.mts +9 -14
- package/dist/types/utils/pnpm.d.mts +9 -7
- package/dist/types/utils/pnpm.d.mts.map +1 -1
- package/dist/types/utils/sdk.d.mts +8 -12
- package/dist/types/utils/semver.d.mts +5 -17
- package/dist/types/utils/serialize-result-json.d.mts +3 -3
- package/dist/types/utils/socket-package-alert.d.mts +62 -81
- package/dist/types/utils/socket-url.d.mts +9 -15
- package/dist/types/utils/spec.d.mts +4 -7
- package/dist/types/utils/spec.d.mts.map +1 -1
- package/dist/types/utils/strings.d.mts +2 -5
- package/dist/types/utils/translations.d.mts +592 -592
- package/dist/types/utils/walk-nested-map.d.mts +7 -10
- package/dist/utils.js +1531 -1833
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +38333 -51605
- package/dist/vendor.js.map +1 -1
- package/external/@socketsecurity/registry/external/@npmcli/package-json/index.js +5 -8
- package/external/@socketsecurity/registry/external/@npmcli/promise-spawn.js +2 -4
- package/external/@socketsecurity/registry/external/cacache.js +1 -2
- package/external/@socketsecurity/registry/external/libnpmpack.js +36 -76
- package/external/@socketsecurity/registry/external/make-fetch-happen.js +31 -67
- package/external/@socketsecurity/registry/external/pacote.js +36 -76
- package/external/@socketsecurity/registry/external/tinyglobby.js +3 -6
- package/external/@socketsecurity/registry/external/which.js +2 -4
- package/external/@socketsecurity/registry/lib/logger.d.ts +3 -1
- package/external/@socketsecurity/registry/lib/logger.js +149 -69
- package/external/@socketsecurity/registry/package.json +2 -2
- package/external/blessed/lib/alias.js +475 -468
- package/external/blessed/lib/blessed.js +12 -12
- package/external/blessed/lib/colors.js +234 -194
- package/external/blessed/lib/events.js +64 -70
- package/external/blessed/lib/gpmclient.js +117 -141
- package/external/blessed/lib/helpers.js +89 -94
- package/external/blessed/lib/keys.js +169 -342
- package/external/blessed/lib/program.js +2130 -2365
- package/external/blessed/lib/tput.js +1183 -1276
- package/external/blessed/lib/unicode.js +400 -522
- package/external/blessed/lib/widget.js +14 -14
- package/external/blessed/lib/widgets/ansiimage.js +90 -96
- package/external/blessed/lib/widgets/bigtext.js +91 -102
- package/external/blessed/lib/widgets/box.js +8 -8
- package/external/blessed/lib/widgets/button.js +23 -23
- package/external/blessed/lib/widgets/checkbox.js +50 -54
- package/external/blessed/lib/widgets/element.js +1415 -1716
- package/external/blessed/lib/widgets/filemanager.js +107 -118
- package/external/blessed/lib/widgets/form.js +144 -178
- package/external/blessed/lib/widgets/image.js +26 -36
- package/external/blessed/lib/widgets/input.js +8 -8
- package/external/blessed/lib/widgets/layout.js +103 -119
- package/external/blessed/lib/widgets/line.js +17 -20
- package/external/blessed/lib/widgets/list.js +349 -402
- package/external/blessed/lib/widgets/listbar.js +265 -306
- package/external/blessed/lib/widgets/listtable.js +133 -146
- package/external/blessed/lib/widgets/loading.js +31 -31
- package/external/blessed/lib/widgets/log.js +41 -40
- package/external/blessed/lib/widgets/message.js +64 -86
- package/external/blessed/lib/widgets/node.js +175 -207
- package/external/blessed/lib/widgets/overlayimage.js +360 -437
- package/external/blessed/lib/widgets/progressbar.js +79 -88
- package/external/blessed/lib/widgets/prompt.js +54 -61
- package/external/blessed/lib/widgets/question.js +48 -61
- package/external/blessed/lib/widgets/radiobutton.js +26 -27
- package/external/blessed/lib/widgets/radioset.js +8 -8
- package/external/blessed/lib/widgets/screen.js +1186 -1375
- package/external/blessed/lib/widgets/scrollablebox.js +202 -228
- package/external/blessed/lib/widgets/scrollabletext.js +9 -9
- package/external/blessed/lib/widgets/table.js +187 -216
- package/external/blessed/lib/widgets/terminal.js +258 -298
- package/external/blessed/lib/widgets/text.js +9 -9
- package/external/blessed/lib/widgets/textarea.js +188 -222
- package/external/blessed/lib/widgets/textbox.js +34 -36
- package/external/blessed/lib/widgets/video.js +55 -59
- package/external/blessed/usr/fonts/ter-u14b.json +1 -1
- package/external/blessed/usr/fonts/ter-u14n.json +1 -1
- package/external/blessed/vendor/tng.js +1016 -1144
- package/external/blessed-contrib/lib/layout/grid.js +345 -377
- package/external/blessed-contrib/lib/widget/charts/bar.js +6612 -7139
- package/external/blessed-contrib/lib/widget/charts/line.js +16224 -23941
- package/external/blessed-contrib/lib/widget/table.js +78 -96
- package/package.json +8 -8
- package/dist/types/commands/cdxgen/run-cdxgen.d.mts.map +0 -1
|
@@ -1,443 +1,411 @@
|
|
|
1
|
-
'use strict'
|
|
1
|
+
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var utils = {};
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
var x256 = {exports: {}};
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
]
|
|
7
|
+
var require$$0 = [
|
|
8
|
+
"000000",
|
|
9
|
+
"800000",
|
|
10
|
+
"008000",
|
|
11
|
+
"808000",
|
|
12
|
+
"000080",
|
|
13
|
+
"800080",
|
|
14
|
+
"008080",
|
|
15
|
+
"c0c0c0",
|
|
16
|
+
"808080",
|
|
17
|
+
"ff0000",
|
|
18
|
+
"00ff00",
|
|
19
|
+
"ffff00",
|
|
20
|
+
"0000ff",
|
|
21
|
+
"ff00ff",
|
|
22
|
+
"00ffff",
|
|
23
|
+
"ffffff",
|
|
24
|
+
"000000",
|
|
25
|
+
"00005f",
|
|
26
|
+
"000087",
|
|
27
|
+
"0000af",
|
|
28
|
+
"0000d7",
|
|
29
|
+
"0000ff",
|
|
30
|
+
"005f00",
|
|
31
|
+
"005f5f",
|
|
32
|
+
"005f87",
|
|
33
|
+
"005faf",
|
|
34
|
+
"005fd7",
|
|
35
|
+
"005fff",
|
|
36
|
+
"008700",
|
|
37
|
+
"00875f",
|
|
38
|
+
"008787",
|
|
39
|
+
"0087af",
|
|
40
|
+
"0087d7",
|
|
41
|
+
"0087ff",
|
|
42
|
+
"00af00",
|
|
43
|
+
"00af5f",
|
|
44
|
+
"00af87",
|
|
45
|
+
"00afaf",
|
|
46
|
+
"00afd7",
|
|
47
|
+
"00afff",
|
|
48
|
+
"00d700",
|
|
49
|
+
"00d75f",
|
|
50
|
+
"00d787",
|
|
51
|
+
"00d7af",
|
|
52
|
+
"00d7d7",
|
|
53
|
+
"00d7ff",
|
|
54
|
+
"00ff00",
|
|
55
|
+
"00ff5f",
|
|
56
|
+
"00ff87",
|
|
57
|
+
"00ffaf",
|
|
58
|
+
"00ffd7",
|
|
59
|
+
"00ffff",
|
|
60
|
+
"5f0000",
|
|
61
|
+
"5f005f",
|
|
62
|
+
"5f0087",
|
|
63
|
+
"5f00af",
|
|
64
|
+
"5f00d7",
|
|
65
|
+
"5f00ff",
|
|
66
|
+
"5f5f00",
|
|
67
|
+
"5f5f5f",
|
|
68
|
+
"5f5f87",
|
|
69
|
+
"5f5faf",
|
|
70
|
+
"5f5fd7",
|
|
71
|
+
"5f5fff",
|
|
72
|
+
"5f8700",
|
|
73
|
+
"5f875f",
|
|
74
|
+
"5f8787",
|
|
75
|
+
"5f87af",
|
|
76
|
+
"5f87d7",
|
|
77
|
+
"5f87ff",
|
|
78
|
+
"5faf00",
|
|
79
|
+
"5faf5f",
|
|
80
|
+
"5faf87",
|
|
81
|
+
"5fafaf",
|
|
82
|
+
"5fafd7",
|
|
83
|
+
"5fafff",
|
|
84
|
+
"5fd700",
|
|
85
|
+
"5fd75f",
|
|
86
|
+
"5fd787",
|
|
87
|
+
"5fd7af",
|
|
88
|
+
"5fd7d7",
|
|
89
|
+
"5fd7ff",
|
|
90
|
+
"5fff00",
|
|
91
|
+
"5fff5f",
|
|
92
|
+
"5fff87",
|
|
93
|
+
"5fffaf",
|
|
94
|
+
"5fffd7",
|
|
95
|
+
"5fffff",
|
|
96
|
+
"870000",
|
|
97
|
+
"87005f",
|
|
98
|
+
"870087",
|
|
99
|
+
"8700af",
|
|
100
|
+
"8700d7",
|
|
101
|
+
"8700ff",
|
|
102
|
+
"875f00",
|
|
103
|
+
"875f5f",
|
|
104
|
+
"875f87",
|
|
105
|
+
"875faf",
|
|
106
|
+
"875fd7",
|
|
107
|
+
"875fff",
|
|
108
|
+
"878700",
|
|
109
|
+
"87875f",
|
|
110
|
+
"878787",
|
|
111
|
+
"8787af",
|
|
112
|
+
"8787d7",
|
|
113
|
+
"8787ff",
|
|
114
|
+
"87af00",
|
|
115
|
+
"87af5f",
|
|
116
|
+
"87af87",
|
|
117
|
+
"87afaf",
|
|
118
|
+
"87afd7",
|
|
119
|
+
"87afff",
|
|
120
|
+
"87d700",
|
|
121
|
+
"87d75f",
|
|
122
|
+
"87d787",
|
|
123
|
+
"87d7af",
|
|
124
|
+
"87d7d7",
|
|
125
|
+
"87d7ff",
|
|
126
|
+
"87ff00",
|
|
127
|
+
"87ff5f",
|
|
128
|
+
"87ff87",
|
|
129
|
+
"87ffaf",
|
|
130
|
+
"87ffd7",
|
|
131
|
+
"87ffff",
|
|
132
|
+
"af0000",
|
|
133
|
+
"af005f",
|
|
134
|
+
"af0087",
|
|
135
|
+
"af00af",
|
|
136
|
+
"af00d7",
|
|
137
|
+
"af00ff",
|
|
138
|
+
"af5f00",
|
|
139
|
+
"af5f5f",
|
|
140
|
+
"af5f87",
|
|
141
|
+
"af5faf",
|
|
142
|
+
"af5fd7",
|
|
143
|
+
"af5fff",
|
|
144
|
+
"af8700",
|
|
145
|
+
"af875f",
|
|
146
|
+
"af8787",
|
|
147
|
+
"af87af",
|
|
148
|
+
"af87d7",
|
|
149
|
+
"af87ff",
|
|
150
|
+
"afaf00",
|
|
151
|
+
"afaf5f",
|
|
152
|
+
"afaf87",
|
|
153
|
+
"afafaf",
|
|
154
|
+
"afafd7",
|
|
155
|
+
"afafff",
|
|
156
|
+
"afd700",
|
|
157
|
+
"afd75f",
|
|
158
|
+
"afd787",
|
|
159
|
+
"afd7af",
|
|
160
|
+
"afd7d7",
|
|
161
|
+
"afd7ff",
|
|
162
|
+
"afff00",
|
|
163
|
+
"afff5f",
|
|
164
|
+
"afff87",
|
|
165
|
+
"afffaf",
|
|
166
|
+
"afffd7",
|
|
167
|
+
"afffff",
|
|
168
|
+
"d70000",
|
|
169
|
+
"d7005f",
|
|
170
|
+
"d70087",
|
|
171
|
+
"d700af",
|
|
172
|
+
"d700d7",
|
|
173
|
+
"d700ff",
|
|
174
|
+
"d75f00",
|
|
175
|
+
"d75f5f",
|
|
176
|
+
"d75f87",
|
|
177
|
+
"d75faf",
|
|
178
|
+
"d75fd7",
|
|
179
|
+
"d75fff",
|
|
180
|
+
"d78700",
|
|
181
|
+
"d7875f",
|
|
182
|
+
"d78787",
|
|
183
|
+
"d787af",
|
|
184
|
+
"d787d7",
|
|
185
|
+
"d787ff",
|
|
186
|
+
"d7af00",
|
|
187
|
+
"d7af5f",
|
|
188
|
+
"d7af87",
|
|
189
|
+
"d7afaf",
|
|
190
|
+
"d7afd7",
|
|
191
|
+
"d7afff",
|
|
192
|
+
"d7d700",
|
|
193
|
+
"d7d75f",
|
|
194
|
+
"d7d787",
|
|
195
|
+
"d7d7af",
|
|
196
|
+
"d7d7d7",
|
|
197
|
+
"d7d7ff",
|
|
198
|
+
"d7ff00",
|
|
199
|
+
"d7ff5f",
|
|
200
|
+
"d7ff87",
|
|
201
|
+
"d7ffaf",
|
|
202
|
+
"d7ffd7",
|
|
203
|
+
"d7ffff",
|
|
204
|
+
"ff0000",
|
|
205
|
+
"ff005f",
|
|
206
|
+
"ff0087",
|
|
207
|
+
"ff00af",
|
|
208
|
+
"ff00d7",
|
|
209
|
+
"ff00ff",
|
|
210
|
+
"ff5f00",
|
|
211
|
+
"ff5f5f",
|
|
212
|
+
"ff5f87",
|
|
213
|
+
"ff5faf",
|
|
214
|
+
"ff5fd7",
|
|
215
|
+
"ff5fff",
|
|
216
|
+
"ff8700",
|
|
217
|
+
"ff875f",
|
|
218
|
+
"ff8787",
|
|
219
|
+
"ff87af",
|
|
220
|
+
"ff87d7",
|
|
221
|
+
"ff87ff",
|
|
222
|
+
"ffaf00",
|
|
223
|
+
"ffaf5f",
|
|
224
|
+
"ffaf87",
|
|
225
|
+
"ffafaf",
|
|
226
|
+
"ffafd7",
|
|
227
|
+
"ffafff",
|
|
228
|
+
"ffd700",
|
|
229
|
+
"ffd75f",
|
|
230
|
+
"ffd787",
|
|
231
|
+
"ffd7af",
|
|
232
|
+
"ffd7d7",
|
|
233
|
+
"ffd7ff",
|
|
234
|
+
"ffff00",
|
|
235
|
+
"ffff5f",
|
|
236
|
+
"ffff87",
|
|
237
|
+
"ffffaf",
|
|
238
|
+
"ffffd7",
|
|
239
|
+
"ffffff",
|
|
240
|
+
"080808",
|
|
241
|
+
"121212",
|
|
242
|
+
"1c1c1c",
|
|
243
|
+
"262626",
|
|
244
|
+
"303030",
|
|
245
|
+
"3a3a3a",
|
|
246
|
+
"444444",
|
|
247
|
+
"4e4e4e",
|
|
248
|
+
"585858",
|
|
249
|
+
"606060",
|
|
250
|
+
"666666",
|
|
251
|
+
"767676",
|
|
252
|
+
"808080",
|
|
253
|
+
"8a8a8a",
|
|
254
|
+
"949494",
|
|
255
|
+
"9e9e9e",
|
|
256
|
+
"a8a8a8",
|
|
257
|
+
"b2b2b2",
|
|
258
|
+
"bcbcbc",
|
|
259
|
+
"c6c6c6",
|
|
260
|
+
"d0d0d0",
|
|
261
|
+
"dadada",
|
|
262
|
+
"e4e4e4",
|
|
263
|
+
"eeeeee"
|
|
264
|
+
];
|
|
265
265
|
|
|
266
|
-
|
|
266
|
+
var hasRequiredX256;
|
|
267
267
|
function requireX256() {
|
|
268
|
-
if (hasRequiredX256)
|
|
269
|
-
|
|
270
|
-
}
|
|
271
|
-
hasRequiredX256 = 1
|
|
268
|
+
if (hasRequiredX256) return x256.exports;
|
|
269
|
+
hasRequiredX256 = 1;
|
|
272
270
|
// colors scraped from
|
|
273
271
|
// http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html
|
|
274
272
|
// %s/ *\d\+ \+#\([^ ]\+\)/\1\r/g
|
|
275
273
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
return [r, g, b]
|
|
281
|
-
})
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
for (
|
|
286
|
-
|
|
274
|
+
var colors = require$$0.map(function (hex) {
|
|
275
|
+
var r = parseInt(hex.slice(0, 2), 16);
|
|
276
|
+
var g = parseInt(hex.slice(2, 4), 16);
|
|
277
|
+
var b = parseInt(hex.slice(4, 6), 16);
|
|
278
|
+
return [r, g, b];
|
|
279
|
+
});
|
|
280
|
+
var x256$1 = x256.exports = function (r, g, b) {
|
|
281
|
+
var c = Array.isArray(r) ? r : [r, g, b];
|
|
282
|
+
var best = null;
|
|
283
|
+
for (var i = 0; i < colors.length; i++) {
|
|
284
|
+
var d = distance(colors[i], c);
|
|
287
285
|
if (!best || d <= best.distance) {
|
|
288
286
|
best = {
|
|
289
287
|
distance: d,
|
|
290
288
|
index: i
|
|
291
|
-
}
|
|
289
|
+
};
|
|
292
290
|
}
|
|
293
291
|
}
|
|
294
|
-
return best.index
|
|
295
|
-
}
|
|
296
|
-
x256$1.colors = colors
|
|
292
|
+
return best.index;
|
|
293
|
+
};
|
|
294
|
+
x256$1.colors = colors;
|
|
297
295
|
function distance(a, b) {
|
|
298
|
-
return Math.sqrt(
|
|
299
|
-
Math.pow(a[0] - b[0], 2) +
|
|
300
|
-
Math.pow(a[1] - b[1], 2) +
|
|
301
|
-
Math.pow(a[2] - b[2], 2)
|
|
302
|
-
)
|
|
296
|
+
return Math.sqrt(Math.pow(a[0] - b[0], 2) + Math.pow(a[1] - b[1], 2) + Math.pow(a[2] - b[2], 2));
|
|
303
297
|
}
|
|
304
|
-
return x256.exports
|
|
298
|
+
return x256.exports;
|
|
305
299
|
}
|
|
306
300
|
|
|
307
|
-
|
|
301
|
+
var hasRequiredUtils;
|
|
308
302
|
function requireUtils() {
|
|
309
|
-
if (hasRequiredUtils)
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
hasRequiredUtils = 1
|
|
313
|
-
const x256 = requireX256()
|
|
303
|
+
if (hasRequiredUtils) return utils;
|
|
304
|
+
hasRequiredUtils = 1;
|
|
305
|
+
var x256 = requireX256();
|
|
314
306
|
|
|
315
307
|
/*
|
|
316
|
-
|
|
317
|
-
|
|
308
|
+
* Recursively merge properties of two objects
|
|
309
|
+
*/
|
|
318
310
|
function MergeRecursive(obj1, obj2) {
|
|
319
311
|
if (obj1 == null) {
|
|
320
|
-
return obj2
|
|
312
|
+
return obj2;
|
|
321
313
|
}
|
|
322
314
|
if (obj2 == null) {
|
|
323
|
-
return obj1
|
|
315
|
+
return obj1;
|
|
324
316
|
}
|
|
325
|
-
for (
|
|
317
|
+
for (var p in obj2) {
|
|
326
318
|
try {
|
|
327
319
|
// property in destination object set; update its value
|
|
328
320
|
if (obj2[p].constructor == Object) {
|
|
329
|
-
obj1[p] = MergeRecursive(obj1[p], obj2[p])
|
|
321
|
+
obj1[p] = MergeRecursive(obj1[p], obj2[p]);
|
|
330
322
|
} else {
|
|
331
|
-
obj1[p] = obj2[p]
|
|
323
|
+
obj1[p] = obj2[p];
|
|
332
324
|
}
|
|
333
325
|
} catch (e) {
|
|
334
326
|
// property in destination object not set; create it and set its value
|
|
335
|
-
obj1[p] = obj2[p]
|
|
327
|
+
obj1[p] = obj2[p];
|
|
336
328
|
}
|
|
337
329
|
}
|
|
338
|
-
return obj1
|
|
330
|
+
return obj1;
|
|
339
331
|
}
|
|
340
332
|
function getTypeName(thing) {
|
|
341
|
-
if (thing === null)
|
|
342
|
-
|
|
343
|
-
} // special case
|
|
344
|
-
return Object.prototype.toString.call(thing)
|
|
333
|
+
if (thing === null) return '[object Null]'; // special case
|
|
334
|
+
return Object.prototype.toString.call(thing);
|
|
345
335
|
}
|
|
346
336
|
function abbreviateNumber(value) {
|
|
347
|
-
|
|
337
|
+
var newValue = value;
|
|
348
338
|
if (value >= 1000) {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
for (
|
|
353
|
-
shortValue = parseFloat(
|
|
354
|
-
|
|
355
|
-
? value / Math.pow(1000, suffixNum)
|
|
356
|
-
: value
|
|
357
|
-
).toPrecision(precision)
|
|
358
|
-
)
|
|
359
|
-
const dotLessShortValue = (shortValue + '').replace(
|
|
360
|
-
/[^a-zA-Z 0-9]+/g,
|
|
361
|
-
''
|
|
362
|
-
)
|
|
339
|
+
var suffixes = ['', 'k', 'm', 'b', 't'];
|
|
340
|
+
var suffixNum = Math.floor(('' + value).length / 3);
|
|
341
|
+
var shortValue = '';
|
|
342
|
+
for (var precision = 2; precision >= 1; precision--) {
|
|
343
|
+
shortValue = parseFloat((suffixNum != 0 ? value / Math.pow(1000, suffixNum) : value).toPrecision(precision));
|
|
344
|
+
var dotLessShortValue = (shortValue + '').replace(/[^a-zA-Z 0-9]+/g, '');
|
|
363
345
|
if (dotLessShortValue.length <= 2) {
|
|
364
|
-
break
|
|
346
|
+
break;
|
|
365
347
|
}
|
|
366
348
|
}
|
|
367
|
-
newValue = shortValue + suffixes[suffixNum]
|
|
349
|
+
newValue = shortValue + suffixes[suffixNum];
|
|
368
350
|
}
|
|
369
|
-
return newValue
|
|
351
|
+
return newValue;
|
|
370
352
|
}
|
|
371
353
|
function getColorCode(color) {
|
|
372
354
|
if (Array.isArray(color) && color.length == 3) {
|
|
373
|
-
return x256(color[0], color[1], color[2])
|
|
355
|
+
return x256(color[0], color[1], color[2]);
|
|
374
356
|
} else {
|
|
375
|
-
return color
|
|
357
|
+
return color;
|
|
376
358
|
}
|
|
377
359
|
}
|
|
378
|
-
utils.MergeRecursive = MergeRecursive
|
|
379
|
-
utils.getTypeName = getTypeName
|
|
380
|
-
utils.abbreviateNumber = abbreviateNumber
|
|
381
|
-
utils.getColorCode = getColorCode
|
|
382
|
-
return utils
|
|
360
|
+
utils.MergeRecursive = MergeRecursive;
|
|
361
|
+
utils.getTypeName = getTypeName;
|
|
362
|
+
utils.abbreviateNumber = abbreviateNumber;
|
|
363
|
+
utils.getColorCode = getColorCode;
|
|
364
|
+
return utils;
|
|
383
365
|
}
|
|
384
366
|
|
|
385
|
-
|
|
386
|
-
|
|
367
|
+
var grid;
|
|
368
|
+
var hasRequiredGrid;
|
|
387
369
|
function requireGrid() {
|
|
388
|
-
if (hasRequiredGrid)
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
const utils = requireUtils()
|
|
393
|
-
const widgetSpacing = 0
|
|
370
|
+
if (hasRequiredGrid) return grid;
|
|
371
|
+
hasRequiredGrid = 1;
|
|
372
|
+
var utils = requireUtils();
|
|
373
|
+
var widgetSpacing = 0;
|
|
394
374
|
function Grid(options) {
|
|
395
|
-
if (!options.screen)
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
}
|
|
401
|
-
this.options = options
|
|
402
|
-
this.options.dashboardMargin = this.options.dashboardMargin || 0
|
|
403
|
-
this.cellWidth =
|
|
404
|
-
(100 - this.options.dashboardMargin * 2) / this.options.cols
|
|
405
|
-
this.cellHeight =
|
|
406
|
-
(100 - this.options.dashboardMargin * 2) / this.options.rows
|
|
375
|
+
if (!options.screen) throw 'Error: A screen property must be specified in the grid options.\r\n' + 'Note: Release 2.0.0 has breaking changes. Please refer to the README or to https://github.com/yaronn/blessed-contrib/issues/39';
|
|
376
|
+
this.options = options;
|
|
377
|
+
this.options.dashboardMargin = this.options.dashboardMargin || 0;
|
|
378
|
+
this.cellWidth = (100 - this.options.dashboardMargin * 2) / this.options.cols;
|
|
379
|
+
this.cellHeight = (100 - this.options.dashboardMargin * 2) / this.options.rows;
|
|
407
380
|
}
|
|
408
381
|
Grid.prototype.set = function (row, col, rowSpan, colSpan, obj, opts) {
|
|
409
382
|
if (obj instanceof Grid) {
|
|
410
|
-
throw
|
|
411
|
-
'Error: A Grid is not allowed to be nested inside another grid.\r\n' +
|
|
412
|
-
'Note: Release 2.0.0 has breaking changes. Please refer to the README or to https://github.com/yaronn/blessed-contrib/issues/39'
|
|
413
|
-
)
|
|
383
|
+
throw 'Error: A Grid is not allowed to be nested inside another grid.\r\n' + 'Note: Release 2.0.0 has breaking changes. Please refer to the README or to https://github.com/yaronn/blessed-contrib/issues/39';
|
|
414
384
|
}
|
|
415
|
-
|
|
416
|
-
|
|
385
|
+
var top = row * this.cellHeight + this.options.dashboardMargin;
|
|
386
|
+
var left = col * this.cellWidth + this.options.dashboardMargin;
|
|
417
387
|
|
|
418
388
|
//var options = JSON.parse(JSON.stringify(opts));
|
|
419
|
-
|
|
420
|
-
options = utils.MergeRecursive(options, opts)
|
|
421
|
-
options.top = top + '%'
|
|
422
|
-
options.left = left + '%'
|
|
423
|
-
options.width = this.cellWidth * colSpan - widgetSpacing + '%'
|
|
424
|
-
options.height = this.cellHeight * rowSpan - widgetSpacing + '%'
|
|
425
|
-
if (!this.options.hideBorder) {
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
grid = Grid
|
|
436
|
-
return grid
|
|
389
|
+
var options = {};
|
|
390
|
+
options = utils.MergeRecursive(options, opts);
|
|
391
|
+
options.top = top + '%';
|
|
392
|
+
options.left = left + '%';
|
|
393
|
+
options.width = this.cellWidth * colSpan - widgetSpacing + '%';
|
|
394
|
+
options.height = this.cellHeight * rowSpan - widgetSpacing + '%';
|
|
395
|
+
if (!this.options.hideBorder) options.border = {
|
|
396
|
+
type: 'line',
|
|
397
|
+
fg: this.options.color || 'cyan'
|
|
398
|
+
};
|
|
399
|
+
var instance = obj(options);
|
|
400
|
+
this.options.screen.append(instance);
|
|
401
|
+
return instance;
|
|
402
|
+
};
|
|
403
|
+
grid = Grid;
|
|
404
|
+
return grid;
|
|
437
405
|
}
|
|
438
406
|
|
|
439
|
-
|
|
407
|
+
var gridExports = requireGrid();
|
|
440
408
|
|
|
441
|
-
module.exports = gridExports
|
|
409
|
+
module.exports = gridExports;
|
|
442
410
|
//# debugId=89df4c90-4b59-416c-bb16-e31f0e08dda5
|
|
443
411
|
//# sourceMappingURL=grid.js.map
|