step-node-agent 3.17.0 → 3.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/accepts/HISTORY.md +7 -0
- package/node_modules/accepts/README.md +3 -5
- package/node_modules/accepts/package.json +18 -18
- package/node_modules/asn1/Jenkinsfile +65 -0
- package/node_modules/asn1/package.json +5 -5
- package/node_modules/body-parser/HISTORY.md +15 -0
- package/node_modules/body-parser/README.md +25 -12
- package/node_modules/body-parser/package.json +23 -23
- package/node_modules/bytes/History.md +5 -0
- package/node_modules/bytes/Readme.md +42 -16
- package/node_modules/bytes/index.js +5 -1
- package/node_modules/bytes/package.json +9 -8
- package/node_modules/content-disposition/HISTORY.md +5 -0
- package/node_modules/content-disposition/README.md +3 -9
- package/node_modules/content-disposition/index.js +1 -1
- package/node_modules/content-disposition/package.json +16 -16
- package/node_modules/cookie/HISTORY.md +5 -0
- package/node_modules/cookie/README.md +4 -0
- package/node_modules/cookie/index.js +5 -1
- package/node_modules/cookie/package.json +11 -11
- package/node_modules/express/History.md +33 -0
- package/node_modules/express/Readme.md +8 -5
- package/node_modules/express/lib/application.js +1 -1
- package/node_modules/express/lib/request.js +1 -1
- package/node_modules/express/lib/response.js +16 -11
- package/node_modules/express/lib/router/index.js +6 -0
- package/node_modules/express/lib/utils.js +2 -6
- package/node_modules/express/package.json +26 -25
- package/node_modules/glob/README.md +3 -0
- package/node_modules/glob/common.js +2 -0
- package/node_modules/glob/glob.js +4 -5
- package/node_modules/glob/package.json +5 -4
- package/node_modules/glob/sync.js +4 -5
- package/node_modules/graceful-fs/README.md +11 -1
- package/node_modules/graceful-fs/graceful-fs.js +105 -49
- package/node_modules/graceful-fs/package.json +4 -4
- package/node_modules/graceful-fs/polyfills.js +4 -2
- package/node_modules/http-errors/HISTORY.md +16 -0
- package/node_modules/http-errors/README.md +12 -6
- package/node_modules/http-errors/index.js +35 -2
- package/node_modules/http-errors/package.json +19 -19
- package/node_modules/inherits/inherits.js +2 -0
- package/node_modules/inherits/inherits_browser.js +18 -14
- package/node_modules/inherits/package.json +6 -6
- package/node_modules/is-callable/.editorconfig +5 -0
- package/node_modules/is-callable/.nycrc +0 -4
- package/node_modules/is-callable/CHANGELOG.md +14 -0
- package/node_modules/is-callable/README.md +14 -15
- package/node_modules/is-callable/index.js +1 -1
- package/node_modules/is-callable/package.json +20 -28
- package/node_modules/is-callable/test/index.js +22 -50
- package/node_modules/is-core-module/.eslintrc +0 -1
- package/node_modules/is-core-module/CHANGELOG.md +44 -0
- package/node_modules/is-core-module/core.json +67 -61
- package/node_modules/is-core-module/index.js +1 -1
- package/node_modules/is-core-module/package.json +12 -11
- package/node_modules/is-core-module/test/index.js +23 -1
- package/node_modules/json-schema/LICENSE +195 -0
- package/node_modules/json-schema/README.md +2 -4
- package/node_modules/json-schema/lib/links.js +1 -2
- package/node_modules/json-schema/lib/validate.js +7 -9
- package/node_modules/json-schema/package.json +8 -14
- package/node_modules/jsprim/CHANGES.md +4 -0
- package/node_modules/jsprim/package.json +8 -8
- package/node_modules/mime-db/HISTORY.md +19 -0
- package/node_modules/mime-db/db.json +93 -1
- package/node_modules/mime-db/package.json +10 -10
- package/node_modules/mime-types/HISTORY.md +20 -3
- package/node_modules/mime-types/package.json +10 -10
- package/node_modules/negotiator/HISTORY.md +5 -0
- package/node_modules/negotiator/README.md +3 -3
- package/node_modules/negotiator/index.js +4 -46
- package/node_modules/negotiator/lib/language.js +3 -3
- package/node_modules/negotiator/package.json +11 -11
- package/node_modules/npm/CHANGELOG.md +30 -0
- package/node_modules/npm/docs/public/cli-commands/npm/index.html +3 -3
- package/node_modules/npm/docs/public/cli-commands/npm-access/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-adduser/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-audit/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-bin/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-bugs/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-build/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-bundle/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-cache/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-ci/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-completion/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-config/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-dedupe/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-deprecate/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-dist-tag/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-docs/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-doctor/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-edit/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-explore/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-fund/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-help/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-help-search/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-hook/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-init/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-install/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-install-ci-test/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-install-test/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-link/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-logout/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-ls/index.html +3 -3
- package/node_modules/npm/docs/public/cli-commands/npm-org/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-outdated/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-owner/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-pack/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-ping/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-prefix/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-profile/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-prune/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-publish/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-rebuild/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-repo/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-restart/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-root/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-run-script/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-search/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-shrinkwrap/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-star/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-stars/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-start/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-stop/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-team/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-test/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-token/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-uninstall/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-unpublish/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-update/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-version/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-view/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-whoami/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/folders/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/install/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/npmrc/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/package-json/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/package-lock-json/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/package-locks/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/shrinkwrap-json/index.html +2 -2
- package/node_modules/npm/docs/public/index.html +1 -1
- package/node_modules/npm/docs/public/using-npm/config/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/developers/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/disputes/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/orgs/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/registry/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/removal/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/scope/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/scripts/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/semver/index.html +2 -2
- package/node_modules/npm/lib/auth/legacy.js +1 -1
- package/node_modules/npm/lib/profile.js +2 -2
- package/node_modules/npm/man/man1/npm-README.1 +1 -1
- package/node_modules/npm/man/man1/npm-access.1 +1 -1
- package/node_modules/npm/man/man1/npm-adduser.1 +1 -1
- package/node_modules/npm/man/man1/npm-audit.1 +1 -1
- package/node_modules/npm/man/man1/npm-bin.1 +1 -1
- package/node_modules/npm/man/man1/npm-bugs.1 +1 -1
- package/node_modules/npm/man/man1/npm-build.1 +1 -1
- package/node_modules/npm/man/man1/npm-bundle.1 +1 -1
- package/node_modules/npm/man/man1/npm-cache.1 +1 -1
- package/node_modules/npm/man/man1/npm-ci.1 +1 -1
- package/node_modules/npm/man/man1/npm-completion.1 +1 -1
- package/node_modules/npm/man/man1/npm-config.1 +1 -1
- package/node_modules/npm/man/man1/npm-dedupe.1 +1 -1
- package/node_modules/npm/man/man1/npm-deprecate.1 +1 -1
- package/node_modules/npm/man/man1/npm-dist-tag.1 +1 -1
- package/node_modules/npm/man/man1/npm-docs.1 +1 -1
- package/node_modules/npm/man/man1/npm-doctor.1 +1 -1
- package/node_modules/npm/man/man1/npm-edit.1 +1 -1
- package/node_modules/npm/man/man1/npm-explore.1 +1 -1
- package/node_modules/npm/man/man1/npm-fund.1 +1 -1
- package/node_modules/npm/man/man1/npm-help-search.1 +1 -1
- package/node_modules/npm/man/man1/npm-help.1 +1 -1
- package/node_modules/npm/man/man1/npm-hook.1 +1 -1
- package/node_modules/npm/man/man1/npm-init.1 +1 -1
- package/node_modules/npm/man/man1/npm-install-ci-test.1 +1 -1
- package/node_modules/npm/man/man1/npm-install-test.1 +1 -1
- package/node_modules/npm/man/man1/npm-install.1 +1 -1
- package/node_modules/npm/man/man1/npm-link.1 +1 -1
- package/node_modules/npm/man/man1/npm-logout.1 +1 -1
- package/node_modules/npm/man/man1/npm-ls.1 +2 -2
- package/node_modules/npm/man/man1/npm-org.1 +1 -1
- package/node_modules/npm/man/man1/npm-outdated.1 +1 -1
- package/node_modules/npm/man/man1/npm-owner.1 +1 -1
- package/node_modules/npm/man/man1/npm-pack.1 +1 -1
- package/node_modules/npm/man/man1/npm-ping.1 +1 -1
- package/node_modules/npm/man/man1/npm-prefix.1 +1 -1
- package/node_modules/npm/man/man1/npm-profile.1 +1 -1
- package/node_modules/npm/man/man1/npm-prune.1 +1 -1
- package/node_modules/npm/man/man1/npm-publish.1 +1 -1
- package/node_modules/npm/man/man1/npm-rebuild.1 +1 -1
- package/node_modules/npm/man/man1/npm-repo.1 +1 -1
- package/node_modules/npm/man/man1/npm-restart.1 +1 -1
- package/node_modules/npm/man/man1/npm-root.1 +1 -1
- package/node_modules/npm/man/man1/npm-run-script.1 +1 -1
- package/node_modules/npm/man/man1/npm-search.1 +1 -1
- package/node_modules/npm/man/man1/npm-shrinkwrap.1 +1 -1
- package/node_modules/npm/man/man1/npm-star.1 +1 -1
- package/node_modules/npm/man/man1/npm-stars.1 +1 -1
- package/node_modules/npm/man/man1/npm-start.1 +1 -1
- package/node_modules/npm/man/man1/npm-stop.1 +1 -1
- package/node_modules/npm/man/man1/npm-team.1 +1 -1
- package/node_modules/npm/man/man1/npm-test.1 +1 -1
- package/node_modules/npm/man/man1/npm-token.1 +1 -1
- package/node_modules/npm/man/man1/npm-uninstall.1 +1 -1
- package/node_modules/npm/man/man1/npm-unpublish.1 +1 -1
- package/node_modules/npm/man/man1/npm-update.1 +1 -1
- package/node_modules/npm/man/man1/npm-version.1 +1 -1
- package/node_modules/npm/man/man1/npm-view.1 +1 -1
- package/node_modules/npm/man/man1/npm-whoami.1 +1 -1
- package/node_modules/npm/man/man1/npm.1 +2 -2
- package/node_modules/npm/man/man5/folders.5 +1 -1
- package/node_modules/npm/man/man5/install.5 +1 -1
- package/node_modules/npm/man/man5/npmrc.5 +1 -1
- package/node_modules/npm/man/man5/package-json.5 +1 -1
- package/node_modules/npm/man/man5/package-lock-json.5 +1 -1
- package/node_modules/npm/man/man5/package-locks.5 +1 -1
- package/node_modules/npm/man/man5/shrinkwrap-json.5 +1 -1
- package/node_modules/npm/man/man7/config.7 +1 -1
- package/node_modules/npm/man/man7/developers.7 +1 -1
- package/node_modules/npm/man/man7/disputes.7 +1 -1
- package/node_modules/npm/man/man7/orgs.7 +1 -1
- package/node_modules/npm/man/man7/registry.7 +1 -1
- package/node_modules/npm/man/man7/removal.7 +1 -1
- package/node_modules/npm/man/man7/scope.7 +1 -1
- package/node_modules/npm/man/man7/scripts.7 +1 -1
- package/node_modules/npm/man/man7/semver.7 +1 -1
- package/node_modules/npm/node_modules/json-schema/LICENSE +195 -0
- package/node_modules/npm/node_modules/json-schema/README.md +2 -4
- package/node_modules/npm/node_modules/json-schema/lib/links.js +1 -2
- package/node_modules/npm/node_modules/json-schema/lib/validate.js +7 -9
- package/node_modules/npm/node_modules/json-schema/package.json +16 -22
- package/node_modules/npm/node_modules/jsprim/CHANGES.md +4 -0
- package/node_modules/npm/node_modules/jsprim/CONTRIBUTING.md +19 -0
- package/node_modules/npm/node_modules/jsprim/package.json +16 -16
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.pyc +0 -0
- package/node_modules/npm/node_modules/path-parse/index.js +17 -35
- package/node_modules/npm/node_modules/path-parse/package.json +14 -17
- package/node_modules/npm/node_modules/tar/lib/extract.js +4 -3
- package/node_modules/npm/node_modules/tar/lib/list.js +4 -3
- package/node_modules/npm/node_modules/tar/lib/mkdir.js +55 -48
- package/node_modules/npm/node_modules/tar/lib/normalize-windows-path.js +8 -0
- package/node_modules/npm/node_modules/tar/lib/pack.js +8 -18
- package/node_modules/npm/node_modules/tar/lib/path-reservations.js +149 -0
- package/node_modules/npm/node_modules/tar/lib/read-entry.js +4 -3
- package/node_modules/npm/node_modules/tar/lib/replace.js +2 -1
- package/node_modules/npm/node_modules/tar/lib/strip-absolute-path.js +24 -0
- package/node_modules/npm/node_modules/tar/lib/strip-trailing-slashes.js +24 -0
- package/node_modules/npm/node_modules/tar/lib/unpack.js +321 -96
- package/node_modules/npm/node_modules/tar/lib/write-entry.js +178 -82
- package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/package.json +77 -0
- package/node_modules/npm/node_modules/tar/node_modules/yallist/LICENSE +15 -0
- package/node_modules/npm/node_modules/tar/node_modules/yallist/README.md +204 -0
- package/node_modules/npm/node_modules/tar/node_modules/yallist/iterator.js +8 -0
- package/node_modules/npm/node_modules/tar/node_modules/yallist/package.json +63 -0
- package/node_modules/npm/node_modules/tar/node_modules/yallist/yallist.js +426 -0
- package/node_modules/npm/node_modules/tar/package.json +29 -26
- package/node_modules/npm/package.json +6 -5
- package/node_modules/qs/.editorconfig +9 -0
- package/node_modules/qs/.eslintignore +2 -1
- package/node_modules/qs/.eslintrc +15 -1
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +103 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +34 -0
- package/node_modules/qs/dist/qs.js +117 -67
- package/node_modules/qs/lib/formats.js +9 -4
- package/node_modules/qs/lib/parse.js +29 -14
- package/node_modules/qs/lib/stringify.js +55 -46
- package/node_modules/qs/lib/utils.js +23 -2
- package/node_modules/qs/package.json +31 -20
- package/node_modules/qs/test/parse.js +97 -1
- package/node_modules/qs/test/stringify.js +115 -1
- package/node_modules/qs/test/utils.js +1 -1
- package/node_modules/raw-body/HISTORY.md +14 -0
- package/node_modules/raw-body/README.md +3 -5
- package/node_modules/raw-body/package.json +21 -21
- package/node_modules/request/node_modules/qs/.editorconfig +14 -1
- package/node_modules/request/node_modules/qs/.eslintrc +21 -3
- package/node_modules/request/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/request/node_modules/qs/.nycrc +13 -0
- package/node_modules/request/node_modules/qs/CHANGELOG.md +24 -0
- package/node_modules/request/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/request/node_modules/qs/README.md +54 -19
- package/node_modules/request/node_modules/qs/bower.json +21 -0
- package/node_modules/request/node_modules/qs/component.json +15 -0
- package/node_modules/request/node_modules/qs/dist/qs.js +35 -25
- package/node_modules/request/node_modules/qs/lib/formats.js +1 -1
- package/node_modules/request/node_modules/qs/lib/parse.js +6 -5
- package/node_modules/request/node_modules/qs/lib/stringify.js +21 -14
- package/node_modules/request/node_modules/qs/lib/utils.js +7 -5
- package/node_modules/request/node_modules/qs/package.json +21 -19
- package/node_modules/request/node_modules/qs/test/parse.js +79 -4
- package/node_modules/request/node_modules/qs/test/stringify.js +45 -0
- package/node_modules/request/node_modules/qs/test/utils.js +31 -0
- package/node_modules/resolve/.eslintrc +34 -8
- package/node_modules/resolve/.github/FUNDING.yml +12 -0
- package/node_modules/resolve/appveyor.yml +4 -2
- package/node_modules/resolve/async.js +3 -0
- package/node_modules/resolve/bin/resolve +50 -0
- package/node_modules/resolve/lib/async.js +10 -1
- package/node_modules/resolve/lib/core.js +1 -2
- package/node_modules/resolve/lib/core.json +85 -16
- package/node_modules/resolve/lib/homedir.js +24 -0
- package/node_modules/resolve/lib/node-modules-paths.js +1 -1
- package/node_modules/resolve/lib/sync.js +14 -5
- package/node_modules/resolve/package.json +26 -15
- package/node_modules/resolve/readme.markdown +35 -13
- package/node_modules/resolve/sync.js +3 -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/mock_sync.js +2 -4
- package/node_modules/resolve/test/node_path.js +1 -1
- package/node_modules/resolve/test/resolver/invalid_main/package.json +1 -1
- package/node_modules/resolve/test/resolver/malformed_package_json/index.js +0 -0
- package/node_modules/resolve/test/resolver/malformed_package_json/package.json +1 -0
- package/node_modules/resolve/test/resolver.js +99 -3
- package/node_modules/resolve/test/resolver_sync.js +310 -23
- package/node_modules/safe-buffer/index.js +3 -0
- package/node_modules/safe-buffer/package.json +21 -7
- package/node_modules/send/HISTORY.md +10 -0
- package/node_modules/send/README.md +4 -6
- package/node_modules/send/index.js +7 -3
- package/node_modules/send/node_modules/ms/index.js +3 -3
- package/node_modules/send/node_modules/ms/license.md +1 -1
- package/node_modules/send/node_modules/ms/package.json +8 -7
- package/node_modules/send/node_modules/ms/readme.md +1 -2
- package/node_modules/send/package.json +19 -19
- package/node_modules/serve-static/HISTORY.md +8 -0
- package/node_modules/serve-static/README.md +9 -11
- package/node_modules/serve-static/package.json +19 -19
- package/node_modules/setprototypeof/README.md +1 -1
- package/node_modules/setprototypeof/index.js +1 -1
- package/node_modules/setprototypeof/package.json +9 -7
- package/node_modules/shelljs/package.json +4 -4
- package/node_modules/shelljs/src/exec.js +19 -1
- package/node_modules/signal-exit/README.md +1 -1
- package/node_modules/signal-exit/index.js +169 -130
- package/node_modules/signal-exit/package.json +13 -13
- package/node_modules/sshpk/Jenkinsfile +86 -0
- package/node_modules/sshpk/lib/formats/putty.js +99 -4
- package/node_modules/sshpk/lib/private-key.js +1 -0
- package/node_modules/sshpk/package.json +4 -4
- 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 +74 -0
- package/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/README.md +3 -3
- package/node_modules/toidentifier/index.js +2 -0
- package/node_modules/toidentifier/package.json +19 -15
- package/node_modules/underscore/amd/_collectNonEnumProps.js +1 -1
- package/node_modules/underscore/amd/_setup.js +1 -1
- package/node_modules/underscore/amd/sample.js +2 -2
- package/node_modules/underscore/cjs/_collectNonEnumProps.js +1 -1
- package/node_modules/underscore/cjs/_setup.js +1 -1
- package/node_modules/underscore/cjs/sample.js +2 -2
- package/node_modules/underscore/modules/_collectNonEnumProps.js +1 -1
- package/node_modules/underscore/modules/_setup.js +1 -1
- package/node_modules/underscore/modules/index.js +1 -1
- package/node_modules/underscore/modules/sample.js +2 -2
- package/node_modules/underscore/package.json +4 -4
- package/node_modules/underscore/underscore-esm-min.js +2 -2
- package/node_modules/underscore/underscore-esm-min.js.map +1 -1
- package/node_modules/underscore/underscore-esm.js +17 -17
- package/node_modules/underscore/underscore-esm.js.map +1 -1
- package/node_modules/underscore/underscore-min.js +2 -2
- package/node_modules/underscore/underscore-min.js.map +1 -1
- package/node_modules/underscore/underscore-node-f.cjs +17 -17
- package/node_modules/underscore/underscore-node-f.cjs.map +1 -1
- package/node_modules/underscore/underscore-node.cjs +1 -1
- package/node_modules/underscore/underscore-node.mjs +1 -1
- package/node_modules/underscore/underscore-umd-min.js +2 -2
- package/node_modules/underscore/underscore-umd-min.js.map +1 -1
- package/node_modules/underscore/underscore-umd.js +17 -17
- package/node_modules/underscore/underscore-umd.js.map +1 -1
- package/node_modules/underscore/underscore.js +17 -17
- package/package.json +9 -9
- package/node_modules/glob/changelog.md +0 -67
- package/node_modules/hosted-git-info/CHANGELOG.md +0 -151
- package/node_modules/hosted-git-info/LICENSE +0 -13
- package/node_modules/hosted-git-info/README.md +0 -133
- package/node_modules/hosted-git-info/git-host-info.js +0 -79
- package/node_modules/hosted-git-info/git-host.js +0 -156
- package/node_modules/hosted-git-info/index.js +0 -148
- package/node_modules/hosted-git-info/package.json +0 -44
- package/node_modules/is-callable/.github/main.workflow +0 -14
- package/node_modules/is-core-module/.eslintignore +0 -1
- package/node_modules/json-parse-better-errors/CHANGELOG.md +0 -46
- package/node_modules/json-parse-better-errors/LICENSE.md +0 -7
- package/node_modules/json-parse-better-errors/README.md +0 -46
- package/node_modules/json-parse-better-errors/index.js +0 -38
- package/node_modules/json-parse-better-errors/package.json +0 -49
- package/node_modules/json-schema/draft-00/hyper-schema +0 -68
- package/node_modules/json-schema/draft-00/json-ref +0 -26
- package/node_modules/json-schema/draft-00/links +0 -33
- package/node_modules/json-schema/draft-00/schema +0 -155
- package/node_modules/json-schema/draft-01/hyper-schema +0 -68
- package/node_modules/json-schema/draft-01/json-ref +0 -26
- package/node_modules/json-schema/draft-01/links +0 -33
- package/node_modules/json-schema/draft-01/schema +0 -155
- package/node_modules/json-schema/draft-02/hyper-schema +0 -68
- package/node_modules/json-schema/draft-02/json-ref +0 -26
- package/node_modules/json-schema/draft-02/links +0 -35
- package/node_modules/json-schema/draft-02/schema +0 -166
- package/node_modules/json-schema/draft-03/examples/address +0 -20
- package/node_modules/json-schema/draft-03/examples/calendar +0 -53
- package/node_modules/json-schema/draft-03/examples/card +0 -105
- package/node_modules/json-schema/draft-03/examples/geo +0 -8
- package/node_modules/json-schema/draft-03/examples/interfaces +0 -23
- package/node_modules/json-schema/draft-03/hyper-schema +0 -60
- package/node_modules/json-schema/draft-03/json-ref +0 -26
- package/node_modules/json-schema/draft-03/links +0 -35
- package/node_modules/json-schema/draft-03/schema +0 -174
- package/node_modules/json-schema/draft-04/hyper-schema +0 -60
- package/node_modules/json-schema/draft-04/links +0 -41
- package/node_modules/json-schema/draft-04/schema +0 -189
- package/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
- package/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
- package/node_modules/json-schema/test/tests.js +0 -95
- package/node_modules/normalize-package-data/AUTHORS +0 -4
- package/node_modules/normalize-package-data/LICENSE +0 -30
- package/node_modules/normalize-package-data/README.md +0 -106
- package/node_modules/normalize-package-data/lib/extract_description.js +0 -14
- package/node_modules/normalize-package-data/lib/fixer.js +0 -418
- package/node_modules/normalize-package-data/lib/make_warning.js +0 -23
- package/node_modules/normalize-package-data/lib/normalize.js +0 -39
- package/node_modules/normalize-package-data/lib/safe_format.js +0 -9
- package/node_modules/normalize-package-data/lib/typos.json +0 -25
- package/node_modules/normalize-package-data/lib/warning_messages.json +0 -30
- package/node_modules/normalize-package-data/package.json +0 -35
- package/node_modules/npm/node_modules/json-schema/draft-00/hyper-schema +0 -68
- package/node_modules/npm/node_modules/json-schema/draft-00/json-ref +0 -26
- package/node_modules/npm/node_modules/json-schema/draft-00/links +0 -33
- package/node_modules/npm/node_modules/json-schema/draft-00/schema +0 -155
- package/node_modules/npm/node_modules/json-schema/draft-01/hyper-schema +0 -68
- package/node_modules/npm/node_modules/json-schema/draft-01/json-ref +0 -26
- package/node_modules/npm/node_modules/json-schema/draft-01/links +0 -33
- package/node_modules/npm/node_modules/json-schema/draft-01/schema +0 -155
- package/node_modules/npm/node_modules/json-schema/draft-02/hyper-schema +0 -68
- package/node_modules/npm/node_modules/json-schema/draft-02/json-ref +0 -26
- package/node_modules/npm/node_modules/json-schema/draft-02/links +0 -35
- package/node_modules/npm/node_modules/json-schema/draft-02/schema +0 -166
- package/node_modules/npm/node_modules/json-schema/draft-03/examples/address +0 -20
- package/node_modules/npm/node_modules/json-schema/draft-03/examples/calendar +0 -53
- package/node_modules/npm/node_modules/json-schema/draft-03/examples/card +0 -105
- package/node_modules/npm/node_modules/json-schema/draft-03/examples/geo +0 -8
- package/node_modules/npm/node_modules/json-schema/draft-03/examples/interfaces +0 -23
- package/node_modules/npm/node_modules/json-schema/draft-03/hyper-schema +0 -60
- package/node_modules/npm/node_modules/json-schema/draft-03/json-ref +0 -26
- package/node_modules/npm/node_modules/json-schema/draft-03/links +0 -35
- package/node_modules/npm/node_modules/json-schema/draft-03/schema +0 -174
- package/node_modules/npm/node_modules/json-schema/draft-04/hyper-schema +0 -60
- package/node_modules/npm/node_modules/json-schema/draft-04/links +0 -41
- package/node_modules/npm/node_modules/json-schema/draft-04/schema +0 -189
- package/node_modules/npm/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
- package/node_modules/npm/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
- package/node_modules/npm/node_modules/json-schema/test/tests.js +0 -95
- package/node_modules/npm/node_modules/path-parse/.travis.yml +0 -9
- package/node_modules/npm/node_modules/path-parse/test.js +0 -77
- package/node_modules/qs/LICENSE +0 -28
- package/node_modules/qs/test/.eslintrc +0 -17
- package/node_modules/qs/test/index.js +0 -7
- package/node_modules/request/node_modules/qs/.eslintignore +0 -1
- package/node_modules/request/node_modules/qs/LICENSE +0 -28
- package/node_modules/request/node_modules/qs/test/.eslintrc +0 -15
- package/node_modules/resolve/.eslintignore +0 -1
- package/node_modules/resolve/test/.eslintrc +0 -5
- package/node_modules/signal-exit/CHANGELOG.md +0 -35
- package/node_modules/spdx-correct/LICENSE +0 -202
- package/node_modules/spdx-correct/README.md +0 -14
- package/node_modules/spdx-correct/index.js +0 -364
- package/node_modules/spdx-correct/package.json +0 -43
- package/node_modules/spdx-exceptions/README.md +0 -36
- package/node_modules/spdx-exceptions/index.json +0 -40
- package/node_modules/spdx-exceptions/package.json +0 -21
- package/node_modules/spdx-expression-parse/AUTHORS +0 -4
- package/node_modules/spdx-expression-parse/LICENSE +0 -22
- package/node_modules/spdx-expression-parse/README.md +0 -91
- package/node_modules/spdx-expression-parse/index.js +0 -8
- package/node_modules/spdx-expression-parse/package.json +0 -43
- package/node_modules/spdx-expression-parse/parse.js +0 -138
- package/node_modules/spdx-expression-parse/scan.js +0 -131
- package/node_modules/spdx-license-ids/README.md +0 -52
- package/node_modules/spdx-license-ids/deprecated.json +0 -26
- package/node_modules/spdx-license-ids/index.json +0 -432
- package/node_modules/spdx-license-ids/package.json +0 -44
- package/node_modules/sshpk/.npmignore +0 -9
- package/node_modules/validate-npm-package-license/LICENSE +0 -202
- package/node_modules/validate-npm-package-license/README.md +0 -113
- package/node_modules/validate-npm-package-license/index.js +0 -86
- package/node_modules/validate-npm-package-license/package.json +0 -32
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_from": "json-schema@0.
|
|
3
|
-
"_id": "json-schema@0.
|
|
2
|
+
"_from": "json-schema@0.4.0",
|
|
3
|
+
"_id": "json-schema@0.4.0",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "
|
|
5
|
+
"_integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==",
|
|
6
6
|
"_location": "/json-schema",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
9
9
|
"type": "version",
|
|
10
10
|
"registry": true,
|
|
11
|
-
"raw": "json-schema@0.
|
|
11
|
+
"raw": "json-schema@0.4.0",
|
|
12
12
|
"name": "json-schema",
|
|
13
13
|
"escapedName": "json-schema",
|
|
14
|
-
"rawSpec": "0.
|
|
14
|
+
"rawSpec": "0.4.0",
|
|
15
15
|
"saveSpec": null,
|
|
16
|
-
"fetchSpec": "0.
|
|
16
|
+
"fetchSpec": "0.4.0"
|
|
17
17
|
},
|
|
18
18
|
"_requiredBy": [
|
|
19
19
|
"/jsprim"
|
|
20
20
|
],
|
|
21
|
-
"_resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.
|
|
22
|
-
"_shasum": "
|
|
23
|
-
"_spec": "json-schema@0.
|
|
24
|
-
"_where": "/Users/
|
|
21
|
+
"_resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz",
|
|
22
|
+
"_shasum": "f7de4cf6efab838ebaeb3236474cbba5a1930ab5",
|
|
23
|
+
"_spec": "json-schema@0.4.0",
|
|
24
|
+
"_where": "/Users/ruyadorno/Documents/workspace/cli/legacy/node_modules/jsprim",
|
|
25
25
|
"author": {
|
|
26
26
|
"name": "Kris Zyp"
|
|
27
27
|
},
|
|
@@ -37,21 +37,15 @@
|
|
|
37
37
|
"directories": {
|
|
38
38
|
"lib": "./lib"
|
|
39
39
|
},
|
|
40
|
+
"files": [
|
|
41
|
+
"lib"
|
|
42
|
+
],
|
|
40
43
|
"homepage": "https://github.com/kriszyp/json-schema#readme",
|
|
41
44
|
"keywords": [
|
|
42
45
|
"json",
|
|
43
46
|
"schema"
|
|
44
47
|
],
|
|
45
|
-
"
|
|
46
|
-
{
|
|
47
|
-
"type": "AFLv2.1",
|
|
48
|
-
"url": "http://trac.dojotoolkit.org/browser/dojo/trunk/LICENSE#L43"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"type": "BSD",
|
|
52
|
-
"url": "http://trac.dojotoolkit.org/browser/dojo/trunk/LICENSE#L13"
|
|
53
|
-
}
|
|
54
|
-
],
|
|
48
|
+
"license": "(AFL-2.1 OR BSD-3-Clause)",
|
|
55
49
|
"main": "./lib/validate.js",
|
|
56
50
|
"maintainers": [
|
|
57
51
|
{
|
|
@@ -65,7 +59,7 @@
|
|
|
65
59
|
"url": "git+ssh://git@github.com/kriszyp/json-schema.git"
|
|
66
60
|
},
|
|
67
61
|
"scripts": {
|
|
68
|
-
"test": "
|
|
62
|
+
"test": "vows --spec test/*.js"
|
|
69
63
|
},
|
|
70
|
-
"version": "0.
|
|
64
|
+
"version": "0.4.0"
|
|
71
65
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
This repository uses [cr.joyent.us](https://cr.joyent.us) (Gerrit) for new
|
|
4
|
+
changes. Anyone can submit changes. To get started, see the [cr.joyent.us user
|
|
5
|
+
guide](https://github.com/joyent/joyent-gerrit/blob/master/docs/user/README.md).
|
|
6
|
+
This repo does not use GitHub pull requests.
|
|
7
|
+
|
|
8
|
+
See the [Joyent Engineering
|
|
9
|
+
Guidelines](https://github.com/joyent/eng/blob/master/docs/index.md) for general
|
|
10
|
+
best practices expected in this repository.
|
|
11
|
+
|
|
12
|
+
Contributions should be "make prepush" clean. The "prepush" target runs the
|
|
13
|
+
"check" target, which requires these separate tools:
|
|
14
|
+
|
|
15
|
+
* https://github.com/davepacheco/jsstyle
|
|
16
|
+
* https://github.com/davepacheco/javascriptlint
|
|
17
|
+
|
|
18
|
+
If you're changing something non-trivial or user-facing, you may want to submit
|
|
19
|
+
an issue first.
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_from": "jsprim
|
|
3
|
-
"_id": "jsprim@1.4.
|
|
2
|
+
"_from": "jsprim@1.4.2",
|
|
3
|
+
"_id": "jsprim@1.4.2",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "
|
|
5
|
+
"_integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==",
|
|
6
6
|
"_location": "/jsprim",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
9
|
-
"type": "
|
|
9
|
+
"type": "version",
|
|
10
10
|
"registry": true,
|
|
11
|
-
"raw": "jsprim
|
|
11
|
+
"raw": "jsprim@1.4.2",
|
|
12
12
|
"name": "jsprim",
|
|
13
13
|
"escapedName": "jsprim",
|
|
14
|
-
"rawSpec": "
|
|
14
|
+
"rawSpec": "1.4.2",
|
|
15
15
|
"saveSpec": null,
|
|
16
|
-
"fetchSpec": "
|
|
16
|
+
"fetchSpec": "1.4.2"
|
|
17
17
|
},
|
|
18
18
|
"_requiredBy": [
|
|
19
19
|
"/http-signature"
|
|
20
20
|
],
|
|
21
|
-
"_resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.
|
|
22
|
-
"_shasum": "
|
|
23
|
-
"_spec": "jsprim
|
|
24
|
-
"_where": "/Users/
|
|
21
|
+
"_resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz",
|
|
22
|
+
"_shasum": "712c65533a15c878ba59e9ed5f0e26d5b77c5feb",
|
|
23
|
+
"_spec": "jsprim@1.4.2",
|
|
24
|
+
"_where": "/Users/ruyadorno/Documents/workspace/cli/legacy/node_modules/http-signature",
|
|
25
25
|
"bugs": {
|
|
26
26
|
"url": "https://github.com/joyent/node-jsprim/issues"
|
|
27
27
|
},
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"assert-plus": "1.0.0",
|
|
31
31
|
"extsprintf": "1.3.0",
|
|
32
|
-
"json-schema": "0.
|
|
32
|
+
"json-schema": "0.4.0",
|
|
33
33
|
"verror": "1.10.0"
|
|
34
34
|
},
|
|
35
35
|
"deprecated": false,
|
|
36
36
|
"description": "utilities for primitive JavaScript types",
|
|
37
|
-
"engines":
|
|
38
|
-
"node >=0.6.0"
|
|
39
|
-
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=0.6.0"
|
|
39
|
+
},
|
|
40
40
|
"homepage": "https://github.com/joyent/node-jsprim#readme",
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"main": "./lib/jsprim.js",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"type": "git",
|
|
46
46
|
"url": "git://github.com/joyent/node-jsprim.git"
|
|
47
47
|
},
|
|
48
|
-
"version": "1.4.
|
|
48
|
+
"version": "1.4.2"
|
|
49
49
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -2,29 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var isWindows = process.platform === 'win32';
|
|
4
4
|
|
|
5
|
-
// Regex to split a windows path into
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
|
|
9
|
-
|
|
10
|
-
// Regex to split the tail part of the above into [*, dir, basename, ext]
|
|
11
|
-
var splitTailRe =
|
|
12
|
-
/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/;
|
|
5
|
+
// Regex to split a windows path into into [dir, root, basename, name, ext]
|
|
6
|
+
var splitWindowsRe =
|
|
7
|
+
/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/;
|
|
13
8
|
|
|
14
9
|
var win32 = {};
|
|
15
10
|
|
|
16
|
-
// Function to split a filename into [root, dir, basename, ext]
|
|
17
11
|
function win32SplitPath(filename) {
|
|
18
|
-
|
|
19
|
-
var result = splitDeviceRe.exec(filename),
|
|
20
|
-
device = (result[1] || '') + (result[2] || ''),
|
|
21
|
-
tail = result[3] || '';
|
|
22
|
-
// Split the tail into dir, basename and extension
|
|
23
|
-
var result2 = splitTailRe.exec(tail),
|
|
24
|
-
dir = result2[1],
|
|
25
|
-
basename = result2[2],
|
|
26
|
-
ext = result2[3];
|
|
27
|
-
return [device, dir, basename, ext];
|
|
12
|
+
return splitWindowsRe.exec(filename).slice(1);
|
|
28
13
|
}
|
|
29
14
|
|
|
30
15
|
win32.parse = function(pathString) {
|
|
@@ -34,24 +19,24 @@ win32.parse = function(pathString) {
|
|
|
34
19
|
);
|
|
35
20
|
}
|
|
36
21
|
var allParts = win32SplitPath(pathString);
|
|
37
|
-
if (!allParts || allParts.length !==
|
|
22
|
+
if (!allParts || allParts.length !== 5) {
|
|
38
23
|
throw new TypeError("Invalid path '" + pathString + "'");
|
|
39
24
|
}
|
|
40
25
|
return {
|
|
41
|
-
root: allParts[
|
|
42
|
-
dir: allParts[0]
|
|
26
|
+
root: allParts[1],
|
|
27
|
+
dir: allParts[0] === allParts[1] ? allParts[0] : allParts[0].slice(0, -1),
|
|
43
28
|
base: allParts[2],
|
|
44
|
-
ext: allParts[
|
|
45
|
-
name: allParts[
|
|
29
|
+
ext: allParts[4],
|
|
30
|
+
name: allParts[3]
|
|
46
31
|
};
|
|
47
32
|
};
|
|
48
33
|
|
|
49
34
|
|
|
50
35
|
|
|
51
|
-
// Split a filename into [
|
|
36
|
+
// Split a filename into [dir, root, basename, name, ext], unix version
|
|
52
37
|
// 'root' is just a slash, or nothing.
|
|
53
38
|
var splitPathRe =
|
|
54
|
-
/^(
|
|
39
|
+
/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/;
|
|
55
40
|
var posix = {};
|
|
56
41
|
|
|
57
42
|
|
|
@@ -67,19 +52,16 @@ posix.parse = function(pathString) {
|
|
|
67
52
|
);
|
|
68
53
|
}
|
|
69
54
|
var allParts = posixSplitPath(pathString);
|
|
70
|
-
if (!allParts || allParts.length !==
|
|
55
|
+
if (!allParts || allParts.length !== 5) {
|
|
71
56
|
throw new TypeError("Invalid path '" + pathString + "'");
|
|
72
57
|
}
|
|
73
|
-
|
|
74
|
-
allParts[2] = allParts[2] || '';
|
|
75
|
-
allParts[3] = allParts[3] || '';
|
|
76
|
-
|
|
58
|
+
|
|
77
59
|
return {
|
|
78
|
-
root: allParts[
|
|
79
|
-
dir: allParts[0]
|
|
60
|
+
root: allParts[1],
|
|
61
|
+
dir: allParts[0].slice(0, -1),
|
|
80
62
|
base: allParts[2],
|
|
81
|
-
ext: allParts[
|
|
82
|
-
name: allParts[
|
|
63
|
+
ext: allParts[4],
|
|
64
|
+
name: allParts[3],
|
|
83
65
|
};
|
|
84
66
|
};
|
|
85
67
|
|
|
@@ -1,33 +1,28 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
"path-parse@1.0.6",
|
|
5
|
-
"/Users/aeschright/code/npm-release"
|
|
6
|
-
]
|
|
7
|
-
],
|
|
8
|
-
"_development": true,
|
|
9
|
-
"_from": "path-parse@1.0.6",
|
|
10
|
-
"_id": "path-parse@1.0.6",
|
|
2
|
+
"_from": "path-parse@1.0.7",
|
|
3
|
+
"_id": "path-parse@1.0.7",
|
|
11
4
|
"_inBundle": false,
|
|
12
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
|
|
13
6
|
"_location": "/path-parse",
|
|
14
7
|
"_phantomChildren": {},
|
|
15
8
|
"_requested": {
|
|
16
9
|
"type": "version",
|
|
17
10
|
"registry": true,
|
|
18
|
-
"raw": "path-parse@1.0.
|
|
11
|
+
"raw": "path-parse@1.0.7",
|
|
19
12
|
"name": "path-parse",
|
|
20
13
|
"escapedName": "path-parse",
|
|
21
|
-
"rawSpec": "1.0.
|
|
14
|
+
"rawSpec": "1.0.7",
|
|
22
15
|
"saveSpec": null,
|
|
23
|
-
"fetchSpec": "1.0.
|
|
16
|
+
"fetchSpec": "1.0.7"
|
|
24
17
|
},
|
|
25
18
|
"_requiredBy": [
|
|
19
|
+
"/normalize-package-data/resolve",
|
|
26
20
|
"/resolve"
|
|
27
21
|
],
|
|
28
|
-
"_resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.
|
|
29
|
-
"
|
|
30
|
-
"
|
|
22
|
+
"_resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
|
|
23
|
+
"_shasum": "fbc114b60ca42b30d9daf5858e4bd68bbedb6735",
|
|
24
|
+
"_spec": "path-parse@1.0.7",
|
|
25
|
+
"_where": "/Users/darcyclarke/Documents/Repos/npm/npm6/node_modules/resolve",
|
|
31
26
|
"author": {
|
|
32
27
|
"name": "Javier Blanco",
|
|
33
28
|
"email": "http://jbgutierrez.info"
|
|
@@ -35,6 +30,8 @@
|
|
|
35
30
|
"bugs": {
|
|
36
31
|
"url": "https://github.com/jbgutierrez/path-parse/issues"
|
|
37
32
|
},
|
|
33
|
+
"bundleDependencies": false,
|
|
34
|
+
"deprecated": false,
|
|
38
35
|
"description": "Node.js path.parse() ponyfill",
|
|
39
36
|
"homepage": "https://github.com/jbgutierrez/path-parse#readme",
|
|
40
37
|
"keywords": [
|
|
@@ -61,5 +58,5 @@
|
|
|
61
58
|
"scripts": {
|
|
62
59
|
"test": "node test.js"
|
|
63
60
|
},
|
|
64
|
-
"version": "1.0.
|
|
61
|
+
"version": "1.0.7"
|
|
65
62
|
}
|
|
@@ -6,6 +6,7 @@ const Unpack = require('./unpack.js')
|
|
|
6
6
|
const fs = require('fs')
|
|
7
7
|
const fsm = require('fs-minipass')
|
|
8
8
|
const path = require('path')
|
|
9
|
+
const stripSlash = require('./strip-trailing-slashes.js')
|
|
9
10
|
|
|
10
11
|
const x = module.exports = (opt_, files, cb) => {
|
|
11
12
|
if (typeof opt_ === 'function')
|
|
@@ -41,7 +42,7 @@ const x = module.exports = (opt_, files, cb) => {
|
|
|
41
42
|
// construct a filter that limits the file entries listed
|
|
42
43
|
// include child entries if a dir is included
|
|
43
44
|
const filesFilter = (opt, files) => {
|
|
44
|
-
const map = new Map(files.map(f => [f
|
|
45
|
+
const map = new Map(files.map(f => [stripSlash(f), true]))
|
|
45
46
|
const filter = opt.filter
|
|
46
47
|
|
|
47
48
|
const mapHas = (file, r) => {
|
|
@@ -55,8 +56,8 @@ const filesFilter = (opt, files) => {
|
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
opt.filter = filter
|
|
58
|
-
? (file, entry) => filter(file, entry) && mapHas(file
|
|
59
|
-
: file => mapHas(file
|
|
59
|
+
? (file, entry) => filter(file, entry) && mapHas(stripSlash(file))
|
|
60
|
+
: file => mapHas(stripSlash(file))
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
const extractFileSync = opt => {
|
|
@@ -11,6 +11,7 @@ const Parser = require('./parse.js')
|
|
|
11
11
|
const fs = require('fs')
|
|
12
12
|
const fsm = require('fs-minipass')
|
|
13
13
|
const path = require('path')
|
|
14
|
+
const stripSlash = require('./strip-trailing-slashes.js')
|
|
14
15
|
|
|
15
16
|
const t = module.exports = (opt_, files, cb) => {
|
|
16
17
|
if (typeof opt_ === 'function')
|
|
@@ -56,7 +57,7 @@ const onentryFunction = opt => {
|
|
|
56
57
|
// construct a filter that limits the file entries listed
|
|
57
58
|
// include child entries if a dir is included
|
|
58
59
|
const filesFilter = (opt, files) => {
|
|
59
|
-
const map = new Map(files.map(f => [f
|
|
60
|
+
const map = new Map(files.map(f => [stripSlash(f), true]))
|
|
60
61
|
const filter = opt.filter
|
|
61
62
|
|
|
62
63
|
const mapHas = (file, r) => {
|
|
@@ -70,8 +71,8 @@ const filesFilter = (opt, files) => {
|
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
opt.filter = filter
|
|
73
|
-
? (file, entry) => filter(file, entry) && mapHas(file
|
|
74
|
-
: file => mapHas(file
|
|
74
|
+
? (file, entry) => filter(file, entry) && mapHas(stripSlash(file))
|
|
75
|
+
: file => mapHas(stripSlash(file))
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
const listFileSync = opt => {
|
|
@@ -8,6 +8,7 @@ const mkdirp = require('mkdirp')
|
|
|
8
8
|
const fs = require('fs')
|
|
9
9
|
const path = require('path')
|
|
10
10
|
const chownr = require('chownr')
|
|
11
|
+
const normPath = require('./normalize-windows-path.js')
|
|
11
12
|
|
|
12
13
|
class SymlinkError extends Error {
|
|
13
14
|
constructor (symlink, path) {
|
|
@@ -33,7 +34,20 @@ class CwdError extends Error {
|
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
const
|
|
37
|
+
const cGet = (cache, key) => cache.get(normPath(key))
|
|
38
|
+
const cSet = (cache, key, val) => cache.set(normPath(key), val)
|
|
39
|
+
|
|
40
|
+
const checkCwd = (dir, cb) => {
|
|
41
|
+
fs.stat(dir, (er, st) => {
|
|
42
|
+
if (er || !st.isDirectory())
|
|
43
|
+
er = new CwdError(dir, er && er.code || 'ENOTDIR')
|
|
44
|
+
cb(er)
|
|
45
|
+
})
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
module.exports = (dir, opt, cb) => {
|
|
49
|
+
dir = normPath(dir)
|
|
50
|
+
|
|
37
51
|
// if there's any overlap between mask and mode,
|
|
38
52
|
// then we'll need an explicit chmod
|
|
39
53
|
const umask = opt.umask
|
|
@@ -49,13 +63,13 @@ const mkdir = module.exports = (dir, opt, cb) => {
|
|
|
49
63
|
const preserve = opt.preserve
|
|
50
64
|
const unlink = opt.unlink
|
|
51
65
|
const cache = opt.cache
|
|
52
|
-
const cwd = opt.cwd
|
|
66
|
+
const cwd = normPath(opt.cwd)
|
|
53
67
|
|
|
54
68
|
const done = (er, created) => {
|
|
55
69
|
if (er)
|
|
56
70
|
cb(er)
|
|
57
71
|
else {
|
|
58
|
-
cache
|
|
72
|
+
cSet(cache, dir, true)
|
|
59
73
|
if (created && doChown)
|
|
60
74
|
chownr(created, uid, gid, er => done(er))
|
|
61
75
|
else if (needChmod)
|
|
@@ -65,21 +79,17 @@ const mkdir = module.exports = (dir, opt, cb) => {
|
|
|
65
79
|
}
|
|
66
80
|
}
|
|
67
81
|
|
|
68
|
-
if (cache && cache
|
|
82
|
+
if (cache && cGet(cache, dir) === true)
|
|
69
83
|
return done()
|
|
70
84
|
|
|
71
85
|
if (dir === cwd)
|
|
72
|
-
return
|
|
73
|
-
if (er || !st.isDirectory())
|
|
74
|
-
er = new CwdError(dir, er && er.code || 'ENOTDIR')
|
|
75
|
-
done(er)
|
|
76
|
-
})
|
|
86
|
+
return checkCwd(dir, done)
|
|
77
87
|
|
|
78
88
|
if (preserve)
|
|
79
89
|
return mkdirp(dir, mode, done)
|
|
80
90
|
|
|
81
|
-
const sub = path.relative(cwd, dir)
|
|
82
|
-
const parts = sub.split(
|
|
91
|
+
const sub = normPath(path.relative(cwd, dir))
|
|
92
|
+
const parts = sub.split('/')
|
|
83
93
|
mkdir_(cwd, parts, mode, cache, unlink, cwd, null, done)
|
|
84
94
|
}
|
|
85
95
|
|
|
@@ -87,22 +97,19 @@ const mkdir_ = (base, parts, mode, cache, unlink, cwd, created, cb) => {
|
|
|
87
97
|
if (!parts.length)
|
|
88
98
|
return cb(null, created)
|
|
89
99
|
const p = parts.shift()
|
|
90
|
-
const part = base + '/' + p
|
|
91
|
-
if (cache
|
|
100
|
+
const part = normPath(path.resolve(base + '/' + p))
|
|
101
|
+
if (cGet(cache, part))
|
|
92
102
|
return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb)
|
|
93
103
|
fs.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb))
|
|
94
104
|
}
|
|
95
105
|
|
|
96
106
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => er => {
|
|
97
107
|
if (er) {
|
|
98
|
-
if (er.path && path.dirname(er.path) === cwd &&
|
|
99
|
-
(er.code === 'ENOTDIR' || er.code === 'ENOENT'))
|
|
100
|
-
return cb(new CwdError(cwd, er.code))
|
|
101
|
-
|
|
102
108
|
fs.lstat(part, (statEr, st) => {
|
|
103
|
-
if (statEr)
|
|
109
|
+
if (statEr) {
|
|
110
|
+
statEr.path = statEr.path && normPath(statEr.path)
|
|
104
111
|
cb(statEr)
|
|
105
|
-
else if (st.isDirectory())
|
|
112
|
+
} else if (st.isDirectory())
|
|
106
113
|
mkdir_(part, parts, mode, cache, unlink, cwd, created, cb)
|
|
107
114
|
else if (unlink)
|
|
108
115
|
fs.unlink(part, er => {
|
|
@@ -121,7 +128,21 @@ const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => er => {
|
|
|
121
128
|
}
|
|
122
129
|
}
|
|
123
130
|
|
|
124
|
-
const
|
|
131
|
+
const checkCwdSync = dir => {
|
|
132
|
+
let ok = false
|
|
133
|
+
let code = 'ENOTDIR'
|
|
134
|
+
try {
|
|
135
|
+
ok = fs.statSync(dir).isDirectory()
|
|
136
|
+
} catch (er) {
|
|
137
|
+
code = er.code
|
|
138
|
+
} finally {
|
|
139
|
+
if (!ok)
|
|
140
|
+
throw new CwdError(dir, code)
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
module.exports.sync = (dir, opt) => {
|
|
145
|
+
dir = normPath(dir)
|
|
125
146
|
// if there's any overlap between mask and mode,
|
|
126
147
|
// then we'll need an explicit chmod
|
|
127
148
|
const umask = opt.umask
|
|
@@ -137,65 +158,51 @@ const mkdirSync = module.exports.sync = (dir, opt) => {
|
|
|
137
158
|
const preserve = opt.preserve
|
|
138
159
|
const unlink = opt.unlink
|
|
139
160
|
const cache = opt.cache
|
|
140
|
-
const cwd = opt.cwd
|
|
161
|
+
const cwd = normPath(opt.cwd)
|
|
141
162
|
|
|
142
163
|
const done = (created) => {
|
|
143
|
-
cache
|
|
164
|
+
cSet(cache, dir, true)
|
|
144
165
|
if (created && doChown)
|
|
145
166
|
chownr.sync(created, uid, gid)
|
|
146
167
|
if (needChmod)
|
|
147
168
|
fs.chmodSync(dir, mode)
|
|
148
169
|
}
|
|
149
170
|
|
|
150
|
-
if (cache && cache
|
|
171
|
+
if (cache && cGet(cache, dir) === true)
|
|
151
172
|
return done()
|
|
152
173
|
|
|
153
174
|
if (dir === cwd) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
try {
|
|
157
|
-
ok = fs.statSync(dir).isDirectory()
|
|
158
|
-
} catch (er) {
|
|
159
|
-
code = er.code
|
|
160
|
-
} finally {
|
|
161
|
-
if (!ok)
|
|
162
|
-
throw new CwdError(dir, code)
|
|
163
|
-
}
|
|
164
|
-
done()
|
|
165
|
-
return
|
|
175
|
+
checkCwdSync(cwd)
|
|
176
|
+
return done()
|
|
166
177
|
}
|
|
167
178
|
|
|
168
179
|
if (preserve)
|
|
169
180
|
return done(mkdirp.sync(dir, mode))
|
|
170
181
|
|
|
171
|
-
const sub = path.relative(cwd, dir)
|
|
172
|
-
const parts = sub.split(
|
|
182
|
+
const sub = normPath(path.relative(cwd, dir))
|
|
183
|
+
const parts = sub.split('/')
|
|
173
184
|
let created = null
|
|
174
185
|
for (let p = parts.shift(), part = cwd;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
if (cache
|
|
186
|
+
p && (part += '/' + p);
|
|
187
|
+
p = parts.shift()) {
|
|
188
|
+
part = normPath(path.resolve(part))
|
|
189
|
+
if (cGet(cache, part))
|
|
179
190
|
continue
|
|
180
191
|
|
|
181
192
|
try {
|
|
182
193
|
fs.mkdirSync(part, mode)
|
|
183
194
|
created = created || part
|
|
184
|
-
cache
|
|
195
|
+
cSet(cache, part, true)
|
|
185
196
|
} catch (er) {
|
|
186
|
-
if (er.path && path.dirname(er.path) === cwd &&
|
|
187
|
-
(er.code === 'ENOTDIR' || er.code === 'ENOENT'))
|
|
188
|
-
return new CwdError(cwd, er.code)
|
|
189
|
-
|
|
190
197
|
const st = fs.lstatSync(part)
|
|
191
198
|
if (st.isDirectory()) {
|
|
192
|
-
cache
|
|
199
|
+
cSet(cache, part, true)
|
|
193
200
|
continue
|
|
194
201
|
} else if (unlink) {
|
|
195
202
|
fs.unlinkSync(part)
|
|
196
203
|
fs.mkdirSync(part, mode)
|
|
197
204
|
created = created || part
|
|
198
|
-
cache
|
|
205
|
+
cSet(cache, part, true)
|
|
199
206
|
continue
|
|
200
207
|
} else if (st.isSymbolicLink())
|
|
201
208
|
return new SymlinkError(part, part + '/' + parts.join('/'))
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// on windows, either \ or / are valid directory separators.
|
|
2
|
+
// on unix, \ is a valid character in filenames.
|
|
3
|
+
// so, on windows, and only on windows, we replace all \ chars with /,
|
|
4
|
+
// so that we can use / as our one and only directory separator char.
|
|
5
|
+
|
|
6
|
+
const platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform
|
|
7
|
+
module.exports = platform !== 'win32' ? p => p
|
|
8
|
+
: p => p && p.replace(/\\/g, '/')
|