@openardf/radio-oracle 1.0.4 → 1.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/jdeploy-bundle/Radio-Oracle-jdeploy.jar +0 -0
- package/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
- package/node_modules/@isaacs/fs-minipass/README.md +71 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +118 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +118 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/node_modules/@isaacs/fs-minipass/package.json +72 -0
- package/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/node_modules/balanced-match/LICENSE.md +21 -0
- package/node_modules/balanced-match/README.md +97 -0
- package/node_modules/balanced-match/index.js +62 -0
- package/node_modules/balanced-match/package.json +48 -0
- package/node_modules/brace-expansion/LICENSE +21 -0
- package/node_modules/brace-expansion/README.md +129 -0
- package/node_modules/brace-expansion/index.js +203 -0
- package/node_modules/brace-expansion/package.json +50 -0
- package/node_modules/chownr/LICENSE.md +63 -0
- package/node_modules/chownr/README.md +3 -0
- package/node_modules/chownr/dist/commonjs/index.d.ts +3 -0
- package/node_modules/chownr/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/node_modules/chownr/dist/commonjs/index.js.map +1 -0
- package/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/node_modules/chownr/dist/esm/index.d.ts +3 -0
- package/node_modules/chownr/dist/esm/index.d.ts.map +1 -0
- package/node_modules/chownr/dist/esm/index.js +85 -0
- package/node_modules/chownr/dist/esm/index.js.map +1 -0
- package/node_modules/chownr/dist/esm/package.json +3 -0
- package/node_modules/chownr/package.json +69 -0
- package/node_modules/concat-map/.travis.yml +4 -0
- package/node_modules/concat-map/LICENSE +18 -0
- package/node_modules/concat-map/README.markdown +62 -0
- package/node_modules/concat-map/example/map.js +6 -0
- package/node_modules/concat-map/index.js +13 -0
- package/node_modules/concat-map/package.json +43 -0
- package/node_modules/concat-map/test/map.js +39 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/fs.realpath/LICENSE +43 -0
- package/node_modules/fs.realpath/README.md +33 -0
- package/node_modules/fs.realpath/index.js +66 -0
- package/node_modules/fs.realpath/old.js +303 -0
- package/node_modules/fs.realpath/package.json +26 -0
- package/node_modules/function-bind/.eslintrc +21 -0
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +46 -0
- package/node_modules/function-bind/implementation.js +84 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +87 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -0
- package/node_modules/glob/LICENSE +21 -0
- package/node_modules/glob/README.md +378 -0
- package/node_modules/glob/common.js +238 -0
- package/node_modules/glob/glob.js +790 -0
- package/node_modules/glob/package.json +55 -0
- package/node_modules/glob/sync.js +486 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +58 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/eslint.config.mjs +6 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +91 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/inflight/LICENSE +15 -0
- package/node_modules/inflight/README.md +37 -0
- package/node_modules/inflight/inflight.js +54 -0
- package/node_modules/inflight/package.json +29 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/interpret/CHANGELOG +115 -0
- package/node_modules/interpret/LICENSE +22 -0
- package/node_modules/interpret/README.md +187 -0
- package/node_modules/interpret/index.js +168 -0
- package/node_modules/interpret/mjs-stub.js +1 -0
- package/node_modules/interpret/package.json +75 -0
- package/node_modules/is-core-module/.eslintrc +18 -0
- package/node_modules/is-core-module/.nycrc +9 -0
- package/node_modules/is-core-module/CHANGELOG.md +349 -0
- package/node_modules/is-core-module/LICENSE +20 -0
- package/node_modules/is-core-module/README.md +40 -0
- package/node_modules/is-core-module/core.json +162 -0
- package/node_modules/is-core-module/index.js +69 -0
- package/node_modules/is-core-module/package.json +76 -0
- package/node_modules/is-core-module/test/index.js +258 -0
- package/node_modules/minimatch/LICENSE +15 -0
- package/node_modules/minimatch/README.md +267 -0
- package/node_modules/minimatch/minimatch.js +1005 -0
- package/node_modules/minimatch/package.json +33 -0
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/README.md +825 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.d.ts +545 -0
- package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/esm/index.js +1020 -0
- package/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +77 -0
- package/node_modules/minizlib/LICENSE +26 -0
- package/node_modules/minizlib/README.md +64 -0
- package/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
- package/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
- package/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
- package/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
- package/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
- package/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
- package/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
- package/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/node_modules/minizlib/dist/esm/constants.js.map +1 -0
- package/node_modules/minizlib/dist/esm/index.d.ts +99 -0
- package/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minizlib/dist/esm/index.js +363 -0
- package/node_modules/minizlib/dist/esm/index.js.map +1 -0
- package/node_modules/minizlib/dist/esm/package.json +3 -0
- package/node_modules/minizlib/package.json +80 -0
- package/node_modules/node-fetch/LICENSE.md +22 -0
- package/node_modules/node-fetch/README.md +634 -0
- package/node_modules/node-fetch/browser.js +25 -0
- package/node_modules/node-fetch/lib/index.es.js +1777 -0
- package/node_modules/node-fetch/lib/index.js +1787 -0
- package/node_modules/node-fetch/lib/index.mjs +1775 -0
- package/node_modules/node-fetch/package.json +89 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +33 -0
- package/node_modules/path-is-absolute/index.js +20 -0
- package/node_modules/path-is-absolute/license +21 -0
- package/node_modules/path-is-absolute/package.json +43 -0
- package/node_modules/path-is-absolute/readme.md +59 -0
- package/node_modules/path-parse/LICENSE +21 -0
- package/node_modules/path-parse/README.md +42 -0
- package/node_modules/path-parse/index.js +75 -0
- package/node_modules/path-parse/package.json +33 -0
- package/node_modules/pend/LICENSE +23 -0
- package/node_modules/pend/README.md +41 -0
- package/node_modules/pend/index.js +55 -0
- package/node_modules/pend/package.json +18 -0
- package/node_modules/pend/test.js +137 -0
- package/node_modules/rechoir/.npmignore +1 -0
- package/node_modules/rechoir/.travis.yml +24 -0
- package/node_modules/rechoir/CHANGELOG +38 -0
- package/node_modules/rechoir/LICENSE +22 -0
- package/node_modules/rechoir/README.md +42 -0
- package/node_modules/rechoir/index.js +59 -0
- package/node_modules/rechoir/lib/extension.js +11 -0
- package/node_modules/rechoir/lib/normalize.js +15 -0
- package/node_modules/rechoir/lib/register.js +15 -0
- package/node_modules/rechoir/package.json +88 -0
- package/node_modules/resolve/.claude/notes.md +26 -0
- package/node_modules/resolve/.claude/settings.local.json +26 -0
- package/node_modules/resolve/.editorconfig +38 -0
- package/node_modules/resolve/.eslintrc +65 -0
- package/node_modules/resolve/.github/FUNDING.yml +12 -0
- package/node_modules/resolve/.github/INCIDENT_RESPONSE_PROCESS.md +119 -0
- package/node_modules/resolve/.github/THREAT_MODEL.md +74 -0
- package/node_modules/resolve/LICENSE +21 -0
- package/node_modules/resolve/SECURITY.md +13 -0
- package/node_modules/resolve/async.js +3 -0
- package/node_modules/resolve/bin/resolve +50 -0
- package/node_modules/resolve/eslint.config.mjs +80 -0
- package/node_modules/resolve/example/async.js +5 -0
- package/node_modules/resolve/example/sync.js +3 -0
- package/node_modules/resolve/index.js +6 -0
- package/node_modules/resolve/lib/async.js +336 -0
- package/node_modules/resolve/lib/caller.js +12 -0
- package/node_modules/resolve/lib/core.js +12 -0
- package/node_modules/resolve/lib/core.json +162 -0
- package/node_modules/resolve/lib/homedir.js +31 -0
- package/node_modules/resolve/lib/is-core.js +5 -0
- package/node_modules/resolve/lib/node-modules-paths.js +45 -0
- package/node_modules/resolve/lib/normalize-options.js +10 -0
- package/node_modules/resolve/lib/sync.js +216 -0
- package/node_modules/resolve/package.json +78 -0
- package/node_modules/resolve/readme.markdown +300 -0
- package/node_modules/resolve/sync.js +3 -0
- package/node_modules/resolve/test/core.js +88 -0
- package/node_modules/resolve/test/default_paths.js +49 -0
- package/node_modules/resolve/test/dotdot/abc/index.js +2 -0
- package/node_modules/resolve/test/dotdot/index.js +1 -0
- package/node_modules/resolve/test/dotdot.js +29 -0
- package/node_modules/resolve/test/faulty_basedir.js +29 -0
- package/node_modules/resolve/test/filter.js +34 -0
- package/node_modules/resolve/test/filter_sync.js +33 -0
- package/node_modules/resolve/test/home_paths.js +127 -0
- package/node_modules/resolve/test/home_paths_sync.js +114 -0
- package/node_modules/resolve/test/homedir.js +112 -0
- package/node_modules/resolve/test/mock.js +353 -0
- package/node_modules/resolve/test/mock_sync.js +234 -0
- package/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
- package/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
- package/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
- package/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
- package/node_modules/resolve/test/module_dir.js +56 -0
- package/node_modules/resolve/test/node-modules-paths.js +143 -0
- package/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
- package/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
- package/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
- package/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
- package/node_modules/resolve/test/node_path.js +70 -0
- package/node_modules/resolve/test/nonstring.js +9 -0
- package/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
- package/node_modules/resolve/test/pathfilter.js +75 -0
- package/node_modules/resolve/test/pathfilter_sync.js +24 -0
- package/node_modules/resolve/test/precedence/aaa/index.js +1 -0
- package/node_modules/resolve/test/precedence/aaa/main.js +1 -0
- package/node_modules/resolve/test/precedence/aaa.js +1 -0
- package/node_modules/resolve/test/precedence/bbb/main.js +1 -0
- package/node_modules/resolve/test/precedence/bbb.js +1 -0
- package/node_modules/resolve/test/precedence.js +23 -0
- package/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- package/node_modules/resolve/test/resolver/baz/package.json +4 -0
- package/node_modules/resolve/test/resolver/baz/quux.js +1 -0
- package/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
- package/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
- package/node_modules/resolve/test/resolver/browser_field/package.json +5 -0
- package/node_modules/resolve/test/resolver/cup.coffee +1 -0
- package/node_modules/resolve/test/resolver/dot_main/index.js +1 -0
- package/node_modules/resolve/test/resolver/dot_main/package.json +3 -0
- package/node_modules/resolve/test/resolver/dot_slash_main/index.js +1 -0
- package/node_modules/resolve/test/resolver/dot_slash_main/package.json +3 -0
- package/node_modules/resolve/test/resolver/false_main/index.js +0 -0
- package/node_modules/resolve/test/resolver/false_main/package.json +4 -0
- package/node_modules/resolve/test/resolver/foo.js +1 -0
- package/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
- package/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
- package/node_modules/resolve/test/resolver/invalid_main/package.json +7 -0
- package/node_modules/resolve/test/resolver/mug.coffee +0 -0
- package/node_modules/resolve/test/resolver/mug.js +0 -0
- package/node_modules/resolve/test/resolver/multirepo/lerna.json +6 -0
- package/node_modules/resolve/test/resolver/multirepo/package.json +20 -0
- package/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +35 -0
- package/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +14 -0
- package/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
- package/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +14 -0
- package/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +26 -0
- package/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +15 -0
- package/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +12 -0
- package/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- package/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- package/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
- package/node_modules/resolve/test/resolver/same_names/foo/index.js +1 -0
- package/node_modules/resolve/test/resolver/same_names/foo.js +1 -0
- package/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
- package/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
- package/node_modules/resolve/test/resolver/symlinked/package/bar.js +1 -0
- package/node_modules/resolve/test/resolver/symlinked/package/package.json +3 -0
- package/node_modules/resolve/test/resolver/without_basedir/main.js +5 -0
- package/node_modules/resolve/test/resolver.js +597 -0
- package/node_modules/resolve/test/resolver_sync.js +730 -0
- package/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
- package/node_modules/resolve/test/shadowed_core.js +54 -0
- package/node_modules/resolve/test/subdirs.js +13 -0
- package/node_modules/resolve/test/symlinks.js +176 -0
- package/node_modules/shelljs/CHANGELOG.md +942 -0
- package/node_modules/shelljs/LICENSE +26 -0
- package/node_modules/shelljs/README.md +835 -0
- package/node_modules/shelljs/bin/shjs +48 -0
- package/node_modules/shelljs/commands.js +29 -0
- package/node_modules/shelljs/global.js +12 -0
- package/node_modules/shelljs/make.js +57 -0
- package/node_modules/shelljs/package.json +79 -0
- package/node_modules/shelljs/plugin.js +16 -0
- package/node_modules/shelljs/shell.js +156 -0
- package/node_modules/shelljs/src/cat.js +76 -0
- package/node_modules/shelljs/src/cd.js +39 -0
- package/node_modules/shelljs/src/chmod.js +216 -0
- package/node_modules/shelljs/src/common.js +468 -0
- package/node_modules/shelljs/src/cp.js +304 -0
- package/node_modules/shelljs/src/dirs.js +212 -0
- package/node_modules/shelljs/src/echo.js +63 -0
- package/node_modules/shelljs/src/error.js +15 -0
- package/node_modules/shelljs/src/exec-child.js +39 -0
- package/node_modules/shelljs/src/exec.js +226 -0
- package/node_modules/shelljs/src/find.js +61 -0
- package/node_modules/shelljs/src/grep.js +73 -0
- package/node_modules/shelljs/src/head.js +107 -0
- package/node_modules/shelljs/src/ln.js +73 -0
- package/node_modules/shelljs/src/ls.js +141 -0
- package/node_modules/shelljs/src/mkdir.js +100 -0
- package/node_modules/shelljs/src/mv.js +118 -0
- package/node_modules/shelljs/src/popd.js +1 -0
- package/node_modules/shelljs/src/pushd.js +1 -0
- package/node_modules/shelljs/src/pwd.js +16 -0
- package/node_modules/shelljs/src/rm.js +201 -0
- package/node_modules/shelljs/src/sed.js +87 -0
- package/node_modules/shelljs/src/set.js +56 -0
- package/node_modules/shelljs/src/sort.js +97 -0
- package/node_modules/shelljs/src/tail.js +80 -0
- package/node_modules/shelljs/src/tempdir.js +75 -0
- package/node_modules/shelljs/src/test.js +85 -0
- package/node_modules/shelljs/src/to.js +37 -0
- package/node_modules/shelljs/src/toEnd.js +36 -0
- package/node_modules/shelljs/src/touch.js +111 -0
- package/node_modules/shelljs/src/uniq.js +92 -0
- package/node_modules/shelljs/src/which.js +118 -0
- package/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
- package/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
- package/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
- package/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
- package/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
- package/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
- package/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
- package/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
- package/node_modules/supports-preserve-symlinks-flag/package.json +70 -0
- package/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
- package/node_modules/tar/LICENSE.md +55 -0
- package/node_modules/tar/README.md +1224 -0
- package/node_modules/tar/dist/commonjs/create.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/create.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/create.js +82 -0
- package/node_modules/tar/dist/commonjs/create.js.map +1 -0
- package/node_modules/tar/dist/commonjs/cwd-error.d.ts +8 -0
- package/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/node_modules/tar/dist/commonjs/cwd-error.js.map +1 -0
- package/node_modules/tar/dist/commonjs/extract.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/extract.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/node_modules/tar/dist/commonjs/extract.js.map +1 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.js.map +1 -0
- package/node_modules/tar/dist/commonjs/header.d.ts +53 -0
- package/node_modules/tar/dist/commonjs/header.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/header.js +312 -0
- package/node_modules/tar/dist/commonjs/header.js.map +1 -0
- package/node_modules/tar/dist/commonjs/index.d.ts +20 -0
- package/node_modules/tar/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/index.js +64 -0
- package/node_modules/tar/dist/commonjs/index.js.map +1 -0
- package/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/node_modules/tar/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/tar/dist/commonjs/large-numbers.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/node_modules/tar/dist/commonjs/large-numbers.js.map +1 -0
- package/node_modules/tar/dist/commonjs/list.d.ts +7 -0
- package/node_modules/tar/dist/commonjs/list.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/list.js +145 -0
- package/node_modules/tar/dist/commonjs/list.js.map +1 -0
- package/node_modules/tar/dist/commonjs/make-command.d.ts +49 -0
- package/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/make-command.js +52 -0
- package/node_modules/tar/dist/commonjs/make-command.js.map +1 -0
- package/node_modules/tar/dist/commonjs/mkdir.d.ts +25 -0
- package/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/mkdir.js +187 -0
- package/node_modules/tar/dist/commonjs/mkdir.js.map +1 -0
- package/node_modules/tar/dist/commonjs/mode-fix.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/node_modules/tar/dist/commonjs/mode-fix.js.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.js.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +1 -0
- package/node_modules/tar/dist/commonjs/options.d.ts +596 -0
- package/node_modules/tar/dist/commonjs/options.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/options.js +66 -0
- package/node_modules/tar/dist/commonjs/options.js.map +1 -0
- package/node_modules/tar/dist/commonjs/pack.d.ts +105 -0
- package/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/pack.js +545 -0
- package/node_modules/tar/dist/commonjs/pack.js.map +1 -0
- package/node_modules/tar/dist/commonjs/package.json +3 -0
- package/node_modules/tar/dist/commonjs/parse.d.ts +85 -0
- package/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/parse.js +610 -0
- package/node_modules/tar/dist/commonjs/parse.js.map +1 -0
- package/node_modules/tar/dist/commonjs/path-reservations.d.ts +11 -0
- package/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/node_modules/tar/dist/commonjs/path-reservations.js.map +1 -0
- package/node_modules/tar/dist/commonjs/pax.d.ts +26 -0
- package/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/pax.js +158 -0
- package/node_modules/tar/dist/commonjs/pax.js.map +1 -0
- package/node_modules/tar/dist/commonjs/process-umask.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/process-umask.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/node_modules/tar/dist/commonjs/process-umask.js.map +1 -0
- package/node_modules/tar/dist/commonjs/read-entry.d.ts +36 -0
- package/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/read-entry.js +136 -0
- package/node_modules/tar/dist/commonjs/read-entry.js.map +1 -0
- package/node_modules/tar/dist/commonjs/replace.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/replace.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/replace.js +227 -0
- package/node_modules/tar/dist/commonjs/replace.js.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +1 -0
- package/node_modules/tar/dist/commonjs/symlink-error.d.ts +9 -0
- package/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/node_modules/tar/dist/commonjs/symlink-error.js.map +1 -0
- package/node_modules/tar/dist/commonjs/types.d.ts +7 -0
- package/node_modules/tar/dist/commonjs/types.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/types.js +50 -0
- package/node_modules/tar/dist/commonjs/types.js.map +1 -0
- package/node_modules/tar/dist/commonjs/unpack.d.ts +101 -0
- package/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/unpack.js +932 -0
- package/node_modules/tar/dist/commonjs/unpack.js.map +1 -0
- package/node_modules/tar/dist/commonjs/update.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/update.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/update.js +33 -0
- package/node_modules/tar/dist/commonjs/update.js.map +1 -0
- package/node_modules/tar/dist/commonjs/warn-method.d.ts +24 -0
- package/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/node_modules/tar/dist/commonjs/warn-method.js.map +1 -0
- package/node_modules/tar/dist/commonjs/winchars.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/node_modules/tar/dist/commonjs/winchars.js.map +1 -0
- package/node_modules/tar/dist/commonjs/write-entry.d.ts +129 -0
- package/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/write-entry.js +698 -0
- package/node_modules/tar/dist/commonjs/write-entry.js.map +1 -0
- package/node_modules/tar/dist/esm/create.d.ts +3 -0
- package/node_modules/tar/dist/esm/create.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/create.js +76 -0
- package/node_modules/tar/dist/esm/create.js.map +1 -0
- package/node_modules/tar/dist/esm/cwd-error.d.ts +8 -0
- package/node_modules/tar/dist/esm/cwd-error.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/node_modules/tar/dist/esm/cwd-error.js.map +1 -0
- package/node_modules/tar/dist/esm/extract.d.ts +3 -0
- package/node_modules/tar/dist/esm/extract.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/extract.js +49 -0
- package/node_modules/tar/dist/esm/extract.js.map +1 -0
- package/node_modules/tar/dist/esm/get-write-flag.d.ts +2 -0
- package/node_modules/tar/dist/esm/get-write-flag.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/get-write-flag.js +26 -0
- package/node_modules/tar/dist/esm/get-write-flag.js.map +1 -0
- package/node_modules/tar/dist/esm/header.d.ts +53 -0
- package/node_modules/tar/dist/esm/header.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/header.js +275 -0
- package/node_modules/tar/dist/esm/header.js.map +1 -0
- package/node_modules/tar/dist/esm/index.d.ts +20 -0
- package/node_modules/tar/dist/esm/index.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/index.js +20 -0
- package/node_modules/tar/dist/esm/index.js.map +1 -0
- package/node_modules/tar/dist/esm/index.min.js +4 -0
- package/node_modules/tar/dist/esm/index.min.js.map +7 -0
- package/node_modules/tar/dist/esm/large-numbers.d.ts +3 -0
- package/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/node_modules/tar/dist/esm/large-numbers.js.map +1 -0
- package/node_modules/tar/dist/esm/list.d.ts +7 -0
- package/node_modules/tar/dist/esm/list.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/list.js +105 -0
- package/node_modules/tar/dist/esm/list.js.map +1 -0
- package/node_modules/tar/dist/esm/make-command.d.ts +49 -0
- package/node_modules/tar/dist/esm/make-command.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/make-command.js +48 -0
- package/node_modules/tar/dist/esm/make-command.js.map +1 -0
- package/node_modules/tar/dist/esm/mkdir.d.ts +25 -0
- package/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/mkdir.js +179 -0
- package/node_modules/tar/dist/esm/mkdir.js.map +1 -0
- package/node_modules/tar/dist/esm/mode-fix.d.ts +2 -0
- package/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/node_modules/tar/dist/esm/mode-fix.js.map +1 -0
- package/node_modules/tar/dist/esm/normalize-unicode.d.ts +2 -0
- package/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/node_modules/tar/dist/esm/normalize-unicode.js.map +1 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +2 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.js.map +1 -0
- package/node_modules/tar/dist/esm/options.d.ts +596 -0
- package/node_modules/tar/dist/esm/options.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/options.js +54 -0
- package/node_modules/tar/dist/esm/options.js.map +1 -0
- package/node_modules/tar/dist/esm/pack.d.ts +105 -0
- package/node_modules/tar/dist/esm/pack.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/pack.js +503 -0
- package/node_modules/tar/dist/esm/pack.js.map +1 -0
- package/node_modules/tar/dist/esm/package.json +3 -0
- package/node_modules/tar/dist/esm/parse.d.ts +85 -0
- package/node_modules/tar/dist/esm/parse.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/parse.js +606 -0
- package/node_modules/tar/dist/esm/parse.js.map +1 -0
- package/node_modules/tar/dist/esm/path-reservations.d.ts +11 -0
- package/node_modules/tar/dist/esm/path-reservations.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/node_modules/tar/dist/esm/path-reservations.js.map +1 -0
- package/node_modules/tar/dist/esm/pax.d.ts +26 -0
- package/node_modules/tar/dist/esm/pax.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/pax.js +154 -0
- package/node_modules/tar/dist/esm/pax.js.map +1 -0
- package/node_modules/tar/dist/esm/process-umask.d.ts +2 -0
- package/node_modules/tar/dist/esm/process-umask.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/node_modules/tar/dist/esm/process-umask.js.map +1 -0
- package/node_modules/tar/dist/esm/read-entry.d.ts +36 -0
- package/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/read-entry.js +132 -0
- package/node_modules/tar/dist/esm/read-entry.js.map +1 -0
- package/node_modules/tar/dist/esm/replace.d.ts +2 -0
- package/node_modules/tar/dist/esm/replace.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/replace.js +221 -0
- package/node_modules/tar/dist/esm/replace.js.map +1 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +2 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +2 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +1 -0
- package/node_modules/tar/dist/esm/symlink-error.d.ts +9 -0
- package/node_modules/tar/dist/esm/symlink-error.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/node_modules/tar/dist/esm/symlink-error.js.map +1 -0
- package/node_modules/tar/dist/esm/types.d.ts +7 -0
- package/node_modules/tar/dist/esm/types.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/types.js +45 -0
- package/node_modules/tar/dist/esm/types.js.map +1 -0
- package/node_modules/tar/dist/esm/unpack.d.ts +101 -0
- package/node_modules/tar/dist/esm/unpack.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/unpack.js +891 -0
- package/node_modules/tar/dist/esm/unpack.js.map +1 -0
- package/node_modules/tar/dist/esm/update.d.ts +2 -0
- package/node_modules/tar/dist/esm/update.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/update.js +30 -0
- package/node_modules/tar/dist/esm/update.js.map +1 -0
- package/node_modules/tar/dist/esm/warn-method.d.ts +24 -0
- package/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/node_modules/tar/dist/esm/warn-method.js.map +1 -0
- package/node_modules/tar/dist/esm/winchars.d.ts +3 -0
- package/node_modules/tar/dist/esm/winchars.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/winchars.js +9 -0
- package/node_modules/tar/dist/esm/winchars.js.map +1 -0
- package/node_modules/tar/dist/esm/write-entry.d.ts +129 -0
- package/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/write-entry.js +656 -0
- package/node_modules/tar/dist/esm/write-entry.js.map +1 -0
- package/node_modules/tar/package.json +297 -0
- package/node_modules/tr46/.npmignore +4 -0
- package/node_modules/tr46/index.js +193 -0
- package/node_modules/tr46/lib/.gitkeep +0 -0
- package/node_modules/tr46/lib/mappingTable.json +1 -0
- package/node_modules/tr46/package.json +31 -0
- package/node_modules/webidl-conversions/LICENSE.md +12 -0
- package/node_modules/webidl-conversions/README.md +53 -0
- package/node_modules/webidl-conversions/lib/index.js +189 -0
- package/node_modules/webidl-conversions/package.json +23 -0
- package/node_modules/whatwg-url/LICENSE.txt +21 -0
- package/node_modules/whatwg-url/README.md +67 -0
- package/node_modules/whatwg-url/lib/URL-impl.js +200 -0
- package/node_modules/whatwg-url/lib/URL.js +196 -0
- package/node_modules/whatwg-url/lib/public-api.js +11 -0
- package/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
- package/node_modules/whatwg-url/lib/utils.js +20 -0
- package/node_modules/whatwg-url/package.json +32 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +29 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/yallist/LICENSE.md +63 -0
- package/node_modules/yallist/README.md +205 -0
- package/node_modules/yallist/dist/commonjs/index.d.ts +39 -0
- package/node_modules/yallist/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/node_modules/yallist/dist/commonjs/index.js.map +1 -0
- package/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/node_modules/yallist/dist/esm/index.d.ts +39 -0
- package/node_modules/yallist/dist/esm/index.d.ts.map +1 -0
- package/node_modules/yallist/dist/esm/index.js +379 -0
- package/node_modules/yallist/dist/esm/index.js.map +1 -0
- package/node_modules/yallist/dist/esm/package.json +3 -0
- package/node_modules/yallist/package.json +68 -0
- package/node_modules/yauzl/LICENSE +21 -0
- package/node_modules/yauzl/README.md +871 -0
- package/node_modules/yauzl/crc32.js +45 -0
- package/node_modules/yauzl/fd-slicer.js +188 -0
- package/node_modules/yauzl/index.js +970 -0
- package/node_modules/yauzl/package.json +40 -0
- package/package.json +7 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "is-core-module",
|
|
3
|
+
"version": "2.16.2",
|
|
4
|
+
"description": "Is this specifier a node.js core module?",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./index.js",
|
|
9
|
+
"./package.json": "./package.json"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
13
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
14
|
+
"prepublishOnly": "safe-publish-latest",
|
|
15
|
+
"lint": "eslint .",
|
|
16
|
+
"pretest": "npm run lint",
|
|
17
|
+
"tests-only": "nyc tape 'test/**/*.js'",
|
|
18
|
+
"test": "npm run tests-only",
|
|
19
|
+
"posttest": "npx npm@'>=10.2' audit --production",
|
|
20
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
21
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/inspect-js/is-core-module.git"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"core",
|
|
29
|
+
"modules",
|
|
30
|
+
"module",
|
|
31
|
+
"npm",
|
|
32
|
+
"node",
|
|
33
|
+
"dependencies"
|
|
34
|
+
],
|
|
35
|
+
"author": "Jordan Harband <ljharb@gmail.com>",
|
|
36
|
+
"funding": {
|
|
37
|
+
"url": "https://github.com/sponsors/ljharb"
|
|
38
|
+
},
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/inspect-js/is-core-module/issues"
|
|
42
|
+
},
|
|
43
|
+
"homepage": "https://github.com/inspect-js/is-core-module",
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"hasown": "^2.0.3"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@ljharb/eslint-config": "^22.2.3",
|
|
49
|
+
"auto-changelog": "^2.5.0",
|
|
50
|
+
"encoding": "^0.1.13",
|
|
51
|
+
"eslint": "^8.57.1",
|
|
52
|
+
"in-publish": "^2.0.1",
|
|
53
|
+
"mock-property": "^1.1.0",
|
|
54
|
+
"npmignore": "^0.3.5",
|
|
55
|
+
"nyc": "^10.3.2",
|
|
56
|
+
"safe-publish-latest": "^2.0.0",
|
|
57
|
+
"semver": "^6.3.1",
|
|
58
|
+
"tape": "^5.9.0"
|
|
59
|
+
},
|
|
60
|
+
"auto-changelog": {
|
|
61
|
+
"output": "CHANGELOG.md",
|
|
62
|
+
"template": "keepachangelog",
|
|
63
|
+
"unreleased": false,
|
|
64
|
+
"commitLimit": false,
|
|
65
|
+
"backfillLimit": false,
|
|
66
|
+
"hideCredit": true
|
|
67
|
+
},
|
|
68
|
+
"publishConfig": {
|
|
69
|
+
"ignore": [
|
|
70
|
+
".github"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"engines": {
|
|
74
|
+
"node": ">= 0.4"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
var keys = require('object-keys');
|
|
5
|
+
var semver = require('semver');
|
|
6
|
+
var mockProperty = require('mock-property');
|
|
7
|
+
|
|
8
|
+
var isCore = require('../');
|
|
9
|
+
var data = require('../core.json');
|
|
10
|
+
|
|
11
|
+
var supportsNodePrefix = semver.satisfies(process.versions.node, '^14.18 || >= 16', { includePrerelease: true });
|
|
12
|
+
|
|
13
|
+
test('core modules', function (t) {
|
|
14
|
+
t.test('isCore()', function (st) {
|
|
15
|
+
st.ok(isCore('fs'));
|
|
16
|
+
st.ok(isCore('net'));
|
|
17
|
+
st.ok(isCore('http'));
|
|
18
|
+
|
|
19
|
+
st.ok(!isCore('seq'));
|
|
20
|
+
st.ok(!isCore('../'));
|
|
21
|
+
|
|
22
|
+
st.ok(!isCore('toString'));
|
|
23
|
+
|
|
24
|
+
st.end();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
t.test('core list', function (st) {
|
|
28
|
+
var cores = keys(data);
|
|
29
|
+
st.plan(cores.length);
|
|
30
|
+
|
|
31
|
+
for (var i = 0; i < cores.length; ++i) {
|
|
32
|
+
var mod = cores[i];
|
|
33
|
+
var requireFunc = function () { require(mod); }; // eslint-disable-line no-loop-func
|
|
34
|
+
if (isCore(mod)) {
|
|
35
|
+
st.doesNotThrow(requireFunc, mod + ' supported; requiring does not throw');
|
|
36
|
+
} else {
|
|
37
|
+
st['throws'](requireFunc, mod + ' not supported; requiring throws');
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
st.end();
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
t.test('core via repl module', { skip: !data.repl }, function (st) {
|
|
45
|
+
var libs = require('repl')._builtinLibs; // eslint-disable-line no-underscore-dangle
|
|
46
|
+
if (!libs) {
|
|
47
|
+
st.skip('repl._builtinLibs does not exist');
|
|
48
|
+
} else {
|
|
49
|
+
for (var i = 0; i < libs.length; ++i) {
|
|
50
|
+
var mod = libs[i];
|
|
51
|
+
st.ok(data[mod], mod + ' is a core module');
|
|
52
|
+
st.doesNotThrow(
|
|
53
|
+
function () { require(mod); }, // eslint-disable-line no-loop-func
|
|
54
|
+
'requiring ' + mod + ' does not throw'
|
|
55
|
+
);
|
|
56
|
+
if (mod.slice(0, 5) !== 'node:') {
|
|
57
|
+
if (supportsNodePrefix) {
|
|
58
|
+
st.doesNotThrow(
|
|
59
|
+
function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
|
|
60
|
+
'requiring node:' + mod + ' does not throw'
|
|
61
|
+
);
|
|
62
|
+
} else {
|
|
63
|
+
st['throws'](
|
|
64
|
+
function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
|
|
65
|
+
'requiring node:' + mod + ' throws'
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
st.end();
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
t.test('core via builtinModules list', { skip: !data.module }, function (st) {
|
|
75
|
+
var Module = require('module');
|
|
76
|
+
var libs = Module.builtinModules;
|
|
77
|
+
if (!libs) {
|
|
78
|
+
st.skip('module.builtinModules does not exist');
|
|
79
|
+
} else {
|
|
80
|
+
var excludeList = [
|
|
81
|
+
'_debug_agent',
|
|
82
|
+
'v8/tools/tickprocessor-driver',
|
|
83
|
+
'v8/tools/SourceMap',
|
|
84
|
+
'v8/tools/tickprocessor',
|
|
85
|
+
'v8/tools/profile'
|
|
86
|
+
];
|
|
87
|
+
|
|
88
|
+
// see https://github.com/nodejs/node/issues/42785
|
|
89
|
+
if (semver.satisfies(process.version, '>= 18')) {
|
|
90
|
+
libs = libs.concat('node:test');
|
|
91
|
+
}
|
|
92
|
+
if (semver.satisfies(process.version, '^20.12 || >= 21.7')) {
|
|
93
|
+
libs = libs.concat('node:sea');
|
|
94
|
+
}
|
|
95
|
+
if (semver.satisfies(process.version, '>= 23.4')) {
|
|
96
|
+
libs = libs.concat('node:sqlite');
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
for (var i = 0; i < libs.length; ++i) {
|
|
100
|
+
var mod = libs[i];
|
|
101
|
+
if (excludeList.indexOf(mod) === -1) {
|
|
102
|
+
st.ok(data[mod], mod + ' is a core module');
|
|
103
|
+
|
|
104
|
+
if (Module.isBuiltin) {
|
|
105
|
+
st.ok(Module.isBuiltin(mod), 'module.isBuiltin(' + mod + ') is true');
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
st.doesNotThrow(
|
|
109
|
+
function () { require(mod); }, // eslint-disable-line no-loop-func
|
|
110
|
+
'requiring ' + mod + ' does not throw'
|
|
111
|
+
);
|
|
112
|
+
|
|
113
|
+
if (process.getBuiltinModule) {
|
|
114
|
+
st.equal(
|
|
115
|
+
process.getBuiltinModule(mod),
|
|
116
|
+
require(mod),
|
|
117
|
+
'process.getBuiltinModule(' + mod + ') === require(' + mod + ')'
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (mod.slice(0, 5) !== 'node:') {
|
|
122
|
+
if (supportsNodePrefix) {
|
|
123
|
+
st.doesNotThrow(
|
|
124
|
+
function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
|
|
125
|
+
'requiring node:' + mod + ' does not throw'
|
|
126
|
+
);
|
|
127
|
+
} else {
|
|
128
|
+
st['throws'](
|
|
129
|
+
function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
|
|
130
|
+
'requiring node:' + mod + ' throws'
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
st.end();
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
t.test('isCore with explicit nodeVersion', function (st) {
|
|
142
|
+
st.ok(isCore('async_hooks', '8.0.0'), 'async_hooks is core in 8.0.0 (exact match on >= specifier)');
|
|
143
|
+
st.ok(isCore('buffer_ieee754', '0.5.0'), 'buffer_ieee754 is core in 0.5.0');
|
|
144
|
+
st.ok(!isCore('buffer_ieee754', '0.9.7'), 'buffer_ieee754 is not core in 0.9.7');
|
|
145
|
+
st.ok(!isCore('buffer_ieee754', '1.0.0'), 'buffer_ieee754 is not core in 1.0.0');
|
|
146
|
+
st.ok(isCore('buffer_ieee754', '0.8.0'), 'buffer_ieee754 is core in 0.8.0');
|
|
147
|
+
|
|
148
|
+
st['throws'](
|
|
149
|
+
function () { isCore('async_hooks', null); },
|
|
150
|
+
TypeError,
|
|
151
|
+
'isCore with non-string non-undefined nodeVersion throws TypeError'
|
|
152
|
+
);
|
|
153
|
+
st['throws'](
|
|
154
|
+
function () { isCore('async_hooks', 123); },
|
|
155
|
+
TypeError,
|
|
156
|
+
'isCore with numeric nodeVersion throws TypeError'
|
|
157
|
+
);
|
|
158
|
+
|
|
159
|
+
st.end();
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
t.test('isCore with non-boolean specifier and invalid nodeVersion', function (st) {
|
|
163
|
+
st['throws'](
|
|
164
|
+
function () { isCore('async_hooks', null); },
|
|
165
|
+
TypeError,
|
|
166
|
+
'isCore with null nodeVersion on non-boolean module throws TypeError'
|
|
167
|
+
);
|
|
168
|
+
st['throws'](
|
|
169
|
+
function () { isCore('async_hooks', 123); },
|
|
170
|
+
TypeError,
|
|
171
|
+
'isCore with numeric nodeVersion on non-boolean module throws TypeError'
|
|
172
|
+
);
|
|
173
|
+
|
|
174
|
+
st.end();
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
t.test('isCore with undefined nodeVersion and non-string process.versions.node', function (st) {
|
|
178
|
+
st.teardown(mockProperty(process, 'versions', { value: { node: null } }));
|
|
179
|
+
|
|
180
|
+
st['throws'](
|
|
181
|
+
function () { isCore('async_hooks'); },
|
|
182
|
+
TypeError,
|
|
183
|
+
'isCore throws when process.versions.node is not a string'
|
|
184
|
+
);
|
|
185
|
+
|
|
186
|
+
st.end();
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
t.test('isCore with undefined nodeVersion and falsy process.versions', function (st) {
|
|
190
|
+
st.teardown(mockProperty(process, 'versions', { value: null }));
|
|
191
|
+
|
|
192
|
+
st['throws'](
|
|
193
|
+
function () { isCore('async_hooks'); },
|
|
194
|
+
TypeError,
|
|
195
|
+
'isCore throws when process.versions is falsy'
|
|
196
|
+
);
|
|
197
|
+
|
|
198
|
+
st.end();
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
t.test('specifierIncluded with = operator (bare version)', function (st) {
|
|
202
|
+
var testKey = '__test_equal_op';
|
|
203
|
+
data[testKey] = '14.18';
|
|
204
|
+
st.teardown(function () { delete data[testKey]; });
|
|
205
|
+
|
|
206
|
+
st.ok(!isCore(testKey, '14.17.0'), 'returns false when minor version does not match with = op');
|
|
207
|
+
st.ok(!isCore(testKey, '15.0.0'), 'returns false when major version does not match with = op');
|
|
208
|
+
st.ok(!isCore(testKey, '14.18.0'), 'returns false for exact match with = op (= is not >=)');
|
|
209
|
+
|
|
210
|
+
st.end();
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
t.test('isCore with short version strings', function (st) {
|
|
214
|
+
st.ok(isCore('async_hooks', '8'), 'async_hooks is core with single-part version "8"');
|
|
215
|
+
st.ok(!isCore('async_hooks', '7'), 'async_hooks is not core with single-part version "7"');
|
|
216
|
+
st.ok(isCore('cluster', '0.5'), 'cluster is core with two-part version "0.5"');
|
|
217
|
+
|
|
218
|
+
st.end();
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
t.test('matchesRange with empty specifiers array', function (st) {
|
|
222
|
+
var testKey = '__test_empty_split';
|
|
223
|
+
var testRange = '__test_range__';
|
|
224
|
+
data[testKey] = testRange;
|
|
225
|
+
st.teardown(function () { delete data[testKey]; });
|
|
226
|
+
|
|
227
|
+
var origSplit = String.prototype.split;
|
|
228
|
+
st.teardown(mockProperty(String.prototype, 'split', {
|
|
229
|
+
value: function () {
|
|
230
|
+
if (String(this) === testRange) {
|
|
231
|
+
return [];
|
|
232
|
+
}
|
|
233
|
+
return origSplit.apply(this, arguments);
|
|
234
|
+
}
|
|
235
|
+
}));
|
|
236
|
+
|
|
237
|
+
st.ok(!isCore(testKey, '8.0.0'), 'returns false when specifiers array is empty');
|
|
238
|
+
|
|
239
|
+
st.end();
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
t.test('Object.prototype pollution', function (st) {
|
|
243
|
+
var nonKey = 'not a core module';
|
|
244
|
+
st.teardown(mockProperty(Object.prototype, 'fs', { value: false }));
|
|
245
|
+
st.teardown(mockProperty(Object.prototype, 'path', { value: '>= 999999999' }));
|
|
246
|
+
st.teardown(mockProperty(Object.prototype, 'http', { value: data.http }));
|
|
247
|
+
st.teardown(mockProperty(Object.prototype, nonKey, { value: true }));
|
|
248
|
+
|
|
249
|
+
st.equal(isCore('fs'), true, 'fs is a core module even if Object.prototype lies');
|
|
250
|
+
st.equal(isCore('path'), true, 'path is a core module even if Object.prototype lies');
|
|
251
|
+
st.equal(isCore('http'), true, 'path is a core module even if Object.prototype matches data');
|
|
252
|
+
st.equal(isCore(nonKey), false, '"' + nonKey + '" is not a core module even if Object.prototype lies');
|
|
253
|
+
|
|
254
|
+
st.end();
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
t.end();
|
|
258
|
+
});
|
|
@@ -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,267 @@
|
|
|
1
|
+
# minimatch
|
|
2
|
+
|
|
3
|
+
A minimal matching utility.
|
|
4
|
+
|
|
5
|
+
[](http://travis-ci.org/isaacs/minimatch)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
This is the matching library used internally by npm.
|
|
9
|
+
|
|
10
|
+
It works by converting glob expressions into JavaScript `RegExp`
|
|
11
|
+
objects.
|
|
12
|
+
|
|
13
|
+
## Important Security Consideration!
|
|
14
|
+
|
|
15
|
+
> [!WARNING]
|
|
16
|
+
> This library uses JavaScript regular expressions. Please read
|
|
17
|
+
> the following warning carefully, and be thoughtful about what
|
|
18
|
+
> you provide to this library in production systems.
|
|
19
|
+
|
|
20
|
+
_Any_ library in JavaScript that deals with matching string
|
|
21
|
+
patterns using regular expressions will be subject to
|
|
22
|
+
[ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)
|
|
23
|
+
if the pattern is generated using untrusted input.
|
|
24
|
+
|
|
25
|
+
Efforts have been made to mitigate risk as much as is feasible in
|
|
26
|
+
such a library, providing maximum recursion depths and so forth,
|
|
27
|
+
but these measures can only ultimately protect against accidents,
|
|
28
|
+
not malice. A dedicated attacker can _always_ find patterns that
|
|
29
|
+
cannot be defended against by a bash-compatible glob pattern
|
|
30
|
+
matching system that uses JavaScript regular expressions.
|
|
31
|
+
|
|
32
|
+
To be extremely clear:
|
|
33
|
+
|
|
34
|
+
> [!WARNING]
|
|
35
|
+
> **If you create a system where you take user input, and use
|
|
36
|
+
> that input as the source of a Regular Expression pattern, in
|
|
37
|
+
> this or any extant glob matcher in JavaScript, you will be
|
|
38
|
+
> pwned.**
|
|
39
|
+
|
|
40
|
+
A future version of this library _may_ use a different matching
|
|
41
|
+
algorithm which does not exhibit backtracking problems. If and
|
|
42
|
+
when that happens, it will likely be a sweeping change, and those
|
|
43
|
+
improvements will **not** be backported to legacy versions.
|
|
44
|
+
|
|
45
|
+
In the near term, it is not reasonable to continue to play
|
|
46
|
+
whack-a-mole with security advisories, and so any future ReDoS
|
|
47
|
+
reports will be considered "working as intended", and resolved
|
|
48
|
+
entirely by this warning.
|
|
49
|
+
|
|
50
|
+
## Usage
|
|
51
|
+
|
|
52
|
+
```javascript
|
|
53
|
+
var minimatch = require("minimatch")
|
|
54
|
+
|
|
55
|
+
minimatch("bar.foo", "*.foo") // true!
|
|
56
|
+
minimatch("bar.foo", "*.bar") // false!
|
|
57
|
+
minimatch("bar.foo", "*.+(bar|foo)", { debug: true }) // true, and noisy!
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Features
|
|
61
|
+
|
|
62
|
+
Supports these glob features:
|
|
63
|
+
|
|
64
|
+
* Brace Expansion
|
|
65
|
+
* Extended glob matching
|
|
66
|
+
* "Globstar" `**` matching
|
|
67
|
+
|
|
68
|
+
See:
|
|
69
|
+
|
|
70
|
+
* `man sh`
|
|
71
|
+
* `man bash`
|
|
72
|
+
* `man 3 fnmatch`
|
|
73
|
+
* `man 5 gitignore`
|
|
74
|
+
|
|
75
|
+
## Minimatch Class
|
|
76
|
+
|
|
77
|
+
Create a minimatch object by instantiating the `minimatch.Minimatch` class.
|
|
78
|
+
|
|
79
|
+
```javascript
|
|
80
|
+
var Minimatch = require("minimatch").Minimatch
|
|
81
|
+
var mm = new Minimatch(pattern, options)
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Properties
|
|
85
|
+
|
|
86
|
+
* `pattern` The original pattern the minimatch object represents.
|
|
87
|
+
* `options` The options supplied to the constructor.
|
|
88
|
+
* `set` A 2-dimensional array of regexp or string expressions.
|
|
89
|
+
Each row in the
|
|
90
|
+
array corresponds to a brace-expanded pattern. Each item in the row
|
|
91
|
+
corresponds to a single path-part. For example, the pattern
|
|
92
|
+
`{a,b/c}/d` would expand to a set of patterns like:
|
|
93
|
+
|
|
94
|
+
[ [ a, d ]
|
|
95
|
+
, [ b, c, d ] ]
|
|
96
|
+
|
|
97
|
+
If a portion of the pattern doesn't have any "magic" in it
|
|
98
|
+
(that is, it's something like `"foo"` rather than `fo*o?`), then it
|
|
99
|
+
will be left as a string rather than converted to a regular
|
|
100
|
+
expression.
|
|
101
|
+
|
|
102
|
+
* `regexp` Created by the `makeRe` method. A single regular expression
|
|
103
|
+
expressing the entire pattern. This is useful in cases where you wish
|
|
104
|
+
to use the pattern somewhat like `fnmatch(3)` with `FNM_PATH` enabled.
|
|
105
|
+
* `negate` True if the pattern is negated.
|
|
106
|
+
* `comment` True if the pattern is a comment.
|
|
107
|
+
* `empty` True if the pattern is `""`.
|
|
108
|
+
|
|
109
|
+
### Methods
|
|
110
|
+
|
|
111
|
+
* `makeRe` Generate the `regexp` member if necessary, and return it.
|
|
112
|
+
Will return `false` if the pattern is invalid.
|
|
113
|
+
* `match(fname)` Return true if the filename matches the pattern, or
|
|
114
|
+
false otherwise.
|
|
115
|
+
* `matchOne(fileArray, patternArray, partial)` Take a `/`-split
|
|
116
|
+
filename, and match it against a single row in the `regExpSet`. This
|
|
117
|
+
method is mainly for internal use, but is exposed so that it can be
|
|
118
|
+
used by a glob-walker that needs to avoid excessive filesystem calls.
|
|
119
|
+
|
|
120
|
+
All other methods are internal, and will be called as necessary.
|
|
121
|
+
|
|
122
|
+
### minimatch(path, pattern, options)
|
|
123
|
+
|
|
124
|
+
Main export. Tests a path against the pattern using the options.
|
|
125
|
+
|
|
126
|
+
```javascript
|
|
127
|
+
var isJS = minimatch(file, "*.js", { matchBase: true })
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### minimatch.filter(pattern, options)
|
|
131
|
+
|
|
132
|
+
Returns a function that tests its
|
|
133
|
+
supplied argument, suitable for use with `Array.filter`. Example:
|
|
134
|
+
|
|
135
|
+
```javascript
|
|
136
|
+
var javascripts = fileList.filter(minimatch.filter("*.js", {matchBase: true}))
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### minimatch.match(list, pattern, options)
|
|
140
|
+
|
|
141
|
+
Match against the list of
|
|
142
|
+
files, in the style of fnmatch or glob. If nothing is matched, and
|
|
143
|
+
options.nonull is set, then return a list containing the pattern itself.
|
|
144
|
+
|
|
145
|
+
```javascript
|
|
146
|
+
var javascripts = minimatch.match(fileList, "*.js", {matchBase: true}))
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### minimatch.makeRe(pattern, options)
|
|
150
|
+
|
|
151
|
+
Make a regular expression object from the pattern.
|
|
152
|
+
|
|
153
|
+
## Options
|
|
154
|
+
|
|
155
|
+
All options are `false` by default.
|
|
156
|
+
|
|
157
|
+
### debug
|
|
158
|
+
|
|
159
|
+
Dump a ton of stuff to stderr.
|
|
160
|
+
|
|
161
|
+
### nobrace
|
|
162
|
+
|
|
163
|
+
Do not expand `{a,b}` and `{1..3}` brace sets.
|
|
164
|
+
|
|
165
|
+
### noglobstar
|
|
166
|
+
|
|
167
|
+
Disable `**` matching against multiple folder names.
|
|
168
|
+
|
|
169
|
+
### dot
|
|
170
|
+
|
|
171
|
+
Allow patterns to match filenames starting with a period, even if
|
|
172
|
+
the pattern does not explicitly have a period in that spot.
|
|
173
|
+
|
|
174
|
+
Note that by default, `a/**/b` will **not** match `a/.d/b`, unless `dot`
|
|
175
|
+
is set.
|
|
176
|
+
|
|
177
|
+
### noext
|
|
178
|
+
|
|
179
|
+
Disable "extglob" style patterns like `+(a|b)`.
|
|
180
|
+
|
|
181
|
+
### nocase
|
|
182
|
+
|
|
183
|
+
Perform a case-insensitive match.
|
|
184
|
+
|
|
185
|
+
### nonull
|
|
186
|
+
|
|
187
|
+
When a match is not found by `minimatch.match`, return a list containing
|
|
188
|
+
the pattern itself if this option is set. When not set, an empty list
|
|
189
|
+
is returned if there are no matches.
|
|
190
|
+
|
|
191
|
+
### matchBase
|
|
192
|
+
|
|
193
|
+
If set, then patterns without slashes will be matched
|
|
194
|
+
against the basename of the path if it contains slashes. For example,
|
|
195
|
+
`a?b` would match the path `/xyz/123/acb`, but not `/xyz/acb/123`.
|
|
196
|
+
|
|
197
|
+
### nocomment
|
|
198
|
+
|
|
199
|
+
Suppress the behavior of treating `#` at the start of a pattern as a
|
|
200
|
+
comment.
|
|
201
|
+
|
|
202
|
+
### nonegate
|
|
203
|
+
|
|
204
|
+
Suppress the behavior of treating a leading `!` character as negation.
|
|
205
|
+
|
|
206
|
+
### flipNegate
|
|
207
|
+
|
|
208
|
+
Returns from negate expressions the same as if they were not negated.
|
|
209
|
+
(Ie, true on a hit, false on a miss.)
|
|
210
|
+
|
|
211
|
+
### partial
|
|
212
|
+
|
|
213
|
+
Compare a partial path to a pattern. As long as the parts of the path that
|
|
214
|
+
are present are not contradicted by the pattern, it will be treated as a
|
|
215
|
+
match. This is useful in applications where you're walking through a
|
|
216
|
+
folder structure, and don't yet have the full path, but want to ensure that
|
|
217
|
+
you do not walk down paths that can never be a match.
|
|
218
|
+
|
|
219
|
+
For example,
|
|
220
|
+
|
|
221
|
+
```js
|
|
222
|
+
minimatch('/a/b', '/a/*/c/d', { partial: true }) // true, might be /a/b/c/d
|
|
223
|
+
minimatch('/a/b', '/**/d', { partial: true }) // true, might be /a/b/.../d
|
|
224
|
+
minimatch('/x/y/z', '/a/**/z', { partial: true }) // false, because x !== a
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### allowWindowsEscape
|
|
228
|
+
|
|
229
|
+
Windows path separator `\` is by default converted to `/`, which
|
|
230
|
+
prohibits the usage of `\` as a escape character. This flag skips that
|
|
231
|
+
behavior and allows using the escape character.
|
|
232
|
+
|
|
233
|
+
## Comparisons to other fnmatch/glob implementations
|
|
234
|
+
|
|
235
|
+
While strict compliance with the existing standards is a worthwhile
|
|
236
|
+
goal, some discrepancies exist between minimatch and other
|
|
237
|
+
implementations, and are intentional.
|
|
238
|
+
|
|
239
|
+
If the pattern starts with a `!` character, then it is negated. Set the
|
|
240
|
+
`nonegate` flag to suppress this behavior, and treat leading `!`
|
|
241
|
+
characters normally. This is perhaps relevant if you wish to start the
|
|
242
|
+
pattern with a negative extglob pattern like `!(a|B)`. Multiple `!`
|
|
243
|
+
characters at the start of a pattern will negate the pattern multiple
|
|
244
|
+
times.
|
|
245
|
+
|
|
246
|
+
If a pattern starts with `#`, then it is treated as a comment, and
|
|
247
|
+
will not match anything. Use `\#` to match a literal `#` at the
|
|
248
|
+
start of a line, or set the `nocomment` flag to suppress this behavior.
|
|
249
|
+
|
|
250
|
+
The double-star character `**` is supported by default, unless the
|
|
251
|
+
`noglobstar` flag is set. This is supported in the manner of bsdglob
|
|
252
|
+
and bash 4.1, where `**` only has special significance if it is the only
|
|
253
|
+
thing in a path part. That is, `a/**/b` will match `a/x/y/b`, but
|
|
254
|
+
`a/**b` will not.
|
|
255
|
+
|
|
256
|
+
If an escaped pattern has no matches, and the `nonull` flag is set,
|
|
257
|
+
then minimatch.match returns the pattern as-provided, rather than
|
|
258
|
+
interpreting the character escapes. For example,
|
|
259
|
+
`minimatch.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than
|
|
260
|
+
`"*a?"`. This is akin to setting the `nullglob` option in bash, except
|
|
261
|
+
that it does not resolve escaped pattern characters.
|
|
262
|
+
|
|
263
|
+
If brace expansion is not disabled, then it is performed before any
|
|
264
|
+
other interpretation of the glob pattern. Thus, a pattern like
|
|
265
|
+
`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded
|
|
266
|
+
**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are
|
|
267
|
+
checked for validity. Since those two are valid, matching proceeds.
|