embeditor-rails 1.1.1 → 2.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +25 -17
- data/app/assets/javascripts/embeditor/adapter.js.coffee +21 -2
- data/app/assets/javascripts/embeditor/adapters/embedly.js.coffee +4 -40
- data/app/assets/javascripts/embeditor/adapters/oembed.js.coffee +37 -2
- data/app/assets/javascripts/embeditor/embeditor.js.coffee +16 -4
- data/lib/embeditor-rails/version.rb +1 -1
- data/lib/node_modules/npm/AUTHORS +158 -0
- data/lib/node_modules/npm/CONTRIBUTING.md +9 -0
- data/lib/node_modules/npm/LICENSE +235 -0
- data/lib/node_modules/npm/Makefile +216 -0
- data/lib/node_modules/npm/README.md +241 -0
- data/lib/node_modules/npm/bin/node-gyp-bin/node-gyp +2 -0
- data/lib/node_modules/npm/bin/node-gyp-bin/node-gyp.cmd +1 -0
- data/lib/node_modules/npm/bin/npm +13 -0
- data/lib/node_modules/npm/bin/npm-cli.js +87 -0
- data/lib/node_modules/npm/bin/npm.cmd +6 -0
- data/lib/node_modules/npm/bin/read-package-json.js +22 -0
- data/lib/node_modules/npm/cli.js +2 -0
- data/lib/node_modules/npm/configure +33 -0
- data/lib/node_modules/npm/doc/api/npm-bin.md +13 -0
- data/lib/node_modules/npm/doc/api/npm-bugs.md +19 -0
- data/lib/node_modules/npm/doc/api/npm-commands.md +22 -0
- data/lib/node_modules/npm/doc/api/npm-config.md +45 -0
- data/lib/node_modules/npm/doc/api/npm-deprecate.md +34 -0
- data/lib/node_modules/npm/doc/api/npm-docs.md +19 -0
- data/lib/node_modules/npm/doc/api/npm-edit.md +24 -0
- data/lib/node_modules/npm/doc/api/npm-explore.md +18 -0
- data/lib/node_modules/npm/doc/api/npm-help-search.md +30 -0
- data/lib/node_modules/npm/doc/api/npm-init.md +29 -0
- data/lib/node_modules/npm/doc/api/npm-install.md +19 -0
- data/lib/node_modules/npm/doc/api/npm-link.md +33 -0
- data/lib/node_modules/npm/doc/api/npm-load.md +26 -0
- data/lib/node_modules/npm/doc/api/npm-ls.md +56 -0
- data/lib/node_modules/npm/doc/api/npm-outdated.md +13 -0
- data/lib/node_modules/npm/doc/api/npm-owner.md +31 -0
- data/lib/node_modules/npm/doc/api/npm-pack.md +19 -0
- data/lib/node_modules/npm/doc/api/npm-prefix.md +15 -0
- data/lib/node_modules/npm/doc/api/npm-prune.md +17 -0
- data/lib/node_modules/npm/doc/api/npm-publish.md +30 -0
- data/lib/node_modules/npm/doc/api/npm-rebuild.md +16 -0
- data/lib/node_modules/npm/doc/api/npm-repo.md +19 -0
- data/lib/node_modules/npm/doc/api/npm-restart.md +22 -0
- data/lib/node_modules/npm/doc/api/npm-root.md +15 -0
- data/lib/node_modules/npm/doc/api/npm-run-script.md +27 -0
- data/lib/node_modules/npm/doc/api/npm-search.md +35 -0
- data/lib/node_modules/npm/doc/api/npm-shrinkwrap.md +20 -0
- data/lib/node_modules/npm/doc/api/npm-start.md +13 -0
- data/lib/node_modules/npm/doc/api/npm-stop.md +13 -0
- data/lib/node_modules/npm/doc/api/npm-submodule.md +28 -0
- data/lib/node_modules/npm/doc/api/npm-tag.md +23 -0
- data/lib/node_modules/npm/doc/api/npm-test.md +16 -0
- data/lib/node_modules/npm/doc/api/npm-uninstall.md +16 -0
- data/lib/node_modules/npm/doc/api/npm-unpublish.md +20 -0
- data/lib/node_modules/npm/doc/api/npm-update.md +11 -0
- data/lib/node_modules/npm/doc/api/npm-version.md +18 -0
- data/lib/node_modules/npm/doc/api/npm-view.md +93 -0
- data/lib/node_modules/npm/doc/api/npm-whoami.md +15 -0
- data/lib/node_modules/npm/doc/api/npm.md +116 -0
- data/lib/node_modules/npm/doc/cli/npm-adduser.md +38 -0
- data/lib/node_modules/npm/doc/cli/npm-bin.md +19 -0
- data/lib/node_modules/npm/doc/cli/npm-bugs.md +42 -0
- data/lib/node_modules/npm/doc/cli/npm-build.md +22 -0
- data/lib/node_modules/npm/doc/cli/npm-bundle.md +14 -0
- data/lib/node_modules/npm/doc/cli/npm-cache.md +72 -0
- data/lib/node_modules/npm/doc/cli/npm-completion.md +29 -0
- data/lib/node_modules/npm/doc/cli/npm-config.md +71 -0
- data/lib/node_modules/npm/doc/cli/npm-dedupe.md +58 -0
- data/lib/node_modules/npm/doc/cli/npm-deprecate.md +26 -0
- data/lib/node_modules/npm/doc/cli/npm-docs.md +44 -0
- data/lib/node_modules/npm/doc/cli/npm-edit.md +37 -0
- data/lib/node_modules/npm/doc/cli/npm-explore.md +40 -0
- data/lib/node_modules/npm/doc/cli/npm-help-search.md +35 -0
- data/lib/node_modules/npm/doc/cli/npm-help.md +40 -0
- data/lib/node_modules/npm/doc/cli/npm-init.md +25 -0
- data/lib/node_modules/npm/doc/cli/npm-install.md +252 -0
- data/lib/node_modules/npm/doc/cli/npm-link.md +63 -0
- data/lib/node_modules/npm/doc/cli/npm-ls.md +80 -0
- data/lib/node_modules/npm/doc/cli/npm-outdated.md +58 -0
- data/lib/node_modules/npm/doc/cli/npm-owner.md +33 -0
- data/lib/node_modules/npm/doc/cli/npm-pack.md +27 -0
- data/lib/node_modules/npm/doc/cli/npm-prefix.md +19 -0
- data/lib/node_modules/npm/doc/cli/npm-prune.md +25 -0
- data/lib/node_modules/npm/doc/cli/npm-publish.md +30 -0
- data/lib/node_modules/npm/doc/cli/npm-rebuild.md +21 -0
- data/lib/node_modules/npm/doc/cli/npm-repo.md +28 -0
- data/lib/node_modules/npm/doc/cli/npm-restart.md +22 -0
- data/lib/node_modules/npm/doc/cli/npm-rm.md +23 -0
- data/lib/node_modules/npm/doc/cli/npm-root.md +19 -0
- data/lib/node_modules/npm/doc/cli/npm-run-script.md +21 -0
- data/lib/node_modules/npm/doc/cli/npm-search.md +36 -0
- data/lib/node_modules/npm/doc/cli/npm-shrinkwrap.md +185 -0
- data/lib/node_modules/npm/doc/cli/npm-star.md +22 -0
- data/lib/node_modules/npm/doc/cli/npm-stars.md +22 -0
- data/lib/node_modules/npm/doc/cli/npm-start.md +18 -0
- data/lib/node_modules/npm/doc/cli/npm-stop.md +18 -0
- data/lib/node_modules/npm/doc/cli/npm-submodule.md +28 -0
- data/lib/node_modules/npm/doc/cli/npm-tag.md +34 -0
- data/lib/node_modules/npm/doc/cli/npm-test.md +22 -0
- data/lib/node_modules/npm/doc/cli/npm-uninstall.md +21 -0
- data/lib/node_modules/npm/doc/cli/npm-unpublish.md +32 -0
- data/lib/node_modules/npm/doc/cli/npm-update.md +24 -0
- data/lib/node_modules/npm/doc/cli/npm-version.md +45 -0
- data/lib/node_modules/npm/doc/cli/npm-view.md +90 -0
- data/lib/node_modules/npm/doc/cli/npm-whoami.md +17 -0
- data/lib/node_modules/npm/doc/cli/npm.md +153 -0
- data/lib/node_modules/npm/doc/files/npm-folders.md +211 -0
- data/lib/node_modules/npm/doc/files/npmrc.md +59 -0
- data/lib/node_modules/npm/doc/files/package.json.md +576 -0
- data/lib/node_modules/npm/doc/misc/npm-coding-style.md +181 -0
- data/lib/node_modules/npm/doc/misc/npm-config.md +820 -0
- data/lib/node_modules/npm/doc/misc/npm-developers.md +207 -0
- data/lib/node_modules/npm/doc/misc/npm-disputes.md +99 -0
- data/lib/node_modules/npm/doc/misc/npm-faq.md +364 -0
- data/lib/node_modules/npm/doc/misc/npm-index.md +411 -0
- data/lib/node_modules/npm/doc/misc/npm-registry.md +69 -0
- data/lib/node_modules/npm/doc/misc/npm-scripts.md +245 -0
- data/lib/node_modules/npm/doc/misc/removing-npm.md +54 -0
- data/lib/node_modules/npm/doc/misc/semver.md +111 -0
- data/lib/node_modules/npm/html/doc/README.html +276 -0
- data/lib/node_modules/npm/html/doc/api/npm-bin.html +53 -0
- data/lib/node_modules/npm/html/doc/api/npm-bugs.html +59 -0
- data/lib/node_modules/npm/html/doc/api/npm-commands.html +62 -0
- data/lib/node_modules/npm/html/doc/api/npm-config.html +67 -0
- data/lib/node_modules/npm/html/doc/api/npm-deprecate.html +66 -0
- data/lib/node_modules/npm/html/doc/api/npm-docs.html +59 -0
- data/lib/node_modules/npm/html/doc/api/npm-edit.html +64 -0
- data/lib/node_modules/npm/html/doc/api/npm-explore.html +58 -0
- data/lib/node_modules/npm/html/doc/api/npm-help-search.html +66 -0
- data/lib/node_modules/npm/html/doc/api/npm-init.html +69 -0
- data/lib/node_modules/npm/html/doc/api/npm-install.html +59 -0
- data/lib/node_modules/npm/html/doc/api/npm-link.html +73 -0
- data/lib/node_modules/npm/html/doc/api/npm-load.html +66 -0
- data/lib/node_modules/npm/html/doc/api/npm-ls.html +93 -0
- data/lib/node_modules/npm/html/doc/api/npm-outdated.html +53 -0
- data/lib/node_modules/npm/html/doc/api/npm-owner.html +68 -0
- data/lib/node_modules/npm/html/doc/api/npm-pack.html +59 -0
- data/lib/node_modules/npm/html/doc/api/npm-prefix.html +55 -0
- data/lib/node_modules/npm/html/doc/api/npm-prune.html +57 -0
- data/lib/node_modules/npm/html/doc/api/npm-publish.html +66 -0
- data/lib/node_modules/npm/html/doc/api/npm-rebuild.html +56 -0
- data/lib/node_modules/npm/html/doc/api/npm-repo.html +59 -0
- data/lib/node_modules/npm/html/doc/api/npm-restart.html +61 -0
- data/lib/node_modules/npm/html/doc/api/npm-root.html +55 -0
- data/lib/node_modules/npm/html/doc/api/npm-run-script.html +63 -0
- data/lib/node_modules/npm/html/doc/api/npm-search.html +66 -0
- data/lib/node_modules/npm/html/doc/api/npm-shrinkwrap.html +60 -0
- data/lib/node_modules/npm/html/doc/api/npm-start.html +53 -0
- data/lib/node_modules/npm/html/doc/api/npm-stop.html +53 -0
- data/lib/node_modules/npm/html/doc/api/npm-submodule.html +67 -0
- data/lib/node_modules/npm/html/doc/api/npm-tag.html +63 -0
- data/lib/node_modules/npm/html/doc/api/npm-test.html +56 -0
- data/lib/node_modules/npm/html/doc/api/npm-uninstall.html +56 -0
- data/lib/node_modules/npm/html/doc/api/npm-unpublish.html +60 -0
- data/lib/node_modules/npm/html/doc/api/npm-update.html +52 -0
- data/lib/node_modules/npm/html/doc/api/npm-version.html +58 -0
- data/lib/node_modules/npm/html/doc/api/npm-view.html +133 -0
- data/lib/node_modules/npm/html/doc/api/npm-whoami.html +55 -0
- data/lib/node_modules/npm/html/doc/api/npm.html +126 -0
- data/lib/node_modules/npm/html/doc/cli/npm-adduser.html +73 -0
- data/lib/node_modules/npm/html/doc/cli/npm-bin.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-bugs.html +72 -0
- data/lib/node_modules/npm/html/doc/cli/npm-build.html +59 -0
- data/lib/node_modules/npm/html/doc/cli/npm-bundle.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-cache.html +100 -0
- data/lib/node_modules/npm/html/doc/cli/npm-completion.html +67 -0
- data/lib/node_modules/npm/html/doc/cli/npm-config.html +107 -0
- data/lib/node_modules/npm/html/doc/cli/npm-dedupe.html +96 -0
- data/lib/node_modules/npm/html/doc/cli/npm-deprecate.html +65 -0
- data/lib/node_modules/npm/html/doc/cli/npm-docs.html +75 -0
- data/lib/node_modules/npm/html/doc/cli/npm-edit.html +71 -0
- data/lib/node_modules/npm/html/doc/cli/npm-explore.html +74 -0
- data/lib/node_modules/npm/html/doc/cli/npm-help-search.html +72 -0
- data/lib/node_modules/npm/html/doc/cli/npm-help.html +70 -0
- data/lib/node_modules/npm/html/doc/cli/npm-init.html +63 -0
- data/lib/node_modules/npm/html/doc/cli/npm-install.html +183 -0
- data/lib/node_modules/npm/html/doc/cli/npm-link.html +96 -0
- data/lib/node_modules/npm/html/doc/cli/npm-ls.html +108 -0
- data/lib/node_modules/npm/html/doc/cli/npm-outdated.html +92 -0
- data/lib/node_modules/npm/html/doc/cli/npm-owner.html +68 -0
- data/lib/node_modules/npm/html/doc/cli/npm-pack.html +63 -0
- data/lib/node_modules/npm/html/doc/cli/npm-prefix.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-prune.html +63 -0
- data/lib/node_modules/npm/html/doc/cli/npm-publish.html +63 -0
- data/lib/node_modules/npm/html/doc/cli/npm-rebuild.html +60 -0
- data/lib/node_modules/npm/html/doc/cli/npm-repo.html +66 -0
- data/lib/node_modules/npm/html/doc/cli/npm-restart.html +58 -0
- data/lib/node_modules/npm/html/doc/cli/npm-rm.html +58 -0
- data/lib/node_modules/npm/html/doc/cli/npm-root.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-run-script.html +57 -0
- data/lib/node_modules/npm/html/doc/cli/npm-search.html +71 -0
- data/lib/node_modules/npm/html/doc/cli/npm-shrinkwrap.html +217 -0
- data/lib/node_modules/npm/html/doc/cli/npm-star.html +60 -0
- data/lib/node_modules/npm/html/doc/cli/npm-stars.html +59 -0
- data/lib/node_modules/npm/html/doc/cli/npm-start.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-stop.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-submodule.html +67 -0
- data/lib/node_modules/npm/html/doc/cli/npm-tag.html +68 -0
- data/lib/node_modules/npm/html/doc/cli/npm-test.html +58 -0
- data/lib/node_modules/npm/html/doc/cli/npm-uninstall.html +56 -0
- data/lib/node_modules/npm/html/doc/cli/npm-unpublish.html +68 -0
- data/lib/node_modules/npm/html/doc/cli/npm-update.html +60 -0
- data/lib/node_modules/npm/html/doc/cli/npm-version.html +83 -0
- data/lib/node_modules/npm/html/doc/cli/npm-view.html +125 -0
- data/lib/node_modules/npm/html/doc/cli/npm-whoami.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm.html +165 -0
- data/lib/node_modules/npm/html/doc/files/npm-folders.html +239 -0
- data/lib/node_modules/npm/html/doc/files/npm-global.html +239 -0
- data/lib/node_modules/npm/html/doc/files/npm-json.html +580 -0
- data/lib/node_modules/npm/html/doc/files/npmrc.html +93 -0
- data/lib/node_modules/npm/html/doc/files/package.json.html +580 -0
- data/lib/node_modules/npm/html/doc/index.html +450 -0
- data/lib/node_modules/npm/html/doc/misc/npm-coding-style.html +216 -0
- data/lib/node_modules/npm/html/doc/misc/npm-config.html +744 -0
- data/lib/node_modules/npm/html/doc/misc/npm-developers.html +208 -0
- data/lib/node_modules/npm/html/doc/misc/npm-disputes.html +126 -0
- data/lib/node_modules/npm/html/doc/misc/npm-faq.html +382 -0
- data/lib/node_modules/npm/html/doc/misc/npm-index.html +450 -0
- data/lib/node_modules/npm/html/doc/misc/npm-registry.html +105 -0
- data/lib/node_modules/npm/html/doc/misc/npm-scripts.html +257 -0
- data/lib/node_modules/npm/html/doc/misc/removing-npm.html +92 -0
- data/lib/node_modules/npm/html/doc/misc/semver.html +128 -0
- data/lib/node_modules/npm/html/docfoot-script.html +31 -0
- data/lib/node_modules/npm/html/docfoot.html +2 -0
- data/lib/node_modules/npm/html/dochead.html +8 -0
- data/lib/node_modules/npm/html/favicon.ico +0 -0
- data/lib/node_modules/npm/html/index.html +95 -0
- data/lib/node_modules/npm/html/static/style.css +329 -0
- data/lib/node_modules/npm/lib/adduser.js +138 -0
- data/lib/node_modules/npm/lib/bin.js +18 -0
- data/lib/node_modules/npm/lib/bugs.js +61 -0
- data/lib/node_modules/npm/lib/build.js +228 -0
- data/lib/node_modules/npm/lib/cache.js +1318 -0
- data/lib/node_modules/npm/lib/completion.js +253 -0
- data/lib/node_modules/npm/lib/config.js +285 -0
- data/lib/node_modules/npm/lib/dedupe.js +357 -0
- data/lib/node_modules/npm/lib/deprecate.js +47 -0
- data/lib/node_modules/npm/lib/docs.js +62 -0
- data/lib/node_modules/npm/lib/edit.js +32 -0
- data/lib/node_modules/npm/lib/explore.js +36 -0
- data/lib/node_modules/npm/lib/faq.js +8 -0
- data/lib/node_modules/npm/lib/get.js +12 -0
- data/lib/node_modules/npm/lib/help-search.js +218 -0
- data/lib/node_modules/npm/lib/help.js +231 -0
- data/lib/node_modules/npm/lib/init.js +36 -0
- data/lib/node_modules/npm/lib/install.js +979 -0
- data/lib/node_modules/npm/lib/link.js +173 -0
- data/lib/node_modules/npm/lib/ls.js +357 -0
- data/lib/node_modules/npm/lib/npm.js +528 -0
- data/lib/node_modules/npm/lib/outdated.js +303 -0
- data/lib/node_modules/npm/lib/owner.js +205 -0
- data/lib/node_modules/npm/lib/pack.js +65 -0
- data/lib/node_modules/npm/lib/prefix.js +11 -0
- data/lib/node_modules/npm/lib/prune.js +53 -0
- data/lib/node_modules/npm/lib/publish.js +118 -0
- data/lib/node_modules/npm/lib/rebuild.js +75 -0
- data/lib/node_modules/npm/lib/repo.js +54 -0
- data/lib/node_modules/npm/lib/restart.js +1 -0
- data/lib/node_modules/npm/lib/root.js +11 -0
- data/lib/node_modules/npm/lib/run-script.js +102 -0
- data/lib/node_modules/npm/lib/search.js +265 -0
- data/lib/node_modules/npm/lib/set.js +13 -0
- data/lib/node_modules/npm/lib/shrinkwrap.js +86 -0
- data/lib/node_modules/npm/lib/star.js +33 -0
- data/lib/node_modules/npm/lib/stars.js +27 -0
- data/lib/node_modules/npm/lib/start.js +1 -0
- data/lib/node_modules/npm/lib/stop.js +1 -0
- data/lib/node_modules/npm/lib/submodule.js +119 -0
- data/lib/node_modules/npm/lib/substack.js +20 -0
- data/lib/node_modules/npm/lib/tag.js +18 -0
- data/lib/node_modules/npm/lib/test.js +14 -0
- data/lib/node_modules/npm/lib/unbuild.js +112 -0
- data/lib/node_modules/npm/lib/uninstall.js +127 -0
- data/lib/node_modules/npm/lib/unpublish.js +83 -0
- data/lib/node_modules/npm/lib/update.js +43 -0
- data/lib/node_modules/npm/lib/utils/completion.sh +54 -0
- data/lib/node_modules/npm/lib/utils/completion/file-completion.js +26 -0
- data/lib/node_modules/npm/lib/utils/completion/installed-deep.js +50 -0
- data/lib/node_modules/npm/lib/utils/completion/installed-shallow.js +79 -0
- data/lib/node_modules/npm/lib/utils/error-handler.js +343 -0
- data/lib/node_modules/npm/lib/utils/fetch.js +93 -0
- data/lib/node_modules/npm/lib/utils/find-prefix.js +57 -0
- data/lib/node_modules/npm/lib/utils/gently-rm.js +61 -0
- data/lib/node_modules/npm/lib/utils/is-git-url.js +13 -0
- data/lib/node_modules/npm/lib/utils/lifecycle.js +360 -0
- data/lib/node_modules/npm/lib/utils/link.js +39 -0
- data/lib/node_modules/npm/lib/utils/tar.js +323 -0
- data/lib/node_modules/npm/lib/version.js +120 -0
- data/lib/node_modules/npm/lib/view.js +246 -0
- data/lib/node_modules/npm/lib/visnup.js +42 -0
- data/lib/node_modules/npm/lib/whoami.js +13 -0
- data/lib/node_modules/npm/lib/xmas.js +56 -0
- data/lib/node_modules/npm/make.bat +3 -0
- data/lib/node_modules/npm/man/man1/npm-README.1 +328 -0
- data/lib/node_modules/npm/man/man1/npm-adduser.1 +63 -0
- data/lib/node_modules/npm/man/man1/npm-bin.1 +40 -0
- data/lib/node_modules/npm/man/man1/npm-bugs.1 +78 -0
- data/lib/node_modules/npm/man/man1/npm-build.1 +43 -0
- data/lib/node_modules/npm/man/man1/npm-bundle.1 +23 -0
- data/lib/node_modules/npm/man/man1/npm-cache.1 +104 -0
- data/lib/node_modules/npm/man/man1/npm-completion.1 +47 -0
- data/lib/node_modules/npm/man/man1/npm-config.1 +113 -0
- data/lib/node_modules/npm/man/man1/npm-dedupe.1 +96 -0
- data/lib/node_modules/npm/man/man1/npm-deprecate.1 +48 -0
- data/lib/node_modules/npm/man/man1/npm-docs.1 +78 -0
- data/lib/node_modules/npm/man/man1/npm-edit.1 +66 -0
- data/lib/node_modules/npm/man/man1/npm-explore.1 +76 -0
- data/lib/node_modules/npm/man/man1/npm-help-search.1 +59 -0
- data/lib/node_modules/npm/man/man1/npm-help.1 +77 -0
- data/lib/node_modules/npm/man/man1/npm-init.1 +43 -0
- data/lib/node_modules/npm/man/man1/npm-install.1 +434 -0
- data/lib/node_modules/npm/man/man1/npm-link.1 +119 -0
- data/lib/node_modules/npm/man/man1/npm-ls.1 +146 -0
- data/lib/node_modules/npm/man/man1/npm-outdated.1 +102 -0
- data/lib/node_modules/npm/man/man1/npm-owner.1 +58 -0
- data/lib/node_modules/npm/man/man1/npm-pack.1 +48 -0
- data/lib/node_modules/npm/man/man1/npm-prefix.1 +40 -0
- data/lib/node_modules/npm/man/man1/npm-prune.1 +42 -0
- data/lib/node_modules/npm/man/man1/npm-publish.1 +53 -0
- data/lib/node_modules/npm/man/man1/npm-rebuild.1 +37 -0
- data/lib/node_modules/npm/man/man1/npm-repo.1 +47 -0
- data/lib/node_modules/npm/man/man1/npm-restart.1 +42 -0
- data/lib/node_modules/npm/man/man1/npm-rm.1 +44 -0
- data/lib/node_modules/npm/man/man1/npm-root.1 +40 -0
- data/lib/node_modules/npm/man/man1/npm-run-script.1 +41 -0
- data/lib/node_modules/npm/man/man1/npm-search.1 +62 -0
- data/lib/node_modules/npm/man/man1/npm-shrinkwrap.1 +275 -0
- data/lib/node_modules/npm/man/man1/npm-star.1 +39 -0
- data/lib/node_modules/npm/man/man1/npm-stars.1 +40 -0
- data/lib/node_modules/npm/man/man1/npm-start.1 +37 -0
- data/lib/node_modules/npm/man/man1/npm-stop.1 +37 -0
- data/lib/node_modules/npm/man/man1/npm-submodule.1 +42 -0
- data/lib/node_modules/npm/man/man1/npm-tag.1 +74 -0
- data/lib/node_modules/npm/man/man1/npm-test.1 +42 -0
- data/lib/node_modules/npm/man/man1/npm-uninstall.1 +42 -0
- data/lib/node_modules/npm/man/man1/npm-unpublish.1 +53 -0
- data/lib/node_modules/npm/man/man1/npm-update.1 +45 -0
- data/lib/node_modules/npm/man/man1/npm-version.1 +75 -0
- data/lib/node_modules/npm/man/man1/npm-view.1 +186 -0
- data/lib/node_modules/npm/man/man1/npm-whoami.1 +34 -0
- data/lib/node_modules/npm/man/man1/npm.1 +230 -0
- data/lib/node_modules/npm/man/man3/npm-bin.3 +21 -0
- data/lib/node_modules/npm/man/man3/npm-bugs.3 +28 -0
- data/lib/node_modules/npm/man/man3/npm-commands.3 +35 -0
- data/lib/node_modules/npm/man/man3/npm-config.3 +69 -0
- data/lib/node_modules/npm/man/man3/npm-deprecate.3 +57 -0
- data/lib/node_modules/npm/man/man3/npm-docs.3 +28 -0
- data/lib/node_modules/npm/man/man3/npm-edit.3 +35 -0
- data/lib/node_modules/npm/man/man3/npm-explore.3 +28 -0
- data/lib/node_modules/npm/man/man3/npm-help-search.3 +51 -0
- data/lib/node_modules/npm/man/man3/npm-init.3 +39 -0
- data/lib/node_modules/npm/man/man3/npm-install.3 +29 -0
- data/lib/node_modules/npm/man/man3/npm-link.3 +53 -0
- data/lib/node_modules/npm/man/man3/npm-load.3 +44 -0
- data/lib/node_modules/npm/man/man3/npm-ls.3 +86 -0
- data/lib/node_modules/npm/man/man3/npm-outdated.3 +21 -0
- data/lib/node_modules/npm/man/man3/npm-owner.3 +52 -0
- data/lib/node_modules/npm/man/man3/npm-pack.3 +28 -0
- data/lib/node_modules/npm/man/man3/npm-prefix.3 +24 -0
- data/lib/node_modules/npm/man/man3/npm-prune.3 +27 -0
- data/lib/node_modules/npm/man/man3/npm-publish.3 +51 -0
- data/lib/node_modules/npm/man/man3/npm-rebuild.3 +22 -0
- data/lib/node_modules/npm/man/man3/npm-repo.3 +28 -0
- data/lib/node_modules/npm/man/man3/npm-restart.3 +37 -0
- data/lib/node_modules/npm/man/man3/npm-root.3 +24 -0
- data/lib/node_modules/npm/man/man3/npm-run-script.3 +48 -0
- data/lib/node_modules/npm/man/man3/npm-search.3 +64 -0
- data/lib/node_modules/npm/man/man3/npm-shrinkwrap.3 +30 -0
- data/lib/node_modules/npm/man/man3/npm-start.3 +21 -0
- data/lib/node_modules/npm/man/man3/npm-stop.3 +21 -0
- data/lib/node_modules/npm/man/man3/npm-submodule.3 +42 -0
- data/lib/node_modules/npm/man/man3/npm-tag.3 +31 -0
- data/lib/node_modules/npm/man/man3/npm-test.3 +25 -0
- data/lib/node_modules/npm/man/man3/npm-uninstall.3 +25 -0
- data/lib/node_modules/npm/man/man3/npm-unpublish.3 +30 -0
- data/lib/node_modules/npm/man/man3/npm-update.3 +18 -0
- data/lib/node_modules/npm/man/man3/npm-version.3 +27 -0
- data/lib/node_modules/npm/man/man3/npm-view.3 +176 -0
- data/lib/node_modules/npm/man/man3/npm-whoami.3 +24 -0
- data/lib/node_modules/npm/man/man3/npm.3 +162 -0
- data/lib/node_modules/npm/man/man5/npm-folders.5 +264 -0
- data/lib/node_modules/npm/man/man5/npm-global.5 +264 -0
- data/lib/node_modules/npm/man/man5/npm-json.5 +807 -0
- data/lib/node_modules/npm/man/man5/npmrc.5 +89 -0
- data/lib/node_modules/npm/man/man5/package.json.5 +807 -0
- data/lib/node_modules/npm/man/man7/npm-coding-style.7 +254 -0
- data/lib/node_modules/npm/man/man7/npm-config.7 +1445 -0
- data/lib/node_modules/npm/man/man7/npm-developers.7 +335 -0
- data/lib/node_modules/npm/man/man7/npm-disputes.7 +146 -0
- data/lib/node_modules/npm/man/man7/npm-faq.7 +479 -0
- data/lib/node_modules/npm/man/man7/npm-index.7 +307 -0
- data/lib/node_modules/npm/man/man7/npm-registry.7 +82 -0
- data/lib/node_modules/npm/man/man7/npm-scripts.7 +354 -0
- data/lib/node_modules/npm/man/man7/removing-npm.7 +107 -0
- data/lib/node_modules/npm/man/man7/semver.7 +172 -0
- data/lib/node_modules/npm/node_modules/abbrev/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/abbrev/README.md +23 -0
- data/lib/node_modules/npm/node_modules/abbrev/lib/abbrev.js +111 -0
- data/lib/node_modules/npm/node_modules/abbrev/package.json +25 -0
- data/lib/node_modules/npm/node_modules/ansi/README.md +91 -0
- data/lib/node_modules/npm/node_modules/ansi/color-spaces.pl +67 -0
- data/lib/node_modules/npm/node_modules/ansi/examples/beep/index.js +16 -0
- data/lib/node_modules/npm/node_modules/ansi/examples/clear/index.js +15 -0
- data/lib/node_modules/npm/node_modules/ansi/examples/cursorPosition.js +32 -0
- data/lib/node_modules/npm/node_modules/ansi/examples/progress/index.js +87 -0
- data/lib/node_modules/npm/node_modules/ansi/examples/starwars.js +46 -0
- data/lib/node_modules/npm/node_modules/ansi/lib/ansi.js +405 -0
- data/lib/node_modules/npm/node_modules/ansi/lib/newlines.js +71 -0
- data/lib/node_modules/npm/node_modules/ansi/package.json +50 -0
- data/lib/node_modules/npm/node_modules/ansicolors/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/ansicolors/README.md +62 -0
- data/lib/node_modules/npm/node_modules/ansicolors/ansicolors.js +65 -0
- data/lib/node_modules/npm/node_modules/ansicolors/package.json +34 -0
- data/lib/node_modules/npm/node_modules/ansistyles/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/ansistyles/README.md +71 -0
- data/lib/node_modules/npm/node_modules/ansistyles/ansistyles.js +38 -0
- data/lib/node_modules/npm/node_modules/ansistyles/package.json +38 -0
- data/lib/node_modules/npm/node_modules/archy/README.markdown +92 -0
- data/lib/node_modules/npm/node_modules/archy/index.js +35 -0
- data/lib/node_modules/npm/node_modules/archy/package.json +52 -0
- data/lib/node_modules/npm/node_modules/block-stream/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/block-stream/README.md +14 -0
- data/lib/node_modules/npm/node_modules/block-stream/bench/block-stream-pause.js +70 -0
- data/lib/node_modules/npm/node_modules/block-stream/bench/block-stream.js +68 -0
- data/lib/node_modules/npm/node_modules/block-stream/bench/dropper-pause.js +70 -0
- data/lib/node_modules/npm/node_modules/block-stream/bench/dropper.js +68 -0
- data/lib/node_modules/npm/node_modules/block-stream/block-stream.js +209 -0
- data/lib/node_modules/npm/node_modules/block-stream/package.json +35 -0
- data/lib/node_modules/npm/node_modules/child-process-close/README.md +45 -0
- data/lib/node_modules/npm/node_modules/child-process-close/index.js +48 -0
- data/lib/node_modules/npm/node_modules/child-process-close/package.json +37 -0
- data/lib/node_modules/npm/node_modules/chmodr/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/chmodr/README.md +3 -0
- data/lib/node_modules/npm/node_modules/chmodr/chmodr.js +54 -0
- data/lib/node_modules/npm/node_modules/chmodr/package.json +28 -0
- data/lib/node_modules/npm/node_modules/chownr/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/chownr/README.md +3 -0
- data/lib/node_modules/npm/node_modules/chownr/chownr.js +41 -0
- data/lib/node_modules/npm/node_modules/chownr/package.json +42 -0
- data/lib/node_modules/npm/node_modules/cmd-shim/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/cmd-shim/README.md +42 -0
- data/lib/node_modules/npm/node_modules/cmd-shim/index.js +180 -0
- data/lib/node_modules/npm/node_modules/cmd-shim/package.json +35 -0
- data/lib/node_modules/npm/node_modules/columnify/Readme.md +189 -0
- data/lib/node_modules/npm/node_modules/columnify/index.js +210 -0
- data/lib/node_modules/npm/node_modules/columnify/package.json +42 -0
- data/lib/node_modules/npm/node_modules/columnify/utils.js +76 -0
- data/lib/node_modules/npm/node_modules/editor/LICENSE +18 -0
- data/lib/node_modules/npm/node_modules/editor/README.markdown +54 -0
- data/lib/node_modules/npm/node_modules/editor/example/beep.json +5 -0
- data/lib/node_modules/npm/node_modules/editor/example/edit.js +4 -0
- data/lib/node_modules/npm/node_modules/editor/index.js +26 -0
- data/lib/node_modules/npm/node_modules/editor/package.json +43 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/README.md +18 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/bundle.js +13 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/dir-tar.js +19 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/dir.js +25 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/example.js +12 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/ig-tar.js +19 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/tar.js +25 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/fstream-npm.js +323 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/README.md +22 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/example/basic.js +13 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js +275 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/package.json +40 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/package.json +27 -0
- data/lib/node_modules/npm/node_modules/fstream/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/fstream/README.md +76 -0
- data/lib/node_modules/npm/node_modules/fstream/examples/filter-pipe.js +131 -0
- data/lib/node_modules/npm/node_modules/fstream/examples/pipe.js +115 -0
- data/lib/node_modules/npm/node_modules/fstream/examples/reader.js +54 -0
- data/lib/node_modules/npm/node_modules/fstream/examples/symlink-write.js +24 -0
- data/lib/node_modules/npm/node_modules/fstream/fstream.js +31 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/abstract.js +85 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/collect.js +67 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/dir-reader.js +251 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js +171 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/file-reader.js +147 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/file-writer.js +100 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/get-type.js +32 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/link-reader.js +54 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/link-writer.js +95 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/proxy-reader.js +93 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/proxy-writer.js +109 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/reader.js +260 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/socket-reader.js +38 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/writer.js +389 -0
- data/lib/node_modules/npm/node_modules/fstream/package.json +43 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/History.md +10 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/Makefile +5 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/Readme.md +41 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/index.js +12 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/package.json +31 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/test.js +40 -0
- data/lib/node_modules/npm/node_modules/github-url-from-username-repo/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/github-url-from-username-repo/README.md +14 -0
- data/lib/node_modules/npm/node_modules/github-url-from-username-repo/index.js +9 -0
- data/lib/node_modules/npm/node_modules/github-url-from-username-repo/package.json +33 -0
- data/lib/node_modules/npm/node_modules/glob/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/glob/README.md +250 -0
- data/lib/node_modules/npm/node_modules/glob/examples/g.js +9 -0
- data/lib/node_modules/npm/node_modules/glob/examples/usr-local.js +9 -0
- data/lib/node_modules/npm/node_modules/glob/glob.js +680 -0
- data/lib/node_modules/npm/node_modules/glob/package.json +39 -0
- data/lib/node_modules/npm/node_modules/graceful-fs/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/graceful-fs/README.md +26 -0
- data/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js +161 -0
- data/lib/node_modules/npm/node_modules/graceful-fs/package.json +48 -0
- data/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js +228 -0
- data/lib/node_modules/npm/node_modules/inherits/LICENSE +16 -0
- data/lib/node_modules/npm/node_modules/inherits/README.md +42 -0
- data/lib/node_modules/npm/node_modules/inherits/inherits.js +1 -0
- data/lib/node_modules/npm/node_modules/inherits/inherits_browser.js +23 -0
- data/lib/node_modules/npm/node_modules/inherits/package.json +32 -0
- data/lib/node_modules/npm/node_modules/inherits/test.js +25 -0
- data/lib/node_modules/npm/node_modules/ini/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/ini/README.md +79 -0
- data/lib/node_modules/npm/node_modules/ini/ini.js +166 -0
- data/lib/node_modules/npm/node_modules/ini/package.json +29 -0
- data/lib/node_modules/npm/node_modules/init-package-json/README.md +43 -0
- data/lib/node_modules/npm/node_modules/init-package-json/default-input.js +181 -0
- data/lib/node_modules/npm/node_modules/init-package-json/example/example-basic.js +8 -0
- data/lib/node_modules/npm/node_modules/init-package-json/example/example-default.js +7 -0
- data/lib/node_modules/npm/node_modules/init-package-json/example/example-npm.js +13 -0
- data/lib/node_modules/npm/node_modules/init-package-json/example/init/basic-init.js +1 -0
- data/lib/node_modules/npm/node_modules/init-package-json/init-package-json.js +129 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/LICENSE +15 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/README.md +133 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/index.js +11 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/README.md +8 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/init-input.js +191 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/init.js +37 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/package.json +10 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/substack-input.js +61 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/package.json +32 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/promzard.js +216 -0
- data/lib/node_modules/npm/node_modules/init-package-json/package.json +48 -0
- data/lib/node_modules/npm/node_modules/lockfile/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/lockfile/README.md +81 -0
- data/lib/node_modules/npm/node_modules/lockfile/lockfile.js +272 -0
- data/lib/node_modules/npm/node_modules/lockfile/package.json +45 -0
- data/lib/node_modules/npm/node_modules/lru-cache/CONTRIBUTORS +14 -0
- data/lib/node_modules/npm/node_modules/lru-cache/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/lru-cache/README.md +97 -0
- data/lib/node_modules/npm/node_modules/lru-cache/lib/lru-cache.js +252 -0
- data/lib/node_modules/npm/node_modules/lru-cache/package.json +33 -0
- data/lib/node_modules/npm/node_modules/minimatch/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/minimatch/README.md +218 -0
- data/lib/node_modules/npm/node_modules/minimatch/minimatch.js +1055 -0
- data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/README.md +53 -0
- data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/bench.js +283 -0
- data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/package.json +42 -0
- data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/sigmund.js +39 -0
- data/lib/node_modules/npm/node_modules/minimatch/package.json +40 -0
- data/lib/node_modules/npm/node_modules/mkdirp/LICENSE +21 -0
- data/lib/node_modules/npm/node_modules/mkdirp/README.markdown +63 -0
- data/lib/node_modules/npm/node_modules/mkdirp/examples/pow.js +6 -0
- data/lib/node_modules/npm/node_modules/mkdirp/index.js +82 -0
- data/lib/node_modules/npm/node_modules/mkdirp/package.json +33 -0
- data/lib/node_modules/npm/node_modules/node-gyp/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/node-gyp/README.md +163 -0
- data/lib/node_modules/npm/node_modules/node-gyp/addon.gypi +59 -0
- data/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js +133 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/AUTHORS +10 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/DEPS +24 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/OWNERS +1 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/PRESUBMIT.py +115 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/buildbot/buildbot_run.py +148 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/codereview.settings +10 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +12 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp +7 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp.bat +5 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_dummy.c +7 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py +18 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyptest.py +274 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +340 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +208 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1051 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1482 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +58 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +147 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +267 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +407 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +537 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.py +513 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +72 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +157 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +103 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +49 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1069 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +81 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +308 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +87 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +56 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2172 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3270 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +37 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2150 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +44 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1224 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +23 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py +2809 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +90 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +264 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +870 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +160 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +176 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1324 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +2888 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +69 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylintrc +307 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples +81 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples.bat +5 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/setup.py +19 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/README +15 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/Xcode/README +5 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.pbfilespec +27 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.xclangspec +226 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/README +12 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/gyp-tests.el +63 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/gyp.el +252 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/run-unit-tests.sh +7 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp +1105 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp.fontified +1107 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/graphviz.py +100 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/pretty_gyp.py +155 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/pretty_sln.py +168 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/pretty_vcproj.py +329 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/build.js +275 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/clean.js +22 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js +344 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/install.js +362 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/list.js +33 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js +225 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/rebuild.js +16 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/remove.js +56 -0
- data/lib/node_modules/npm/node_modules/node-gyp/package.json +55 -0
- data/lib/node_modules/npm/node_modules/nopt/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/nopt/README.md +210 -0
- data/lib/node_modules/npm/node_modules/nopt/bin/nopt.js +51 -0
- data/lib/node_modules/npm/node_modules/nopt/examples/my-program.js +30 -0
- data/lib/node_modules/npm/node_modules/nopt/lib/nopt.js +407 -0
- data/lib/node_modules/npm/node_modules/nopt/package.json +39 -0
- data/lib/node_modules/npm/node_modules/npm-install-checks/LICENSE +234 -0
- data/lib/node_modules/npm/node_modules/npm-install-checks/README.md +25 -0
- data/lib/node_modules/npm/node_modules/npm-install-checks/index.js +146 -0
- data/lib/node_modules/npm/node_modules/npm-install-checks/package.json +43 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/README.md +176 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/index.js +55 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/adduser.js +138 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/bugs.js +9 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/deprecate.js +28 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js +184 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/publish.js +156 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js +270 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/star.js +29 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/stars.js +9 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/tag.js +6 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/unpublish.js +104 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/upload.js +22 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/package.json +43 -0
- data/lib/node_modules/npm/node_modules/npm-user-validate/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/npm-user-validate/README.md +6 -0
- data/lib/node_modules/npm/node_modules/npm-user-validate/npm-user-validate.js +49 -0
- data/lib/node_modules/npm/node_modules/npm-user-validate/package.json +37 -0
- data/lib/node_modules/npm/node_modules/npmconf/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/npmconf/README.md +33 -0
- data/lib/node_modules/npm/node_modules/npmconf/config-defs.js +353 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/LICENCE +22 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/index.js +282 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/README.md +3 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/package.json +33 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/proto-list.js +81 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/package.json +32 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/readme.markdown +228 -0
- data/lib/node_modules/npm/node_modules/npmconf/npmconf.js +338 -0
- data/lib/node_modules/npm/node_modules/npmconf/package.json +50 -0
- data/lib/node_modules/npm/node_modules/npmlog/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/npmlog/README.md +153 -0
- data/lib/node_modules/npm/node_modules/npmlog/example.js +39 -0
- data/lib/node_modules/npm/node_modules/npmlog/log.js +154 -0
- data/lib/node_modules/npm/node_modules/npmlog/package.json +32 -0
- data/lib/node_modules/npm/node_modules/once/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/once/README.md +51 -0
- data/lib/node_modules/npm/node_modules/once/once.js +20 -0
- data/lib/node_modules/npm/node_modules/once/package.json +39 -0
- data/lib/node_modules/npm/node_modules/opener/LICENSE.txt +14 -0
- data/lib/node_modules/npm/node_modules/opener/README.md +44 -0
- data/lib/node_modules/npm/node_modules/opener/opener.js +55 -0
- data/lib/node_modules/npm/node_modules/opener/package.json +34 -0
- data/lib/node_modules/npm/node_modules/osenv/LICENSE +25 -0
- data/lib/node_modules/npm/node_modules/osenv/README.md +63 -0
- data/lib/node_modules/npm/node_modules/osenv/osenv.js +80 -0
- data/lib/node_modules/npm/node_modules/osenv/package.json +38 -0
- data/lib/node_modules/npm/node_modules/path-is-inside/LICENSE.txt +14 -0
- data/lib/node_modules/npm/node_modules/path-is-inside/README.md +35 -0
- data/lib/node_modules/npm/node_modules/path-is-inside/lib/path-is-inside.js +24 -0
- data/lib/node_modules/npm/node_modules/path-is-inside/package.json +39 -0
- data/lib/node_modules/npm/node_modules/read-installed/LICENSE +16 -0
- data/lib/node_modules/npm/node_modules/read-installed/README.md +25 -0
- data/lib/node_modules/npm/node_modules/read-installed/package.json +39 -0
- data/lib/node_modules/npm/node_modules/read-installed/read-installed.js +338 -0
- data/lib/node_modules/npm/node_modules/read-package-json/LICENSE +15 -0
- data/lib/node_modules/npm/node_modules/read-package-json/README.md +166 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/AUTHORS +4 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/LICENSE +30 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/README.md +101 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/core_module_names.json +29 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/extract_description.js +14 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/fixer.js +392 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/normalize.js +36 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/safe_format.js +9 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/typos.json +25 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/warning_messages.json +28 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/package.json +53 -0
- data/lib/node_modules/npm/node_modules/read-package-json/package.json +39 -0
- data/lib/node_modules/npm/node_modules/read-package-json/read-json.js +368 -0
- data/lib/node_modules/npm/node_modules/read/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/read/README.md +53 -0
- data/lib/node_modules/npm/node_modules/read/example/example.js +13 -0
- data/lib/node_modules/npm/node_modules/read/lib/read.js +113 -0
- data/lib/node_modules/npm/node_modules/read/node_modules/mute-stream/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/read/node_modules/mute-stream/README.md +68 -0
- data/lib/node_modules/npm/node_modules/read/node_modules/mute-stream/mute.js +140 -0
- data/lib/node_modules/npm/node_modules/read/node_modules/mute-stream/package.json +37 -0
- data/lib/node_modules/npm/node_modules/read/package.json +35 -0
- data/lib/node_modules/npm/node_modules/read/rs.js +4 -0
- data/lib/node_modules/npm/node_modules/request/LICENSE +55 -0
- data/lib/node_modules/npm/node_modules/request/README.md +364 -0
- data/lib/node_modules/npm/node_modules/request/index.js +157 -0
- data/lib/node_modules/npm/node_modules/request/lib/copy.js +8 -0
- data/lib/node_modules/npm/node_modules/request/lib/debug.js +7 -0
- data/lib/node_modules/npm/node_modules/request/lib/getSafe.js +34 -0
- data/lib/node_modules/npm/node_modules/request/lib/optional.js +5 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/aws-sign2/LICENSE +55 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/aws-sign2/README.md +4 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/aws-sign2/index.js +202 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/aws-sign2/package.json +28 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/forever-agent/LICENSE +55 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/forever-agent/README.md +4 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/forever-agent/index.js +119 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/forever-agent/package.json +28 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/License +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/Readme.md +163 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/lib/form_data.js +325 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/LICENSE +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/README.md +1414 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/component.json +11 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js +955 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/package.json +43 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/License +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/Makefile +7 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/Readme.md +132 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/lib/combined_stream.js +185 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/License +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Makefile +7 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Readme.md +154 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js +99 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/package.json +31 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/package.json +32 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/package.json +46 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/Makefile +10 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/README.md +627 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/example/usage.js +78 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/images/hawk.png +0 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/images/logo.png +0 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/index.js +1 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/browser.js +485 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/client.js +367 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/crypto.js +111 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/index.js +15 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/server.js +524 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/utils.js +183 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/Makefile +11 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/README.md +6 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png +0 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/index.js +1 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js +207 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/package.json +47 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/Makefile +11 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/README.md +6 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/index.js +1 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/lib/index.js +68 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/package.json +48 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/LICENSE +33 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/Makefile +10 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/README.md +436 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png +0 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/index.js +1 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/lib/escape.js +132 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/lib/index.js +585 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/package.json +49 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/Makefile +11 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/README.md +68 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/examples/offset.js +16 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/examples/time.js +25 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/index.js +1 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/lib/index.js +409 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/package.json +48 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/package.json +53 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/LICENSE +18 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/README.md +75 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/http_signing.md +296 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/index.js +25 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/parser.js +304 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/signer.js +179 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/util.js +249 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/verify.js +42 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/LICENSE +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/README.md +50 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/errors.js +13 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/index.js +27 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/reader.js +267 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/types.js +36 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/writer.js +317 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/index.js +20 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/package.json +43 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/tst/ber/reader.test.js +172 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/tst/ber/writer.test.js +296 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/assert-plus/README.md +126 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/assert-plus/assert.js +196 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/assert-plus/package.json +20 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/CHANGELOG +71 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/README +82 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/README.old +298 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/ctf.js +245 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/ctio.js +1485 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/ctype.js +944 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/man/man3ctype/ctio.3ctype +241 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/package.json +18 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tools/jsl.conf +129 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tools/jsstyle +839 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/float.json +13 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/int.json +13 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/psinfo.json +104 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/struct.json +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.fail.js +39 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.float.js +14 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.int.js +14 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.psinfo.js +17 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.struct.js +18 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.typedef.js +15 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/typedef.json +14 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/float/tst.rfloat.js +767 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/float/tst.wfloat.js +753 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.64.js +638 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.rint.js +101 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.wbounds.js +53 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.wint.js +92 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.64.js +451 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.roundtrip.js +81 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.ruint.js +95 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.wuint.js +156 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.basicr.js +50 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.basicw.js +44 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.char.js +42 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.endian.js +45 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.oldwrite.js +28 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.readSize.js +128 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.structw.js +28 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.writeStruct.js +31 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/package.json +36 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/README.md +49 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/package.json +33 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/stringify.js +39 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/test.js +128 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/LICENSE +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/README.md +66 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/mime.js +114 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/package.json +36 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/test.js +84 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/types/mime.types +1588 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/types/node.types +77 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/LICENSE.md +2 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/README.md +207 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/README.md +53 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/bench.gnu +174 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/bench.sh +34 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/benchmark-native.c +34 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/benchmark.js +84 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/component.json +18 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/package.json +35 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/uuid.js +245 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/LICENSE +55 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/README.md +4 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/index.js +43 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/package.json +31 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/test.js +49 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/qs/Readme.md +58 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/qs/index.js +366 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/qs/package.json +38 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/LICENSE +78 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/README.md +380 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/generate-pubsuffix.js +230 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/lib/cookie.js +947 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/lib/memstore.js +102 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/lib/pubsuffix.js +69 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/LICENSE-GPL.txt +278 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/LICENSE-MIT.txt +20 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/package.json +73 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/punycode.js +508 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/punycode.min.js +2 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/LICENSE.txt +20 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/README.md +35 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/doc/README.md +69 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/doc/parse.php +35 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/docdown.php +38 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/src/DocDown/Alias.php +226 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/src/DocDown/Entry.php +442 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/src/DocDown/Generator.php +563 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/package.json +46 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/public-suffix.txt +5229 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/test.js +1340 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/LICENSE +55 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/README.md +4 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js +227 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/package.json +28 -0
- data/lib/node_modules/npm/node_modules/request/package.json +57 -0
- data/lib/node_modules/npm/node_modules/request/request.js +1260 -0
- data/lib/node_modules/npm/node_modules/retry/License +21 -0
- data/lib/node_modules/npm/node_modules/retry/Makefile +7 -0
- data/lib/node_modules/npm/node_modules/retry/Readme.md +167 -0
- data/lib/node_modules/npm/node_modules/retry/equation.gif +0 -0
- data/lib/node_modules/npm/node_modules/retry/example/dns.js +31 -0
- data/lib/node_modules/npm/node_modules/retry/index.js +1 -0
- data/lib/node_modules/npm/node_modules/retry/lib/retry.js +50 -0
- data/lib/node_modules/npm/node_modules/retry/lib/retry_operation.js +109 -0
- data/lib/node_modules/npm/node_modules/retry/package.json +29 -0
- data/lib/node_modules/npm/node_modules/rimraf/AUTHORS +6 -0
- data/lib/node_modules/npm/node_modules/rimraf/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/rimraf/README.md +30 -0
- data/lib/node_modules/npm/node_modules/rimraf/bin.js +33 -0
- data/lib/node_modules/npm/node_modules/rimraf/package.json +56 -0
- data/lib/node_modules/npm/node_modules/rimraf/rimraf.js +178 -0
- data/lib/node_modules/npm/node_modules/semver/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/semver/Makefile +24 -0
- data/lib/node_modules/npm/node_modules/semver/README.md +142 -0
- data/lib/node_modules/npm/node_modules/semver/bin/semver +124 -0
- data/lib/node_modules/npm/node_modules/semver/foot.js +6 -0
- data/lib/node_modules/npm/node_modules/semver/head.js +2 -0
- data/lib/node_modules/npm/node_modules/semver/package.json +32 -0
- data/lib/node_modules/npm/node_modules/semver/semver.browser.js +1007 -0
- data/lib/node_modules/npm/node_modules/semver/semver.browser.js.gz +0 -0
- data/lib/node_modules/npm/node_modules/semver/semver.js +1011 -0
- data/lib/node_modules/npm/node_modules/semver/semver.min.js +1 -0
- data/lib/node_modules/npm/node_modules/semver/semver.min.js.gz +0 -0
- data/lib/node_modules/npm/node_modules/sha/LICENSE +46 -0
- data/lib/node_modules/npm/node_modules/sha/README.md +49 -0
- data/lib/node_modules/npm/node_modules/sha/index.js +120 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/README.md +768 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/duplex.js +1 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/float.patch +68 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_duplex.js +69 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_passthrough.js +41 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_readable.js +927 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_transform.js +205 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_writable.js +369 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/package.json +36 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/passthrough.js +1 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/readable.js +6 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/transform.js +1 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/writable.js +1 -0
- data/lib/node_modules/npm/node_modules/sha/package.json +32 -0
- data/lib/node_modules/npm/node_modules/slide/LICENSE +15 -0
- data/lib/node_modules/npm/node_modules/slide/README.md +143 -0
- data/lib/node_modules/npm/node_modules/slide/index.js +1 -0
- data/lib/node_modules/npm/node_modules/slide/lib/async-map-ordered.js +65 -0
- data/lib/node_modules/npm/node_modules/slide/lib/async-map.js +56 -0
- data/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js +16 -0
- data/lib/node_modules/npm/node_modules/slide/lib/chain.js +20 -0
- data/lib/node_modules/npm/node_modules/slide/lib/slide.js +3 -0
- data/lib/node_modules/npm/node_modules/slide/package.json +35 -0
- data/lib/node_modules/npm/node_modules/tar/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/tar/README.md +46 -0
- data/lib/node_modules/npm/node_modules/tar/examples/extracter.js +11 -0
- data/lib/node_modules/npm/node_modules/tar/examples/reader.js +36 -0
- data/lib/node_modules/npm/node_modules/tar/lib/buffer-entry.js +30 -0
- data/lib/node_modules/npm/node_modules/tar/lib/entry-writer.js +169 -0
- data/lib/node_modules/npm/node_modules/tar/lib/entry.js +213 -0
- data/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js +191 -0
- data/lib/node_modules/npm/node_modules/tar/lib/extended-header.js +140 -0
- data/lib/node_modules/npm/node_modules/tar/lib/extract.js +78 -0
- data/lib/node_modules/npm/node_modules/tar/lib/global-header-writer.js +14 -0
- data/lib/node_modules/npm/node_modules/tar/lib/header.js +385 -0
- data/lib/node_modules/npm/node_modules/tar/lib/pack.js +231 -0
- data/lib/node_modules/npm/node_modules/tar/lib/parse.js +270 -0
- data/lib/node_modules/npm/node_modules/tar/package.json +40 -0
- data/lib/node_modules/npm/node_modules/tar/tar.js +173 -0
- data/lib/node_modules/npm/node_modules/text-table/LICENSE +18 -0
- data/lib/node_modules/npm/node_modules/text-table/example/align.js +8 -0
- data/lib/node_modules/npm/node_modules/text-table/example/center.js +8 -0
- data/lib/node_modules/npm/node_modules/text-table/example/dotalign.js +9 -0
- data/lib/node_modules/npm/node_modules/text-table/example/doubledot.js +11 -0
- data/lib/node_modules/npm/node_modules/text-table/example/table.js +6 -0
- data/lib/node_modules/npm/node_modules/text-table/index.js +86 -0
- data/lib/node_modules/npm/node_modules/text-table/package.json +52 -0
- data/lib/node_modules/npm/node_modules/text-table/readme.markdown +134 -0
- data/lib/node_modules/npm/node_modules/uid-number/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/uid-number/README.md +17 -0
- data/lib/node_modules/npm/node_modules/uid-number/get-uid-gid.js +24 -0
- data/lib/node_modules/npm/node_modules/uid-number/package.json +35 -0
- data/lib/node_modules/npm/node_modules/uid-number/uid-number.js +54 -0
- data/lib/node_modules/npm/node_modules/which/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/which/README.md +5 -0
- data/lib/node_modules/npm/node_modules/which/bin/which +14 -0
- data/lib/node_modules/npm/node_modules/which/package.json +34 -0
- data/lib/node_modules/npm/node_modules/which/which.js +104 -0
- data/lib/node_modules/npm/package.json +155 -0
- data/lib/node_modules/npm/scripts/clean-old.sh +165 -0
- data/lib/node_modules/npm/scripts/doc-build.sh +84 -0
- data/lib/node_modules/npm/scripts/index-build.js +62 -0
- data/lib/node_modules/npm/scripts/install.sh +313 -0
- data/lib/node_modules/npm/scripts/release.sh +36 -0
- data/lib/node_modules/npm/scripts/relocate.sh +26 -0
- metadata +1052 -36
- checksums.yaml +0 -7
@@ -0,0 +1,124 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
// Standalone semver comparison program.
|
3
|
+
// Exits successfully and prints matching version(s) if
|
4
|
+
// any supplied version is valid and passes all tests.
|
5
|
+
|
6
|
+
var argv = process.argv.slice(2)
|
7
|
+
, versions = []
|
8
|
+
, range = []
|
9
|
+
, gt = []
|
10
|
+
, lt = []
|
11
|
+
, eq = []
|
12
|
+
, inc = null
|
13
|
+
, version = require("../package.json").version
|
14
|
+
, loose = false
|
15
|
+
, semver = require("../semver")
|
16
|
+
, reverse = false
|
17
|
+
|
18
|
+
main()
|
19
|
+
|
20
|
+
function main () {
|
21
|
+
if (!argv.length) return help()
|
22
|
+
while (argv.length) {
|
23
|
+
var a = argv.shift()
|
24
|
+
var i = a.indexOf('=')
|
25
|
+
if (i !== -1) {
|
26
|
+
a = a.slice(0, i)
|
27
|
+
argv.unshift(a.slice(i + 1))
|
28
|
+
}
|
29
|
+
switch (a) {
|
30
|
+
case "-rv": case "-rev": case "--rev": case "--reverse":
|
31
|
+
reverse = true
|
32
|
+
break
|
33
|
+
case "-l": case "--loose":
|
34
|
+
loose = true
|
35
|
+
break
|
36
|
+
case "-v": case "--version":
|
37
|
+
versions.push(argv.shift())
|
38
|
+
break
|
39
|
+
case "-i": case "--inc": case "--increment":
|
40
|
+
switch (argv[0]) {
|
41
|
+
case "major": case "minor": case "patch": case "prerelease":
|
42
|
+
inc = argv.shift()
|
43
|
+
break
|
44
|
+
default:
|
45
|
+
inc = "patch"
|
46
|
+
break
|
47
|
+
}
|
48
|
+
break
|
49
|
+
case "-r": case "--range":
|
50
|
+
range.push(argv.shift())
|
51
|
+
break
|
52
|
+
case "-h": case "--help": case "-?":
|
53
|
+
return help()
|
54
|
+
default:
|
55
|
+
versions.push(a)
|
56
|
+
break
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
versions = versions.filter(function (v) {
|
61
|
+
return semver.valid(v, loose)
|
62
|
+
})
|
63
|
+
if (!versions.length) return fail()
|
64
|
+
if (inc && (versions.length !== 1 || range.length))
|
65
|
+
return failInc()
|
66
|
+
|
67
|
+
for (var i = 0, l = range.length; i < l ; i ++) {
|
68
|
+
versions = versions.filter(function (v) {
|
69
|
+
return semver.satisfies(v, range[i], loose)
|
70
|
+
})
|
71
|
+
if (!versions.length) return fail()
|
72
|
+
}
|
73
|
+
return success(versions)
|
74
|
+
}
|
75
|
+
|
76
|
+
function failInc () {
|
77
|
+
console.error("--inc can only be used on a single version with no range")
|
78
|
+
fail()
|
79
|
+
}
|
80
|
+
|
81
|
+
function fail () { process.exit(1) }
|
82
|
+
|
83
|
+
function success () {
|
84
|
+
var compare = reverse ? "rcompare" : "compare"
|
85
|
+
versions.sort(function (a, b) {
|
86
|
+
return semver[compare](a, b, loose)
|
87
|
+
}).map(function (v) {
|
88
|
+
return semver.clean(v, loose)
|
89
|
+
}).map(function (v) {
|
90
|
+
return inc ? semver.inc(v, inc, loose) : v
|
91
|
+
}).forEach(function (v,i,_) { console.log(v) })
|
92
|
+
}
|
93
|
+
|
94
|
+
function help () {
|
95
|
+
console.log(["SemVer " + version
|
96
|
+
,""
|
97
|
+
,"A JavaScript implementation of the http://semver.org/ specification"
|
98
|
+
,"Copyright Isaac Z. Schlueter"
|
99
|
+
,""
|
100
|
+
,"Usage: semver [options] <version> [<version> [...]]"
|
101
|
+
,"Prints valid versions sorted by SemVer precedence"
|
102
|
+
,""
|
103
|
+
,"Options:"
|
104
|
+
,"-r --range <range>"
|
105
|
+
," Print versions that match the specified range."
|
106
|
+
,""
|
107
|
+
,"-i --increment [<level>]"
|
108
|
+
," Increment a version by the specified level. Level can"
|
109
|
+
," be one of: major, minor, patch, or prerelease"
|
110
|
+
," Default level is 'patch'."
|
111
|
+
," Only one version may be specified."
|
112
|
+
,""
|
113
|
+
,"-l --loose"
|
114
|
+
," Interpret versions and ranges loosely"
|
115
|
+
,""
|
116
|
+
,"Program exits successfully if any valid version satisfies"
|
117
|
+
,"all supplied ranges, and prints all satisfying versions."
|
118
|
+
,""
|
119
|
+
,"If no satisfying versions are found, then exits failure."
|
120
|
+
,""
|
121
|
+
,"Versions are printed in ascending order, so supplying"
|
122
|
+
,"multiple versions to the utility will just sort them."
|
123
|
+
].join("\n"))
|
124
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
{
|
2
|
+
"name": "semver",
|
3
|
+
"version": "2.2.1",
|
4
|
+
"description": "The semantic version parser used by npm.",
|
5
|
+
"main": "semver.js",
|
6
|
+
"browser": "semver.browser.js",
|
7
|
+
"min": "semver.min.js",
|
8
|
+
"scripts": {
|
9
|
+
"test": "tap test/*.js",
|
10
|
+
"prepublish": "make"
|
11
|
+
},
|
12
|
+
"devDependencies": {
|
13
|
+
"tap": "0.x >=0.0.4",
|
14
|
+
"uglify-js": "~2.3.6"
|
15
|
+
},
|
16
|
+
"license": "BSD",
|
17
|
+
"repository": {
|
18
|
+
"type": "git",
|
19
|
+
"url": "git://github.com/isaacs/node-semver.git"
|
20
|
+
},
|
21
|
+
"bin": {
|
22
|
+
"semver": "./bin/semver"
|
23
|
+
},
|
24
|
+
"readme": "semver(1) -- The semantic versioner for npm\n===========================================\n\n## Usage\n\n $ npm install semver\n\n semver.valid('1.2.3') // '1.2.3'\n semver.valid('a.b.c') // null\n semver.clean(' =v1.2.3 ') // '1.2.3'\n semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true\n semver.gt('1.2.3', '9.8.7') // false\n semver.lt('1.2.3', '9.8.7') // true\n\nAs a command-line utility:\n\n $ semver -h\n\n Usage: semver <version> [<version> [...]] [-r <range> | -i <inc> | -d <dec>]\n Test if version(s) satisfy the supplied range(s), and sort them.\n\n Multiple versions or ranges may be supplied, unless increment\n or decrement options are specified. In that case, only a single\n version may be used, and it is incremented by the specified level\n\n Program exits successfully if any valid version satisfies\n all supplied ranges, and prints all satisfying versions.\n\n If no versions are valid, or ranges are not satisfied,\n then exits failure.\n\n Versions are printed in ascending order, so supplying\n multiple versions to the utility will just sort them.\n\n## Versions\n\nA \"version\" is described by the v2.0.0 specification found at\n<http://semver.org/>.\n\nA leading `\"=\"` or `\"v\"` character is stripped off and ignored.\n\n## Ranges\n\nThe following range styles are supported:\n\n* `1.2.3` A specific version. When nothing else will do. Note that\n build metadata is still ignored, so `1.2.3+build2012` will satisfy\n this range.\n* `>1.2.3` Greater than a specific version.\n* `<1.2.3` Less than a specific version. If there is no prerelease\n tag on the version range, then no prerelease version will be allowed\n either, even though these are technically \"less than\".\n* `>=1.2.3` Greater than or equal to. Note that prerelease versions\n are NOT equal to their \"normal\" equivalents, so `1.2.3-beta` will\n not satisfy this range, but `2.3.0-beta` will.\n* `<=1.2.3` Less than or equal to. In this case, prerelease versions\n ARE allowed, so `1.2.3-beta` would satisfy.\n* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4`\n* `~1.2.3` := `>=1.2.3-0 <1.3.0-0` \"Reasonably close to 1.2.3\". When\n using tilde operators, prerelease versions are supported as well,\n but a prerelease of the next significant digit will NOT be\n satisfactory, so `1.3.0-beta` will not satisfy `~1.2.3`.\n* `^1.2.3` := `>=1.2.3-0 <2.0.0-0` \"Compatible with 1.2.3\". When\n using caret operators, anything from the specified version (including\n prerelease) will be supported up to, but not including, the next\n major version (or its prereleases). `1.5.1` will satisfy `^1.2.3`,\n while `1.2.2` and `2.0.0-beta` will not.\n* `^0.1.3` := `>=0.1.3-0 <0.2.0-0` \"Compatible with 0.1.3\". 0.x.x versions are\n special: the first non-zero component indicates potentially breaking changes,\n meaning the caret operator matches any version with the same first non-zero\n component starting at the specified version.\n* `^0.0.2` := `=0.0.2` \"Only the version 0.0.2 is considered compatible\"\n* `~1.2` := `>=1.2.0-0 <1.3.0-0` \"Any version starting with 1.2\"\n* `^1.2` := `>=1.2.0-0 <2.0.0-0` \"Any version compatible with 1.2\"\n* `1.2.x` := `>=1.2.0-0 <1.3.0-0` \"Any version starting with 1.2\"\n* `~1` := `>=1.0.0-0 <2.0.0-0` \"Any version starting with 1\"\n* `^1` := `>=1.0.0-0 <2.0.0-0` \"Any version compatible with 1\"\n* `1.x` := `>=1.0.0-0 <2.0.0-0` \"Any version starting with 1\"\n\n\nRanges can be joined with either a space (which implies \"and\") or a\n`||` (which implies \"or\").\n\n## Functions\n\nAll methods and classes take a final `loose` boolean argument that, if\ntrue, will be more forgiving about not-quite-valid semver strings.\nThe resulting output will always be 100% strict, of course.\n\nStrict-mode Comparators and Ranges will be strict about the SemVer\nstrings that they parse.\n\n* valid(v): Return the parsed version, or null if it's not valid.\n* inc(v, release): Return the version incremented by the release type\n (major, minor, patch, or prerelease), or null if it's not valid.\n\n### Comparison\n\n* gt(v1, v2): `v1 > v2`\n* gte(v1, v2): `v1 >= v2`\n* lt(v1, v2): `v1 < v2`\n* lte(v1, v2): `v1 <= v2`\n* eq(v1, v2): `v1 == v2` This is true if they're logically equivalent,\n even if they're not the exact same string. You already know how to\n compare strings.\n* neq(v1, v2): `v1 != v2` The opposite of eq.\n* cmp(v1, comparator, v2): Pass in a comparison string, and it'll call\n the corresponding function above. `\"===\"` and `\"!==\"` do simple\n string comparison, but are included for completeness. Throws if an\n invalid comparison string is provided.\n* compare(v1, v2): Return 0 if v1 == v2, or 1 if v1 is greater, or -1 if\n v2 is greater. Sorts in ascending order if passed to Array.sort().\n* rcompare(v1, v2): The reverse of compare. Sorts an array of versions\n in descending order when passed to Array.sort().\n\n\n### Ranges\n\n* validRange(range): Return the valid range or null if it's not valid\n* satisfies(version, range): Return true if the version satisfies the\n range.\n* maxSatisfying(versions, range): Return the highest version in the list\n that satisfies the range, or null if none of them do.\n* gtr(version, range): Return true if version is greater than all the\n versions possible in the range.\n* ltr(version, range): Return true if version is less than all the\n versions possible in the range.\n* outside(version, range, hilo): Return true if the version is outside\n the bounds of the range in either the high or low direction. The\n `hilo` argument must be either the string `'>'` or `'<'`. (This is\n the function called by `gtr` and `ltr`.)\n\nNote that, since ranges may be non-contiguous, a version might not be\ngreater than a range, less than a range, *or* satisfy a range! For\nexample, the range `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9`\nuntil `2.0.0`, so the version `1.2.10` would not be greater than the\nrange (because 2.0.1 satisfies, which is higher), nor less than the\nrange (since 1.2.8 satisfies, which is lower), and it also does not\nsatisfy the range.\n\nIf you want to know if a version satisfies or does not satisfy a\nrange, use the `satisfies(version, range)` function.\n",
|
25
|
+
"readmeFilename": "README.md",
|
26
|
+
"bugs": {
|
27
|
+
"url": "https://github.com/isaacs/node-semver/issues"
|
28
|
+
},
|
29
|
+
"homepage": "https://github.com/isaacs/node-semver",
|
30
|
+
"_id": "semver@2.2.1",
|
31
|
+
"_from": "semver@latest"
|
32
|
+
}
|
@@ -0,0 +1,1007 @@
|
|
1
|
+
;(function(exports) {
|
2
|
+
|
3
|
+
// export the class if we are in a Node-like system.
|
4
|
+
if (typeof module === 'object' && module.exports === exports)
|
5
|
+
exports = module.exports = SemVer;
|
6
|
+
|
7
|
+
// The debug function is excluded entirely from the minified version.
|
8
|
+
|
9
|
+
// Note: this is the semver.org version of the spec that it implements
|
10
|
+
// Not necessarily the package version of this code.
|
11
|
+
exports.SEMVER_SPEC_VERSION = '2.0.0';
|
12
|
+
|
13
|
+
// The actual regexps go on exports.re
|
14
|
+
var re = exports.re = [];
|
15
|
+
var src = exports.src = [];
|
16
|
+
var R = 0;
|
17
|
+
|
18
|
+
// The following Regular Expressions can be used for tokenizing,
|
19
|
+
// validating, and parsing SemVer version strings.
|
20
|
+
|
21
|
+
// ## Numeric Identifier
|
22
|
+
// A single `0`, or a non-zero digit followed by zero or more digits.
|
23
|
+
|
24
|
+
var NUMERICIDENTIFIER = R++;
|
25
|
+
src[NUMERICIDENTIFIER] = '0|[1-9]\\d*';
|
26
|
+
var NUMERICIDENTIFIERLOOSE = R++;
|
27
|
+
src[NUMERICIDENTIFIERLOOSE] = '[0-9]+';
|
28
|
+
|
29
|
+
|
30
|
+
// ## Non-numeric Identifier
|
31
|
+
// Zero or more digits, followed by a letter or hyphen, and then zero or
|
32
|
+
// more letters, digits, or hyphens.
|
33
|
+
|
34
|
+
var NONNUMERICIDENTIFIER = R++;
|
35
|
+
src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*';
|
36
|
+
|
37
|
+
|
38
|
+
// ## Main Version
|
39
|
+
// Three dot-separated numeric identifiers.
|
40
|
+
|
41
|
+
var MAINVERSION = R++;
|
42
|
+
src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' +
|
43
|
+
'(' + src[NUMERICIDENTIFIER] + ')\\.' +
|
44
|
+
'(' + src[NUMERICIDENTIFIER] + ')';
|
45
|
+
|
46
|
+
var MAINVERSIONLOOSE = R++;
|
47
|
+
src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
|
48
|
+
'(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
|
49
|
+
'(' + src[NUMERICIDENTIFIERLOOSE] + ')';
|
50
|
+
|
51
|
+
// ## Pre-release Version Identifier
|
52
|
+
// A numeric identifier, or a non-numeric identifier.
|
53
|
+
|
54
|
+
var PRERELEASEIDENTIFIER = R++;
|
55
|
+
src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] +
|
56
|
+
'|' + src[NONNUMERICIDENTIFIER] + ')';
|
57
|
+
|
58
|
+
var PRERELEASEIDENTIFIERLOOSE = R++;
|
59
|
+
src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] +
|
60
|
+
'|' + src[NONNUMERICIDENTIFIER] + ')';
|
61
|
+
|
62
|
+
|
63
|
+
// ## Pre-release Version
|
64
|
+
// Hyphen, followed by one or more dot-separated pre-release version
|
65
|
+
// identifiers.
|
66
|
+
|
67
|
+
var PRERELEASE = R++;
|
68
|
+
src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] +
|
69
|
+
'(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))';
|
70
|
+
|
71
|
+
var PRERELEASELOOSE = R++;
|
72
|
+
src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] +
|
73
|
+
'(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))';
|
74
|
+
|
75
|
+
// ## Build Metadata Identifier
|
76
|
+
// Any combination of digits, letters, or hyphens.
|
77
|
+
|
78
|
+
var BUILDIDENTIFIER = R++;
|
79
|
+
src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+';
|
80
|
+
|
81
|
+
// ## Build Metadata
|
82
|
+
// Plus sign, followed by one or more period-separated build metadata
|
83
|
+
// identifiers.
|
84
|
+
|
85
|
+
var BUILD = R++;
|
86
|
+
src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] +
|
87
|
+
'(?:\\.' + src[BUILDIDENTIFIER] + ')*))';
|
88
|
+
|
89
|
+
|
90
|
+
// ## Full Version String
|
91
|
+
// A main version, followed optionally by a pre-release version and
|
92
|
+
// build metadata.
|
93
|
+
|
94
|
+
// Note that the only major, minor, patch, and pre-release sections of
|
95
|
+
// the version string are capturing groups. The build metadata is not a
|
96
|
+
// capturing group, because it should not ever be used in version
|
97
|
+
// comparison.
|
98
|
+
|
99
|
+
var FULL = R++;
|
100
|
+
var FULLPLAIN = 'v?' + src[MAINVERSION] +
|
101
|
+
src[PRERELEASE] + '?' +
|
102
|
+
src[BUILD] + '?';
|
103
|
+
|
104
|
+
src[FULL] = '^' + FULLPLAIN + '$';
|
105
|
+
|
106
|
+
// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
|
107
|
+
// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
|
108
|
+
// common in the npm registry.
|
109
|
+
var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] +
|
110
|
+
src[PRERELEASELOOSE] + '?' +
|
111
|
+
src[BUILD] + '?';
|
112
|
+
|
113
|
+
var LOOSE = R++;
|
114
|
+
src[LOOSE] = '^' + LOOSEPLAIN + '$';
|
115
|
+
|
116
|
+
var GTLT = R++;
|
117
|
+
src[GTLT] = '((?:<|>)?=?)';
|
118
|
+
|
119
|
+
// Something like "2.*" or "1.2.x".
|
120
|
+
// Note that "x.x" is a valid xRange identifer, meaning "any version"
|
121
|
+
// Only the first item is strictly required.
|
122
|
+
var XRANGEIDENTIFIERLOOSE = R++;
|
123
|
+
src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*';
|
124
|
+
var XRANGEIDENTIFIER = R++;
|
125
|
+
src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*';
|
126
|
+
|
127
|
+
var XRANGEPLAIN = R++;
|
128
|
+
src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' +
|
129
|
+
'(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
|
130
|
+
'(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
|
131
|
+
'(?:(' + src[PRERELEASE] + ')' +
|
132
|
+
')?)?)?';
|
133
|
+
|
134
|
+
var XRANGEPLAINLOOSE = R++;
|
135
|
+
src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
|
136
|
+
'(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
|
137
|
+
'(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
|
138
|
+
'(?:(' + src[PRERELEASELOOSE] + ')' +
|
139
|
+
')?)?)?';
|
140
|
+
|
141
|
+
// >=2.x, for example, means >=2.0.0-0
|
142
|
+
// <1.x would be the same as "<1.0.0-0", though.
|
143
|
+
var XRANGE = R++;
|
144
|
+
src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$';
|
145
|
+
var XRANGELOOSE = R++;
|
146
|
+
src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$';
|
147
|
+
|
148
|
+
// Tilde ranges.
|
149
|
+
// Meaning is "reasonably at or greater than"
|
150
|
+
var LONETILDE = R++;
|
151
|
+
src[LONETILDE] = '(?:~>?)';
|
152
|
+
|
153
|
+
var TILDETRIM = R++;
|
154
|
+
src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+';
|
155
|
+
re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g');
|
156
|
+
var tildeTrimReplace = '$1~';
|
157
|
+
|
158
|
+
var TILDE = R++;
|
159
|
+
src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$';
|
160
|
+
var TILDELOOSE = R++;
|
161
|
+
src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$';
|
162
|
+
|
163
|
+
// Caret ranges.
|
164
|
+
// Meaning is "at least and backwards compatible with"
|
165
|
+
var LONECARET = R++;
|
166
|
+
src[LONECARET] = '(?:\\^)';
|
167
|
+
|
168
|
+
var CARETTRIM = R++;
|
169
|
+
src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+';
|
170
|
+
re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g');
|
171
|
+
var caretTrimReplace = '$1^';
|
172
|
+
|
173
|
+
var CARET = R++;
|
174
|
+
src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$';
|
175
|
+
var CARETLOOSE = R++;
|
176
|
+
src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$';
|
177
|
+
|
178
|
+
// A simple gt/lt/eq thing, or just "" to indicate "any version"
|
179
|
+
var COMPARATORLOOSE = R++;
|
180
|
+
src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$';
|
181
|
+
var COMPARATOR = R++;
|
182
|
+
src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$';
|
183
|
+
|
184
|
+
|
185
|
+
// An expression to strip any whitespace between the gtlt and the thing
|
186
|
+
// it modifies, so that `> 1.2.3` ==> `>1.2.3`
|
187
|
+
var COMPARATORTRIM = R++;
|
188
|
+
src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] +
|
189
|
+
'\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')';
|
190
|
+
|
191
|
+
// this one has to use the /g flag
|
192
|
+
re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g');
|
193
|
+
var comparatorTrimReplace = '$1$2$3';
|
194
|
+
|
195
|
+
|
196
|
+
// Something like `1.2.3 - 1.2.4`
|
197
|
+
// Note that these all use the loose form, because they'll be
|
198
|
+
// checked against either the strict or loose comparator form
|
199
|
+
// later.
|
200
|
+
var HYPHENRANGE = R++;
|
201
|
+
src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' +
|
202
|
+
'\\s+-\\s+' +
|
203
|
+
'(' + src[XRANGEPLAIN] + ')' +
|
204
|
+
'\\s*$';
|
205
|
+
|
206
|
+
var HYPHENRANGELOOSE = R++;
|
207
|
+
src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' +
|
208
|
+
'\\s+-\\s+' +
|
209
|
+
'(' + src[XRANGEPLAINLOOSE] + ')' +
|
210
|
+
'\\s*$';
|
211
|
+
|
212
|
+
// Star ranges basically just allow anything at all.
|
213
|
+
var STAR = R++;
|
214
|
+
src[STAR] = '(<|>)?=?\\s*\\*';
|
215
|
+
|
216
|
+
// Compile to actual regexp objects.
|
217
|
+
// All are flag-free, unless they were created above with a flag.
|
218
|
+
for (var i = 0; i < R; i++) {
|
219
|
+
;
|
220
|
+
if (!re[i])
|
221
|
+
re[i] = new RegExp(src[i]);
|
222
|
+
}
|
223
|
+
|
224
|
+
exports.parse = parse;
|
225
|
+
function parse(version, loose) {
|
226
|
+
var r = loose ? re[LOOSE] : re[FULL];
|
227
|
+
return (r.test(version)) ? new SemVer(version, loose) : null;
|
228
|
+
}
|
229
|
+
|
230
|
+
exports.valid = valid;
|
231
|
+
function valid(version, loose) {
|
232
|
+
var v = parse(version, loose);
|
233
|
+
return v ? v.version : null;
|
234
|
+
}
|
235
|
+
|
236
|
+
|
237
|
+
exports.clean = clean;
|
238
|
+
function clean(version, loose) {
|
239
|
+
var s = parse(version, loose);
|
240
|
+
return s ? s.version : null;
|
241
|
+
}
|
242
|
+
|
243
|
+
exports.SemVer = SemVer;
|
244
|
+
|
245
|
+
function SemVer(version, loose) {
|
246
|
+
if (version instanceof SemVer) {
|
247
|
+
if (version.loose === loose)
|
248
|
+
return version;
|
249
|
+
else
|
250
|
+
version = version.version;
|
251
|
+
}
|
252
|
+
|
253
|
+
if (!(this instanceof SemVer))
|
254
|
+
return new SemVer(version, loose);
|
255
|
+
|
256
|
+
;
|
257
|
+
this.loose = loose;
|
258
|
+
var m = version.trim().match(loose ? re[LOOSE] : re[FULL]);
|
259
|
+
|
260
|
+
if (!m)
|
261
|
+
throw new TypeError('Invalid Version: ' + version);
|
262
|
+
|
263
|
+
this.raw = version;
|
264
|
+
|
265
|
+
// these are actually numbers
|
266
|
+
this.major = +m[1];
|
267
|
+
this.minor = +m[2];
|
268
|
+
this.patch = +m[3];
|
269
|
+
|
270
|
+
// numberify any prerelease numeric ids
|
271
|
+
if (!m[4])
|
272
|
+
this.prerelease = [];
|
273
|
+
else
|
274
|
+
this.prerelease = m[4].split('.').map(function(id) {
|
275
|
+
return (/^[0-9]+$/.test(id)) ? +id : id;
|
276
|
+
});
|
277
|
+
|
278
|
+
this.build = m[5] ? m[5].split('.') : [];
|
279
|
+
this.format();
|
280
|
+
}
|
281
|
+
|
282
|
+
SemVer.prototype.format = function() {
|
283
|
+
this.version = this.major + '.' + this.minor + '.' + this.patch;
|
284
|
+
if (this.prerelease.length)
|
285
|
+
this.version += '-' + this.prerelease.join('.');
|
286
|
+
return this.version;
|
287
|
+
};
|
288
|
+
|
289
|
+
SemVer.prototype.inspect = function() {
|
290
|
+
return '<SemVer "' + this + '">';
|
291
|
+
};
|
292
|
+
|
293
|
+
SemVer.prototype.toString = function() {
|
294
|
+
return this.version;
|
295
|
+
};
|
296
|
+
|
297
|
+
SemVer.prototype.compare = function(other) {
|
298
|
+
;
|
299
|
+
if (!(other instanceof SemVer))
|
300
|
+
other = new SemVer(other, this.loose);
|
301
|
+
|
302
|
+
return this.compareMain(other) || this.comparePre(other);
|
303
|
+
};
|
304
|
+
|
305
|
+
SemVer.prototype.compareMain = function(other) {
|
306
|
+
if (!(other instanceof SemVer))
|
307
|
+
other = new SemVer(other, this.loose);
|
308
|
+
|
309
|
+
return compareIdentifiers(this.major, other.major) ||
|
310
|
+
compareIdentifiers(this.minor, other.minor) ||
|
311
|
+
compareIdentifiers(this.patch, other.patch);
|
312
|
+
};
|
313
|
+
|
314
|
+
SemVer.prototype.comparePre = function(other) {
|
315
|
+
if (!(other instanceof SemVer))
|
316
|
+
other = new SemVer(other, this.loose);
|
317
|
+
|
318
|
+
// NOT having a prerelease is > having one
|
319
|
+
if (this.prerelease.length && !other.prerelease.length)
|
320
|
+
return -1;
|
321
|
+
else if (!this.prerelease.length && other.prerelease.length)
|
322
|
+
return 1;
|
323
|
+
else if (!this.prerelease.lenth && !other.prerelease.length)
|
324
|
+
return 0;
|
325
|
+
|
326
|
+
var i = 0;
|
327
|
+
do {
|
328
|
+
var a = this.prerelease[i];
|
329
|
+
var b = other.prerelease[i];
|
330
|
+
;
|
331
|
+
if (a === undefined && b === undefined)
|
332
|
+
return 0;
|
333
|
+
else if (b === undefined)
|
334
|
+
return 1;
|
335
|
+
else if (a === undefined)
|
336
|
+
return -1;
|
337
|
+
else if (a === b)
|
338
|
+
continue;
|
339
|
+
else
|
340
|
+
return compareIdentifiers(a, b);
|
341
|
+
} while (++i);
|
342
|
+
};
|
343
|
+
|
344
|
+
SemVer.prototype.inc = function(release) {
|
345
|
+
switch (release) {
|
346
|
+
case 'major':
|
347
|
+
this.major++;
|
348
|
+
this.minor = -1;
|
349
|
+
case 'minor':
|
350
|
+
this.minor++;
|
351
|
+
this.patch = -1;
|
352
|
+
case 'patch':
|
353
|
+
this.patch++;
|
354
|
+
this.prerelease = [];
|
355
|
+
break;
|
356
|
+
case 'prerelease':
|
357
|
+
if (this.prerelease.length === 0)
|
358
|
+
this.prerelease = [0];
|
359
|
+
else {
|
360
|
+
var i = this.prerelease.length;
|
361
|
+
while (--i >= 0) {
|
362
|
+
if (typeof this.prerelease[i] === 'number') {
|
363
|
+
this.prerelease[i]++;
|
364
|
+
i = -2;
|
365
|
+
}
|
366
|
+
}
|
367
|
+
if (i === -1) // didn't increment anything
|
368
|
+
this.prerelease.push(0);
|
369
|
+
}
|
370
|
+
break;
|
371
|
+
|
372
|
+
default:
|
373
|
+
throw new Error('invalid increment argument: ' + release);
|
374
|
+
}
|
375
|
+
this.format();
|
376
|
+
return this;
|
377
|
+
};
|
378
|
+
|
379
|
+
exports.inc = inc;
|
380
|
+
function inc(version, release, loose) {
|
381
|
+
try {
|
382
|
+
return new SemVer(version, loose).inc(release).version;
|
383
|
+
} catch (er) {
|
384
|
+
return null;
|
385
|
+
}
|
386
|
+
}
|
387
|
+
|
388
|
+
exports.compareIdentifiers = compareIdentifiers;
|
389
|
+
|
390
|
+
var numeric = /^[0-9]+$/;
|
391
|
+
function compareIdentifiers(a, b) {
|
392
|
+
var anum = numeric.test(a);
|
393
|
+
var bnum = numeric.test(b);
|
394
|
+
|
395
|
+
if (anum && bnum) {
|
396
|
+
a = +a;
|
397
|
+
b = +b;
|
398
|
+
}
|
399
|
+
|
400
|
+
return (anum && !bnum) ? -1 :
|
401
|
+
(bnum && !anum) ? 1 :
|
402
|
+
a < b ? -1 :
|
403
|
+
a > b ? 1 :
|
404
|
+
0;
|
405
|
+
}
|
406
|
+
|
407
|
+
exports.rcompareIdentifiers = rcompareIdentifiers;
|
408
|
+
function rcompareIdentifiers(a, b) {
|
409
|
+
return compareIdentifiers(b, a);
|
410
|
+
}
|
411
|
+
|
412
|
+
exports.compare = compare;
|
413
|
+
function compare(a, b, loose) {
|
414
|
+
return new SemVer(a, loose).compare(b);
|
415
|
+
}
|
416
|
+
|
417
|
+
exports.compareLoose = compareLoose;
|
418
|
+
function compareLoose(a, b) {
|
419
|
+
return compare(a, b, true);
|
420
|
+
}
|
421
|
+
|
422
|
+
exports.rcompare = rcompare;
|
423
|
+
function rcompare(a, b, loose) {
|
424
|
+
return compare(b, a, loose);
|
425
|
+
}
|
426
|
+
|
427
|
+
exports.sort = sort;
|
428
|
+
function sort(list, loose) {
|
429
|
+
return list.sort(function(a, b) {
|
430
|
+
return exports.compare(a, b, loose);
|
431
|
+
});
|
432
|
+
}
|
433
|
+
|
434
|
+
exports.rsort = rsort;
|
435
|
+
function rsort(list, loose) {
|
436
|
+
return list.sort(function(a, b) {
|
437
|
+
return exports.rcompare(a, b, loose);
|
438
|
+
});
|
439
|
+
}
|
440
|
+
|
441
|
+
exports.gt = gt;
|
442
|
+
function gt(a, b, loose) {
|
443
|
+
return compare(a, b, loose) > 0;
|
444
|
+
}
|
445
|
+
|
446
|
+
exports.lt = lt;
|
447
|
+
function lt(a, b, loose) {
|
448
|
+
return compare(a, b, loose) < 0;
|
449
|
+
}
|
450
|
+
|
451
|
+
exports.eq = eq;
|
452
|
+
function eq(a, b, loose) {
|
453
|
+
return compare(a, b, loose) === 0;
|
454
|
+
}
|
455
|
+
|
456
|
+
exports.neq = neq;
|
457
|
+
function neq(a, b, loose) {
|
458
|
+
return compare(a, b, loose) !== 0;
|
459
|
+
}
|
460
|
+
|
461
|
+
exports.gte = gte;
|
462
|
+
function gte(a, b, loose) {
|
463
|
+
return compare(a, b, loose) >= 0;
|
464
|
+
}
|
465
|
+
|
466
|
+
exports.lte = lte;
|
467
|
+
function lte(a, b, loose) {
|
468
|
+
return compare(a, b, loose) <= 0;
|
469
|
+
}
|
470
|
+
|
471
|
+
exports.cmp = cmp;
|
472
|
+
function cmp(a, op, b, loose) {
|
473
|
+
var ret;
|
474
|
+
switch (op) {
|
475
|
+
case '===': ret = a === b; break;
|
476
|
+
case '!==': ret = a !== b; break;
|
477
|
+
case '': case '=': case '==': ret = eq(a, b, loose); break;
|
478
|
+
case '!=': ret = neq(a, b, loose); break;
|
479
|
+
case '>': ret = gt(a, b, loose); break;
|
480
|
+
case '>=': ret = gte(a, b, loose); break;
|
481
|
+
case '<': ret = lt(a, b, loose); break;
|
482
|
+
case '<=': ret = lte(a, b, loose); break;
|
483
|
+
default: throw new TypeError('Invalid operator: ' + op);
|
484
|
+
}
|
485
|
+
return ret;
|
486
|
+
}
|
487
|
+
|
488
|
+
exports.Comparator = Comparator;
|
489
|
+
function Comparator(comp, loose) {
|
490
|
+
if (comp instanceof Comparator) {
|
491
|
+
if (comp.loose === loose)
|
492
|
+
return comp;
|
493
|
+
else
|
494
|
+
comp = comp.value;
|
495
|
+
}
|
496
|
+
|
497
|
+
if (!(this instanceof Comparator))
|
498
|
+
return new Comparator(comp, loose);
|
499
|
+
|
500
|
+
;
|
501
|
+
this.loose = loose;
|
502
|
+
this.parse(comp);
|
503
|
+
|
504
|
+
if (this.semver === ANY)
|
505
|
+
this.value = '';
|
506
|
+
else
|
507
|
+
this.value = this.operator + this.semver.version;
|
508
|
+
}
|
509
|
+
|
510
|
+
var ANY = {};
|
511
|
+
Comparator.prototype.parse = function(comp) {
|
512
|
+
var r = this.loose ? re[COMPARATORLOOSE] : re[COMPARATOR];
|
513
|
+
var m = comp.match(r);
|
514
|
+
|
515
|
+
if (!m)
|
516
|
+
throw new TypeError('Invalid comparator: ' + comp);
|
517
|
+
|
518
|
+
this.operator = m[1];
|
519
|
+
// if it literally is just '>' or '' then allow anything.
|
520
|
+
if (!m[2])
|
521
|
+
this.semver = ANY;
|
522
|
+
else {
|
523
|
+
this.semver = new SemVer(m[2], this.loose);
|
524
|
+
|
525
|
+
// <1.2.3-rc DOES allow 1.2.3-beta (has prerelease)
|
526
|
+
// >=1.2.3 DOES NOT allow 1.2.3-beta
|
527
|
+
// <=1.2.3 DOES allow 1.2.3-beta
|
528
|
+
// However, <1.2.3 does NOT allow 1.2.3-beta,
|
529
|
+
// even though `1.2.3-beta < 1.2.3`
|
530
|
+
// The assumption is that the 1.2.3 version has something you
|
531
|
+
// *don't* want, so we push the prerelease down to the minimum.
|
532
|
+
if (this.operator === '<' && !this.semver.prerelease.length) {
|
533
|
+
this.semver.prerelease = ['0'];
|
534
|
+
this.semver.format();
|
535
|
+
}
|
536
|
+
}
|
537
|
+
};
|
538
|
+
|
539
|
+
Comparator.prototype.inspect = function() {
|
540
|
+
return '<SemVer Comparator "' + this + '">';
|
541
|
+
};
|
542
|
+
|
543
|
+
Comparator.prototype.toString = function() {
|
544
|
+
return this.value;
|
545
|
+
};
|
546
|
+
|
547
|
+
Comparator.prototype.test = function(version) {
|
548
|
+
;
|
549
|
+
return (this.semver === ANY) ? true :
|
550
|
+
cmp(version, this.operator, this.semver, this.loose);
|
551
|
+
};
|
552
|
+
|
553
|
+
|
554
|
+
exports.Range = Range;
|
555
|
+
function Range(range, loose) {
|
556
|
+
if ((range instanceof Range) && range.loose === loose)
|
557
|
+
return range;
|
558
|
+
|
559
|
+
if (!(this instanceof Range))
|
560
|
+
return new Range(range, loose);
|
561
|
+
|
562
|
+
this.loose = loose;
|
563
|
+
|
564
|
+
// First, split based on boolean or ||
|
565
|
+
this.raw = range;
|
566
|
+
this.set = range.split(/\s*\|\|\s*/).map(function(range) {
|
567
|
+
return this.parseRange(range.trim());
|
568
|
+
}, this).filter(function(c) {
|
569
|
+
// throw out any that are not relevant for whatever reason
|
570
|
+
return c.length;
|
571
|
+
});
|
572
|
+
|
573
|
+
if (!this.set.length) {
|
574
|
+
throw new TypeError('Invalid SemVer Range: ' + range);
|
575
|
+
}
|
576
|
+
|
577
|
+
this.format();
|
578
|
+
}
|
579
|
+
|
580
|
+
Range.prototype.inspect = function() {
|
581
|
+
return '<SemVer Range "' + this.range + '">';
|
582
|
+
};
|
583
|
+
|
584
|
+
Range.prototype.format = function() {
|
585
|
+
this.range = this.set.map(function(comps) {
|
586
|
+
return comps.join(' ').trim();
|
587
|
+
}).join('||').trim();
|
588
|
+
return this.range;
|
589
|
+
};
|
590
|
+
|
591
|
+
Range.prototype.toString = function() {
|
592
|
+
return this.range;
|
593
|
+
};
|
594
|
+
|
595
|
+
Range.prototype.parseRange = function(range) {
|
596
|
+
var loose = this.loose;
|
597
|
+
range = range.trim();
|
598
|
+
;
|
599
|
+
// `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
|
600
|
+
var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE];
|
601
|
+
range = range.replace(hr, hyphenReplace);
|
602
|
+
;
|
603
|
+
// `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
|
604
|
+
range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace);
|
605
|
+
;
|
606
|
+
|
607
|
+
// `~ 1.2.3` => `~1.2.3`
|
608
|
+
range = range.replace(re[TILDETRIM], tildeTrimReplace);
|
609
|
+
|
610
|
+
// `^ 1.2.3` => `^1.2.3`
|
611
|
+
range = range.replace(re[CARETTRIM], caretTrimReplace);
|
612
|
+
|
613
|
+
// normalize spaces
|
614
|
+
range = range.split(/\s+/).join(' ');
|
615
|
+
|
616
|
+
// At this point, the range is completely trimmed and
|
617
|
+
// ready to be split into comparators.
|
618
|
+
|
619
|
+
var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR];
|
620
|
+
var set = range.split(' ').map(function(comp) {
|
621
|
+
return parseComparator(comp, loose);
|
622
|
+
}).join(' ').split(/\s+/);
|
623
|
+
if (this.loose) {
|
624
|
+
// in loose mode, throw out any that are not valid comparators
|
625
|
+
set = set.filter(function(comp) {
|
626
|
+
return !!comp.match(compRe);
|
627
|
+
});
|
628
|
+
}
|
629
|
+
set = set.map(function(comp) {
|
630
|
+
return new Comparator(comp, loose);
|
631
|
+
});
|
632
|
+
|
633
|
+
return set;
|
634
|
+
};
|
635
|
+
|
636
|
+
// Mostly just for testing and legacy API reasons
|
637
|
+
exports.toComparators = toComparators;
|
638
|
+
function toComparators(range, loose) {
|
639
|
+
return new Range(range, loose).set.map(function(comp) {
|
640
|
+
return comp.map(function(c) {
|
641
|
+
return c.value;
|
642
|
+
}).join(' ').trim().split(' ');
|
643
|
+
});
|
644
|
+
}
|
645
|
+
|
646
|
+
// comprised of xranges, tildes, stars, and gtlt's at this point.
|
647
|
+
// already replaced the hyphen ranges
|
648
|
+
// turn into a set of JUST comparators.
|
649
|
+
function parseComparator(comp, loose) {
|
650
|
+
;
|
651
|
+
comp = replaceCarets(comp, loose);
|
652
|
+
;
|
653
|
+
comp = replaceTildes(comp, loose);
|
654
|
+
;
|
655
|
+
comp = replaceXRanges(comp, loose);
|
656
|
+
;
|
657
|
+
comp = replaceStars(comp, loose);
|
658
|
+
;
|
659
|
+
return comp;
|
660
|
+
}
|
661
|
+
|
662
|
+
function isX(id) {
|
663
|
+
return !id || id.toLowerCase() === 'x' || id === '*';
|
664
|
+
}
|
665
|
+
|
666
|
+
// ~, ~> --> * (any, kinda silly)
|
667
|
+
// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
|
668
|
+
// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
|
669
|
+
// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
|
670
|
+
// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
|
671
|
+
// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
|
672
|
+
function replaceTildes(comp, loose) {
|
673
|
+
return comp.trim().split(/\s+/).map(function(comp) {
|
674
|
+
return replaceTilde(comp, loose);
|
675
|
+
}).join(' ');
|
676
|
+
}
|
677
|
+
|
678
|
+
function replaceTilde(comp, loose) {
|
679
|
+
var r = loose ? re[TILDELOOSE] : re[TILDE];
|
680
|
+
return comp.replace(r, function(_, M, m, p, pr) {
|
681
|
+
;
|
682
|
+
var ret;
|
683
|
+
|
684
|
+
if (isX(M))
|
685
|
+
ret = '';
|
686
|
+
else if (isX(m))
|
687
|
+
ret = '>=' + M + '.0.0-0 <' + (+M + 1) + '.0.0-0';
|
688
|
+
else if (isX(p))
|
689
|
+
// ~1.2 == >=1.2.0- <1.3.0-
|
690
|
+
ret = '>=' + M + '.' + m + '.0-0 <' + M + '.' + (+m + 1) + '.0-0';
|
691
|
+
else if (pr) {
|
692
|
+
;
|
693
|
+
if (pr.charAt(0) !== '-')
|
694
|
+
pr = '-' + pr;
|
695
|
+
ret = '>=' + M + '.' + m + '.' + p + pr +
|
696
|
+
' <' + M + '.' + (+m + 1) + '.0-0';
|
697
|
+
} else
|
698
|
+
// ~1.2.3 == >=1.2.3-0 <1.3.0-0
|
699
|
+
ret = '>=' + M + '.' + m + '.' + p + '-0' +
|
700
|
+
' <' + M + '.' + (+m + 1) + '.0-0';
|
701
|
+
|
702
|
+
;
|
703
|
+
return ret;
|
704
|
+
});
|
705
|
+
}
|
706
|
+
|
707
|
+
// ^ --> * (any, kinda silly)
|
708
|
+
// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
|
709
|
+
// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
|
710
|
+
// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
|
711
|
+
// ^1.2.3 --> >=1.2.3 <2.0.0
|
712
|
+
// ^1.2.0 --> >=1.2.0 <2.0.0
|
713
|
+
function replaceCarets(comp, loose) {
|
714
|
+
return comp.trim().split(/\s+/).map(function(comp) {
|
715
|
+
return replaceCaret(comp, loose);
|
716
|
+
}).join(' ');
|
717
|
+
}
|
718
|
+
|
719
|
+
function replaceCaret(comp, loose) {
|
720
|
+
var r = loose ? re[CARETLOOSE] : re[CARET];
|
721
|
+
return comp.replace(r, function(_, M, m, p, pr) {
|
722
|
+
;
|
723
|
+
var ret;
|
724
|
+
|
725
|
+
if (isX(M))
|
726
|
+
ret = '';
|
727
|
+
else if (isX(m))
|
728
|
+
ret = '>=' + M + '.0.0-0 <' + (+M + 1) + '.0.0-0';
|
729
|
+
else if (isX(p)) {
|
730
|
+
if (M === '0')
|
731
|
+
ret = '>=' + M + '.' + m + '.0-0 <' + M + '.' + (+m + 1) + '.0-0';
|
732
|
+
else
|
733
|
+
ret = '>=' + M + '.' + m + '.0-0 <' + (+M + 1) + '.0.0-0';
|
734
|
+
} else if (pr) {
|
735
|
+
;
|
736
|
+
if (pr.charAt(0) !== '-')
|
737
|
+
pr = '-' + pr;
|
738
|
+
if (M === '0') {
|
739
|
+
if (m === '0')
|
740
|
+
ret = '=' + M + '.' + m + '.' + p + pr;
|
741
|
+
else
|
742
|
+
ret = '>=' + M + '.' + m + '.' + p + pr +
|
743
|
+
' <' + M + '.' + (+m + 1) + '.0-0';
|
744
|
+
} else
|
745
|
+
ret = '>=' + M + '.' + m + '.' + p + pr +
|
746
|
+
' <' + (+M + 1) + '.0.0-0';
|
747
|
+
} else {
|
748
|
+
if (M === '0') {
|
749
|
+
if (m === '0')
|
750
|
+
ret = '=' + M + '.' + m + '.' + p;
|
751
|
+
else
|
752
|
+
ret = '>=' + M + '.' + m + '.' + p + '-0' +
|
753
|
+
' <' + M + '.' + (+m + 1) + '.0-0';
|
754
|
+
} else
|
755
|
+
ret = '>=' + M + '.' + m + '.' + p + '-0' +
|
756
|
+
' <' + (+M + 1) + '.0.0-0';
|
757
|
+
}
|
758
|
+
|
759
|
+
;
|
760
|
+
return ret;
|
761
|
+
});
|
762
|
+
}
|
763
|
+
|
764
|
+
function replaceXRanges(comp, loose) {
|
765
|
+
;
|
766
|
+
return comp.split(/\s+/).map(function(comp) {
|
767
|
+
return replaceXRange(comp, loose);
|
768
|
+
}).join(' ');
|
769
|
+
}
|
770
|
+
|
771
|
+
function replaceXRange(comp, loose) {
|
772
|
+
comp = comp.trim();
|
773
|
+
var r = loose ? re[XRANGELOOSE] : re[XRANGE];
|
774
|
+
return comp.replace(r, function(ret, gtlt, M, m, p, pr) {
|
775
|
+
;
|
776
|
+
var xM = isX(M);
|
777
|
+
var xm = xM || isX(m);
|
778
|
+
var xp = xm || isX(p);
|
779
|
+
var anyX = xp;
|
780
|
+
|
781
|
+
if (gtlt === '=' && anyX)
|
782
|
+
gtlt = '';
|
783
|
+
|
784
|
+
if (gtlt && anyX) {
|
785
|
+
// replace X with 0, and then append the -0 min-prerelease
|
786
|
+
if (xM)
|
787
|
+
M = 0;
|
788
|
+
if (xm)
|
789
|
+
m = 0;
|
790
|
+
if (xp)
|
791
|
+
p = 0;
|
792
|
+
|
793
|
+
if (gtlt === '>') {
|
794
|
+
// >1 => >=2.0.0-0
|
795
|
+
// >1.2 => >=1.3.0-0
|
796
|
+
// >1.2.3 => >= 1.2.4-0
|
797
|
+
gtlt = '>=';
|
798
|
+
if (xM) {
|
799
|
+
// no change
|
800
|
+
} else if (xm) {
|
801
|
+
M = +M + 1;
|
802
|
+
m = 0;
|
803
|
+
p = 0;
|
804
|
+
} else if (xp) {
|
805
|
+
m = +m + 1;
|
806
|
+
p = 0;
|
807
|
+
}
|
808
|
+
}
|
809
|
+
|
810
|
+
|
811
|
+
ret = gtlt + M + '.' + m + '.' + p + '-0';
|
812
|
+
} else if (xM) {
|
813
|
+
// allow any
|
814
|
+
ret = '*';
|
815
|
+
} else if (xm) {
|
816
|
+
// append '-0' onto the version, otherwise
|
817
|
+
// '1.x.x' matches '2.0.0-beta', since the tag
|
818
|
+
// *lowers* the version value
|
819
|
+
ret = '>=' + M + '.0.0-0 <' + (+M + 1) + '.0.0-0';
|
820
|
+
} else if (xp) {
|
821
|
+
ret = '>=' + M + '.' + m + '.0-0 <' + M + '.' + (+m + 1) + '.0-0';
|
822
|
+
}
|
823
|
+
|
824
|
+
;
|
825
|
+
|
826
|
+
return ret;
|
827
|
+
});
|
828
|
+
}
|
829
|
+
|
830
|
+
// Because * is AND-ed with everything else in the comparator,
|
831
|
+
// and '' means "any version", just remove the *s entirely.
|
832
|
+
function replaceStars(comp, loose) {
|
833
|
+
;
|
834
|
+
// Looseness is ignored here. star is always as loose as it gets!
|
835
|
+
return comp.trim().replace(re[STAR], '');
|
836
|
+
}
|
837
|
+
|
838
|
+
// This function is passed to string.replace(re[HYPHENRANGE])
|
839
|
+
// M, m, patch, prerelease, build
|
840
|
+
// 1.2 - 3.4.5 => >=1.2.0-0 <=3.4.5
|
841
|
+
// 1.2.3 - 3.4 => >=1.2.0-0 <3.5.0-0 Any 3.4.x will do
|
842
|
+
// 1.2 - 3.4 => >=1.2.0-0 <3.5.0-0
|
843
|
+
function hyphenReplace($0,
|
844
|
+
from, fM, fm, fp, fpr, fb,
|
845
|
+
to, tM, tm, tp, tpr, tb) {
|
846
|
+
|
847
|
+
if (isX(fM))
|
848
|
+
from = '';
|
849
|
+
else if (isX(fm))
|
850
|
+
from = '>=' + fM + '.0.0-0';
|
851
|
+
else if (isX(fp))
|
852
|
+
from = '>=' + fM + '.' + fm + '.0-0';
|
853
|
+
else
|
854
|
+
from = '>=' + from;
|
855
|
+
|
856
|
+
if (isX(tM))
|
857
|
+
to = '';
|
858
|
+
else if (isX(tm))
|
859
|
+
to = '<' + (+tM + 1) + '.0.0-0';
|
860
|
+
else if (isX(tp))
|
861
|
+
to = '<' + tM + '.' + (+tm + 1) + '.0-0';
|
862
|
+
else if (tpr)
|
863
|
+
to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr;
|
864
|
+
else
|
865
|
+
to = '<=' + to;
|
866
|
+
|
867
|
+
return (from + ' ' + to).trim();
|
868
|
+
}
|
869
|
+
|
870
|
+
|
871
|
+
// if ANY of the sets match ALL of its comparators, then pass
|
872
|
+
Range.prototype.test = function(version) {
|
873
|
+
if (!version)
|
874
|
+
return false;
|
875
|
+
for (var i = 0; i < this.set.length; i++) {
|
876
|
+
if (testSet(this.set[i], version))
|
877
|
+
return true;
|
878
|
+
}
|
879
|
+
return false;
|
880
|
+
};
|
881
|
+
|
882
|
+
function testSet(set, version) {
|
883
|
+
for (var i = 0; i < set.length; i++) {
|
884
|
+
if (!set[i].test(version))
|
885
|
+
return false;
|
886
|
+
}
|
887
|
+
return true;
|
888
|
+
}
|
889
|
+
|
890
|
+
exports.satisfies = satisfies;
|
891
|
+
function satisfies(version, range, loose) {
|
892
|
+
try {
|
893
|
+
range = new Range(range, loose);
|
894
|
+
} catch (er) {
|
895
|
+
return false;
|
896
|
+
}
|
897
|
+
return range.test(version);
|
898
|
+
}
|
899
|
+
|
900
|
+
exports.maxSatisfying = maxSatisfying;
|
901
|
+
function maxSatisfying(versions, range, loose) {
|
902
|
+
return versions.filter(function(version) {
|
903
|
+
return satisfies(version, range, loose);
|
904
|
+
}).sort(function(a, b) {
|
905
|
+
return rcompare(a, b, loose);
|
906
|
+
})[0] || null;
|
907
|
+
}
|
908
|
+
|
909
|
+
exports.validRange = validRange;
|
910
|
+
function validRange(range, loose) {
|
911
|
+
try {
|
912
|
+
// Return '*' instead of '' so that truthiness works.
|
913
|
+
// This will throw if it's invalid anyway
|
914
|
+
return new Range(range, loose).range || '*';
|
915
|
+
} catch (er) {
|
916
|
+
return null;
|
917
|
+
}
|
918
|
+
}
|
919
|
+
|
920
|
+
// Determine if version is less than all the versions possible in the range
|
921
|
+
exports.ltr = ltr;
|
922
|
+
function ltr(version, range, loose) {
|
923
|
+
return outside(version, range, '<', loose);
|
924
|
+
}
|
925
|
+
|
926
|
+
// Determine if version is greater than all the versions possible in the range.
|
927
|
+
exports.gtr = gtr;
|
928
|
+
function gtr(version, range, loose) {
|
929
|
+
return outside(version, range, '>', loose);
|
930
|
+
}
|
931
|
+
|
932
|
+
exports.outside = outside;
|
933
|
+
function outside(version, range, hilo, loose) {
|
934
|
+
version = new SemVer(version, loose);
|
935
|
+
range = new Range(range, loose);
|
936
|
+
|
937
|
+
var gtfn, ltefn, ltfn, comp, ecomp;
|
938
|
+
switch (hilo) {
|
939
|
+
case '>':
|
940
|
+
gtfn = gt;
|
941
|
+
ltefn = lte;
|
942
|
+
ltfn = lt;
|
943
|
+
comp = '>';
|
944
|
+
ecomp = '>=';
|
945
|
+
break;
|
946
|
+
case '<':
|
947
|
+
gtfn = lt;
|
948
|
+
ltefn = gte;
|
949
|
+
ltfn = gt;
|
950
|
+
comp = '<';
|
951
|
+
ecomp = '<=';
|
952
|
+
break;
|
953
|
+
default:
|
954
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
955
|
+
}
|
956
|
+
|
957
|
+
// If it satisifes the range it is not outside
|
958
|
+
if (satisfies(version, range, loose)) {
|
959
|
+
return false;
|
960
|
+
}
|
961
|
+
|
962
|
+
// From now on, variable terms are as if we're in "gtr" mode.
|
963
|
+
// but note that everything is flipped for the "ltr" function.
|
964
|
+
|
965
|
+
for (var i = 0; i < range.set.length; ++i) {
|
966
|
+
var comparators = range.set[i];
|
967
|
+
|
968
|
+
var high = null;
|
969
|
+
var low = null;
|
970
|
+
|
971
|
+
comparators.forEach(function(comparator) {
|
972
|
+
high = high || comparator;
|
973
|
+
low = low || comparator;
|
974
|
+
if (gtfn(comparator.semver, high.semver, loose)) {
|
975
|
+
high = comparator;
|
976
|
+
} else if (ltfn(comparator.semver, low.semver, loose)) {
|
977
|
+
low = comparator;
|
978
|
+
}
|
979
|
+
});
|
980
|
+
|
981
|
+
// If the edge version comparator has a operator then our version
|
982
|
+
// isn't outside it
|
983
|
+
if (high.operator === comp || high.operator === ecomp) {
|
984
|
+
return false;
|
985
|
+
}
|
986
|
+
|
987
|
+
// If the lowest version comparator has an operator and our version
|
988
|
+
// is less than it then it isn't higher than the range
|
989
|
+
if ((!low.operator || low.operator === comp) &&
|
990
|
+
ltefn(version, low.semver)) {
|
991
|
+
return false;
|
992
|
+
} else if (low.operator === ecomp && ltfn(version, low.semver)) {
|
993
|
+
return false;
|
994
|
+
}
|
995
|
+
}
|
996
|
+
return true;
|
997
|
+
}
|
998
|
+
|
999
|
+
// Use the define() function if we're in AMD land
|
1000
|
+
if (typeof define === 'function' && define.amd)
|
1001
|
+
define(exports);
|
1002
|
+
|
1003
|
+
})(
|
1004
|
+
typeof exports === 'object' ? exports :
|
1005
|
+
typeof define === 'function' && define.amd ? {} :
|
1006
|
+
semver = {}
|
1007
|
+
);
|