@socketsecurity/lib 6.0.3 → 6.0.5
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/CHANGELOG.md +22 -0
- package/dist/_virtual/_rolldown/runtime.js +45 -0
- package/dist/abort/signal.js +53 -59
- package/dist/ai/discover.js +110 -110
- package/dist/ai/profiles.js +94 -65
- package/dist/ai/spawn.js +172 -194
- package/dist/ai/types.js +1 -17
- package/dist/ai/worktree.js +160 -183
- package/dist/ansi/constants.js +16 -38
- package/dist/ansi/strip.js +44 -41
- package/dist/archives/_internal.js +64 -73
- package/dist/archives/detect.js +30 -43
- package/dist/archives/extract.js +43 -50
- package/dist/archives/tar.js +197 -228
- package/dist/archives/types.js +1 -17
- package/dist/archives/zip.js +85 -121
- package/dist/argv/flag-predicates.js +203 -101
- package/dist/argv/flag-types.js +96 -113
- package/dist/argv/parse-args-string.d.ts +16 -14
- package/dist/argv/parse-args-string.js +42 -39
- package/dist/argv/parse.js +145 -163
- package/dist/arrays/_internal.js +65 -48
- package/dist/arrays/chunk.js +51 -40
- package/dist/arrays/join.js +87 -35
- package/dist/arrays/predicates.js +46 -28
- package/dist/arrays/unique.js +45 -31
- package/dist/bin/_internal.js +34 -42
- package/dist/bin/check-primordials.js +175 -233
- package/dist/bin/check.js +51 -72
- package/dist/bin/exec.js +70 -74
- package/dist/bin/find.js +151 -134
- package/dist/bin/resolve.js +180 -246
- package/dist/bin/shadow.js +24 -33
- package/dist/bin/socket-lib.js +51 -73
- package/dist/bin/types.js +1 -17
- package/dist/bin/which.js +211 -146
- package/dist/cacache/_internal.js +25 -40
- package/dist/cacache/clear.js +79 -72
- package/dist/cacache/read.js +48 -46
- package/dist/cacache/tmp.js +29 -36
- package/dist/cacache/types.js +1 -17
- package/dist/cacache/write.js +43 -48
- package/dist/cache/ttl/store.js +232 -288
- package/dist/cache/ttl/types.js +1 -17
- package/dist/checks/primordials-defaults.js +83 -89
- package/dist/checks/primordials.js +225 -277
- package/dist/colors/convert.js +45 -37
- package/dist/colors/palette.js +88 -45
- package/dist/colors/socket-palette.js +74 -84
- package/dist/colors/types.js +1 -17
- package/dist/compression/_internal.js +57 -72
- package/dist/compression/brotli.js +94 -127
- package/dist/compression/gzip.js +95 -121
- package/dist/compression/types.js +1 -17
- package/dist/constants/agents.js +61 -113
- package/dist/constants/encoding.js +19 -42
- package/dist/constants/github.js +12 -30
- package/dist/constants/licenses.js +48 -63
- package/dist/constants/lifecycle-script-names.js +31 -45
- package/dist/constants/maintained-node-versions.js +22 -37
- package/dist/constants/node.js +226 -167
- package/dist/constants/package-default-node-range.js +16 -41
- package/dist/constants/package-default-socket-categories.js +12 -30
- package/dist/constants/packages.js +77 -126
- package/dist/constants/platform.js +27 -49
- package/dist/constants/sentinels.js +23 -48
- package/dist/constants/socket.js +42 -87
- package/dist/constants/testing.js +15 -34
- package/dist/constants/time.js +16 -36
- package/dist/constants/typescript.js +32 -52
- package/dist/cover/code.js +111 -142
- package/dist/cover/formatters.js +118 -101
- package/dist/cover/type.js +50 -76
- package/dist/cover/types.js +1 -17
- package/dist/crypto/hash.js +54 -46
- package/dist/debug/_internal.js +62 -71
- package/dist/debug/caller-info.js +53 -64
- package/dist/debug/namespace.js +80 -90
- package/dist/debug/output.js +172 -188
- package/dist/debug/types.js +1 -17
- package/dist/dlx/_internal.js +24 -43
- package/dist/dlx/arborist.js +162 -160
- package/dist/dlx/binary-cache.js +228 -200
- package/dist/dlx/binary-download.js +172 -211
- package/dist/dlx/binary-resolution.js +165 -157
- package/dist/dlx/binary-types.js +1 -17
- package/dist/dlx/binary.js +149 -189
- package/dist/dlx/cache.js +45 -30
- package/dist/dlx/detect.js +245 -159
- package/dist/dlx/dir.js +67 -51
- package/dist/dlx/firewall.js +62 -100
- package/dist/dlx/lockfile.js +122 -127
- package/dist/dlx/manifest.js +264 -274
- package/dist/dlx/package.js +241 -244
- package/dist/dlx/packages.js +99 -96
- package/dist/dlx/paths.js +73 -59
- package/dist/dlx/spec.js +52 -60
- package/dist/dlx/types.js +1 -17
- package/dist/eco/cargo/lockfile-format.js +19 -36
- package/dist/eco/cargo/manifest-format.js +17 -35
- package/dist/eco/cargo/parse-lockfile.js +210 -237
- package/dist/eco/manifest/analyze-lockfile.js +46 -63
- package/dist/eco/manifest/detect-format.js +66 -90
- package/dist/eco/manifest/find-packages.js +39 -64
- package/dist/eco/manifest/get-package-versions.js +27 -48
- package/dist/eco/manifest/get-package.js +21 -40
- package/dist/eco/manifest/manifest-error.js +14 -35
- package/dist/eco/manifest/parse-lockfile.js +40 -86
- package/dist/eco/manifest/parse-manifest.js +26 -43
- package/dist/eco/manifest/parse.js +26 -47
- package/dist/eco/manifest/types.js +1 -17
- package/dist/eco/npm/bun/exec.js +23 -32
- package/dist/eco/npm/manifest-format.js +21 -35
- package/dist/eco/npm/npm/exec.js +51 -61
- package/dist/eco/npm/npm/extract-package-name-from-path.js +28 -50
- package/dist/eco/npm/npm/flags.js +80 -52
- package/dist/eco/npm/npm/lockfile-format.js +21 -40
- package/dist/eco/npm/npm/parse-git-url.js +26 -40
- package/dist/eco/npm/npm/parse-lockfile.js +184 -210
- package/dist/eco/npm/parse-package-json.js +71 -102
- package/dist/eco/npm/pnpm/detect-pnpm-version.js +22 -43
- package/dist/eco/npm/pnpm/exec.js +51 -62
- package/dist/eco/npm/pnpm/flags.js +75 -68
- package/dist/eco/npm/pnpm/lockfile-format.js +19 -36
- package/dist/eco/npm/pnpm/parse-lockfile.js +235 -259
- package/dist/eco/npm/pnpm/parse-pnpm-package-id-v5.js +37 -47
- package/dist/eco/npm/pnpm/parse-pnpm-package-id-v6-v9.js +36 -49
- package/dist/eco/npm/script.js +82 -90
- package/dist/eco/npm/vlt/exec.js +24 -32
- package/dist/eco/npm/yarnpkg/yarn/exec.js +60 -59
- package/dist/eco/npm/yarnpkg/yarn/lockfile-format.js +20 -36
- package/dist/eco/npm/yarnpkg/yarn/parse-lockfile.js +194 -242
- package/dist/eco/npm/yarnpkg/yarn/parse-yarn-descriptor.js +37 -61
- package/dist/eco/purl.js +50 -60
- package/dist/eco/types.js +1 -17
- package/dist/effects/pulse-frames.js +64 -65
- package/dist/effects/shimmer-keyframes.js +71 -52
- package/dist/effects/shimmer-terminal.js +81 -50
- package/dist/effects/shimmer.js +290 -153
- package/dist/env/boolean.js +42 -43
- package/dist/env/case-insensitive.js +54 -39
- package/dist/env/ci.js +29 -31
- package/dist/env/debug.js +28 -31
- package/dist/env/github.js +144 -59
- package/dist/env/home.js +38 -31
- package/dist/env/locale.js +59 -39
- package/dist/env/node-auth-token.js +28 -31
- package/dist/env/node-env.js +28 -31
- package/dist/env/npm.js +94 -47
- package/dist/env/number.js +50 -51
- package/dist/env/package-manager.js +95 -83
- package/dist/env/path.js +28 -31
- package/dist/env/pre-commit.js +30 -32
- package/dist/env/proxy.js +121 -122
- package/dist/env/rewire.js +204 -96
- package/dist/env/shell.js +28 -31
- package/dist/env/socket-cli.js +233 -81
- package/dist/env/socket.js +521 -156
- package/dist/env/string.js +43 -44
- package/dist/env/temp-dir.js +59 -39
- package/dist/env/term.js +28 -31
- package/dist/env/test.js +65 -43
- package/dist/env/types.js +1 -17
- package/dist/env/windows.js +78 -43
- package/dist/env/xdg.js +62 -39
- package/dist/errors/message.js +40 -46
- package/dist/errors/predicates.js +61 -49
- package/dist/errors/stack.js +24 -36
- package/dist/events/exit/_internal.js +86 -103
- package/dist/events/exit/handler.js +48 -55
- package/dist/events/exit/intercept.js +49 -70
- package/dist/events/exit/lifecycle.js +92 -101
- package/dist/events/exit/signals.js +25 -31
- package/dist/events/exit/types.js +1 -17
- package/dist/events/warning/handler.js +43 -40
- package/dist/events/warning/suppress.js +111 -90
- package/dist/external/@npmcli/package-json/lib/read-package.js +132 -153
- package/dist/external/@npmcli/package-json/lib/sort.js +73 -105
- package/dist/external/@npmcli/package-json.js +12705 -15140
- package/dist/external/@npmcli/promise-spawn.js +451 -472
- package/dist/external/@sinclair/typebox/value.js +7443 -9002
- package/dist/external/@sinclair/typebox.js +7516 -7885
- package/dist/external/@socketregistry/is-unicode-supported.js +31 -39
- package/dist/external/@socketregistry/packageurl-js.js +6127 -7369
- package/dist/external/@socketregistry/yocto-spinner.js +394 -455
- package/dist/external/@yarnpkg/extensions.js +435 -1022
- package/dist/external/adm-zip.js +2313 -2673
- package/dist/external/debug.js +700 -687
- package/dist/external/external-pack.js +2658 -3171
- package/dist/external/fast-sort.js +124 -138
- package/dist/external/get-east-asian-width.js +70 -64
- package/dist/external/libnpmexec.js +28 -31
- package/dist/external/npm-pack.js +43617 -50137
- package/dist/external/p-map.js +198 -222
- package/dist/external/pico-pack.js +6735 -7304
- package/dist/external/pony-cause.js +143 -139
- package/dist/external/shell-quote.js +226 -0
- package/dist/external/spdx-pack.js +1283 -1403
- package/dist/external/streaming-iterables.js +835 -1052
- package/dist/external/tar-fs.js +2769 -3048
- package/dist/external/which.js +267 -251
- package/dist/external/yargs-parser.js +851 -1074
- package/dist/external-tools/bazel/asset-names.js +98 -90
- package/dist/external-tools/bazel/from-download.js +52 -46
- package/dist/external-tools/bazel/from-path.js +27 -38
- package/dist/external-tools/bazel/read-bazel-version-file.js +35 -57
- package/dist/external-tools/bazel/resolve-asset-url.js +24 -39
- package/dist/external-tools/bazel/resolve-bazel-version.js +34 -56
- package/dist/external-tools/bazel/resolve.js +44 -58
- package/dist/external-tools/bazel/types.js +1 -17
- package/dist/external-tools/cdxgen/asset-names.js +59 -66
- package/dist/external-tools/cdxgen/from-download.js +52 -80
- package/dist/external-tools/cdxgen/from-path.js +19 -37
- package/dist/external-tools/cdxgen/from-vfs.js +22 -43
- package/dist/external-tools/cdxgen/resolve.js +48 -63
- package/dist/external-tools/cdxgen/types.js +1 -17
- package/dist/external-tools/from-download.js +107 -67
- package/dist/external-tools/janus/asset-names.js +44 -51
- package/dist/external-tools/janus/from-download.js +45 -70
- package/dist/external-tools/janus/from-path.js +19 -37
- package/dist/external-tools/janus/from-vfs.js +22 -43
- package/dist/external-tools/janus/resolve.js +45 -63
- package/dist/external-tools/janus/types.js +1 -17
- package/dist/external-tools/jre/asset-names.js +109 -82
- package/dist/external-tools/jre/detect-platform-arch.js +25 -49
- package/dist/external-tools/jre/from-download.js +71 -67
- package/dist/external-tools/jre/from-java-home.js +27 -54
- package/dist/external-tools/jre/from-path.js +27 -49
- package/dist/external-tools/jre/from-vfs.js +39 -60
- package/dist/external-tools/jre/resolve.js +55 -68
- package/dist/external-tools/jre/types.js +1 -17
- package/dist/external-tools/manifest.js +130 -150
- package/dist/external-tools/opengrep/asset-names.js +60 -72
- package/dist/external-tools/opengrep/from-download.js +58 -80
- package/dist/external-tools/opengrep/from-path.js +19 -37
- package/dist/external-tools/opengrep/from-vfs.js +23 -43
- package/dist/external-tools/opengrep/resolve.js +43 -63
- package/dist/external-tools/opengrep/types.js +1 -17
- package/dist/external-tools/sbt/asset-names.js +21 -30
- package/dist/external-tools/sbt/from-download.js +50 -61
- package/dist/external-tools/sbt/from-path.js +23 -38
- package/dist/external-tools/sbt/from-vfs.js +30 -44
- package/dist/external-tools/sbt/resolve.js +45 -63
- package/dist/external-tools/sbt/types.js +1 -17
- package/dist/external-tools/synp/asset-names.js +11 -29
- package/dist/external-tools/synp/from-download.js +24 -41
- package/dist/external-tools/synp/from-path.js +19 -37
- package/dist/external-tools/synp/from-vfs.js +22 -43
- package/dist/external-tools/synp/resolve.js +43 -62
- package/dist/external-tools/synp/types.js +1 -17
- package/dist/external-tools/trivy/asset-names.js +51 -62
- package/dist/external-tools/trivy/from-download.js +42 -64
- package/dist/external-tools/trivy/from-path.js +19 -37
- package/dist/external-tools/trivy/from-vfs.js +22 -43
- package/dist/external-tools/trivy/resolve.js +43 -63
- package/dist/external-tools/trivy/types.js +1 -17
- package/dist/external-tools/trufflehog/asset-names.js +54 -66
- package/dist/external-tools/trufflehog/from-download.js +44 -62
- package/dist/external-tools/trufflehog/from-path.js +21 -37
- package/dist/external-tools/trufflehog/from-vfs.js +26 -43
- package/dist/external-tools/trufflehog/resolve.js +43 -63
- package/dist/external-tools/trufflehog/types.js +1 -17
- package/dist/external-tools/uv/asset-names.js +64 -74
- package/dist/external-tools/uv/from-download.js +44 -65
- package/dist/external-tools/uv/from-path.js +19 -37
- package/dist/external-tools/uv/from-vfs.js +22 -43
- package/dist/external-tools/uv/resolve.js +42 -63
- package/dist/external-tools/uv/types.js +1 -17
- package/dist/fs/_internal.js +40 -42
- package/dist/fs/access.js +57 -54
- package/dist/fs/encoding.js +80 -97
- package/dist/fs/find-up.js +126 -125
- package/dist/fs/inspect.js +168 -99
- package/dist/fs/path-cache.js +31 -32
- package/dist/fs/read-dir.js +102 -79
- package/dist/fs/read-file.js +177 -118
- package/dist/fs/read-json-cache.js +150 -134
- package/dist/fs/read-json.js +172 -187
- package/dist/fs/resolve-module.js +35 -58
- package/dist/fs/safe.js +278 -169
- package/dist/fs/types.js +1 -17
- package/dist/fs/unique.js +52 -48
- package/dist/fs/validate.js +56 -40
- package/dist/fs/write-json.js +109 -75
- package/dist/git/_internal.js +251 -216
- package/dist/git/changed.js +191 -74
- package/dist/git/repo.js +118 -104
- package/dist/git/staged.js +172 -62
- package/dist/git/types.js +1 -17
- package/dist/git/unstaged.js +175 -62
- package/dist/github/constants.js +25 -33
- package/dist/github/errors.js +46 -38
- package/dist/github/fetch.js +137 -82
- package/dist/github/ghsa.js +217 -151
- package/dist/github/refs-cache.js +54 -43
- package/dist/github/refs-graphql.js +97 -89
- package/dist/github/refs-rest.js +70 -101
- package/dist/github/refs.js +105 -64
- package/dist/github/token.js +96 -48
- package/dist/github/types.js +1 -17
- package/dist/globs/_internal.js +73 -82
- package/dist/globs/defaults.js +40 -59
- package/dist/globs/match.js +93 -77
- package/dist/globs/matcher.js +104 -92
- package/dist/globs/stream.js +43 -55
- package/dist/globs/types.js +1 -17
- package/dist/http-request/_internal.js +11 -38
- package/dist/http-request/browser-fetch.js +19 -29
- package/dist/http-request/browser.js +188 -206
- package/dist/http-request/checksums.js +101 -65
- package/dist/http-request/download-types.js +1 -17
- package/dist/http-request/download.js +195 -196
- package/dist/http-request/errors.js +39 -47
- package/dist/http-request/headers.js +95 -80
- package/dist/http-request/http-request.js +10 -35
- package/dist/http-request/node.js +71 -97
- package/dist/http-request/request-attempt.js +232 -285
- package/dist/http-request/request-types.js +1 -17
- package/dist/http-request/request.js +106 -108
- package/dist/http-request/response-reader.js +47 -51
- package/dist/http-request/response-types.js +22 -38
- package/dist/http-request/user-agent.js +73 -55
- package/dist/integrity.js +105 -106
- package/dist/ipc/_internal.js +34 -48
- package/dist/ipc/directory.js +55 -63
- package/dist/ipc/paths.js +52 -45
- package/dist/ipc/types.js +1 -17
- package/dist/ipc/write.js +81 -74
- package/dist/ipc-cli/get.js +29 -56
- package/dist/ipc-cli/types.js +1 -17
- package/dist/json/edit.js +182 -242
- package/dist/json/format.js +202 -103
- package/dist/json/parse.js +206 -109
- package/dist/json/types.js +1 -17
- package/dist/links/create.js +93 -60
- package/dist/links/types.js +1 -17
- package/dist/logger/_internal.js +109 -73
- package/dist/logger/browser.js +45 -56
- package/dist/logger/colors.js +31 -49
- package/dist/logger/console.js +89 -112
- package/dist/logger/default.js +19 -33
- package/dist/logger/logger.js +5 -29
- package/dist/logger/node.js +793 -854
- package/dist/logger/symbols-builder.js +54 -56
- package/dist/logger/symbols.js +135 -118
- package/dist/logger/types.js +1 -17
- package/dist/memo/_internal.js +39 -49
- package/dist/memo/async.js +133 -117
- package/dist/memo/clear.js +25 -34
- package/dist/memo/decorator.js +43 -37
- package/dist/memo/memoize.js +97 -88
- package/dist/memo/once.js +42 -41
- package/dist/memo/types.js +1 -17
- package/dist/memo/weak.js +45 -41
- package/dist/node/async-hooks.js +9 -30
- package/dist/node/child-process.js +9 -30
- package/dist/node/crypto.js +9 -30
- package/dist/node/events.js +9 -30
- package/dist/node/fs-promises.js +9 -30
- package/dist/node/fs.js +9 -30
- package/dist/node/http.js +9 -30
- package/dist/node/https.js +9 -30
- package/dist/node/module.js +20 -34
- package/dist/node/os.js +9 -30
- package/dist/node/path.js +9 -30
- package/dist/node/timers-promises.js +9 -30
- package/dist/node/url.js +9 -30
- package/dist/node/util.js +9 -30
- package/dist/objects/getters.js +185 -126
- package/dist/objects/inspect.js +85 -52
- package/dist/objects/mutate.js +96 -76
- package/dist/objects/predicates.js +112 -59
- package/dist/objects/sort.js +120 -76
- package/dist/objects/types.js +1 -17
- package/dist/packages/edit-class.js +198 -265
- package/dist/packages/edit.js +79 -86
- package/dist/packages/exports.js +146 -157
- package/dist/packages/isolation.js +159 -209
- package/dist/packages/licenses.js +207 -189
- package/dist/packages/manifest.js +134 -172
- package/dist/packages/normalize.js +91 -102
- package/dist/packages/operations.d.ts +2 -0
- package/dist/packages/operations.js +283 -254
- package/dist/packages/provenance.js +195 -245
- package/dist/packages/specs.js +94 -84
- package/dist/packages/types.js +1 -17
- package/dist/packages/validation.js +49 -50
- package/dist/paths/_internal.js +82 -86
- package/dist/paths/conversion.js +112 -65
- package/dist/paths/dirnames.js +17 -42
- package/dist/paths/exts.js +23 -54
- package/dist/paths/filenames.js +21 -50
- package/dist/paths/globs.js +15 -38
- package/dist/paths/normalize.js +215 -236
- package/dist/paths/packages.js +34 -49
- package/dist/paths/predicates.js +184 -106
- package/dist/paths/resolve.js +146 -128
- package/dist/paths/rewire.js +108 -72
- package/dist/paths/socket.js +252 -132
- package/dist/paths/walk.js +55 -60
- package/dist/perf/_internal.js +10 -28
- package/dist/perf/enabled.js +21 -30
- package/dist/perf/metrics.js +81 -67
- package/dist/perf/report.js +79 -80
- package/dist/perf/timer.js +180 -126
- package/dist/perf/types.js +1 -17
- package/dist/pkg-ext/data.js +29 -82
- package/dist/pkg-ext/types.js +1 -17
- package/dist/primordials/array.js +120 -198
- package/dist/primordials/buffer.js +28 -51
- package/dist/primordials/date.js +26 -51
- package/dist/primordials/error.js +33 -59
- package/dist/primordials/function.js +21 -41
- package/dist/primordials/globals.js +25 -48
- package/dist/primordials/json.js +14 -30
- package/dist/primordials/map-set.js +88 -152
- package/dist/primordials/math.js +59 -116
- package/dist/primordials/number.js +41 -76
- package/dist/primordials/object.js +56 -116
- package/dist/primordials/promise.js +28 -52
- package/dist/primordials/reflect.js +24 -52
- package/dist/primordials/regexp.js +25 -47
- package/dist/primordials/string.js +114 -167
- package/dist/primordials/symbol.js +40 -72
- package/dist/primordials/uncurry.js +38 -55
- package/dist/primordials/url.js +27 -66
- package/dist/process/_internal.js +7 -32
- package/dist/process/abort.js +29 -35
- package/dist/process/lock-instance.js +26 -30
- package/dist/process/lock-manager.js +279 -307
- package/dist/process/lock-types.js +1 -17
- package/dist/process/spawn/_internal.js +43 -55
- package/dist/process/spawn/child.js +172 -211
- package/dist/process/spawn/errors.js +116 -113
- package/dist/process/spawn/stdio.js +51 -35
- package/dist/process/spawn/types.js +1 -17
- package/dist/process/transient.js +49 -66
- package/dist/promises/_internal.js +31 -34
- package/dist/promises/iterate.js +238 -102
- package/dist/promises/options.js +123 -101
- package/dist/promises/queue.js +115 -136
- package/dist/promises/resolvers.js +77 -46
- package/dist/promises/retry.js +156 -101
- package/dist/promises/types.js +1 -17
- package/dist/regexps/escape.js +32 -30
- package/dist/regexps/hex.js +16 -33
- package/dist/regexps/spec.js +53 -81
- package/dist/releases/github-archives.js +127 -118
- package/dist/releases/github-asset-url.js +162 -146
- package/dist/releases/github-assets.js +37 -49
- package/dist/releases/github-auth.js +32 -48
- package/dist/releases/github-downloads.js +118 -138
- package/dist/releases/github-listing.js +175 -145
- package/dist/releases/github-retry-config.js +41 -47
- package/dist/releases/github-types.js +1 -17
- package/dist/releases/socket-btm.js +273 -192
- package/dist/schema/parse.js +35 -36
- package/dist/schema/types.js +1 -17
- package/dist/schema/validate.js +118 -99
- package/dist/sea/detect.js +57 -52
- package/dist/secrets/_internal.js +86 -67
- package/dist/secrets/find.js +96 -77
- package/dist/secrets/keychain.js +315 -309
- package/dist/secrets/linux.js +133 -135
- package/dist/secrets/macos.js +151 -147
- package/dist/secrets/rc.js +182 -181
- package/dist/secrets/socket-api-token.js +28 -43
- package/dist/secrets/types.js +1 -17
- package/dist/secrets/windows.js +184 -242
- package/dist/shadow/skip.js +51 -70
- package/dist/shadow/types.js +1 -17
- package/dist/shell/parse.d.ts +26 -0
- package/dist/shell/parse.js +35 -0
- package/dist/shell/quote.d.ts +19 -0
- package/dist/shell/quote.js +30 -0
- package/dist/smol/detect.js +67 -43
- package/dist/smol/http.js +33 -37
- package/dist/smol/https.js +31 -37
- package/dist/smol/manifest.js +33 -37
- package/dist/smol/path.js +33 -37
- package/dist/smol/primordial.js +35 -37
- package/dist/smol/purl.js +34 -37
- package/dist/smol/versions.js +31 -37
- package/dist/smol/vfs.js +46 -38
- package/dist/sorts/_internal.js +14 -40
- package/dist/sorts/natural.js +57 -64
- package/dist/sorts/semver.js +33 -43
- package/dist/sorts/strings.js +24 -30
- package/dist/sorts/types.js +1 -17
- package/dist/spinner/default.js +72 -63
- package/dist/spinner/format.js +86 -71
- package/dist/spinner/spinner.js +749 -797
- package/dist/spinner/types.js +1 -17
- package/dist/spinner/with.js +193 -137
- package/dist/ssri/convert.js +64 -47
- package/dist/ssri/parse.js +38 -37
- package/dist/ssri/validate.js +51 -34
- package/dist/stdio/_internal.js +50 -46
- package/dist/stdio/clear.js +208 -86
- package/dist/stdio/divider.js +170 -97
- package/dist/stdio/footer.js +116 -110
- package/dist/stdio/header.js +117 -90
- package/dist/stdio/progress.js +189 -218
- package/dist/stdio/prompts.js +244 -168
- package/dist/stdio/stderr.js +173 -78
- package/dist/stdio/stdout.js +177 -94
- package/dist/streams/parallel.js +58 -50
- package/dist/streams/transform.js +36 -45
- package/dist/strings/format.js +145 -63
- package/dist/strings/predicates.js +56 -34
- package/dist/strings/search.js +52 -42
- package/dist/strings/transform.js +113 -72
- package/dist/strings/types.js +1 -17
- package/dist/strings/width.js +89 -82
- package/dist/tables/bordered.js +81 -81
- package/dist/tables/padding.js +36 -46
- package/dist/tables/simple.js +62 -70
- package/dist/tables/types.js +1 -17
- package/dist/temporal/instant.js +72 -81
- package/dist/temporal/now.js +40 -31
- package/dist/temporal/slots.js +42 -36
- package/dist/temporal/system.js +36 -36
- package/dist/temporal/temporal.js +11 -41
- package/dist/themes/context.js +131 -69
- package/dist/themes/resolve.js +207 -132
- package/dist/themes/themes.js +225 -194
- package/dist/themes/types.js +1 -17
- package/dist/url/parse.js +48 -51
- package/dist/url/predicates.js +24 -31
- package/dist/url/search-params.js +133 -101
- package/dist/url/types.js +1 -17
- package/dist/versions/_internal.js +31 -33
- package/dist/versions/compare.js +80 -58
- package/dist/versions/modify.js +41 -39
- package/dist/versions/parse.js +88 -64
- package/dist/versions/range.js +58 -41
- package/dist/versions/types.js +1 -17
- package/dist/words/article.js +22 -30
- package/dist/words/capitalize.js +25 -34
- package/dist/words/pluralize.js +23 -31
- package/dist/words/types.js +1 -17
- package/package.json +17 -5
|
@@ -4,145 +4,131 @@ const { ObjectDefineProperty: _p_ObjectDefineProperty } = require('../primordial
|
|
|
4
4
|
"use strict";
|
|
5
5
|
/**
|
|
6
6
|
* Bundled from fast-sort
|
|
7
|
-
* This is a zero-dependency bundle created by
|
|
7
|
+
* This is a zero-dependency bundle created by rolldown.
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
12
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
13
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
14
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
|
-
};
|
|
9
|
+
'use strict';
|
|
16
10
|
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var castComparer = /* @__PURE__ */ __name(function(comparer) {
|
|
23
|
-
return function(a, b, order) {
|
|
24
|
-
return comparer(a, b, order) * order;
|
|
25
|
-
};
|
|
26
|
-
}, "castComparer");
|
|
27
|
-
var throwInvalidConfigErrorIfTrue = /* @__PURE__ */ __name(function(condition, context) {
|
|
28
|
-
if (condition)
|
|
29
|
-
throw Error("Invalid sort config: " + context);
|
|
30
|
-
}, "throwInvalidConfigErrorIfTrue");
|
|
31
|
-
var unpackObjectSorter = /* @__PURE__ */ __name(function(sortByObj) {
|
|
32
|
-
var _a = sortByObj || {}, asc = _a.asc, desc = _a.desc;
|
|
33
|
-
var order = asc ? 1 : -1;
|
|
34
|
-
var sortBy = asc || desc;
|
|
35
|
-
throwInvalidConfigErrorIfTrue(!sortBy, "Expected `asc` or `desc` property");
|
|
36
|
-
throwInvalidConfigErrorIfTrue(asc && desc, "Ambiguous object with `asc` and `desc` config properties");
|
|
37
|
-
var comparer = sortByObj.comparer && castComparer(sortByObj.comparer);
|
|
38
|
-
return { order, sortBy, comparer };
|
|
39
|
-
}, "unpackObjectSorter");
|
|
40
|
-
var multiPropertySorterProvider = /* @__PURE__ */ __name(function(defaultComparer2) {
|
|
41
|
-
return /* @__PURE__ */ __name(function multiPropertySorter(sortBy, sortByArr, depth, order, comparer, a, b) {
|
|
42
|
-
var valA;
|
|
43
|
-
var valB;
|
|
44
|
-
if (typeof sortBy === "string") {
|
|
45
|
-
valA = a[sortBy];
|
|
46
|
-
valB = b[sortBy];
|
|
47
|
-
} else if (typeof sortBy === "function") {
|
|
48
|
-
valA = sortBy(a);
|
|
49
|
-
valB = sortBy(b);
|
|
50
|
-
} else {
|
|
51
|
-
var objectSorterConfig = unpackObjectSorter(sortBy);
|
|
52
|
-
return multiPropertySorter(objectSorterConfig.sortBy, sortByArr, depth, objectSorterConfig.order, objectSorterConfig.comparer || defaultComparer2, a, b);
|
|
53
|
-
}
|
|
54
|
-
var equality = comparer(valA, valB, order);
|
|
55
|
-
if ((equality === 0 || valA == null && valB == null) && sortByArr.length > depth) {
|
|
56
|
-
return multiPropertySorter(sortByArr[depth], sortByArr, depth + 1, order, comparer, a, b);
|
|
57
|
-
}
|
|
58
|
-
return equality;
|
|
59
|
-
}, "multiPropertySorter");
|
|
60
|
-
}, "multiPropertySorterProvider");
|
|
61
|
-
function getSortStrategy(sortBy, comparer, order) {
|
|
62
|
-
if (sortBy === void 0 || sortBy === true) {
|
|
63
|
-
return function(a, b) {
|
|
64
|
-
return comparer(a, b, order);
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
if (typeof sortBy === "string") {
|
|
68
|
-
throwInvalidConfigErrorIfTrue(sortBy.includes("."), "String syntax not allowed for nested properties.");
|
|
69
|
-
return function(a, b) {
|
|
70
|
-
return comparer(a[sortBy], b[sortBy], order);
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
if (typeof sortBy === "function") {
|
|
74
|
-
return function(a, b) {
|
|
75
|
-
return comparer(sortBy(a), sortBy(b), order);
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
if (_p_ArrayIsArray(sortBy)) {
|
|
79
|
-
var multiPropSorter_1 = multiPropertySorterProvider(comparer);
|
|
80
|
-
return function(a, b) {
|
|
81
|
-
return multiPropSorter_1(sortBy[0], sortBy, 1, order, comparer, a, b);
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
var objectSorterConfig = unpackObjectSorter(sortBy);
|
|
85
|
-
return getSortStrategy(objectSorterConfig.sortBy, objectSorterConfig.comparer || comparer, objectSorterConfig.order);
|
|
86
|
-
}
|
|
87
|
-
__name(getSortStrategy, "getSortStrategy");
|
|
88
|
-
var sortArray = /* @__PURE__ */ __name(function(order, ctx, sortBy, comparer) {
|
|
89
|
-
var _a;
|
|
90
|
-
if (!_p_ArrayIsArray(ctx)) {
|
|
91
|
-
return ctx;
|
|
92
|
-
}
|
|
93
|
-
if (_p_ArrayIsArray(sortBy) && sortBy.length < 2) {
|
|
94
|
-
_a = sortBy, sortBy = _a[0];
|
|
95
|
-
}
|
|
96
|
-
return ctx.sort(getSortStrategy(sortBy, comparer, order));
|
|
97
|
-
}, "sortArray");
|
|
98
|
-
function createNewSortInstance2(opts) {
|
|
99
|
-
var comparer = castComparer(opts.comparer);
|
|
100
|
-
return function(arrayToSort) {
|
|
101
|
-
var ctx = _p_ArrayIsArray(arrayToSort) && !opts.inPlaceSorting ? arrayToSort.slice() : arrayToSort;
|
|
102
|
-
return {
|
|
103
|
-
asc: /* @__PURE__ */ __name(function(sortBy) {
|
|
104
|
-
return sortArray(1, ctx, sortBy, comparer);
|
|
105
|
-
}, "asc"),
|
|
106
|
-
desc: /* @__PURE__ */ __name(function(sortBy) {
|
|
107
|
-
return sortArray(-1, ctx, sortBy, comparer);
|
|
108
|
-
}, "desc"),
|
|
109
|
-
by: /* @__PURE__ */ __name(function(sortBy) {
|
|
110
|
-
return sortArray(1, ctx, sortBy, comparer);
|
|
111
|
-
}, "by")
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
__name(createNewSortInstance2, "createNewSortInstance");
|
|
116
|
-
var defaultComparer = /* @__PURE__ */ __name(function(a, b, order) {
|
|
117
|
-
if (a == null)
|
|
118
|
-
return order;
|
|
119
|
-
if (b == null)
|
|
120
|
-
return -order;
|
|
121
|
-
if (typeof a !== typeof b) {
|
|
122
|
-
return typeof a < typeof b ? -1 : 1;
|
|
123
|
-
}
|
|
124
|
-
if (a < b)
|
|
125
|
-
return -1;
|
|
126
|
-
if (a > b)
|
|
127
|
-
return 1;
|
|
128
|
-
return 0;
|
|
129
|
-
}, "defaultComparer");
|
|
130
|
-
var sort = createNewSortInstance2({
|
|
131
|
-
comparer: defaultComparer
|
|
132
|
-
});
|
|
133
|
-
var inPlaceSort = createNewSortInstance2({
|
|
134
|
-
comparer: defaultComparer,
|
|
135
|
-
inPlaceSorting: true
|
|
136
|
-
});
|
|
137
|
-
exports2.createNewSortInstance = createNewSortInstance2;
|
|
138
|
-
exports2.defaultComparer = defaultComparer;
|
|
139
|
-
exports2.inPlaceSort = inPlaceSort;
|
|
140
|
-
exports2.sort = sort;
|
|
141
|
-
}
|
|
11
|
+
//#region \0rolldown/runtime.js
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __name = (target, value) => __defProp(target, "name", {
|
|
14
|
+
value,
|
|
15
|
+
configurable: true
|
|
142
16
|
});
|
|
17
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
|
|
21
|
+
//#region node_modules/.pnpm/fast-sort@3.4.1/node_modules/fast-sort/dist/sort.cjs.js
|
|
22
|
+
var require_sort_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
23
|
+
_p_ObjectDefineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
var castComparer = function(comparer) {
|
|
25
|
+
return function(a, b, order) {
|
|
26
|
+
return comparer(a, b, order) * order;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
var throwInvalidConfigErrorIfTrue = function(condition, context) {
|
|
30
|
+
if (condition) throw Error("Invalid sort config: " + context);
|
|
31
|
+
};
|
|
32
|
+
var unpackObjectSorter = function(sortByObj) {
|
|
33
|
+
var _a = sortByObj || {};
|
|
34
|
+
var asc = _a.asc;
|
|
35
|
+
var desc = _a.desc;
|
|
36
|
+
var order = asc ? 1 : -1;
|
|
37
|
+
var sortBy = asc || desc;
|
|
38
|
+
throwInvalidConfigErrorIfTrue(!sortBy, "Expected `asc` or `desc` property");
|
|
39
|
+
throwInvalidConfigErrorIfTrue(asc && desc, "Ambiguous object with `asc` and `desc` config properties");
|
|
40
|
+
return {
|
|
41
|
+
order,
|
|
42
|
+
sortBy,
|
|
43
|
+
comparer: sortByObj.comparer && castComparer(sortByObj.comparer)
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
var multiPropertySorterProvider = function(defaultComparer) {
|
|
47
|
+
return function multiPropertySorter(sortBy, sortByArr, depth, order, comparer, a, b) {
|
|
48
|
+
var valA;
|
|
49
|
+
var valB;
|
|
50
|
+
if (typeof sortBy === "string") {
|
|
51
|
+
valA = a[sortBy];
|
|
52
|
+
valB = b[sortBy];
|
|
53
|
+
} else if (typeof sortBy === "function") {
|
|
54
|
+
valA = sortBy(a);
|
|
55
|
+
valB = sortBy(b);
|
|
56
|
+
} else {
|
|
57
|
+
var objectSorterConfig = unpackObjectSorter(sortBy);
|
|
58
|
+
return multiPropertySorter(objectSorterConfig.sortBy, sortByArr, depth, objectSorterConfig.order, objectSorterConfig.comparer || defaultComparer, a, b);
|
|
59
|
+
}
|
|
60
|
+
var equality = comparer(valA, valB, order);
|
|
61
|
+
if ((equality === 0 || valA == null && valB == null) && sortByArr.length > depth) return multiPropertySorter(sortByArr[depth], sortByArr, depth + 1, order, comparer, a, b);
|
|
62
|
+
return equality;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
function getSortStrategy(sortBy, comparer, order) {
|
|
66
|
+
if (sortBy === void 0 || sortBy === true) return function(a, b) {
|
|
67
|
+
return comparer(a, b, order);
|
|
68
|
+
};
|
|
69
|
+
if (typeof sortBy === "string") {
|
|
70
|
+
throwInvalidConfigErrorIfTrue(sortBy.includes("."), "String syntax not allowed for nested properties.");
|
|
71
|
+
return function(a, b) {
|
|
72
|
+
return comparer(a[sortBy], b[sortBy], order);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
if (typeof sortBy === "function") return function(a, b) {
|
|
76
|
+
return comparer(sortBy(a), sortBy(b), order);
|
|
77
|
+
};
|
|
78
|
+
if (_p_ArrayIsArray(sortBy)) {
|
|
79
|
+
var multiPropSorter_1 = multiPropertySorterProvider(comparer);
|
|
80
|
+
return function(a, b) {
|
|
81
|
+
return multiPropSorter_1(sortBy[0], sortBy, 1, order, comparer, a, b);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
var objectSorterConfig = unpackObjectSorter(sortBy);
|
|
85
|
+
return getSortStrategy(objectSorterConfig.sortBy, objectSorterConfig.comparer || comparer, objectSorterConfig.order);
|
|
86
|
+
}
|
|
87
|
+
var sortArray = function(order, ctx, sortBy, comparer) {
|
|
88
|
+
var _a;
|
|
89
|
+
if (!_p_ArrayIsArray(ctx)) return ctx;
|
|
90
|
+
if (_p_ArrayIsArray(sortBy) && sortBy.length < 2) _a = sortBy, sortBy = _a[0];
|
|
91
|
+
return ctx.sort(getSortStrategy(sortBy, comparer, order));
|
|
92
|
+
};
|
|
93
|
+
function createNewSortInstance(opts) {
|
|
94
|
+
var comparer = castComparer(opts.comparer);
|
|
95
|
+
return function(arrayToSort) {
|
|
96
|
+
var ctx = _p_ArrayIsArray(arrayToSort) && !opts.inPlaceSorting ? arrayToSort.slice() : arrayToSort;
|
|
97
|
+
return {
|
|
98
|
+
asc: function(sortBy) {
|
|
99
|
+
return sortArray(1, ctx, sortBy, comparer);
|
|
100
|
+
},
|
|
101
|
+
desc: function(sortBy) {
|
|
102
|
+
return sortArray(-1, ctx, sortBy, comparer);
|
|
103
|
+
},
|
|
104
|
+
by: function(sortBy) {
|
|
105
|
+
return sortArray(1, ctx, sortBy, comparer);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
var defaultComparer = function(a, b, order) {
|
|
111
|
+
if (a == null) return order;
|
|
112
|
+
if (b == null) return -order;
|
|
113
|
+
if (typeof a !== typeof b) return typeof a < typeof b ? -1 : 1;
|
|
114
|
+
if (a < b) return -1;
|
|
115
|
+
if (a > b) return 1;
|
|
116
|
+
return 0;
|
|
117
|
+
};
|
|
118
|
+
var sort = createNewSortInstance({ comparer: defaultComparer });
|
|
119
|
+
var inPlaceSort = createNewSortInstance({
|
|
120
|
+
comparer: defaultComparer,
|
|
121
|
+
inPlaceSorting: true
|
|
122
|
+
});
|
|
123
|
+
exports.createNewSortInstance = createNewSortInstance;
|
|
124
|
+
exports.defaultComparer = defaultComparer;
|
|
125
|
+
exports.inPlaceSort = inPlaceSort;
|
|
126
|
+
exports.sort = sort;
|
|
127
|
+
}));
|
|
128
|
+
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/external/fast-sort.js
|
|
131
|
+
const { createNewSortInstance } = require_sort_cjs();
|
|
132
|
+
module.exports = { createNewSortInstance };
|
|
143
133
|
|
|
144
|
-
|
|
145
|
-
var { createNewSortInstance } = require_sort_cjs();
|
|
146
|
-
module.exports = {
|
|
147
|
-
createNewSortInstance
|
|
148
|
-
};
|
|
134
|
+
//#endregion
|
|
@@ -4,95 +4,101 @@ const { NumberIsSafeInteger: _p_NumberIsSafeInteger } = require('../primordials/
|
|
|
4
4
|
"use strict";
|
|
5
5
|
/**
|
|
6
6
|
* Bundled from get-east-asian-width
|
|
7
|
-
* This is a zero-dependency bundle created by
|
|
7
|
+
* This is a zero-dependency bundle created by rolldown.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
'use strict';
|
|
10
|
+
|
|
11
|
+
//#region \0rolldown/runtime.js
|
|
10
12
|
var __defProp = Object.defineProperty;
|
|
13
|
+
var __name = (target, value) => __defProp(target, "name", {
|
|
14
|
+
value,
|
|
15
|
+
configurable: true
|
|
16
|
+
});
|
|
11
17
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
18
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
19
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
21
|
+
var __exportAll = (all, no_symbols) => {
|
|
22
|
+
let target = {};
|
|
23
|
+
for (var name in all) {
|
|
24
|
+
__defProp(target, name, {
|
|
25
|
+
get: all[name],
|
|
26
|
+
enumerable: true
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
if (!no_symbols) {
|
|
30
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
31
|
+
}
|
|
32
|
+
return target;
|
|
21
33
|
};
|
|
22
34
|
var __copyProps = (to, from, except, desc) => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
35
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
36
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
37
|
+
key = keys[i];
|
|
38
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
39
|
+
__defProp(to, key, {
|
|
40
|
+
get: ((k) => from[k]).bind(null, key),
|
|
41
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return to;
|
|
29
47
|
};
|
|
30
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
|
+
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
49
|
|
|
32
|
-
|
|
50
|
+
//#endregion
|
|
51
|
+
|
|
52
|
+
//#region node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js
|
|
33
53
|
function isAmbiguous(x) {
|
|
34
|
-
|
|
54
|
+
return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
|
|
35
55
|
}
|
|
36
56
|
function isFullWidth(x) {
|
|
37
|
-
|
|
57
|
+
return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
|
|
38
58
|
}
|
|
39
59
|
function isWide(x) {
|
|
40
|
-
|
|
60
|
+
return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101631 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129673 || x >= 129679 && x <= 129734 || x >= 129742 && x <= 129756 || x >= 129759 && x <= 129769 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
|
|
41
61
|
}
|
|
42
62
|
function getCategory(x) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return "narrow";
|
|
50
|
-
}
|
|
51
|
-
if (isWide(x)) return "wide";
|
|
52
|
-
return "neutral";
|
|
63
|
+
if (isAmbiguous(x)) return "ambiguous";
|
|
64
|
+
if (isFullWidth(x)) return "fullwidth";
|
|
65
|
+
if (x === 8361 || x >= 65377 && x <= 65470 || x >= 65474 && x <= 65479 || x >= 65482 && x <= 65487 || x >= 65490 && x <= 65495 || x >= 65498 && x <= 65500 || x >= 65512 && x <= 65518) return "halfwidth";
|
|
66
|
+
if (x >= 32 && x <= 126 || x === 162 || x === 163 || x === 165 || x === 166 || x === 172 || x === 175 || x >= 10214 && x <= 10221 || x === 10629 || x === 10630) return "narrow";
|
|
67
|
+
if (isWide(x)) return "wide";
|
|
68
|
+
return "neutral";
|
|
53
69
|
}
|
|
54
|
-
var init_lookup =
|
|
55
|
-
"node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js"() {
|
|
56
|
-
__name(isAmbiguous, "isAmbiguous");
|
|
57
|
-
__name(isFullWidth, "isFullWidth");
|
|
58
|
-
__name(isWide, "isWide");
|
|
59
|
-
__name(getCategory, "getCategory");
|
|
60
|
-
}
|
|
61
|
-
});
|
|
70
|
+
var init_lookup = __esmMin((() => {}));
|
|
62
71
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js
|
|
74
|
+
var get_east_asian_width_exports = /* @__PURE__ */ __exportAll({
|
|
75
|
+
_isNarrowWidth: () => _isNarrowWidth,
|
|
76
|
+
eastAsianWidth: () => eastAsianWidth,
|
|
77
|
+
eastAsianWidthType: () => eastAsianWidthType
|
|
69
78
|
});
|
|
70
79
|
function validate(codePoint) {
|
|
71
|
-
|
|
72
|
-
throw new _p_TypeErrorCtor(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
73
|
-
}
|
|
80
|
+
if (!_p_NumberIsSafeInteger(codePoint)) throw new _p_TypeErrorCtor(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
74
81
|
}
|
|
75
82
|
function eastAsianWidthType(codePoint) {
|
|
76
|
-
|
|
77
|
-
|
|
83
|
+
validate(codePoint);
|
|
84
|
+
return getCategory(codePoint);
|
|
78
85
|
}
|
|
79
86
|
function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
return 1;
|
|
87
|
+
validate(codePoint);
|
|
88
|
+
if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) return 2;
|
|
89
|
+
return 1;
|
|
85
90
|
}
|
|
86
91
|
var _isNarrowWidth;
|
|
87
|
-
var init_get_east_asian_width =
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
__name(eastAsianWidthType, "eastAsianWidthType");
|
|
92
|
-
__name(eastAsianWidth, "eastAsianWidth");
|
|
93
|
-
_isNarrowWidth = /* @__PURE__ */ __name((codePoint) => !(isFullWidth(codePoint) || isWide(codePoint)), "_isNarrowWidth");
|
|
94
|
-
}
|
|
95
|
-
});
|
|
92
|
+
var init_get_east_asian_width = __esmMin((() => {
|
|
93
|
+
init_lookup();
|
|
94
|
+
_isNarrowWidth = (codePoint) => !(isFullWidth(codePoint) || isWide(codePoint));
|
|
95
|
+
}));
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region src/external/get-east-asian-width.js
|
|
98
99
|
module.exports = (init_get_east_asian_width(), __toCommonJS(get_east_asian_width_exports));
|
|
100
|
+
|
|
101
|
+
//#endregion
|
|
102
|
+
exports._isNarrowWidth = _isNarrowWidth;
|
|
103
|
+
exports.eastAsianWidth = eastAsianWidth;
|
|
104
|
+
exports.eastAsianWidthType = eastAsianWidthType;
|
|
@@ -6,38 +6,35 @@ const { ObjectAssign: _p_ObjectAssign, ObjectKeys: _p_ObjectKeys, ObjectValues:
|
|
|
6
6
|
"use strict";
|
|
7
7
|
/**
|
|
8
8
|
* Bundled from libnpmexec
|
|
9
|
-
* This is a zero-dependency bundle created by
|
|
9
|
+
* This is a zero-dependency bundle created by rolldown.
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
var __defProp = Object.defineProperty;
|
|
13
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
15
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
16
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
17
|
-
};
|
|
11
|
+
'use strict';
|
|
18
12
|
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
if (new _p_SetCtor(_p_ObjectValues(bin)).size === 1) {
|
|
25
|
-
return _p_ObjectKeys(bin)[0];
|
|
26
|
-
}
|
|
27
|
-
const name = mani.name.replace(/^@[^/]+\//, "");
|
|
28
|
-
if (bin[name]) {
|
|
29
|
-
return name;
|
|
30
|
-
}
|
|
31
|
-
throw _p_ObjectAssign(new _p_ErrorCtor("could not determine executable to run"), {
|
|
32
|
-
pkgid: mani._id
|
|
33
|
-
});
|
|
34
|
-
}, "getBinFromManifest");
|
|
35
|
-
module2.exports = getBinFromManifest2;
|
|
36
|
-
}
|
|
13
|
+
//#region \0rolldown/runtime.js
|
|
14
|
+
var __defProp = Object.defineProperty;
|
|
15
|
+
var __name = (target, value) => __defProp(target, "name", {
|
|
16
|
+
value,
|
|
17
|
+
configurable: true
|
|
37
18
|
});
|
|
19
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
|
|
23
|
+
//#region node_modules/.pnpm/libnpmexec@10.2.3_supports-color@10.2.2/node_modules/libnpmexec/lib/get-bin-from-manifest.js
|
|
24
|
+
var require_get_bin_from_manifest = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
25
|
+
const getBinFromManifest = (mani) => {
|
|
26
|
+
const bin = mani.bin || {};
|
|
27
|
+
if (new _p_SetCtor(_p_ObjectValues(bin)).size === 1) return _p_ObjectKeys(bin)[0];
|
|
28
|
+
const name = mani.name.replace(/^@[^/]+\//, "");
|
|
29
|
+
if (bin[name]) return name;
|
|
30
|
+
throw _p_ObjectAssign(/* @__PURE__ */ new _p_ErrorCtor("could not determine executable to run"), { pkgid: mani._id });
|
|
31
|
+
};
|
|
32
|
+
module.exports = getBinFromManifest;
|
|
33
|
+
}));
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/external/libnpmexec.js
|
|
37
|
+
const getBinFromManifest = require_get_bin_from_manifest();
|
|
38
|
+
module.exports = { getBinFromManifest };
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
var getBinFromManifest = require_get_bin_from_manifest();
|
|
41
|
-
module.exports = {
|
|
42
|
-
getBinFromManifest
|
|
43
|
-
};
|
|
40
|
+
//#endregion
|