@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,55 @@
|
|
|
1
|
+
module.exports = Pend;
|
|
2
|
+
|
|
3
|
+
function Pend() {
|
|
4
|
+
this.pending = 0;
|
|
5
|
+
this.max = Infinity;
|
|
6
|
+
this.listeners = [];
|
|
7
|
+
this.waiting = [];
|
|
8
|
+
this.error = null;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
Pend.prototype.go = function(fn) {
|
|
12
|
+
if (this.pending < this.max) {
|
|
13
|
+
pendGo(this, fn);
|
|
14
|
+
} else {
|
|
15
|
+
this.waiting.push(fn);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
Pend.prototype.wait = function(cb) {
|
|
20
|
+
if (this.pending === 0) {
|
|
21
|
+
cb(this.error);
|
|
22
|
+
} else {
|
|
23
|
+
this.listeners.push(cb);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
Pend.prototype.hold = function() {
|
|
28
|
+
return pendHold(this);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
function pendHold(self) {
|
|
32
|
+
self.pending += 1;
|
|
33
|
+
var called = false;
|
|
34
|
+
return onCb;
|
|
35
|
+
function onCb(err) {
|
|
36
|
+
if (called) throw new Error("callback called twice");
|
|
37
|
+
called = true;
|
|
38
|
+
self.error = self.error || err;
|
|
39
|
+
self.pending -= 1;
|
|
40
|
+
if (self.waiting.length > 0 && self.pending < self.max) {
|
|
41
|
+
pendGo(self, self.waiting.shift());
|
|
42
|
+
} else if (self.pending === 0) {
|
|
43
|
+
var listeners = self.listeners;
|
|
44
|
+
self.listeners = [];
|
|
45
|
+
listeners.forEach(cbListener);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function cbListener(listener) {
|
|
49
|
+
listener(self.error);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function pendGo(self, fn) {
|
|
54
|
+
fn(pendHold(self));
|
|
55
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pend",
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "dead-simple optimistic async helper",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "node test.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "Andrew Kelley <superjoe30@gmail.com>",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git://github.com/andrewrk/node-pend.git"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/andrewrk/node-pend/issues"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
var assert = require('assert');
|
|
2
|
+
var Pend = require('./');
|
|
3
|
+
|
|
4
|
+
var tests = [
|
|
5
|
+
{
|
|
6
|
+
name: "basic",
|
|
7
|
+
fn: testBasic,
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
name: "max",
|
|
11
|
+
fn: testWithMax,
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: "callback twice",
|
|
15
|
+
fn: testCallbackTwice,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: "calling wait twice",
|
|
19
|
+
fn: testCallingWaitTwice,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "hold()",
|
|
23
|
+
fn: testHoldFn,
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
var testCount = tests.length;
|
|
27
|
+
|
|
28
|
+
doOneTest();
|
|
29
|
+
|
|
30
|
+
function doOneTest() {
|
|
31
|
+
var test = tests.shift();
|
|
32
|
+
if (!test) {
|
|
33
|
+
console.log(testCount + " tests passed.");
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
process.stdout.write(test.name + "...");
|
|
37
|
+
test.fn(function() {
|
|
38
|
+
process.stdout.write("OK\n");
|
|
39
|
+
doOneTest();
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function testBasic(cb) {
|
|
44
|
+
var pend = new Pend();
|
|
45
|
+
var results = [];
|
|
46
|
+
pend.go(function(cb) {
|
|
47
|
+
results.push(1);
|
|
48
|
+
setTimeout(function() {
|
|
49
|
+
results.push(3);
|
|
50
|
+
cb();
|
|
51
|
+
}, 500);
|
|
52
|
+
});
|
|
53
|
+
pend.go(function(cb) {
|
|
54
|
+
results.push(2);
|
|
55
|
+
setTimeout(function() {
|
|
56
|
+
results.push(4);
|
|
57
|
+
cb();
|
|
58
|
+
}, 1000);
|
|
59
|
+
});
|
|
60
|
+
pend.wait(function(err) {
|
|
61
|
+
assert.deepEqual(results, [1,2,3,4]);
|
|
62
|
+
cb();
|
|
63
|
+
});
|
|
64
|
+
assert.deepEqual(results, [1, 2]);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function testWithMax(cb) {
|
|
68
|
+
var pend = new Pend();
|
|
69
|
+
var results = [];
|
|
70
|
+
pend.max = 2;
|
|
71
|
+
pend.go(function(cb) {
|
|
72
|
+
results.push('a');
|
|
73
|
+
setTimeout(function() {
|
|
74
|
+
results.push(1);
|
|
75
|
+
cb();
|
|
76
|
+
}, 500);
|
|
77
|
+
});
|
|
78
|
+
pend.go(function(cb) {
|
|
79
|
+
results.push('b');
|
|
80
|
+
setTimeout(function() {
|
|
81
|
+
results.push(1);
|
|
82
|
+
cb();
|
|
83
|
+
}, 500);
|
|
84
|
+
});
|
|
85
|
+
pend.go(function(cb) {
|
|
86
|
+
results.push('c');
|
|
87
|
+
setTimeout(function() {
|
|
88
|
+
results.push(2);
|
|
89
|
+
cb();
|
|
90
|
+
}, 100);
|
|
91
|
+
});
|
|
92
|
+
pend.wait(function(err) {
|
|
93
|
+
assert.deepEqual(results, ['a', 'b', 1, 'c', 1, 2]);
|
|
94
|
+
cb();
|
|
95
|
+
});
|
|
96
|
+
assert.deepEqual(results, ['a', 'b']);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function testCallbackTwice(cb) {
|
|
100
|
+
var pend = new Pend();
|
|
101
|
+
pend.go(function(cb) {
|
|
102
|
+
setTimeout(cb, 100);
|
|
103
|
+
});
|
|
104
|
+
pend.go(function(cb) {
|
|
105
|
+
cb();
|
|
106
|
+
assert.throws(cb, /callback called twice/);
|
|
107
|
+
});
|
|
108
|
+
pend.wait(cb);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function testCallingWaitTwice(cb) {
|
|
112
|
+
var pend = new Pend();
|
|
113
|
+
pend.go(function(cb) {
|
|
114
|
+
setTimeout(cb, 100);
|
|
115
|
+
});
|
|
116
|
+
pend.wait(function() {
|
|
117
|
+
pend.go(function(cb) {
|
|
118
|
+
setTimeout(cb, 50);
|
|
119
|
+
});
|
|
120
|
+
pend.go(function(cb) {
|
|
121
|
+
setTimeout(cb, 10);
|
|
122
|
+
});
|
|
123
|
+
pend.go(function(cb) {
|
|
124
|
+
setTimeout(cb, 20);
|
|
125
|
+
});
|
|
126
|
+
pend.wait(cb);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function testHoldFn(cb) {
|
|
131
|
+
var pend = new Pend();
|
|
132
|
+
setTimeout(pend.hold(), 100);
|
|
133
|
+
pend.go(function(cb) {
|
|
134
|
+
cb();
|
|
135
|
+
});
|
|
136
|
+
pend.wait(cb);
|
|
137
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
test
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
sudo: false
|
|
2
|
+
language: node_js
|
|
3
|
+
node_js:
|
|
4
|
+
- "0.10"
|
|
5
|
+
- "0.12"
|
|
6
|
+
env:
|
|
7
|
+
global:
|
|
8
|
+
- REMOVE_DEPS=""
|
|
9
|
+
matrix:
|
|
10
|
+
- "CUSTOM_DEPS=coffee-script@~1.3"
|
|
11
|
+
- "CUSTOM_DEPS=coffee-script@~1.5"
|
|
12
|
+
- "CUSTOM_DEPS=coffee-script@~1.7"
|
|
13
|
+
- "CUSTOM_DEPS=coffee-script@latest"
|
|
14
|
+
- "CUSTOM_DEPS=iced-coffee-script@1.6.3-j"
|
|
15
|
+
- "CUSTOM_DEPS=iced-coffee-script@latest"
|
|
16
|
+
- "CUSTOM_DEPS=LiveScript@1.3.1 REMOVE_DEPS=livescript"
|
|
17
|
+
- "CUSTOM_DEPS=typescript-require REMOVE_DEPS=typescript-register"
|
|
18
|
+
matrix:
|
|
19
|
+
fast_finish: true
|
|
20
|
+
before_install:
|
|
21
|
+
- "npm install -g npm" # needs the newest version of npm
|
|
22
|
+
before_script:
|
|
23
|
+
- "[ \"${REMOVE_DEPS}\" == \"\" ] || npm rm $REMOVE_DEPS"
|
|
24
|
+
- "npm install $CUSTOM_DEPS" # install a specific version of dependencies
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
v0.6.2:
|
|
2
|
+
date: 2015-07-22
|
|
3
|
+
changes:
|
|
4
|
+
- Return `undefined` when an unknown extension is provided to prepare and
|
|
5
|
+
the `nothrow` option is specified.
|
|
6
|
+
v0.6.1:
|
|
7
|
+
date: 2015-05-22
|
|
8
|
+
changes:
|
|
9
|
+
- Add option for not throwing.
|
|
10
|
+
v0.6.0:
|
|
11
|
+
date: 2015-05-20
|
|
12
|
+
changes:
|
|
13
|
+
- Include module name when prepare is successful.
|
|
14
|
+
v0.5.0:
|
|
15
|
+
date: 2015-05-20
|
|
16
|
+
changes:
|
|
17
|
+
- Overhaul to support interpret 0.6.0.
|
|
18
|
+
v0.3.0:
|
|
19
|
+
date: 2015-01-10
|
|
20
|
+
changes:
|
|
21
|
+
- Breaking: `load` method removed.
|
|
22
|
+
- Improved extension recognition.
|
|
23
|
+
- No longer fails upon dots in filenames.
|
|
24
|
+
- Support confuration objects.
|
|
25
|
+
- Support and test ES6.
|
|
26
|
+
- Support legacy module loading.
|
|
27
|
+
v0.2.2:
|
|
28
|
+
date: 2014-12-17
|
|
29
|
+
changes:
|
|
30
|
+
- Expose interpret.
|
|
31
|
+
v0.2.0:
|
|
32
|
+
date: 2014-04-20
|
|
33
|
+
changes:
|
|
34
|
+
- Simplify loading of coffee-script and iced-coffee-script.
|
|
35
|
+
v0.1.0:
|
|
36
|
+
date: 2014-04-20
|
|
37
|
+
changes:
|
|
38
|
+
- Initial public release.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2015 Tyler Kellen
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person
|
|
4
|
+
obtaining a copy of this software and associated documentation
|
|
5
|
+
files (the "Software"), to deal in the Software without
|
|
6
|
+
restriction, including without limitation the rights to use,
|
|
7
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the
|
|
9
|
+
Software is furnished to do so, subject to the following
|
|
10
|
+
conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be
|
|
13
|
+
included in all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
17
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
19
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
20
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# rechoir [](http://travis-ci.org/tkellen/js-rechoir)
|
|
2
|
+
> Require any supported file as a node module.
|
|
3
|
+
|
|
4
|
+
[](https://nodei.co/npm/rechoir/)
|
|
5
|
+
|
|
6
|
+
## What is it?
|
|
7
|
+
This module, in conjunction with [interpret]-like objects can register any file type the npm ecosystem has a module loader for. This library is a dependency of [Liftoff].
|
|
8
|
+
|
|
9
|
+
## API
|
|
10
|
+
|
|
11
|
+
### prepare(config, filepath, requireFrom)
|
|
12
|
+
Look for a module loader associated with the provided file and attempt require it. If necessary, run any setup required to inject it into [require.extensions](http://nodejs.org/api/globals.html#globals_require_extensions).
|
|
13
|
+
|
|
14
|
+
`config` An [interpret]-like configuration object.
|
|
15
|
+
|
|
16
|
+
`filepath` A file whose type you'd like to register a module loader for.
|
|
17
|
+
|
|
18
|
+
`requireFrom` An optional path to start searching for the module required to load the requested file. Defaults to the directory of `filepath`.
|
|
19
|
+
|
|
20
|
+
If calling this method is successful (aka: it doesn't throw), you can now require files of the type you requested natively.
|
|
21
|
+
|
|
22
|
+
An error with a `failures` property will be thrown if the module loader(s) configured for a given extension cannot be registered.
|
|
23
|
+
|
|
24
|
+
If a loader is already registered, this will simply return `true`.
|
|
25
|
+
|
|
26
|
+
**Note:** While rechoir will automatically load and register transpilers like `coffee-script`, you must provide a local installation. The transpilers are **not** bundled with this module.
|
|
27
|
+
|
|
28
|
+
#### Usage
|
|
29
|
+
```js
|
|
30
|
+
const config = require('interpret').extensions;
|
|
31
|
+
const rechoir = require('rechoir');
|
|
32
|
+
rechoir.prepare(config, './test/fixtures/test.coffee');
|
|
33
|
+
rechoir.prepare(config, './test/fixtures/test.csv');
|
|
34
|
+
rechoir.prepare(config, './test/fixtures/test.toml');
|
|
35
|
+
|
|
36
|
+
console.log(require('./test/fixtures/test.coffee'));
|
|
37
|
+
console.log(require('./test/fixtures/test.csv'));
|
|
38
|
+
console.log(require('./test/fixtures/test.toml'));
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
[interpret]: http://github.com/tkellen/js-interpret
|
|
42
|
+
[Liftoff]: http://github.com/tkellen/js-liftoff
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
const extension = require('./lib/extension');
|
|
4
|
+
const normalize = require('./lib/normalize');
|
|
5
|
+
const register = require('./lib/register');
|
|
6
|
+
|
|
7
|
+
exports.prepare = function (extensions, filepath, cwd, nothrow) {
|
|
8
|
+
var option, attempt;
|
|
9
|
+
var attempts = [];
|
|
10
|
+
var err;
|
|
11
|
+
var onlyErrors = false;
|
|
12
|
+
var ext = extension(filepath);
|
|
13
|
+
if (Object.keys(require.extensions).indexOf(ext) !== -1) {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
var config = normalize(extensions[ext]);
|
|
17
|
+
if (!config) {
|
|
18
|
+
if (nothrow) {
|
|
19
|
+
return;
|
|
20
|
+
} else {
|
|
21
|
+
throw new Error('No module loader found for "'+ext+'".');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
if (!cwd) {
|
|
25
|
+
cwd = path.dirname(path.resolve(filepath));
|
|
26
|
+
}
|
|
27
|
+
if (!Array.isArray(config)) {
|
|
28
|
+
config = [config];
|
|
29
|
+
}
|
|
30
|
+
for (var i in config) {
|
|
31
|
+
option = config[i];
|
|
32
|
+
attempt = register(cwd, option.module, option.register);
|
|
33
|
+
error = (attempt instanceof Error) ? attempt : null;
|
|
34
|
+
if (error) {
|
|
35
|
+
attempt = null;
|
|
36
|
+
}
|
|
37
|
+
attempts.push({
|
|
38
|
+
moduleName: option.module,
|
|
39
|
+
module: attempt,
|
|
40
|
+
error: error
|
|
41
|
+
});
|
|
42
|
+
if (!error) {
|
|
43
|
+
onlyErrors = false;
|
|
44
|
+
break;
|
|
45
|
+
} else {
|
|
46
|
+
onlyErrors = true;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (onlyErrors) {
|
|
50
|
+
err = new Error('Unable to use specified module loaders for "'+ext+'".');
|
|
51
|
+
err.failures = attempts;
|
|
52
|
+
if (nothrow) {
|
|
53
|
+
return err;
|
|
54
|
+
} else {
|
|
55
|
+
throw err;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return attempts;
|
|
59
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function normalizer (config) {
|
|
2
|
+
if (typeof config === 'string') {
|
|
3
|
+
return {
|
|
4
|
+
module: config
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
return config;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
module.exports = function (config) {
|
|
11
|
+
if (Array.isArray(config)) {
|
|
12
|
+
return config.map(normalizer);
|
|
13
|
+
}
|
|
14
|
+
return normalizer(config);
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const resolve = require('resolve');
|
|
3
|
+
|
|
4
|
+
module.exports = function (cwd, moduleName, register) {
|
|
5
|
+
try {
|
|
6
|
+
var modulePath = resolve.sync(moduleName, {basedir: cwd});
|
|
7
|
+
var result = require(modulePath);
|
|
8
|
+
if (typeof register === 'function') {
|
|
9
|
+
register(result);
|
|
10
|
+
}
|
|
11
|
+
} catch (e) {
|
|
12
|
+
result = e;
|
|
13
|
+
}
|
|
14
|
+
return result;
|
|
15
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rechoir",
|
|
3
|
+
"description": "Require any supported file as a node module.",
|
|
4
|
+
"version": "0.6.2",
|
|
5
|
+
"homepage": "https://github.com/tkellen/node-rechoir",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Tyler Kellen",
|
|
8
|
+
"url": "http://goingslowly.com/"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git://github.com/tkellen/node-rechoir.git"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/tkellen/node-rechoir/issues"
|
|
16
|
+
},
|
|
17
|
+
"licenses": [
|
|
18
|
+
{
|
|
19
|
+
"type": "MIT",
|
|
20
|
+
"url": "https://github.com/tkellen/node-rechoir/blob/master/LICENSE"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"main": "index.js",
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">= 0.10"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"test": "mocha -R spec test/index.js"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"resolve": "^1.1.6"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"babel": "^5.4.3",
|
|
35
|
+
"chai": "^2.3.0",
|
|
36
|
+
"coco": "^0.9.1",
|
|
37
|
+
"coffee-script": "^1.9.2",
|
|
38
|
+
"earlgrey": "0.0.9",
|
|
39
|
+
"iced-coffee-script": "^1.8.0-d",
|
|
40
|
+
"interpret": "^0.6.1",
|
|
41
|
+
"json5": "^0.4.0",
|
|
42
|
+
"livescript": "^1.4.0",
|
|
43
|
+
"mocha": "^2.2.5",
|
|
44
|
+
"node-jsx": "^0.13.3",
|
|
45
|
+
"require-csv": "0.0.1",
|
|
46
|
+
"require-ini": "0.0.1",
|
|
47
|
+
"require-uncached": "^1.0.2",
|
|
48
|
+
"require-xml": "0.0.1",
|
|
49
|
+
"require-yaml": "0.0.1",
|
|
50
|
+
"rimraf": "^2.3.4",
|
|
51
|
+
"semver": "^4.3.4",
|
|
52
|
+
"sinon": "^1.14.1",
|
|
53
|
+
"toml-require": "^1.0.1",
|
|
54
|
+
"typescript-register": "^1.1.0"
|
|
55
|
+
},
|
|
56
|
+
"keywords": [
|
|
57
|
+
"require",
|
|
58
|
+
"cjsx",
|
|
59
|
+
"co",
|
|
60
|
+
"coco",
|
|
61
|
+
"coffee-script",
|
|
62
|
+
"coffee",
|
|
63
|
+
"coffee.md",
|
|
64
|
+
"csv",
|
|
65
|
+
"earlgrey",
|
|
66
|
+
"es",
|
|
67
|
+
"es6",
|
|
68
|
+
"iced",
|
|
69
|
+
"iced.md",
|
|
70
|
+
"iced-coffee-script",
|
|
71
|
+
"ini",
|
|
72
|
+
"js",
|
|
73
|
+
"json",
|
|
74
|
+
"json5",
|
|
75
|
+
"jsx",
|
|
76
|
+
"react",
|
|
77
|
+
"litcoffee",
|
|
78
|
+
"liticed",
|
|
79
|
+
"ls",
|
|
80
|
+
"livescript",
|
|
81
|
+
"toml",
|
|
82
|
+
"ts",
|
|
83
|
+
"typescript",
|
|
84
|
+
"xml",
|
|
85
|
+
"yaml",
|
|
86
|
+
"yml"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# resolve package - session notes
|
|
2
|
+
|
|
3
|
+
## Versioning
|
|
4
|
+
- Manual versioning only - do NOT use `npm version`
|
|
5
|
+
- Edit package.json version directly, commit with message `v{version}`, then create annotated tag
|
|
6
|
+
- Changelog lives in git tag annotations, not a separate file
|
|
7
|
+
- Tag format: `git tag -a v{version} -m "{changelog}"`
|
|
8
|
+
|
|
9
|
+
## Code style
|
|
10
|
+
- `__proto__: null` on ALL object literals (prototype pollution protection)
|
|
11
|
+
- `.slice()` not `.substring()`
|
|
12
|
+
- One exported function per file
|
|
13
|
+
- Move nested/inner functions to module level when feasible
|
|
14
|
+
- Prefer non-hoisted declarations (function declarations at module level, not expressions)
|
|
15
|
+
- No mutation - copy objects instead of modifying inputs
|
|
16
|
+
|
|
17
|
+
## Testing
|
|
18
|
+
- `test/list-exports` is a git submodule with sparse checkout
|
|
19
|
+
- Tests should cover ALL entrypoints from fixtures, not just `'.'` subpaths
|
|
20
|
+
- Use `extensions: ['.js', '.json']` when testing exports resolution
|
|
21
|
+
|
|
22
|
+
## exports field implementation
|
|
23
|
+
- Uses `node-exports-info` for category semantics
|
|
24
|
+
- Categories: pre-exports, broken, conditions, patterns, pattern-trailers, current
|
|
25
|
+
- `exportsCategory` option or `engines: true` to auto-detect from consumer's engines.node
|
|
26
|
+
- Self-reference resolution respects node_modules boundaries
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"WebFetch(domain:github.com)",
|
|
5
|
+
"WebSearch",
|
|
6
|
+
"WebFetch(domain:raw.githubusercontent.com)",
|
|
7
|
+
"WebFetch(domain:api.github.com)",
|
|
8
|
+
"WebFetch(domain:www.npmjs.com)",
|
|
9
|
+
"Bash(tree:*)",
|
|
10
|
+
"Bash(find:*)",
|
|
11
|
+
"Bash(npm view:*)",
|
|
12
|
+
"Bash(node test/resolver_sync.js:*)",
|
|
13
|
+
"Bash(xxd:*)",
|
|
14
|
+
"Bash(npm info:*)",
|
|
15
|
+
"Bash(grep:*)",
|
|
16
|
+
"Bash(npm run submodule:update:*)",
|
|
17
|
+
"Bash(git rev-parse:*)",
|
|
18
|
+
"Bash(git -C test/list-exports diff packages/tests/fixtures/resolve-2/project/test/resolver/nested_symlinks/mylib/async.js)",
|
|
19
|
+
"Bash(gh run list:*)",
|
|
20
|
+
"Bash(ls:*)",
|
|
21
|
+
"Bash(tape test/homedir.js)",
|
|
22
|
+
"Bash(tape test/default_paths.js)",
|
|
23
|
+
"Bash(tape test/mock.js)"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
indent_style = space
|
|
5
|
+
indent_size = 2
|
|
6
|
+
end_of_line = lf
|
|
7
|
+
charset = utf-8
|
|
8
|
+
trim_trailing_whitespace = true
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
max_line_length = 200
|
|
11
|
+
|
|
12
|
+
[*.{,m}js]
|
|
13
|
+
block_comment_start = /*
|
|
14
|
+
block_comment = *
|
|
15
|
+
block_comment_end = */
|
|
16
|
+
|
|
17
|
+
[*.yml]
|
|
18
|
+
indent_style = space
|
|
19
|
+
indent_size = 1
|
|
20
|
+
|
|
21
|
+
[{package.json,*.mjs}]
|
|
22
|
+
indent_style = tab
|
|
23
|
+
|
|
24
|
+
[lib/core.json]
|
|
25
|
+
indent_style = tab
|
|
26
|
+
|
|
27
|
+
[CHANGELOG.md]
|
|
28
|
+
indent_style = space
|
|
29
|
+
indent_size = 2
|
|
30
|
+
|
|
31
|
+
[{*.json,Makefile,CONTRIBUTING.md}]
|
|
32
|
+
max_line_length = off
|
|
33
|
+
|
|
34
|
+
[test/{dotdot,resolver,module_dir,multirepo,node_path,pathfilter,precedence}/**/*]
|
|
35
|
+
indent_style = off
|
|
36
|
+
indent_size = off
|
|
37
|
+
max_line_length = off
|
|
38
|
+
insert_final_newline = off
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
|
|
4
|
+
"extends": "@ljharb",
|
|
5
|
+
|
|
6
|
+
"rules": {
|
|
7
|
+
"indent": [2, 4],
|
|
8
|
+
"strict": 0,
|
|
9
|
+
"complexity": 0,
|
|
10
|
+
"consistent-return": 0,
|
|
11
|
+
"curly": 0,
|
|
12
|
+
"dot-notation": [2, { "allowKeywords": true }],
|
|
13
|
+
"func-name-matching": 0,
|
|
14
|
+
"func-style": 0,
|
|
15
|
+
"global-require": 1,
|
|
16
|
+
"id-length": [2, { "min": 1, "max": 40 }],
|
|
17
|
+
"max-lines": [2, 360],
|
|
18
|
+
"max-lines-per-function": 0,
|
|
19
|
+
"max-nested-callbacks": 0,
|
|
20
|
+
"max-params": 0,
|
|
21
|
+
"max-statements-per-line": [2, { "max": 2 }],
|
|
22
|
+
"max-statements": 0,
|
|
23
|
+
"no-magic-numbers": 0,
|
|
24
|
+
"no-shadow": 0,
|
|
25
|
+
"no-use-before-define": 0,
|
|
26
|
+
"sort-keys": 0,
|
|
27
|
+
},
|
|
28
|
+
"overrides": [
|
|
29
|
+
{
|
|
30
|
+
"files": "bin/**",
|
|
31
|
+
"rules": {
|
|
32
|
+
"no-process-exit": "off",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"files": "example/**",
|
|
37
|
+
"rules": {
|
|
38
|
+
"no-console": 0,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"files": "test/resolver/nested_symlinks/mylib/*.js",
|
|
43
|
+
"rules": {
|
|
44
|
+
"no-throw-literal": 0,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"files": "test/**",
|
|
49
|
+
"parserOptions": {
|
|
50
|
+
"ecmaVersion": 5,
|
|
51
|
+
"allowReserved": false,
|
|
52
|
+
},
|
|
53
|
+
"rules": {
|
|
54
|
+
"dot-notation": [2, { "allowPattern": "throws" }],
|
|
55
|
+
"max-lines": 0,
|
|
56
|
+
"max-lines-per-function": 0,
|
|
57
|
+
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
|
|
62
|
+
"ignorePatterns": [
|
|
63
|
+
"./test/resolver/malformed_package_json/package.json",
|
|
64
|
+
],
|
|
65
|
+
}
|