step-node-agent 3.17.2 → 3.18.0
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/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/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-core-module/.eslintrc +0 -1
- package/node_modules/is-core-module/CHANGELOG.md +18 -0
- package/node_modules/is-core-module/core.json +7 -5
- package/node_modules/is-core-module/package.json +10 -10
- package/node_modules/is-core-module/test/index.js +1 -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 +7 -0
- package/node_modules/mime-db/db.json +18 -0
- package/node_modules/mime-db/package.json +7 -7
- package/node_modules/mime-types/HISTORY.md +6 -3
- package/node_modules/mime-types/package.json +8 -8
- package/node_modules/npm/.eslintrc +3 -0
- package/node_modules/npm/CHANGELOG.md +14 -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/package.json +5 -4
- 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/index.js +30 -8
- package/node_modules/signal-exit/package.json +10 -8
- 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/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-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/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/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 -446
- 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,364 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright spdx-correct.js contributors
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
|
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
See the License for the specific language governing permissions and
|
|
14
|
-
limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
var parse = require('spdx-expression-parse')
|
|
17
|
-
var spdxLicenseIds = require('spdx-license-ids')
|
|
18
|
-
|
|
19
|
-
function valid (string) {
|
|
20
|
-
try {
|
|
21
|
-
parse(string)
|
|
22
|
-
return true
|
|
23
|
-
} catch (error) {
|
|
24
|
-
return false
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Common transpositions of license identifier acronyms
|
|
29
|
-
var transpositions = [
|
|
30
|
-
['APGL', 'AGPL'],
|
|
31
|
-
['Gpl', 'GPL'],
|
|
32
|
-
['GLP', 'GPL'],
|
|
33
|
-
['APL', 'Apache'],
|
|
34
|
-
['ISD', 'ISC'],
|
|
35
|
-
['GLP', 'GPL'],
|
|
36
|
-
['IST', 'ISC'],
|
|
37
|
-
['Claude', 'Clause'],
|
|
38
|
-
[' or later', '+'],
|
|
39
|
-
[' International', ''],
|
|
40
|
-
['GNU', 'GPL'],
|
|
41
|
-
['GUN', 'GPL'],
|
|
42
|
-
['+', ''],
|
|
43
|
-
['GNU GPL', 'GPL'],
|
|
44
|
-
['GNU/GPL', 'GPL'],
|
|
45
|
-
['GNU GLP', 'GPL'],
|
|
46
|
-
['GNU General Public License', 'GPL'],
|
|
47
|
-
['Gnu public license', 'GPL'],
|
|
48
|
-
['GNU Public License', 'GPL'],
|
|
49
|
-
['GNU GENERAL PUBLIC LICENSE', 'GPL'],
|
|
50
|
-
['MTI', 'MIT'],
|
|
51
|
-
['Mozilla Public License', 'MPL'],
|
|
52
|
-
['Universal Permissive License', 'UPL'],
|
|
53
|
-
['WTH', 'WTF'],
|
|
54
|
-
['-License', '']
|
|
55
|
-
]
|
|
56
|
-
|
|
57
|
-
var TRANSPOSED = 0
|
|
58
|
-
var CORRECT = 1
|
|
59
|
-
|
|
60
|
-
// Simple corrections to nearly valid identifiers.
|
|
61
|
-
var transforms = [
|
|
62
|
-
// e.g. 'mit'
|
|
63
|
-
function (argument) {
|
|
64
|
-
return argument.toUpperCase()
|
|
65
|
-
},
|
|
66
|
-
// e.g. 'MIT '
|
|
67
|
-
function (argument) {
|
|
68
|
-
return argument.trim()
|
|
69
|
-
},
|
|
70
|
-
// e.g. 'M.I.T.'
|
|
71
|
-
function (argument) {
|
|
72
|
-
return argument.replace(/\./g, '')
|
|
73
|
-
},
|
|
74
|
-
// e.g. 'Apache- 2.0'
|
|
75
|
-
function (argument) {
|
|
76
|
-
return argument.replace(/\s+/g, '')
|
|
77
|
-
},
|
|
78
|
-
// e.g. 'CC BY 4.0''
|
|
79
|
-
function (argument) {
|
|
80
|
-
return argument.replace(/\s+/g, '-')
|
|
81
|
-
},
|
|
82
|
-
// e.g. 'LGPLv2.1'
|
|
83
|
-
function (argument) {
|
|
84
|
-
return argument.replace('v', '-')
|
|
85
|
-
},
|
|
86
|
-
// e.g. 'Apache 2.0'
|
|
87
|
-
function (argument) {
|
|
88
|
-
return argument.replace(/,?\s*(\d)/, '-$1')
|
|
89
|
-
},
|
|
90
|
-
// e.g. 'GPL 2'
|
|
91
|
-
function (argument) {
|
|
92
|
-
return argument.replace(/,?\s*(\d)/, '-$1.0')
|
|
93
|
-
},
|
|
94
|
-
// e.g. 'Apache Version 2.0'
|
|
95
|
-
function (argument) {
|
|
96
|
-
return argument
|
|
97
|
-
.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, '-$2')
|
|
98
|
-
},
|
|
99
|
-
// e.g. 'Apache Version 2'
|
|
100
|
-
function (argument) {
|
|
101
|
-
return argument
|
|
102
|
-
.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, '-$2.0')
|
|
103
|
-
},
|
|
104
|
-
// e.g. 'ZLIB'
|
|
105
|
-
function (argument) {
|
|
106
|
-
return argument[0].toUpperCase() + argument.slice(1)
|
|
107
|
-
},
|
|
108
|
-
// e.g. 'MPL/2.0'
|
|
109
|
-
function (argument) {
|
|
110
|
-
return argument.replace('/', '-')
|
|
111
|
-
},
|
|
112
|
-
// e.g. 'Apache 2'
|
|
113
|
-
function (argument) {
|
|
114
|
-
return argument
|
|
115
|
-
.replace(/\s*V\s*(\d)/, '-$1')
|
|
116
|
-
.replace(/(\d)$/, '$1.0')
|
|
117
|
-
},
|
|
118
|
-
// e.g. 'GPL-2.0', 'GPL-3.0'
|
|
119
|
-
function (argument) {
|
|
120
|
-
if (argument.indexOf('3.0') !== -1) {
|
|
121
|
-
return argument + '-or-later'
|
|
122
|
-
} else {
|
|
123
|
-
return argument + '-only'
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
// e.g. 'GPL-2.0-'
|
|
127
|
-
function (argument) {
|
|
128
|
-
return argument + 'only'
|
|
129
|
-
},
|
|
130
|
-
// e.g. 'GPL2'
|
|
131
|
-
function (argument) {
|
|
132
|
-
return argument.replace(/(\d)$/, '-$1.0')
|
|
133
|
-
},
|
|
134
|
-
// e.g. 'BSD 3'
|
|
135
|
-
function (argument) {
|
|
136
|
-
return argument.replace(/(-| )?(\d)$/, '-$2-Clause')
|
|
137
|
-
},
|
|
138
|
-
// e.g. 'BSD clause 3'
|
|
139
|
-
function (argument) {
|
|
140
|
-
return argument.replace(/(-| )clause(-| )(\d)/, '-$3-Clause')
|
|
141
|
-
},
|
|
142
|
-
// e.g. 'New BSD license'
|
|
143
|
-
function (argument) {
|
|
144
|
-
return argument.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i, 'BSD-3-Clause')
|
|
145
|
-
},
|
|
146
|
-
// e.g. 'Simplified BSD license'
|
|
147
|
-
function (argument) {
|
|
148
|
-
return argument.replace(/\bSimplified(-| )?BSD((-| )License)?/i, 'BSD-2-Clause')
|
|
149
|
-
},
|
|
150
|
-
// e.g. 'Free BSD license'
|
|
151
|
-
function (argument) {
|
|
152
|
-
return argument.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i, 'BSD-2-Clause-$1BSD')
|
|
153
|
-
},
|
|
154
|
-
// e.g. 'Clear BSD license'
|
|
155
|
-
function (argument) {
|
|
156
|
-
return argument.replace(/\bClear(-| )?BSD((-| )License)?/i, 'BSD-3-Clause-Clear')
|
|
157
|
-
},
|
|
158
|
-
// e.g. 'Old BSD License'
|
|
159
|
-
function (argument) {
|
|
160
|
-
return argument.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i, 'BSD-4-Clause')
|
|
161
|
-
},
|
|
162
|
-
// e.g. 'BY-NC-4.0'
|
|
163
|
-
function (argument) {
|
|
164
|
-
return 'CC-' + argument
|
|
165
|
-
},
|
|
166
|
-
// e.g. 'BY-NC'
|
|
167
|
-
function (argument) {
|
|
168
|
-
return 'CC-' + argument + '-4.0'
|
|
169
|
-
},
|
|
170
|
-
// e.g. 'Attribution-NonCommercial'
|
|
171
|
-
function (argument) {
|
|
172
|
-
return argument
|
|
173
|
-
.replace('Attribution', 'BY')
|
|
174
|
-
.replace('NonCommercial', 'NC')
|
|
175
|
-
.replace('NoDerivatives', 'ND')
|
|
176
|
-
.replace(/ (\d)/, '-$1')
|
|
177
|
-
.replace(/ ?International/, '')
|
|
178
|
-
},
|
|
179
|
-
// e.g. 'Attribution-NonCommercial'
|
|
180
|
-
function (argument) {
|
|
181
|
-
return 'CC-' +
|
|
182
|
-
argument
|
|
183
|
-
.replace('Attribution', 'BY')
|
|
184
|
-
.replace('NonCommercial', 'NC')
|
|
185
|
-
.replace('NoDerivatives', 'ND')
|
|
186
|
-
.replace(/ (\d)/, '-$1')
|
|
187
|
-
.replace(/ ?International/, '') +
|
|
188
|
-
'-4.0'
|
|
189
|
-
}
|
|
190
|
-
]
|
|
191
|
-
|
|
192
|
-
var licensesWithVersions = spdxLicenseIds
|
|
193
|
-
.map(function (id) {
|
|
194
|
-
var match = /^(.*)-\d+\.\d+$/.exec(id)
|
|
195
|
-
return match
|
|
196
|
-
? [match[0], match[1]]
|
|
197
|
-
: [id, null]
|
|
198
|
-
})
|
|
199
|
-
.reduce(function (objectMap, item) {
|
|
200
|
-
var key = item[1]
|
|
201
|
-
objectMap[key] = objectMap[key] || []
|
|
202
|
-
objectMap[key].push(item[0])
|
|
203
|
-
return objectMap
|
|
204
|
-
}, {})
|
|
205
|
-
|
|
206
|
-
var licensesWithOneVersion = Object.keys(licensesWithVersions)
|
|
207
|
-
.map(function makeEntries (key) {
|
|
208
|
-
return [key, licensesWithVersions[key]]
|
|
209
|
-
})
|
|
210
|
-
.filter(function identifySoleVersions (item) {
|
|
211
|
-
return (
|
|
212
|
-
// Licenses has just one valid version suffix.
|
|
213
|
-
item[1].length === 1 &&
|
|
214
|
-
item[0] !== null &&
|
|
215
|
-
// APL will be considered Apache, rather than APL-1.0
|
|
216
|
-
item[0] !== 'APL'
|
|
217
|
-
)
|
|
218
|
-
})
|
|
219
|
-
.map(function createLastResorts (item) {
|
|
220
|
-
return [item[0], item[1][0]]
|
|
221
|
-
})
|
|
222
|
-
|
|
223
|
-
licensesWithVersions = undefined
|
|
224
|
-
|
|
225
|
-
// If all else fails, guess that strings containing certain substrings
|
|
226
|
-
// meant to identify certain licenses.
|
|
227
|
-
var lastResorts = [
|
|
228
|
-
['UNLI', 'Unlicense'],
|
|
229
|
-
['WTF', 'WTFPL'],
|
|
230
|
-
['2 CLAUSE', 'BSD-2-Clause'],
|
|
231
|
-
['2-CLAUSE', 'BSD-2-Clause'],
|
|
232
|
-
['3 CLAUSE', 'BSD-3-Clause'],
|
|
233
|
-
['3-CLAUSE', 'BSD-3-Clause'],
|
|
234
|
-
['AFFERO', 'AGPL-3.0-or-later'],
|
|
235
|
-
['AGPL', 'AGPL-3.0-or-later'],
|
|
236
|
-
['APACHE', 'Apache-2.0'],
|
|
237
|
-
['ARTISTIC', 'Artistic-2.0'],
|
|
238
|
-
['Affero', 'AGPL-3.0-or-later'],
|
|
239
|
-
['BEER', 'Beerware'],
|
|
240
|
-
['BOOST', 'BSL-1.0'],
|
|
241
|
-
['BSD', 'BSD-2-Clause'],
|
|
242
|
-
['CDDL', 'CDDL-1.1'],
|
|
243
|
-
['ECLIPSE', 'EPL-1.0'],
|
|
244
|
-
['FUCK', 'WTFPL'],
|
|
245
|
-
['GNU', 'GPL-3.0-or-later'],
|
|
246
|
-
['LGPL', 'LGPL-3.0-or-later'],
|
|
247
|
-
['GPLV1', 'GPL-1.0-only'],
|
|
248
|
-
['GPL-1', 'GPL-1.0-only'],
|
|
249
|
-
['GPLV2', 'GPL-2.0-only'],
|
|
250
|
-
['GPL-2', 'GPL-2.0-only'],
|
|
251
|
-
['GPL', 'GPL-3.0-or-later'],
|
|
252
|
-
['MIT +NO-FALSE-ATTRIBS', 'MITNFA'],
|
|
253
|
-
['MIT', 'MIT'],
|
|
254
|
-
['MPL', 'MPL-2.0'],
|
|
255
|
-
['X11', 'X11'],
|
|
256
|
-
['ZLIB', 'Zlib']
|
|
257
|
-
].concat(licensesWithOneVersion)
|
|
258
|
-
|
|
259
|
-
var SUBSTRING = 0
|
|
260
|
-
var IDENTIFIER = 1
|
|
261
|
-
|
|
262
|
-
var validTransformation = function (identifier) {
|
|
263
|
-
for (var i = 0; i < transforms.length; i++) {
|
|
264
|
-
var transformed = transforms[i](identifier).trim()
|
|
265
|
-
if (transformed !== identifier && valid(transformed)) {
|
|
266
|
-
return transformed
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
return null
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
var validLastResort = function (identifier) {
|
|
273
|
-
var upperCased = identifier.toUpperCase()
|
|
274
|
-
for (var i = 0; i < lastResorts.length; i++) {
|
|
275
|
-
var lastResort = lastResorts[i]
|
|
276
|
-
if (upperCased.indexOf(lastResort[SUBSTRING]) > -1) {
|
|
277
|
-
return lastResort[IDENTIFIER]
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
return null
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
var anyCorrection = function (identifier, check) {
|
|
284
|
-
for (var i = 0; i < transpositions.length; i++) {
|
|
285
|
-
var transposition = transpositions[i]
|
|
286
|
-
var transposed = transposition[TRANSPOSED]
|
|
287
|
-
if (identifier.indexOf(transposed) > -1) {
|
|
288
|
-
var corrected = identifier.replace(
|
|
289
|
-
transposed,
|
|
290
|
-
transposition[CORRECT]
|
|
291
|
-
)
|
|
292
|
-
var checked = check(corrected)
|
|
293
|
-
if (checked !== null) {
|
|
294
|
-
return checked
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
return null
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
module.exports = function (identifier, options) {
|
|
302
|
-
options = options || {}
|
|
303
|
-
var upgrade = options.upgrade === undefined ? true : !!options.upgrade
|
|
304
|
-
function postprocess (value) {
|
|
305
|
-
return upgrade ? upgradeGPLs(value) : value
|
|
306
|
-
}
|
|
307
|
-
var validArugment = (
|
|
308
|
-
typeof identifier === 'string' &&
|
|
309
|
-
identifier.trim().length !== 0
|
|
310
|
-
)
|
|
311
|
-
if (!validArugment) {
|
|
312
|
-
throw Error('Invalid argument. Expected non-empty string.')
|
|
313
|
-
}
|
|
314
|
-
identifier = identifier.trim()
|
|
315
|
-
if (valid(identifier)) {
|
|
316
|
-
return postprocess(identifier)
|
|
317
|
-
}
|
|
318
|
-
var noPlus = identifier.replace(/\+$/, '').trim()
|
|
319
|
-
if (valid(noPlus)) {
|
|
320
|
-
return postprocess(noPlus)
|
|
321
|
-
}
|
|
322
|
-
var transformed = validTransformation(identifier)
|
|
323
|
-
if (transformed !== null) {
|
|
324
|
-
return postprocess(transformed)
|
|
325
|
-
}
|
|
326
|
-
transformed = anyCorrection(identifier, function (argument) {
|
|
327
|
-
if (valid(argument)) {
|
|
328
|
-
return argument
|
|
329
|
-
}
|
|
330
|
-
return validTransformation(argument)
|
|
331
|
-
})
|
|
332
|
-
if (transformed !== null) {
|
|
333
|
-
return postprocess(transformed)
|
|
334
|
-
}
|
|
335
|
-
transformed = validLastResort(identifier)
|
|
336
|
-
if (transformed !== null) {
|
|
337
|
-
return postprocess(transformed)
|
|
338
|
-
}
|
|
339
|
-
transformed = anyCorrection(identifier, validLastResort)
|
|
340
|
-
if (transformed !== null) {
|
|
341
|
-
return postprocess(transformed)
|
|
342
|
-
}
|
|
343
|
-
return null
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
function upgradeGPLs (value) {
|
|
347
|
-
if ([
|
|
348
|
-
'GPL-1.0', 'LGPL-1.0', 'AGPL-1.0',
|
|
349
|
-
'GPL-2.0', 'LGPL-2.0', 'AGPL-2.0',
|
|
350
|
-
'LGPL-2.1'
|
|
351
|
-
].indexOf(value) !== -1) {
|
|
352
|
-
return value + '-only'
|
|
353
|
-
} else if ([
|
|
354
|
-
'GPL-1.0+', 'GPL-2.0+', 'GPL-3.0+',
|
|
355
|
-
'LGPL-2.0+', 'LGPL-2.1+', 'LGPL-3.0+',
|
|
356
|
-
'AGPL-1.0+', 'AGPL-3.0+'
|
|
357
|
-
].indexOf(value) !== -1) {
|
|
358
|
-
return value.replace(/\+$/, '-or-later')
|
|
359
|
-
} else if (['GPL-3.0', 'LGPL-3.0', 'AGPL-3.0'].indexOf(value) !== -1) {
|
|
360
|
-
return value + '-or-later'
|
|
361
|
-
} else {
|
|
362
|
-
return value
|
|
363
|
-
}
|
|
364
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "spdx-correct",
|
|
3
|
-
"description": "correct invalid SPDX expressions",
|
|
4
|
-
"version": "3.1.1",
|
|
5
|
-
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com)",
|
|
6
|
-
"contributors": [
|
|
7
|
-
"Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com)",
|
|
8
|
-
"Christian Zommerfelds <aero_super@yahoo.com>",
|
|
9
|
-
"Tal Einat <taleinat@gmail.com>",
|
|
10
|
-
"Dan Butvinik <butvinik@outlook.com>"
|
|
11
|
-
],
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"spdx-expression-parse": "^3.0.0",
|
|
14
|
-
"spdx-license-ids": "^3.0.0"
|
|
15
|
-
},
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"defence-cli": "^2.0.1",
|
|
18
|
-
"replace-require-self": "^1.0.0",
|
|
19
|
-
"standard": "^11.0.0",
|
|
20
|
-
"standard-markdown": "^4.0.2",
|
|
21
|
-
"tape": "^4.9.0"
|
|
22
|
-
},
|
|
23
|
-
"files": [
|
|
24
|
-
"index.js"
|
|
25
|
-
],
|
|
26
|
-
"keywords": [
|
|
27
|
-
"SPDX",
|
|
28
|
-
"law",
|
|
29
|
-
"legal",
|
|
30
|
-
"license",
|
|
31
|
-
"metadata"
|
|
32
|
-
],
|
|
33
|
-
"license": "Apache-2.0",
|
|
34
|
-
"repository": "jslicense/spdx-correct.js",
|
|
35
|
-
"scripts": {
|
|
36
|
-
"lint": "standard && standard-markdown README.md",
|
|
37
|
-
"test": "defence README.md | replace-require-self | node && node test.js"
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
,"_resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz"
|
|
41
|
-
,"_integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w=="
|
|
42
|
-
,"_from": "spdx-correct@3.1.1"
|
|
43
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
The package exports an array of strings. Each string is an identifier
|
|
2
|
-
for a license exception under the [Software Package Data Exchange
|
|
3
|
-
(SPDX)][SPDX] software license metadata standard.
|
|
4
|
-
|
|
5
|
-
[SPDX]: https://spdx.org
|
|
6
|
-
|
|
7
|
-
## Copyright and Licensing
|
|
8
|
-
|
|
9
|
-
### SPDX
|
|
10
|
-
|
|
11
|
-
"SPDX" is a federally registered United States trademark of The Linux
|
|
12
|
-
Foundation Corporation.
|
|
13
|
-
|
|
14
|
-
From version 2.0 of the [SPDX] specification:
|
|
15
|
-
|
|
16
|
-
> Copyright © 2010-2015 Linux Foundation and its Contributors. Licensed
|
|
17
|
-
> under the Creative Commons Attribution License 3.0 Unported. All other
|
|
18
|
-
> rights are expressly reserved.
|
|
19
|
-
|
|
20
|
-
The Linux Foundation and the SPDX working groups are good people. Only
|
|
21
|
-
they decide what "SPDX" means, as a standard and otherwise. I respect
|
|
22
|
-
their work and their rights. You should, too.
|
|
23
|
-
|
|
24
|
-
### This Package
|
|
25
|
-
|
|
26
|
-
> I created this package by copying exception identifiers out of the
|
|
27
|
-
> SPDX specification. That work was mechanical, routine, and required no
|
|
28
|
-
> creativity whatsoever. - Kyle Mitchell, package author
|
|
29
|
-
|
|
30
|
-
United States users concerned about intellectual property may wish to
|
|
31
|
-
discuss the following Supreme Court decisions with their attorneys:
|
|
32
|
-
|
|
33
|
-
- _Baker v. Selden_, 101 U.S. 99 (1879)
|
|
34
|
-
|
|
35
|
-
- _Feist Publications, Inc., v. Rural Telephone Service Co._,
|
|
36
|
-
499 U.S. 340 (1991)
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
"389-exception",
|
|
3
|
-
"Autoconf-exception-2.0",
|
|
4
|
-
"Autoconf-exception-3.0",
|
|
5
|
-
"Bison-exception-2.2",
|
|
6
|
-
"Bootloader-exception",
|
|
7
|
-
"Classpath-exception-2.0",
|
|
8
|
-
"CLISP-exception-2.0",
|
|
9
|
-
"DigiRule-FOSS-exception",
|
|
10
|
-
"eCos-exception-2.0",
|
|
11
|
-
"Fawkes-Runtime-exception",
|
|
12
|
-
"FLTK-exception",
|
|
13
|
-
"Font-exception-2.0",
|
|
14
|
-
"freertos-exception-2.0",
|
|
15
|
-
"GCC-exception-2.0",
|
|
16
|
-
"GCC-exception-3.1",
|
|
17
|
-
"gnu-javamail-exception",
|
|
18
|
-
"GPL-3.0-linking-exception",
|
|
19
|
-
"GPL-3.0-linking-source-exception",
|
|
20
|
-
"GPL-CC-1.0",
|
|
21
|
-
"i2p-gpl-java-exception",
|
|
22
|
-
"Libtool-exception",
|
|
23
|
-
"Linux-syscall-note",
|
|
24
|
-
"LLVM-exception",
|
|
25
|
-
"LZMA-exception",
|
|
26
|
-
"mif-exception",
|
|
27
|
-
"Nokia-Qt-exception-1.1",
|
|
28
|
-
"OCaml-LGPL-linking-exception",
|
|
29
|
-
"OCCT-exception-1.0",
|
|
30
|
-
"OpenJDK-assembly-exception-1.0",
|
|
31
|
-
"openvpn-openssl-exception",
|
|
32
|
-
"PS-or-PDF-font-exception-20170817",
|
|
33
|
-
"Qt-GPL-exception-1.0",
|
|
34
|
-
"Qt-LGPL-exception-1.1",
|
|
35
|
-
"Qwt-exception-1.0",
|
|
36
|
-
"Swift-exception",
|
|
37
|
-
"u-boot-exception-2.0",
|
|
38
|
-
"Universal-FOSS-exception-1.0",
|
|
39
|
-
"WxWindows-exception-3.1"
|
|
40
|
-
]
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "spdx-exceptions",
|
|
3
|
-
"description": "list of SPDX standard license exceptions",
|
|
4
|
-
"version": "2.3.0",
|
|
5
|
-
"author": "The Linux Foundation",
|
|
6
|
-
"contributors": [
|
|
7
|
-
"Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com/)"
|
|
8
|
-
],
|
|
9
|
-
"license": "CC-BY-3.0",
|
|
10
|
-
"repository": "kemitchell/spdx-exceptions.json",
|
|
11
|
-
"files": [
|
|
12
|
-
"index.json"
|
|
13
|
-
],
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "node build.js"
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
,"_resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz"
|
|
19
|
-
,"_integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A=="
|
|
20
|
-
,"_from": "spdx-exceptions@2.3.0"
|
|
21
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
The MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2015 Kyle E. Mitchell & other authors listed in AUTHORS
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
-
a copy of this software and associated documentation files (the
|
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
-
the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be included
|
|
14
|
-
in all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
This package parses [SPDX license expression](https://spdx.org/spdx-specification-21-web-version#h.jxpfx0ykyb60) strings describing license terms, like [package.json license strings](https://docs.npmjs.com/files/package.json#license), into consistently structured ECMAScript objects. The npm command-line interface depends on this package, as do many automatic license-audit tools.
|
|
2
|
-
|
|
3
|
-
In a nutshell:
|
|
4
|
-
|
|
5
|
-
```javascript
|
|
6
|
-
var parse = require('spdx-expression-parse')
|
|
7
|
-
var assert = require('assert')
|
|
8
|
-
|
|
9
|
-
assert.deepEqual(
|
|
10
|
-
// Licensed under the terms of the Two-Clause BSD License.
|
|
11
|
-
parse('BSD-2-Clause'),
|
|
12
|
-
{license: 'BSD-2-Clause'}
|
|
13
|
-
)
|
|
14
|
-
|
|
15
|
-
assert.throws(function () {
|
|
16
|
-
// An invalid SPDX license expression.
|
|
17
|
-
// Should be `Apache-2.0`.
|
|
18
|
-
parse('Apache 2')
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
assert.deepEqual(
|
|
22
|
-
// Dual licensed under either:
|
|
23
|
-
// - LGPL 2.1
|
|
24
|
-
// - a combination of Three-Clause BSD and MIT
|
|
25
|
-
parse('(LGPL-2.1 OR BSD-3-Clause AND MIT)'),
|
|
26
|
-
{
|
|
27
|
-
left: {license: 'LGPL-2.1'},
|
|
28
|
-
conjunction: 'or',
|
|
29
|
-
right: {
|
|
30
|
-
left: {license: 'BSD-3-Clause'},
|
|
31
|
-
conjunction: 'and',
|
|
32
|
-
right: {license: 'MIT'}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
The syntax comes from the [Software Package Data eXchange (SPDX)](https://spdx.org/), a standard from the [Linux Foundation](https://www.linuxfoundation.org) for shareable data about software package license terms. SPDX aims to make sharing and auditing license data easy, especially for users of open-source software.
|
|
39
|
-
|
|
40
|
-
The bulk of the SPDX standard describes syntax and semantics of XML metadata files. This package implements two lightweight, plain-text components of that larger standard:
|
|
41
|
-
|
|
42
|
-
1. The [license list](https://spdx.org/licenses), a mapping from specific string identifiers, like `Apache-2.0`, to standard form license texts and bolt-on license exceptions. The [spdx-license-ids](https://www.npmjs.com/package/spdx-license-ids) and [spdx-exceptions](https://www.npmjs.com/package/spdx-exceptions) packages implement the license list. `spdx-expression-parse` depends on and `require()`s them.
|
|
43
|
-
|
|
44
|
-
Any license identifier from the license list is a valid license expression:
|
|
45
|
-
|
|
46
|
-
```javascript
|
|
47
|
-
var identifiers = []
|
|
48
|
-
.concat(require('spdx-license-ids'))
|
|
49
|
-
.concat(require('spdx-license-ids/deprecated'))
|
|
50
|
-
|
|
51
|
-
identifiers.forEach(function (id) {
|
|
52
|
-
assert.deepEqual(parse(id), {license: id})
|
|
53
|
-
})
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
So is any license identifier `WITH` a standardized license exception:
|
|
57
|
-
|
|
58
|
-
```javascript
|
|
59
|
-
identifiers.forEach(function (id) {
|
|
60
|
-
require('spdx-exceptions').forEach(function (e) {
|
|
61
|
-
assert.deepEqual(
|
|
62
|
-
parse(id + ' WITH ' + e),
|
|
63
|
-
{license: id, exception: e}
|
|
64
|
-
)
|
|
65
|
-
})
|
|
66
|
-
})
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
2. The license expression language, for describing simple and complex license terms, like `MIT` for MIT-licensed and `(GPL-2.0 OR Apache-2.0)` for dual-licensing under GPL 2.0 and Apache 2.0. `spdx-expression-parse` itself implements license expression language, exporting a parser.
|
|
70
|
-
|
|
71
|
-
```javascript
|
|
72
|
-
assert.deepEqual(
|
|
73
|
-
// Licensed under a combination of:
|
|
74
|
-
// - the MIT License AND
|
|
75
|
-
// - a combination of:
|
|
76
|
-
// - LGPL 2.1 (or a later version) AND
|
|
77
|
-
// - Three-Clause BSD
|
|
78
|
-
parse('(MIT AND (LGPL-2.1+ AND BSD-3-Clause))'),
|
|
79
|
-
{
|
|
80
|
-
left: {license: 'MIT'},
|
|
81
|
-
conjunction: 'and',
|
|
82
|
-
right: {
|
|
83
|
-
left: {license: 'LGPL-2.1', plus: true},
|
|
84
|
-
conjunction: 'and',
|
|
85
|
-
right: {license: 'BSD-3-Clause'}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
)
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
The Linux Foundation and its contributors license the SPDX standard under the terms of [the Creative Commons Attribution License 3.0 Unported (SPDX: "CC-BY-3.0")](http://spdx.org/licenses/CC-BY-3.0). "SPDX" is a United States federally registered trademark of the Linux Foundation. The authors of this package license their work under the terms of the MIT License.
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "spdx-expression-parse",
|
|
3
|
-
"description": "parse SPDX license expressions",
|
|
4
|
-
"version": "3.0.1",
|
|
5
|
-
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com)",
|
|
6
|
-
"files": [
|
|
7
|
-
"AUTHORS",
|
|
8
|
-
"index.js",
|
|
9
|
-
"parse.js",
|
|
10
|
-
"scan.js"
|
|
11
|
-
],
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"spdx-exceptions": "^2.1.0",
|
|
14
|
-
"spdx-license-ids": "^3.0.0"
|
|
15
|
-
},
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"defence-cli": "^3.0.1",
|
|
18
|
-
"replace-require-self": "^1.0.0",
|
|
19
|
-
"standard": "^14.1.0"
|
|
20
|
-
},
|
|
21
|
-
"keywords": [
|
|
22
|
-
"SPDX",
|
|
23
|
-
"law",
|
|
24
|
-
"legal",
|
|
25
|
-
"license",
|
|
26
|
-
"metadata",
|
|
27
|
-
"package",
|
|
28
|
-
"package.json",
|
|
29
|
-
"standards"
|
|
30
|
-
],
|
|
31
|
-
"license": "MIT",
|
|
32
|
-
"repository": "jslicense/spdx-expression-parse.js",
|
|
33
|
-
"scripts": {
|
|
34
|
-
"lint": "standard",
|
|
35
|
-
"test:readme": "defence -i javascript README.md | replace-require-self | node",
|
|
36
|
-
"test:suite": "node test.js",
|
|
37
|
-
"test": "npm run test:suite && npm run test:readme"
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
,"_resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz"
|
|
41
|
-
,"_integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q=="
|
|
42
|
-
,"_from": "spdx-expression-parse@3.0.1"
|
|
43
|
-
}
|