@pnpm/exe 11.12.0 → 11.13.1
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 +6 -0
- package/dist/node-gyp-bin/node-gyp +6 -0
- package/dist/node-gyp-bin/node-gyp.cmd +5 -0
- package/dist/node_modules/.bin/node-gyp +38 -0
- package/dist/node_modules/.bin/node-which +38 -0
- package/dist/node_modules/.bin/nopt +38 -0
- package/dist/node_modules/.bin/semver +38 -0
- package/dist/node_modules/.package-map.json +1 -0
- package/dist/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/dist/node_modules/@isaacs/fs-minipass/package.json +72 -0
- package/dist/node_modules/abbrev/LICENSE +46 -0
- package/dist/node_modules/abbrev/lib/index.js +53 -0
- package/dist/node_modules/abbrev/package.json +41 -0
- package/dist/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/dist/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/dist/node_modules/chownr/dist/esm/index.js +85 -0
- package/dist/node_modules/chownr/dist/esm/package.json +3 -0
- package/dist/node_modules/chownr/package.json +69 -0
- package/dist/node_modules/env-paths/index.js +74 -0
- package/dist/node_modules/env-paths/license +9 -0
- package/dist/node_modules/env-paths/package.json +45 -0
- package/dist/node_modules/exponential-backoff/LICENSE +202 -0
- package/dist/node_modules/exponential-backoff/dist/backoff.js +124 -0
- package/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js +25 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.base.js +45 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js +17 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js +3 -0
- package/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +82 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +8 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +15 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +7 -0
- package/dist/node_modules/exponential-backoff/dist/options.js +31 -0
- package/dist/node_modules/exponential-backoff/package.json +62 -0
- package/dist/node_modules/fdir/LICENSE +7 -0
- package/dist/node_modules/fdir/dist/index.cjs +588 -0
- package/dist/node_modules/fdir/dist/index.d.cts +155 -0
- package/dist/node_modules/fdir/dist/index.d.mts +155 -0
- package/dist/node_modules/fdir/dist/index.mjs +570 -0
- package/dist/node_modules/fdir/package.json +103 -0
- package/dist/node_modules/graceful-fs/LICENSE +15 -0
- package/dist/node_modules/graceful-fs/clone.js +23 -0
- package/dist/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/dist/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/dist/node_modules/graceful-fs/package.json +53 -0
- package/dist/node_modules/graceful-fs/polyfills.js +355 -0
- package/dist/node_modules/isexe/dist/commonjs/index.js +56 -0
- package/dist/node_modules/isexe/dist/commonjs/index.min.js +2 -0
- package/dist/node_modules/isexe/dist/commonjs/options.js +3 -0
- package/dist/node_modules/isexe/dist/commonjs/package.json +3 -0
- package/dist/node_modules/isexe/dist/commonjs/posix.js +67 -0
- package/dist/node_modules/isexe/dist/commonjs/win32.js +63 -0
- package/dist/node_modules/isexe/dist/esm/index.js +16 -0
- package/dist/node_modules/isexe/dist/esm/index.min.js +2 -0
- package/dist/node_modules/isexe/dist/esm/options.js +2 -0
- package/dist/node_modules/isexe/dist/esm/package.json +3 -0
- package/dist/node_modules/isexe/dist/esm/posix.js +62 -0
- package/dist/node_modules/isexe/dist/esm/win32.js +58 -0
- package/dist/node_modules/isexe/package.json +78 -0
- package/dist/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/dist/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minipass/dist/esm/index.js +1020 -0
- package/dist/node_modules/minipass/dist/esm/package.json +3 -0
- package/dist/node_modules/minipass/package.json +77 -0
- package/dist/node_modules/minizlib/LICENSE +26 -0
- package/dist/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/dist/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/dist/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/dist/node_modules/minizlib/dist/esm/index.js +363 -0
- package/dist/node_modules/minizlib/dist/esm/package.json +3 -0
- package/dist/node_modules/minizlib/package.json +80 -0
- package/dist/node_modules/node-gyp/.release-please-manifest.json +3 -0
- package/dist/node_modules/node-gyp/LICENSE +24 -0
- package/dist/node_modules/node-gyp/addon.gypi +204 -0
- package/dist/node_modules/node-gyp/bin/node-gyp.js +145 -0
- package/dist/node_modules/node-gyp/eslint.config.js +3 -0
- package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
- package/dist/node_modules/node-gyp/gyp/LICENSE +28 -0
- package/dist/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -0
- package/dist/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +12 -0
- package/dist/node_modules/node-gyp/gyp/gyp +8 -0
- package/dist/node_modules/node-gyp/gyp/gyp.bat +5 -0
- package/dist/node_modules/node-gyp/gyp/gyp_main.py +45 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +365 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +206 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1283 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1545 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +59 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +152 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +270 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +607 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +706 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common.py +725 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +186 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +170 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +113 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +55 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +805 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1169 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1316 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +128 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +104 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +461 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +88 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +55 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2755 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3970 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +44 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2957 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +77 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1389 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +26 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +3097 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +99 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +765 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1255 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +174 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +61 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +371 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1936 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +54 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +301 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +3180 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +64 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +3 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +177 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +23 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +15 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +107 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +252 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +83 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +359 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +61 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +192 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/markers.py +251 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +807 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +90 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +1030 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/tags.py +541 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/utils.py +172 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/version.py +563 -0
- package/dist/node_modules/node-gyp/gyp/pyproject.toml +116 -0
- package/dist/node_modules/node-gyp/gyp/release-please-config.json +11 -0
- package/dist/node_modules/node-gyp/gyp/test_gyp.py +260 -0
- package/dist/node_modules/node-gyp/lib/Find-VisualStudio.cs +250 -0
- package/dist/node_modules/node-gyp/lib/build.js +230 -0
- package/dist/node_modules/node-gyp/lib/clean.js +15 -0
- package/dist/node_modules/node-gyp/lib/configure.js +328 -0
- package/dist/node_modules/node-gyp/lib/create-config-gypi.js +153 -0
- package/dist/node_modules/node-gyp/lib/download.js +86 -0
- package/dist/node_modules/node-gyp/lib/find-node-directory.js +63 -0
- package/dist/node_modules/node-gyp/lib/find-python.js +304 -0
- package/dist/node_modules/node-gyp/lib/find-visualstudio.js +606 -0
- package/dist/node_modules/node-gyp/lib/install.js +411 -0
- package/dist/node_modules/node-gyp/lib/list.js +26 -0
- package/dist/node_modules/node-gyp/lib/log.js +168 -0
- package/dist/node_modules/node-gyp/lib/node-gyp.js +199 -0
- package/dist/node_modules/node-gyp/lib/process-release.js +144 -0
- package/dist/node_modules/node-gyp/lib/rebuild.js +12 -0
- package/dist/node_modules/node-gyp/lib/remove.js +43 -0
- package/dist/node_modules/node-gyp/lib/util.js +81 -0
- package/dist/node_modules/node-gyp/macOS_Catalina_acid_test.sh +21 -0
- package/dist/node_modules/node-gyp/package.json +52 -0
- package/dist/node_modules/node-gyp/release-please-config.json +40 -0
- package/dist/node_modules/node-gyp/src/win_delay_load_hook.cc +41 -0
- package/dist/node_modules/nopt/LICENSE +15 -0
- package/dist/node_modules/nopt/bin/nopt.js +29 -0
- package/dist/node_modules/nopt/lib/debug.js +5 -0
- package/dist/node_modules/nopt/lib/nopt-lib.js +514 -0
- package/dist/node_modules/nopt/lib/nopt.js +34 -0
- package/dist/node_modules/nopt/lib/type-defs.js +91 -0
- package/dist/node_modules/nopt/package.json +52 -0
- package/dist/node_modules/picomatch/LICENSE +21 -0
- package/dist/node_modules/picomatch/index.js +17 -0
- package/dist/node_modules/picomatch/lib/constants.js +184 -0
- package/dist/node_modules/picomatch/lib/parse.js +1416 -0
- package/dist/node_modules/picomatch/lib/picomatch.js +361 -0
- package/dist/node_modules/picomatch/lib/scan.js +391 -0
- package/dist/node_modules/picomatch/lib/utils.js +72 -0
- package/dist/node_modules/picomatch/package.json +83 -0
- package/dist/node_modules/picomatch/posix.js +3 -0
- package/dist/node_modules/proc-log/LICENSE +15 -0
- package/dist/node_modules/proc-log/lib/index.js +158 -0
- package/dist/node_modules/proc-log/package.json +46 -0
- package/dist/node_modules/semver/LICENSE +15 -0
- package/dist/node_modules/semver/bin/semver.js +195 -0
- package/dist/node_modules/semver/classes/comparator.js +143 -0
- package/dist/node_modules/semver/classes/index.js +7 -0
- package/dist/node_modules/semver/classes/range.js +577 -0
- package/dist/node_modules/semver/classes/semver.js +350 -0
- package/dist/node_modules/semver/functions/clean.js +8 -0
- package/dist/node_modules/semver/functions/cmp.js +54 -0
- package/dist/node_modules/semver/functions/coerce.js +62 -0
- package/dist/node_modules/semver/functions/compare-build.js +9 -0
- package/dist/node_modules/semver/functions/compare-loose.js +5 -0
- package/dist/node_modules/semver/functions/compare.js +7 -0
- package/dist/node_modules/semver/functions/diff.js +60 -0
- package/dist/node_modules/semver/functions/eq.js +5 -0
- package/dist/node_modules/semver/functions/gt.js +5 -0
- package/dist/node_modules/semver/functions/gte.js +5 -0
- package/dist/node_modules/semver/functions/inc.js +21 -0
- package/dist/node_modules/semver/functions/lt.js +5 -0
- package/dist/node_modules/semver/functions/lte.js +5 -0
- package/dist/node_modules/semver/functions/major.js +5 -0
- package/dist/node_modules/semver/functions/minor.js +5 -0
- package/dist/node_modules/semver/functions/neq.js +5 -0
- package/dist/node_modules/semver/functions/parse.js +18 -0
- package/dist/node_modules/semver/functions/patch.js +5 -0
- package/dist/node_modules/semver/functions/prerelease.js +8 -0
- package/dist/node_modules/semver/functions/rcompare.js +5 -0
- package/dist/node_modules/semver/functions/rsort.js +5 -0
- package/dist/node_modules/semver/functions/satisfies.js +12 -0
- package/dist/node_modules/semver/functions/sort.js +5 -0
- package/dist/node_modules/semver/functions/truncate.js +48 -0
- package/dist/node_modules/semver/functions/valid.js +8 -0
- package/dist/node_modules/semver/index.js +93 -0
- package/dist/node_modules/semver/internal/constants.js +37 -0
- package/dist/node_modules/semver/internal/debug.js +11 -0
- package/dist/node_modules/semver/internal/identifiers.js +29 -0
- package/dist/node_modules/semver/internal/lrucache.js +42 -0
- package/dist/node_modules/semver/internal/parse-options.js +17 -0
- package/dist/node_modules/semver/internal/re.js +223 -0
- package/dist/node_modules/semver/package.json +78 -0
- package/dist/node_modules/semver/preload.js +4 -0
- package/dist/node_modules/semver/range.bnf +17 -0
- package/dist/node_modules/semver/ranges/gtr.js +6 -0
- package/dist/node_modules/semver/ranges/intersects.js +9 -0
- package/dist/node_modules/semver/ranges/ltr.js +6 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/dist/node_modules/semver/ranges/min-version.js +63 -0
- package/dist/node_modules/semver/ranges/outside.js +82 -0
- package/dist/node_modules/semver/ranges/simplify.js +49 -0
- package/dist/node_modules/semver/ranges/subset.js +249 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +10 -0
- package/dist/node_modules/semver/ranges/valid.js +13 -0
- package/dist/node_modules/tar/dist/commonjs/create.js +82 -0
- package/dist/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/dist/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/dist/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
- package/dist/node_modules/tar/dist/commonjs/header.js +348 -0
- package/dist/node_modules/tar/dist/commonjs/index.js +64 -0
- package/dist/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/dist/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/dist/node_modules/tar/dist/commonjs/list.js +145 -0
- package/dist/node_modules/tar/dist/commonjs/make-command.js +52 -0
- package/dist/node_modules/tar/dist/commonjs/mkdir.js +187 -0
- package/dist/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/dist/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/dist/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/dist/node_modules/tar/dist/commonjs/options.js +66 -0
- package/dist/node_modules/tar/dist/commonjs/pack.js +544 -0
- package/dist/node_modules/tar/dist/commonjs/package.json +3 -0
- package/dist/node_modules/tar/dist/commonjs/parse.js +655 -0
- package/dist/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/dist/node_modules/tar/dist/commonjs/pax.js +182 -0
- package/dist/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/dist/node_modules/tar/dist/commonjs/read-entry.js +136 -0
- package/dist/node_modules/tar/dist/commonjs/replace.js +227 -0
- package/dist/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/dist/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/dist/node_modules/tar/dist/commonjs/types.js +70 -0
- package/dist/node_modules/tar/dist/commonjs/unpack.js +932 -0
- package/dist/node_modules/tar/dist/commonjs/update.js +33 -0
- package/dist/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/dist/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/dist/node_modules/tar/dist/commonjs/write-entry.js +698 -0
- package/dist/node_modules/tar/dist/esm/create.js +76 -0
- package/dist/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/dist/node_modules/tar/dist/esm/extract.js +49 -0
- package/dist/node_modules/tar/dist/esm/get-write-flag.js +26 -0
- package/dist/node_modules/tar/dist/esm/header.js +311 -0
- package/dist/node_modules/tar/dist/esm/index.js +20 -0
- package/dist/node_modules/tar/dist/esm/index.min.js +4 -0
- package/dist/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/dist/node_modules/tar/dist/esm/list.js +105 -0
- package/dist/node_modules/tar/dist/esm/make-command.js +48 -0
- package/dist/node_modules/tar/dist/esm/mkdir.js +179 -0
- package/dist/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/dist/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/dist/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/dist/node_modules/tar/dist/esm/options.js +54 -0
- package/dist/node_modules/tar/dist/esm/pack.js +502 -0
- package/dist/node_modules/tar/dist/esm/package.json +3 -0
- package/dist/node_modules/tar/dist/esm/parse.js +651 -0
- package/dist/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/dist/node_modules/tar/dist/esm/pax.js +178 -0
- package/dist/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/dist/node_modules/tar/dist/esm/read-entry.js +132 -0
- package/dist/node_modules/tar/dist/esm/replace.js +221 -0
- package/dist/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/dist/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/dist/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/dist/node_modules/tar/dist/esm/types.js +65 -0
- package/dist/node_modules/tar/dist/esm/unpack.js +891 -0
- package/dist/node_modules/tar/dist/esm/update.js +30 -0
- package/dist/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/dist/node_modules/tar/dist/esm/winchars.js +9 -0
- package/dist/node_modules/tar/dist/esm/write-entry.js +656 -0
- package/dist/node_modules/tar/package.json +298 -0
- package/dist/node_modules/tinyglobby/LICENSE +21 -0
- package/dist/node_modules/tinyglobby/dist/index.cjs +335 -0
- package/dist/node_modules/tinyglobby/dist/index.d.cts +148 -0
- package/dist/node_modules/tinyglobby/dist/index.d.mts +148 -0
- package/dist/node_modules/tinyglobby/dist/index.mjs +307 -0
- package/dist/node_modules/tinyglobby/package.json +70 -0
- package/dist/node_modules/undici/LICENSE +21 -0
- package/dist/node_modules/undici/index-fetch.js +35 -0
- package/dist/node_modules/undici/index.js +169 -0
- package/dist/node_modules/undici/lib/api/abort-signal.js +57 -0
- package/dist/node_modules/undici/lib/api/api-connect.js +108 -0
- package/dist/node_modules/undici/lib/api/api-pipeline.js +251 -0
- package/dist/node_modules/undici/lib/api/api-request.js +214 -0
- package/dist/node_modules/undici/lib/api/api-stream.js +220 -0
- package/dist/node_modules/undici/lib/api/api-upgrade.js +108 -0
- package/dist/node_modules/undici/lib/api/index.js +7 -0
- package/dist/node_modules/undici/lib/api/readable.js +385 -0
- package/dist/node_modules/undici/lib/api/util.js +93 -0
- package/dist/node_modules/undici/lib/core/connect.js +240 -0
- package/dist/node_modules/undici/lib/core/constants.js +118 -0
- package/dist/node_modules/undici/lib/core/diagnostics.js +202 -0
- package/dist/node_modules/undici/lib/core/errors.js +425 -0
- package/dist/node_modules/undici/lib/core/request.js +405 -0
- package/dist/node_modules/undici/lib/core/symbols.js +67 -0
- package/dist/node_modules/undici/lib/core/tree.js +152 -0
- package/dist/node_modules/undici/lib/core/util.js +719 -0
- package/dist/node_modules/undici/lib/dispatcher/agent.js +129 -0
- package/dist/node_modules/undici/lib/dispatcher/balanced-pool.js +209 -0
- package/dist/node_modules/undici/lib/dispatcher/client-h1.js +1487 -0
- package/dist/node_modules/undici/lib/dispatcher/client-h2.js +744 -0
- package/dist/node_modules/undici/lib/dispatcher/client.js +623 -0
- package/dist/node_modules/undici/lib/dispatcher/dispatcher-base.js +199 -0
- package/dist/node_modules/undici/lib/dispatcher/dispatcher.js +65 -0
- package/dist/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +160 -0
- package/dist/node_modules/undici/lib/dispatcher/fixed-queue.js +117 -0
- package/dist/node_modules/undici/lib/dispatcher/pool-base.js +194 -0
- package/dist/node_modules/undici/lib/dispatcher/pool-stats.js +34 -0
- package/dist/node_modules/undici/lib/dispatcher/pool.js +107 -0
- package/dist/node_modules/undici/lib/dispatcher/proxy-agent.js +274 -0
- package/dist/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
- package/dist/node_modules/undici/lib/global.js +32 -0
- package/dist/node_modules/undici/lib/handler/decorator-handler.js +44 -0
- package/dist/node_modules/undici/lib/handler/redirect-handler.js +232 -0
- package/dist/node_modules/undici/lib/handler/retry-handler.js +374 -0
- package/dist/node_modules/undici/lib/interceptor/dns.js +375 -0
- package/dist/node_modules/undici/lib/interceptor/dump.js +123 -0
- package/dist/node_modules/undici/lib/interceptor/redirect-interceptor.js +21 -0
- package/dist/node_modules/undici/lib/interceptor/redirect.js +24 -0
- package/dist/node_modules/undici/lib/interceptor/response-error.js +86 -0
- package/dist/node_modules/undici/lib/interceptor/retry.js +19 -0
- package/dist/node_modules/undici/lib/llhttp/.gitkeep +0 -0
- package/dist/node_modules/undici/lib/llhttp/constants.js +278 -0
- package/dist/node_modules/undici/lib/llhttp/llhttp-wasm.js +5 -0
- package/dist/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +5 -0
- package/dist/node_modules/undici/lib/llhttp/utils.js +15 -0
- package/dist/node_modules/undici/lib/mock/mock-agent.js +160 -0
- package/dist/node_modules/undici/lib/mock/mock-client.js +59 -0
- package/dist/node_modules/undici/lib/mock/mock-errors.js +28 -0
- package/dist/node_modules/undici/lib/mock/mock-interceptor.js +207 -0
- package/dist/node_modules/undici/lib/mock/mock-pool.js +59 -0
- package/dist/node_modules/undici/lib/mock/mock-symbols.js +23 -0
- package/dist/node_modules/undici/lib/mock/mock-utils.js +367 -0
- package/dist/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
- package/dist/node_modules/undici/lib/mock/pluralizer.js +29 -0
- package/dist/node_modules/undici/lib/util/timers.js +423 -0
- package/dist/node_modules/undici/lib/web/cache/cache.js +859 -0
- package/dist/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
- package/dist/node_modules/undici/lib/web/cache/symbols.js +5 -0
- package/dist/node_modules/undici/lib/web/cache/util.js +45 -0
- package/dist/node_modules/undici/lib/web/cookies/constants.js +12 -0
- package/dist/node_modules/undici/lib/web/cookies/index.js +184 -0
- package/dist/node_modules/undici/lib/web/cookies/parse.js +310 -0
- package/dist/node_modules/undici/lib/web/cookies/util.js +282 -0
- package/dist/node_modules/undici/lib/web/eventsource/eventsource-stream.js +398 -0
- package/dist/node_modules/undici/lib/web/eventsource/eventsource.js +480 -0
- package/dist/node_modules/undici/lib/web/eventsource/util.js +37 -0
- package/dist/node_modules/undici/lib/web/fetch/LICENSE +21 -0
- package/dist/node_modules/undici/lib/web/fetch/body.js +529 -0
- package/dist/node_modules/undici/lib/web/fetch/constants.js +124 -0
- package/dist/node_modules/undici/lib/web/fetch/data-url.js +744 -0
- package/dist/node_modules/undici/lib/web/fetch/dispatcher-weakref.js +46 -0
- package/dist/node_modules/undici/lib/web/fetch/file.js +126 -0
- package/dist/node_modules/undici/lib/web/fetch/formdata-parser.js +474 -0
- package/dist/node_modules/undici/lib/web/fetch/formdata.js +252 -0
- package/dist/node_modules/undici/lib/web/fetch/global.js +40 -0
- package/dist/node_modules/undici/lib/web/fetch/headers.js +687 -0
- package/dist/node_modules/undici/lib/web/fetch/index.js +2272 -0
- package/dist/node_modules/undici/lib/web/fetch/request.js +1037 -0
- package/dist/node_modules/undici/lib/web/fetch/response.js +610 -0
- package/dist/node_modules/undici/lib/web/fetch/symbols.js +9 -0
- package/dist/node_modules/undici/lib/web/fetch/util.js +1632 -0
- package/dist/node_modules/undici/lib/web/fetch/webidl.js +695 -0
- package/dist/node_modules/undici/lib/web/fileapi/encoding.js +290 -0
- package/dist/node_modules/undici/lib/web/fileapi/filereader.js +344 -0
- package/dist/node_modules/undici/lib/web/fileapi/progressevent.js +78 -0
- package/dist/node_modules/undici/lib/web/fileapi/symbols.js +10 -0
- package/dist/node_modules/undici/lib/web/fileapi/util.js +391 -0
- package/dist/node_modules/undici/lib/web/websocket/connection.js +371 -0
- package/dist/node_modules/undici/lib/web/websocket/constants.js +66 -0
- package/dist/node_modules/undici/lib/web/websocket/events.js +329 -0
- package/dist/node_modules/undici/lib/web/websocket/frame.js +96 -0
- package/dist/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
- package/dist/node_modules/undici/lib/web/websocket/receiver.js +513 -0
- package/dist/node_modules/undici/lib/web/websocket/sender.js +104 -0
- package/dist/node_modules/undici/lib/web/websocket/symbols.js +12 -0
- package/dist/node_modules/undici/lib/web/websocket/util.js +322 -0
- package/dist/node_modules/undici/lib/web/websocket/websocket.js +595 -0
- package/dist/node_modules/undici/package.json +160 -0
- package/dist/node_modules/undici/scripts/strip-comments.js +8 -0
- package/{LICENSE → dist/node_modules/v8-compile-cache/LICENSE} +1 -2
- package/dist/node_modules/v8-compile-cache/package.json +34 -0
- package/dist/node_modules/v8-compile-cache/v8-compile-cache.js +373 -0
- package/dist/node_modules/which/LICENSE +15 -0
- package/dist/node_modules/which/bin/which.js +52 -0
- package/dist/node_modules/which/lib/index.js +111 -0
- package/dist/node_modules/which/package.json +52 -0
- package/dist/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/dist/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/dist/node_modules/yallist/dist/esm/index.js +379 -0
- package/dist/node_modules/yallist/dist/esm/package.json +3 -0
- package/dist/node_modules/yallist/package.json +68 -0
- package/dist/pnpm.mjs +311237 -0
- package/dist/pnpmrc +2 -0
- package/dist/templates/completion.bash +31 -0
- package/dist/templates/completion.fish +22 -0
- package/dist/templates/completion.ps1 +193 -0
- package/dist/templates/completion.zsh +27 -0
- package/dist/vendor/fastlist-0.3.0-x64.exe +0 -0
- package/dist/vendor/fastlist-0.3.0-x86.exe +0 -0
- package/dist/worker.js +11941 -0
- package/package.json +12 -12
- package/pn.cmd +2 -0
- package/pn.ps1 +1 -0
- package/pnpx.cmd +2 -0
- package/pnpx.ps1 +1 -0
- package/pnx.cmd +2 -0
- package/pnx.ps1 +1 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
const META = Symbol('proc-log.meta')
|
|
2
|
+
module.exports = {
|
|
3
|
+
META: META,
|
|
4
|
+
output: {
|
|
5
|
+
LEVELS: [
|
|
6
|
+
'standard',
|
|
7
|
+
'error',
|
|
8
|
+
'buffer',
|
|
9
|
+
'flush',
|
|
10
|
+
],
|
|
11
|
+
KEYS: {
|
|
12
|
+
standard: 'standard',
|
|
13
|
+
error: 'error',
|
|
14
|
+
buffer: 'buffer',
|
|
15
|
+
flush: 'flush',
|
|
16
|
+
},
|
|
17
|
+
standard: function (...args) {
|
|
18
|
+
return process.emit('output', 'standard', ...args)
|
|
19
|
+
},
|
|
20
|
+
error: function (...args) {
|
|
21
|
+
return process.emit('output', 'error', ...args)
|
|
22
|
+
},
|
|
23
|
+
buffer: function (...args) {
|
|
24
|
+
return process.emit('output', 'buffer', ...args)
|
|
25
|
+
},
|
|
26
|
+
flush: function (...args) {
|
|
27
|
+
return process.emit('output', 'flush', ...args)
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
log: {
|
|
31
|
+
LEVELS: [
|
|
32
|
+
'notice',
|
|
33
|
+
'error',
|
|
34
|
+
'warn',
|
|
35
|
+
'info',
|
|
36
|
+
'verbose',
|
|
37
|
+
'http',
|
|
38
|
+
'silly',
|
|
39
|
+
'timing',
|
|
40
|
+
'pause',
|
|
41
|
+
'resume',
|
|
42
|
+
],
|
|
43
|
+
KEYS: {
|
|
44
|
+
notice: 'notice',
|
|
45
|
+
error: 'error',
|
|
46
|
+
warn: 'warn',
|
|
47
|
+
info: 'info',
|
|
48
|
+
verbose: 'verbose',
|
|
49
|
+
http: 'http',
|
|
50
|
+
silly: 'silly',
|
|
51
|
+
timing: 'timing',
|
|
52
|
+
pause: 'pause',
|
|
53
|
+
resume: 'resume',
|
|
54
|
+
},
|
|
55
|
+
error: function (...args) {
|
|
56
|
+
return process.emit('log', 'error', ...args)
|
|
57
|
+
},
|
|
58
|
+
notice: function (...args) {
|
|
59
|
+
return process.emit('log', 'notice', ...args)
|
|
60
|
+
},
|
|
61
|
+
warn: function (...args) {
|
|
62
|
+
return process.emit('log', 'warn', ...args)
|
|
63
|
+
},
|
|
64
|
+
info: function (...args) {
|
|
65
|
+
return process.emit('log', 'info', ...args)
|
|
66
|
+
},
|
|
67
|
+
verbose: function (...args) {
|
|
68
|
+
return process.emit('log', 'verbose', ...args)
|
|
69
|
+
},
|
|
70
|
+
http: function (...args) {
|
|
71
|
+
return process.emit('log', 'http', ...args)
|
|
72
|
+
},
|
|
73
|
+
silly: function (...args) {
|
|
74
|
+
return process.emit('log', 'silly', ...args)
|
|
75
|
+
},
|
|
76
|
+
timing: function (...args) {
|
|
77
|
+
return process.emit('log', 'timing', ...args)
|
|
78
|
+
},
|
|
79
|
+
pause: function () {
|
|
80
|
+
return process.emit('log', 'pause')
|
|
81
|
+
},
|
|
82
|
+
resume: function () {
|
|
83
|
+
return process.emit('log', 'resume')
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
time: {
|
|
87
|
+
LEVELS: [
|
|
88
|
+
'start',
|
|
89
|
+
'end',
|
|
90
|
+
],
|
|
91
|
+
KEYS: {
|
|
92
|
+
start: 'start',
|
|
93
|
+
end: 'end',
|
|
94
|
+
},
|
|
95
|
+
start: function (name, fn) {
|
|
96
|
+
process.emit('time', 'start', name)
|
|
97
|
+
function end () {
|
|
98
|
+
return process.emit('time', 'end', name)
|
|
99
|
+
}
|
|
100
|
+
if (typeof fn === 'function') {
|
|
101
|
+
const res = fn()
|
|
102
|
+
if (res && res.finally) {
|
|
103
|
+
return res.finally(end)
|
|
104
|
+
}
|
|
105
|
+
end()
|
|
106
|
+
return res
|
|
107
|
+
}
|
|
108
|
+
return end
|
|
109
|
+
},
|
|
110
|
+
end: function (name) {
|
|
111
|
+
return process.emit('time', 'end', name)
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
input: {
|
|
115
|
+
LEVELS: [
|
|
116
|
+
'start',
|
|
117
|
+
'end',
|
|
118
|
+
'read',
|
|
119
|
+
],
|
|
120
|
+
KEYS: {
|
|
121
|
+
start: 'start',
|
|
122
|
+
end: 'end',
|
|
123
|
+
read: 'read',
|
|
124
|
+
},
|
|
125
|
+
start: function (...args) {
|
|
126
|
+
// Support callback for backwards compatibility and pass additional args to event
|
|
127
|
+
let fn
|
|
128
|
+
if (typeof args[0] === 'function') {
|
|
129
|
+
fn = args.shift()
|
|
130
|
+
}
|
|
131
|
+
process.emit('input', 'start', ...args)
|
|
132
|
+
function end () {
|
|
133
|
+
return process.emit('input', 'end', ...args)
|
|
134
|
+
}
|
|
135
|
+
if (typeof fn === 'function') {
|
|
136
|
+
const res = fn()
|
|
137
|
+
if (res && res.finally) {
|
|
138
|
+
return res.finally(end)
|
|
139
|
+
}
|
|
140
|
+
end()
|
|
141
|
+
return res
|
|
142
|
+
}
|
|
143
|
+
return end
|
|
144
|
+
},
|
|
145
|
+
end: function (...args) {
|
|
146
|
+
return process.emit('input', 'end', ...args)
|
|
147
|
+
},
|
|
148
|
+
read: function (...args) {
|
|
149
|
+
let resolve, reject
|
|
150
|
+
const promise = new Promise((_resolve, _reject) => {
|
|
151
|
+
resolve = _resolve
|
|
152
|
+
reject = _reject
|
|
153
|
+
})
|
|
154
|
+
process.emit('input', 'read', resolve, reject, ...args)
|
|
155
|
+
return promise
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "proc-log",
|
|
3
|
+
"version": "6.1.0",
|
|
4
|
+
"files": [
|
|
5
|
+
"bin/",
|
|
6
|
+
"lib/"
|
|
7
|
+
],
|
|
8
|
+
"main": "lib/index.js",
|
|
9
|
+
"description": "just emit 'log' events on the process object",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/npm/proc-log.git"
|
|
13
|
+
},
|
|
14
|
+
"author": "GitHub Inc.",
|
|
15
|
+
"license": "ISC",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "tap",
|
|
18
|
+
"snap": "tap",
|
|
19
|
+
"posttest": "npm run lint",
|
|
20
|
+
"postsnap": "eslint index.js test/*.js --fix",
|
|
21
|
+
"lint": "npm run eslint",
|
|
22
|
+
"postlint": "template-oss-check",
|
|
23
|
+
"lintfix": "npm run eslint -- --fix",
|
|
24
|
+
"template-oss-apply": "template-oss-apply --force",
|
|
25
|
+
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@npmcli/eslint-config": "^6.0.0",
|
|
29
|
+
"@npmcli/template-oss": "4.28.1",
|
|
30
|
+
"tap": "^16.0.1"
|
|
31
|
+
},
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": "^20.17.0 || >=22.9.0"
|
|
34
|
+
},
|
|
35
|
+
"templateOSS": {
|
|
36
|
+
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
37
|
+
"version": "4.28.1",
|
|
38
|
+
"publish": true
|
|
39
|
+
},
|
|
40
|
+
"tap": {
|
|
41
|
+
"nyc-arg": [
|
|
42
|
+
"--exclude",
|
|
43
|
+
"tap-snapshots/**"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
The ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
15
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Standalone semver comparison program.
|
|
3
|
+
// Exits successfully and prints matching version(s) if
|
|
4
|
+
// any supplied version is valid and passes all tests.
|
|
5
|
+
|
|
6
|
+
'use strict'
|
|
7
|
+
|
|
8
|
+
const argv = process.argv.slice(2)
|
|
9
|
+
|
|
10
|
+
let versions = []
|
|
11
|
+
|
|
12
|
+
const range = []
|
|
13
|
+
|
|
14
|
+
let inc = null
|
|
15
|
+
|
|
16
|
+
const version = require('../package.json').version
|
|
17
|
+
|
|
18
|
+
let loose = false
|
|
19
|
+
|
|
20
|
+
let includePrerelease = false
|
|
21
|
+
|
|
22
|
+
let coerce = false
|
|
23
|
+
|
|
24
|
+
let rtl = false
|
|
25
|
+
|
|
26
|
+
let identifier
|
|
27
|
+
|
|
28
|
+
let identifierBase
|
|
29
|
+
|
|
30
|
+
const semver = require('../')
|
|
31
|
+
const parseOptions = require('../internal/parse-options')
|
|
32
|
+
|
|
33
|
+
let reverse = false
|
|
34
|
+
|
|
35
|
+
let options = {}
|
|
36
|
+
|
|
37
|
+
const main = () => {
|
|
38
|
+
if (!argv.length) {
|
|
39
|
+
return help()
|
|
40
|
+
}
|
|
41
|
+
while (argv.length) {
|
|
42
|
+
let a = argv.shift()
|
|
43
|
+
const indexOfEqualSign = a.indexOf('=')
|
|
44
|
+
if (indexOfEqualSign !== -1) {
|
|
45
|
+
const value = a.slice(indexOfEqualSign + 1)
|
|
46
|
+
a = a.slice(0, indexOfEqualSign)
|
|
47
|
+
argv.unshift(value)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
switch (a) {
|
|
51
|
+
case '-rv': case '-rev': case '--rev': case '--reverse':
|
|
52
|
+
reverse = true
|
|
53
|
+
break
|
|
54
|
+
case '-l': case '--loose':
|
|
55
|
+
loose = true
|
|
56
|
+
break
|
|
57
|
+
case '-p': case '--include-prerelease':
|
|
58
|
+
includePrerelease = true
|
|
59
|
+
break
|
|
60
|
+
case '-v': case '--version':
|
|
61
|
+
versions.push(argv.shift())
|
|
62
|
+
break
|
|
63
|
+
case '-i': case '--inc': case '--increment':
|
|
64
|
+
if (semver.RELEASE_TYPES.includes(argv[0]) || (argv[0] === 'release')) {
|
|
65
|
+
inc = { value: argv.shift(), maybeErrantValue: null, option: a }
|
|
66
|
+
} else {
|
|
67
|
+
inc = { value: 'patch', maybeErrantValue: argv[0], option: a }
|
|
68
|
+
}
|
|
69
|
+
break
|
|
70
|
+
case '--preid':
|
|
71
|
+
identifier = argv.shift()
|
|
72
|
+
break
|
|
73
|
+
case '-r': case '--range':
|
|
74
|
+
range.push(argv.shift())
|
|
75
|
+
break
|
|
76
|
+
case '-n':
|
|
77
|
+
identifierBase = argv.shift()
|
|
78
|
+
if (identifierBase === 'false') {
|
|
79
|
+
identifierBase = false
|
|
80
|
+
}
|
|
81
|
+
break
|
|
82
|
+
case '-c': case '--coerce':
|
|
83
|
+
coerce = true
|
|
84
|
+
break
|
|
85
|
+
case '--rtl':
|
|
86
|
+
rtl = true
|
|
87
|
+
break
|
|
88
|
+
case '--ltr':
|
|
89
|
+
rtl = false
|
|
90
|
+
break
|
|
91
|
+
case '-h': case '--help': case '-?':
|
|
92
|
+
return help()
|
|
93
|
+
default:
|
|
94
|
+
versions.push(a)
|
|
95
|
+
break
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
options = parseOptions({ loose, includePrerelease, rtl })
|
|
100
|
+
|
|
101
|
+
if (
|
|
102
|
+
inc &&
|
|
103
|
+
versions.includes(inc.maybeErrantValue) &&
|
|
104
|
+
!semver.valid(inc.maybeErrantValue, options)
|
|
105
|
+
) {
|
|
106
|
+
console.warn(`Invalid value for ${inc.option}; defaulting to 'patch'. This may become a failure in future major versions.`)
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
versions = versions.map((v) => {
|
|
110
|
+
return coerce ? (semver.coerce(v, options) || { version: v }).version : v
|
|
111
|
+
}).filter((v) => {
|
|
112
|
+
return semver.valid(v, options)
|
|
113
|
+
})
|
|
114
|
+
if (!versions.length) {
|
|
115
|
+
return fail()
|
|
116
|
+
}
|
|
117
|
+
if (inc && (versions.length !== 1 || range.length)) {
|
|
118
|
+
return failInc()
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
for (let i = 0, l = range.length; i < l; i++) {
|
|
122
|
+
versions = versions.filter((v) => {
|
|
123
|
+
return semver.satisfies(v, range[i], options)
|
|
124
|
+
})
|
|
125
|
+
if (!versions.length) {
|
|
126
|
+
return fail()
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
versions
|
|
130
|
+
.sort((a, b) => semver[reverse ? 'rcompare' : 'compare'](a, b, options))
|
|
131
|
+
.map(v => semver.clean(v, options))
|
|
132
|
+
.map(v => inc ? semver.inc(v, inc.value, options, identifier, identifierBase) : v)
|
|
133
|
+
.forEach(v => console.log(v))
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
const failInc = () => {
|
|
137
|
+
console.error('--inc can only be used on a single version with no range')
|
|
138
|
+
fail()
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const fail = () => process.exit(1)
|
|
142
|
+
|
|
143
|
+
const help = () => console.log(
|
|
144
|
+
`SemVer ${version}
|
|
145
|
+
|
|
146
|
+
A JavaScript implementation of the https://semver.org/ specification
|
|
147
|
+
Copyright Isaac Z. Schlueter
|
|
148
|
+
|
|
149
|
+
Usage: semver [options] <version> [<version> [...]]
|
|
150
|
+
Prints valid versions sorted by SemVer precedence
|
|
151
|
+
|
|
152
|
+
Options:
|
|
153
|
+
-r --range <range>
|
|
154
|
+
Print versions that match the specified range.
|
|
155
|
+
|
|
156
|
+
-i --increment [<level>]
|
|
157
|
+
Increment a version by the specified level. Level can
|
|
158
|
+
be one of: major, minor, patch, premajor, preminor,
|
|
159
|
+
prepatch, prerelease, or release. Default level is 'patch'.
|
|
160
|
+
Only one version may be specified.
|
|
161
|
+
|
|
162
|
+
--preid <identifier>
|
|
163
|
+
Identifier to be used to prefix premajor, preminor,
|
|
164
|
+
prepatch or prerelease version increments.
|
|
165
|
+
|
|
166
|
+
-l --loose
|
|
167
|
+
Interpret versions and ranges loosely
|
|
168
|
+
|
|
169
|
+
-p --include-prerelease
|
|
170
|
+
Always include prerelease versions in range matching
|
|
171
|
+
|
|
172
|
+
-c --coerce
|
|
173
|
+
Coerce a string into SemVer if possible
|
|
174
|
+
(does not imply --loose)
|
|
175
|
+
|
|
176
|
+
--rtl
|
|
177
|
+
Coerce version strings right to left
|
|
178
|
+
|
|
179
|
+
--ltr
|
|
180
|
+
Coerce version strings left to right (default)
|
|
181
|
+
|
|
182
|
+
-n <base>
|
|
183
|
+
Base number to be used for the prerelease identifier.
|
|
184
|
+
Can be either 0 or 1, or false to omit the number altogether.
|
|
185
|
+
Defaults to 0.
|
|
186
|
+
|
|
187
|
+
Program exits successfully if any valid version satisfies
|
|
188
|
+
all supplied ranges, and prints all satisfying versions.
|
|
189
|
+
|
|
190
|
+
If no satisfying versions are found, then exits failure.
|
|
191
|
+
|
|
192
|
+
Versions are printed in ascending order, so supplying
|
|
193
|
+
multiple versions to the utility will just sort them.`)
|
|
194
|
+
|
|
195
|
+
main()
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const ANY = Symbol('SemVer ANY')
|
|
4
|
+
// hoisted class for cyclic dependency
|
|
5
|
+
class Comparator {
|
|
6
|
+
static get ANY () {
|
|
7
|
+
return ANY
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
constructor (comp, options) {
|
|
11
|
+
options = parseOptions(options)
|
|
12
|
+
|
|
13
|
+
if (comp instanceof Comparator) {
|
|
14
|
+
if (comp.loose === !!options.loose) {
|
|
15
|
+
return comp
|
|
16
|
+
} else {
|
|
17
|
+
comp = comp.value
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
comp = comp.trim().split(/\s+/).join(' ')
|
|
22
|
+
debug('comparator', comp, options)
|
|
23
|
+
this.options = options
|
|
24
|
+
this.loose = !!options.loose
|
|
25
|
+
this.parse(comp)
|
|
26
|
+
|
|
27
|
+
if (this.semver === ANY) {
|
|
28
|
+
this.value = ''
|
|
29
|
+
} else {
|
|
30
|
+
this.value = this.operator + this.semver.version
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
debug('comp', this)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
parse (comp) {
|
|
37
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
|
|
38
|
+
const m = comp.match(r)
|
|
39
|
+
|
|
40
|
+
if (!m) {
|
|
41
|
+
throw new TypeError(`Invalid comparator: ${comp}`)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
this.operator = m[1] !== undefined ? m[1] : ''
|
|
45
|
+
if (this.operator === '=') {
|
|
46
|
+
this.operator = ''
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// if it literally is just '>' or '' then allow anything.
|
|
50
|
+
if (!m[2]) {
|
|
51
|
+
this.semver = ANY
|
|
52
|
+
} else {
|
|
53
|
+
this.semver = new SemVer(m[2], this.options.loose)
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
toString () {
|
|
58
|
+
return this.value
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
test (version) {
|
|
62
|
+
debug('Comparator.test', version, this.options.loose)
|
|
63
|
+
|
|
64
|
+
if (this.semver === ANY || version === ANY) {
|
|
65
|
+
return true
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (typeof version === 'string') {
|
|
69
|
+
try {
|
|
70
|
+
version = new SemVer(version, this.options)
|
|
71
|
+
} catch (er) {
|
|
72
|
+
return false
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return cmp(version, this.operator, this.semver, this.options)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
intersects (comp, options) {
|
|
80
|
+
if (!(comp instanceof Comparator)) {
|
|
81
|
+
throw new TypeError('a Comparator is required')
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (this.operator === '') {
|
|
85
|
+
if (this.value === '') {
|
|
86
|
+
return true
|
|
87
|
+
}
|
|
88
|
+
return new Range(comp.value, options).test(this.value)
|
|
89
|
+
} else if (comp.operator === '') {
|
|
90
|
+
if (comp.value === '') {
|
|
91
|
+
return true
|
|
92
|
+
}
|
|
93
|
+
return new Range(this.value, options).test(comp.semver)
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
options = parseOptions(options)
|
|
97
|
+
|
|
98
|
+
// Special cases where nothing can possibly be lower
|
|
99
|
+
if (options.includePrerelease &&
|
|
100
|
+
(this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {
|
|
101
|
+
return false
|
|
102
|
+
}
|
|
103
|
+
if (!options.includePrerelease &&
|
|
104
|
+
(this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {
|
|
105
|
+
return false
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// Same direction increasing (> or >=)
|
|
109
|
+
if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {
|
|
110
|
+
return true
|
|
111
|
+
}
|
|
112
|
+
// Same direction decreasing (< or <=)
|
|
113
|
+
if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {
|
|
114
|
+
return true
|
|
115
|
+
}
|
|
116
|
+
// same SemVer and both sides are inclusive (<= or >=)
|
|
117
|
+
if (
|
|
118
|
+
(this.semver.version === comp.semver.version) &&
|
|
119
|
+
this.operator.includes('=') && comp.operator.includes('=')) {
|
|
120
|
+
return true
|
|
121
|
+
}
|
|
122
|
+
// opposite directions less than
|
|
123
|
+
if (cmp(this.semver, '<', comp.semver, options) &&
|
|
124
|
+
this.operator.startsWith('>') && comp.operator.startsWith('<')) {
|
|
125
|
+
return true
|
|
126
|
+
}
|
|
127
|
+
// opposite directions greater than
|
|
128
|
+
if (cmp(this.semver, '>', comp.semver, options) &&
|
|
129
|
+
this.operator.startsWith('<') && comp.operator.startsWith('>')) {
|
|
130
|
+
return true
|
|
131
|
+
}
|
|
132
|
+
return false
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
module.exports = Comparator
|
|
137
|
+
|
|
138
|
+
const parseOptions = require('../internal/parse-options')
|
|
139
|
+
const { safeRe: re, t } = require('../internal/re')
|
|
140
|
+
const cmp = require('../functions/cmp')
|
|
141
|
+
const debug = require('../internal/debug')
|
|
142
|
+
const SemVer = require('./semver')
|
|
143
|
+
const Range = require('./range')
|