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 @@
|
|
1
|
+
module.exports = require("./lib/_stream_duplex.js")
|
@@ -0,0 +1,68 @@
|
|
1
|
+
diff --git a/lib/_stream_duplex.js b/lib/_stream_duplex.js
|
2
|
+
index c5a741c..a2e0d8e 100644
|
3
|
+
--- a/lib/_stream_duplex.js
|
4
|
+
+++ b/lib/_stream_duplex.js
|
5
|
+
@@ -26,8 +26,8 @@
|
6
|
+
|
7
|
+
module.exports = Duplex;
|
8
|
+
var util = require('util');
|
9
|
+
-var Readable = require('_stream_readable');
|
10
|
+
-var Writable = require('_stream_writable');
|
11
|
+
+var Readable = require('./_stream_readable');
|
12
|
+
+var Writable = require('./_stream_writable');
|
13
|
+
|
14
|
+
util.inherits(Duplex, Readable);
|
15
|
+
|
16
|
+
diff --git a/lib/_stream_passthrough.js b/lib/_stream_passthrough.js
|
17
|
+
index a5e9864..330c247 100644
|
18
|
+
--- a/lib/_stream_passthrough.js
|
19
|
+
+++ b/lib/_stream_passthrough.js
|
20
|
+
@@ -25,7 +25,7 @@
|
21
|
+
|
22
|
+
module.exports = PassThrough;
|
23
|
+
|
24
|
+
-var Transform = require('_stream_transform');
|
25
|
+
+var Transform = require('./_stream_transform');
|
26
|
+
var util = require('util');
|
27
|
+
util.inherits(PassThrough, Transform);
|
28
|
+
|
29
|
+
diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js
|
30
|
+
index 2259d2e..e6681ee 100644
|
31
|
+
--- a/lib/_stream_readable.js
|
32
|
+
+++ b/lib/_stream_readable.js
|
33
|
+
@@ -23,6 +23,9 @@ module.exports = Readable;
|
34
|
+
Readable.ReadableState = ReadableState;
|
35
|
+
|
36
|
+
var EE = require('events').EventEmitter;
|
37
|
+
+if (!EE.listenerCount) EE.listenerCount = function(emitter, type) {
|
38
|
+
+ return emitter.listeners(type).length;
|
39
|
+
+};
|
40
|
+
var Stream = require('stream');
|
41
|
+
var util = require('util');
|
42
|
+
var StringDecoder;
|
43
|
+
diff --git a/lib/_stream_transform.js b/lib/_stream_transform.js
|
44
|
+
index e925b4b..f08b05e 100644
|
45
|
+
--- a/lib/_stream_transform.js
|
46
|
+
+++ b/lib/_stream_transform.js
|
47
|
+
@@ -64,7 +64,7 @@
|
48
|
+
|
49
|
+
module.exports = Transform;
|
50
|
+
|
51
|
+
-var Duplex = require('_stream_duplex');
|
52
|
+
+var Duplex = require('./_stream_duplex');
|
53
|
+
var util = require('util');
|
54
|
+
util.inherits(Transform, Duplex);
|
55
|
+
|
56
|
+
diff --git a/lib/_stream_writable.js b/lib/_stream_writable.js
|
57
|
+
index a26f711..56ca47d 100644
|
58
|
+
--- a/lib/_stream_writable.js
|
59
|
+
+++ b/lib/_stream_writable.js
|
60
|
+
@@ -109,7 +109,7 @@ function WritableState(options, stream) {
|
61
|
+
function Writable(options) {
|
62
|
+
// Writable ctor is applied to Duplexes, though they're not
|
63
|
+
// instanceof Writable, they're instanceof Readable.
|
64
|
+
- if (!(this instanceof Writable) && !(this instanceof Stream.Duplex))
|
65
|
+
+ if (!(this instanceof Writable) && !(this instanceof require('./_stream_duplex')))
|
66
|
+
return new Writable(options);
|
67
|
+
|
68
|
+
this._writableState = new WritableState(options, this);
|
@@ -0,0 +1,69 @@
|
|
1
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
2
|
+
//
|
3
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
4
|
+
// copy of this software and associated documentation files (the
|
5
|
+
// "Software"), to deal in the Software without restriction, including
|
6
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
8
|
+
// persons to whom the Software is furnished to do so, subject to the
|
9
|
+
// following conditions:
|
10
|
+
//
|
11
|
+
// The above copyright notice and this permission notice shall be included
|
12
|
+
// in all copies or substantial portions of the Software.
|
13
|
+
//
|
14
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
15
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
17
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
18
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
19
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
20
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21
|
+
|
22
|
+
// a duplex stream is just a stream that is both readable and writable.
|
23
|
+
// Since JS doesn't have multiple prototypal inheritance, this class
|
24
|
+
// prototypally inherits from Readable, and then parasitically from
|
25
|
+
// Writable.
|
26
|
+
|
27
|
+
module.exports = Duplex;
|
28
|
+
var util = require('util');
|
29
|
+
var Readable = require('./_stream_readable');
|
30
|
+
var Writable = require('./_stream_writable');
|
31
|
+
|
32
|
+
util.inherits(Duplex, Readable);
|
33
|
+
|
34
|
+
Object.keys(Writable.prototype).forEach(function(method) {
|
35
|
+
if (!Duplex.prototype[method])
|
36
|
+
Duplex.prototype[method] = Writable.prototype[method];
|
37
|
+
});
|
38
|
+
|
39
|
+
function Duplex(options) {
|
40
|
+
if (!(this instanceof Duplex))
|
41
|
+
return new Duplex(options);
|
42
|
+
|
43
|
+
Readable.call(this, options);
|
44
|
+
Writable.call(this, options);
|
45
|
+
|
46
|
+
if (options && options.readable === false)
|
47
|
+
this.readable = false;
|
48
|
+
|
49
|
+
if (options && options.writable === false)
|
50
|
+
this.writable = false;
|
51
|
+
|
52
|
+
this.allowHalfOpen = true;
|
53
|
+
if (options && options.allowHalfOpen === false)
|
54
|
+
this.allowHalfOpen = false;
|
55
|
+
|
56
|
+
this.once('end', onend);
|
57
|
+
}
|
58
|
+
|
59
|
+
// the no-half-open enforcer
|
60
|
+
function onend() {
|
61
|
+
// if we allow half-open state, or if the writable side ended,
|
62
|
+
// then we're ok.
|
63
|
+
if (this.allowHalfOpen || this._writableState.ended)
|
64
|
+
return;
|
65
|
+
|
66
|
+
// no more data can be written.
|
67
|
+
// But allow more writes to happen in this tick.
|
68
|
+
process.nextTick(this.end.bind(this));
|
69
|
+
}
|
data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_passthrough.js
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
2
|
+
//
|
3
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
4
|
+
// copy of this software and associated documentation files (the
|
5
|
+
// "Software"), to deal in the Software without restriction, including
|
6
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
8
|
+
// persons to whom the Software is furnished to do so, subject to the
|
9
|
+
// following conditions:
|
10
|
+
//
|
11
|
+
// The above copyright notice and this permission notice shall be included
|
12
|
+
// in all copies or substantial portions of the Software.
|
13
|
+
//
|
14
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
15
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
17
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
18
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
19
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
20
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21
|
+
|
22
|
+
// a passthrough stream.
|
23
|
+
// basically just the most minimal sort of Transform stream.
|
24
|
+
// Every written chunk gets output as-is.
|
25
|
+
|
26
|
+
module.exports = PassThrough;
|
27
|
+
|
28
|
+
var Transform = require('./_stream_transform');
|
29
|
+
var util = require('util');
|
30
|
+
util.inherits(PassThrough, Transform);
|
31
|
+
|
32
|
+
function PassThrough(options) {
|
33
|
+
if (!(this instanceof PassThrough))
|
34
|
+
return new PassThrough(options);
|
35
|
+
|
36
|
+
Transform.call(this, options);
|
37
|
+
}
|
38
|
+
|
39
|
+
PassThrough.prototype._transform = function(chunk, encoding, cb) {
|
40
|
+
cb(null, chunk);
|
41
|
+
};
|
data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_readable.js
ADDED
@@ -0,0 +1,927 @@
|
|
1
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
2
|
+
//
|
3
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
4
|
+
// copy of this software and associated documentation files (the
|
5
|
+
// "Software"), to deal in the Software without restriction, including
|
6
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
8
|
+
// persons to whom the Software is furnished to do so, subject to the
|
9
|
+
// following conditions:
|
10
|
+
//
|
11
|
+
// The above copyright notice and this permission notice shall be included
|
12
|
+
// in all copies or substantial portions of the Software.
|
13
|
+
//
|
14
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
15
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
17
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
18
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
19
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
20
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21
|
+
|
22
|
+
module.exports = Readable;
|
23
|
+
Readable.ReadableState = ReadableState;
|
24
|
+
|
25
|
+
var EE = require('events').EventEmitter;
|
26
|
+
if (!EE.listenerCount) EE.listenerCount = function(emitter, type) {
|
27
|
+
return emitter.listeners(type).length;
|
28
|
+
};
|
29
|
+
var Stream = require('stream');
|
30
|
+
var util = require('util');
|
31
|
+
var StringDecoder;
|
32
|
+
|
33
|
+
util.inherits(Readable, Stream);
|
34
|
+
|
35
|
+
function ReadableState(options, stream) {
|
36
|
+
options = options || {};
|
37
|
+
|
38
|
+
// the point at which it stops calling _read() to fill the buffer
|
39
|
+
// Note: 0 is a valid value, means "don't call _read preemptively ever"
|
40
|
+
var hwm = options.highWaterMark;
|
41
|
+
this.highWaterMark = (hwm || hwm === 0) ? hwm : 16 * 1024;
|
42
|
+
|
43
|
+
// cast to ints.
|
44
|
+
this.highWaterMark = ~~this.highWaterMark;
|
45
|
+
|
46
|
+
this.buffer = [];
|
47
|
+
this.length = 0;
|
48
|
+
this.pipes = null;
|
49
|
+
this.pipesCount = 0;
|
50
|
+
this.flowing = false;
|
51
|
+
this.ended = false;
|
52
|
+
this.endEmitted = false;
|
53
|
+
this.reading = false;
|
54
|
+
|
55
|
+
// In streams that never have any data, and do push(null) right away,
|
56
|
+
// the consumer can miss the 'end' event if they do some I/O before
|
57
|
+
// consuming the stream. So, we don't emit('end') until some reading
|
58
|
+
// happens.
|
59
|
+
this.calledRead = false;
|
60
|
+
|
61
|
+
// a flag to be able to tell if the onwrite cb is called immediately,
|
62
|
+
// or on a later tick. We set this to true at first, becuase any
|
63
|
+
// actions that shouldn't happen until "later" should generally also
|
64
|
+
// not happen before the first write call.
|
65
|
+
this.sync = true;
|
66
|
+
|
67
|
+
// whenever we return null, then we set a flag to say
|
68
|
+
// that we're awaiting a 'readable' event emission.
|
69
|
+
this.needReadable = false;
|
70
|
+
this.emittedReadable = false;
|
71
|
+
this.readableListening = false;
|
72
|
+
|
73
|
+
|
74
|
+
// object stream flag. Used to make read(n) ignore n and to
|
75
|
+
// make all the buffer merging and length checks go away
|
76
|
+
this.objectMode = !!options.objectMode;
|
77
|
+
|
78
|
+
// Crypto is kind of old and crusty. Historically, its default string
|
79
|
+
// encoding is 'binary' so we have to make this configurable.
|
80
|
+
// Everything else in the universe uses 'utf8', though.
|
81
|
+
this.defaultEncoding = options.defaultEncoding || 'utf8';
|
82
|
+
|
83
|
+
// when piping, we only care about 'readable' events that happen
|
84
|
+
// after read()ing all the bytes and not getting any pushback.
|
85
|
+
this.ranOut = false;
|
86
|
+
|
87
|
+
// the number of writers that are awaiting a drain event in .pipe()s
|
88
|
+
this.awaitDrain = 0;
|
89
|
+
|
90
|
+
// if true, a maybeReadMore has been scheduled
|
91
|
+
this.readingMore = false;
|
92
|
+
|
93
|
+
this.decoder = null;
|
94
|
+
this.encoding = null;
|
95
|
+
if (options.encoding) {
|
96
|
+
if (!StringDecoder)
|
97
|
+
StringDecoder = require('string_decoder').StringDecoder;
|
98
|
+
this.decoder = new StringDecoder(options.encoding);
|
99
|
+
this.encoding = options.encoding;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
function Readable(options) {
|
104
|
+
if (!(this instanceof Readable))
|
105
|
+
return new Readable(options);
|
106
|
+
|
107
|
+
this._readableState = new ReadableState(options, this);
|
108
|
+
|
109
|
+
// legacy
|
110
|
+
this.readable = true;
|
111
|
+
|
112
|
+
Stream.call(this);
|
113
|
+
}
|
114
|
+
|
115
|
+
// Manually shove something into the read() buffer.
|
116
|
+
// This returns true if the highWaterMark has not been hit yet,
|
117
|
+
// similar to how Writable.write() returns true if you should
|
118
|
+
// write() some more.
|
119
|
+
Readable.prototype.push = function(chunk, encoding) {
|
120
|
+
var state = this._readableState;
|
121
|
+
|
122
|
+
if (typeof chunk === 'string' && !state.objectMode) {
|
123
|
+
encoding = encoding || state.defaultEncoding;
|
124
|
+
if (encoding !== state.encoding) {
|
125
|
+
chunk = new Buffer(chunk, encoding);
|
126
|
+
encoding = '';
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
return readableAddChunk(this, state, chunk, encoding, false);
|
131
|
+
};
|
132
|
+
|
133
|
+
// Unshift should *always* be something directly out of read()
|
134
|
+
Readable.prototype.unshift = function(chunk) {
|
135
|
+
var state = this._readableState;
|
136
|
+
return readableAddChunk(this, state, chunk, '', true);
|
137
|
+
};
|
138
|
+
|
139
|
+
function readableAddChunk(stream, state, chunk, encoding, addToFront) {
|
140
|
+
var er = chunkInvalid(state, chunk);
|
141
|
+
if (er) {
|
142
|
+
stream.emit('error', er);
|
143
|
+
} else if (chunk === null || chunk === undefined) {
|
144
|
+
state.reading = false;
|
145
|
+
if (!state.ended)
|
146
|
+
onEofChunk(stream, state);
|
147
|
+
} else if (state.objectMode || chunk && chunk.length > 0) {
|
148
|
+
if (state.ended && !addToFront) {
|
149
|
+
var e = new Error('stream.push() after EOF');
|
150
|
+
stream.emit('error', e);
|
151
|
+
} else if (state.endEmitted && addToFront) {
|
152
|
+
var e = new Error('stream.unshift() after end event');
|
153
|
+
stream.emit('error', e);
|
154
|
+
} else {
|
155
|
+
if (state.decoder && !addToFront && !encoding)
|
156
|
+
chunk = state.decoder.write(chunk);
|
157
|
+
|
158
|
+
// update the buffer info.
|
159
|
+
state.length += state.objectMode ? 1 : chunk.length;
|
160
|
+
if (addToFront) {
|
161
|
+
state.buffer.unshift(chunk);
|
162
|
+
} else {
|
163
|
+
state.reading = false;
|
164
|
+
state.buffer.push(chunk);
|
165
|
+
}
|
166
|
+
|
167
|
+
if (state.needReadable)
|
168
|
+
emitReadable(stream);
|
169
|
+
|
170
|
+
maybeReadMore(stream, state);
|
171
|
+
}
|
172
|
+
} else if (!addToFront) {
|
173
|
+
state.reading = false;
|
174
|
+
}
|
175
|
+
|
176
|
+
return needMoreData(state);
|
177
|
+
}
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
// if it's past the high water mark, we can push in some more.
|
182
|
+
// Also, if we have no data yet, we can stand some
|
183
|
+
// more bytes. This is to work around cases where hwm=0,
|
184
|
+
// such as the repl. Also, if the push() triggered a
|
185
|
+
// readable event, and the user called read(largeNumber) such that
|
186
|
+
// needReadable was set, then we ought to push more, so that another
|
187
|
+
// 'readable' event will be triggered.
|
188
|
+
function needMoreData(state) {
|
189
|
+
return !state.ended &&
|
190
|
+
(state.needReadable ||
|
191
|
+
state.length < state.highWaterMark ||
|
192
|
+
state.length === 0);
|
193
|
+
}
|
194
|
+
|
195
|
+
// backwards compatibility.
|
196
|
+
Readable.prototype.setEncoding = function(enc) {
|
197
|
+
if (!StringDecoder)
|
198
|
+
StringDecoder = require('string_decoder').StringDecoder;
|
199
|
+
this._readableState.decoder = new StringDecoder(enc);
|
200
|
+
this._readableState.encoding = enc;
|
201
|
+
};
|
202
|
+
|
203
|
+
// Don't raise the hwm > 128MB
|
204
|
+
var MAX_HWM = 0x800000;
|
205
|
+
function roundUpToNextPowerOf2(n) {
|
206
|
+
if (n >= MAX_HWM) {
|
207
|
+
n = MAX_HWM;
|
208
|
+
} else {
|
209
|
+
// Get the next highest power of 2
|
210
|
+
n--;
|
211
|
+
for (var p = 1; p < 32; p <<= 1) n |= n >> p;
|
212
|
+
n++;
|
213
|
+
}
|
214
|
+
return n;
|
215
|
+
}
|
216
|
+
|
217
|
+
function howMuchToRead(n, state) {
|
218
|
+
if (state.length === 0 && state.ended)
|
219
|
+
return 0;
|
220
|
+
|
221
|
+
if (state.objectMode)
|
222
|
+
return n === 0 ? 0 : 1;
|
223
|
+
|
224
|
+
if (isNaN(n) || n === null) {
|
225
|
+
// only flow one buffer at a time
|
226
|
+
if (state.flowing && state.buffer.length)
|
227
|
+
return state.buffer[0].length;
|
228
|
+
else
|
229
|
+
return state.length;
|
230
|
+
}
|
231
|
+
|
232
|
+
if (n <= 0)
|
233
|
+
return 0;
|
234
|
+
|
235
|
+
// If we're asking for more than the target buffer level,
|
236
|
+
// then raise the water mark. Bump up to the next highest
|
237
|
+
// power of 2, to prevent increasing it excessively in tiny
|
238
|
+
// amounts.
|
239
|
+
if (n > state.highWaterMark)
|
240
|
+
state.highWaterMark = roundUpToNextPowerOf2(n);
|
241
|
+
|
242
|
+
// don't have that much. return null, unless we've ended.
|
243
|
+
if (n > state.length) {
|
244
|
+
if (!state.ended) {
|
245
|
+
state.needReadable = true;
|
246
|
+
return 0;
|
247
|
+
} else
|
248
|
+
return state.length;
|
249
|
+
}
|
250
|
+
|
251
|
+
return n;
|
252
|
+
}
|
253
|
+
|
254
|
+
// you can override either this method, or the async _read(n) below.
|
255
|
+
Readable.prototype.read = function(n) {
|
256
|
+
var state = this._readableState;
|
257
|
+
state.calledRead = true;
|
258
|
+
var nOrig = n;
|
259
|
+
|
260
|
+
if (typeof n !== 'number' || n > 0)
|
261
|
+
state.emittedReadable = false;
|
262
|
+
|
263
|
+
// if we're doing read(0) to trigger a readable event, but we
|
264
|
+
// already have a bunch of data in the buffer, then just trigger
|
265
|
+
// the 'readable' event and move on.
|
266
|
+
if (n === 0 &&
|
267
|
+
state.needReadable &&
|
268
|
+
(state.length >= state.highWaterMark || state.ended)) {
|
269
|
+
emitReadable(this);
|
270
|
+
return null;
|
271
|
+
}
|
272
|
+
|
273
|
+
n = howMuchToRead(n, state);
|
274
|
+
|
275
|
+
// if we've ended, and we're now clear, then finish it up.
|
276
|
+
if (n === 0 && state.ended) {
|
277
|
+
if (state.length === 0)
|
278
|
+
endReadable(this);
|
279
|
+
return null;
|
280
|
+
}
|
281
|
+
|
282
|
+
// All the actual chunk generation logic needs to be
|
283
|
+
// *below* the call to _read. The reason is that in certain
|
284
|
+
// synthetic stream cases, such as passthrough streams, _read
|
285
|
+
// may be a completely synchronous operation which may change
|
286
|
+
// the state of the read buffer, providing enough data when
|
287
|
+
// before there was *not* enough.
|
288
|
+
//
|
289
|
+
// So, the steps are:
|
290
|
+
// 1. Figure out what the state of things will be after we do
|
291
|
+
// a read from the buffer.
|
292
|
+
//
|
293
|
+
// 2. If that resulting state will trigger a _read, then call _read.
|
294
|
+
// Note that this may be asynchronous, or synchronous. Yes, it is
|
295
|
+
// deeply ugly to write APIs this way, but that still doesn't mean
|
296
|
+
// that the Readable class should behave improperly, as streams are
|
297
|
+
// designed to be sync/async agnostic.
|
298
|
+
// Take note if the _read call is sync or async (ie, if the read call
|
299
|
+
// has returned yet), so that we know whether or not it's safe to emit
|
300
|
+
// 'readable' etc.
|
301
|
+
//
|
302
|
+
// 3. Actually pull the requested chunks out of the buffer and return.
|
303
|
+
|
304
|
+
// if we need a readable event, then we need to do some reading.
|
305
|
+
var doRead = state.needReadable;
|
306
|
+
|
307
|
+
// if we currently have less than the highWaterMark, then also read some
|
308
|
+
if (state.length - n <= state.highWaterMark)
|
309
|
+
doRead = true;
|
310
|
+
|
311
|
+
// however, if we've ended, then there's no point, and if we're already
|
312
|
+
// reading, then it's unnecessary.
|
313
|
+
if (state.ended || state.reading)
|
314
|
+
doRead = false;
|
315
|
+
|
316
|
+
if (doRead) {
|
317
|
+
state.reading = true;
|
318
|
+
state.sync = true;
|
319
|
+
// if the length is currently zero, then we *need* a readable event.
|
320
|
+
if (state.length === 0)
|
321
|
+
state.needReadable = true;
|
322
|
+
// call internal read method
|
323
|
+
this._read(state.highWaterMark);
|
324
|
+
state.sync = false;
|
325
|
+
}
|
326
|
+
|
327
|
+
// If _read called its callback synchronously, then `reading`
|
328
|
+
// will be false, and we need to re-evaluate how much data we
|
329
|
+
// can return to the user.
|
330
|
+
if (doRead && !state.reading)
|
331
|
+
n = howMuchToRead(nOrig, state);
|
332
|
+
|
333
|
+
var ret;
|
334
|
+
if (n > 0)
|
335
|
+
ret = fromList(n, state);
|
336
|
+
else
|
337
|
+
ret = null;
|
338
|
+
|
339
|
+
if (ret === null) {
|
340
|
+
state.needReadable = true;
|
341
|
+
n = 0;
|
342
|
+
}
|
343
|
+
|
344
|
+
state.length -= n;
|
345
|
+
|
346
|
+
// If we have nothing in the buffer, then we want to know
|
347
|
+
// as soon as we *do* get something into the buffer.
|
348
|
+
if (state.length === 0 && !state.ended)
|
349
|
+
state.needReadable = true;
|
350
|
+
|
351
|
+
// If we happened to read() exactly the remaining amount in the
|
352
|
+
// buffer, and the EOF has been seen at this point, then make sure
|
353
|
+
// that we emit 'end' on the very next tick.
|
354
|
+
if (state.ended && !state.endEmitted && state.length === 0)
|
355
|
+
endReadable(this);
|
356
|
+
|
357
|
+
return ret;
|
358
|
+
};
|
359
|
+
|
360
|
+
function chunkInvalid(state, chunk) {
|
361
|
+
var er = null;
|
362
|
+
if (!Buffer.isBuffer(chunk) &&
|
363
|
+
'string' !== typeof chunk &&
|
364
|
+
chunk !== null &&
|
365
|
+
chunk !== undefined &&
|
366
|
+
!state.objectMode &&
|
367
|
+
!er) {
|
368
|
+
er = new TypeError('Invalid non-string/buffer chunk');
|
369
|
+
}
|
370
|
+
return er;
|
371
|
+
}
|
372
|
+
|
373
|
+
|
374
|
+
function onEofChunk(stream, state) {
|
375
|
+
if (state.decoder && !state.ended && state.decoder.end) {
|
376
|
+
var chunk = state.decoder.end();
|
377
|
+
if (chunk && chunk.length) {
|
378
|
+
state.buffer.push(chunk);
|
379
|
+
state.length += state.objectMode ? 1 : chunk.length;
|
380
|
+
}
|
381
|
+
}
|
382
|
+
state.ended = true;
|
383
|
+
|
384
|
+
// if we've ended and we have some data left, then emit
|
385
|
+
// 'readable' now to make sure it gets picked up.
|
386
|
+
if (state.length > 0)
|
387
|
+
emitReadable(stream);
|
388
|
+
else
|
389
|
+
endReadable(stream);
|
390
|
+
}
|
391
|
+
|
392
|
+
// Don't emit readable right away in sync mode, because this can trigger
|
393
|
+
// another read() call => stack overflow. This way, it might trigger
|
394
|
+
// a nextTick recursion warning, but that's not so bad.
|
395
|
+
function emitReadable(stream) {
|
396
|
+
var state = stream._readableState;
|
397
|
+
state.needReadable = false;
|
398
|
+
if (state.emittedReadable)
|
399
|
+
return;
|
400
|
+
|
401
|
+
state.emittedReadable = true;
|
402
|
+
if (state.sync)
|
403
|
+
process.nextTick(function() {
|
404
|
+
emitReadable_(stream);
|
405
|
+
});
|
406
|
+
else
|
407
|
+
emitReadable_(stream);
|
408
|
+
}
|
409
|
+
|
410
|
+
function emitReadable_(stream) {
|
411
|
+
stream.emit('readable');
|
412
|
+
}
|
413
|
+
|
414
|
+
|
415
|
+
// at this point, the user has presumably seen the 'readable' event,
|
416
|
+
// and called read() to consume some data. that may have triggered
|
417
|
+
// in turn another _read(n) call, in which case reading = true if
|
418
|
+
// it's in progress.
|
419
|
+
// However, if we're not ended, or reading, and the length < hwm,
|
420
|
+
// then go ahead and try to read some more preemptively.
|
421
|
+
function maybeReadMore(stream, state) {
|
422
|
+
if (!state.readingMore) {
|
423
|
+
state.readingMore = true;
|
424
|
+
process.nextTick(function() {
|
425
|
+
maybeReadMore_(stream, state);
|
426
|
+
});
|
427
|
+
}
|
428
|
+
}
|
429
|
+
|
430
|
+
function maybeReadMore_(stream, state) {
|
431
|
+
var len = state.length;
|
432
|
+
while (!state.reading && !state.flowing && !state.ended &&
|
433
|
+
state.length < state.highWaterMark) {
|
434
|
+
stream.read(0);
|
435
|
+
if (len === state.length)
|
436
|
+
// didn't get any data, stop spinning.
|
437
|
+
break;
|
438
|
+
else
|
439
|
+
len = state.length;
|
440
|
+
}
|
441
|
+
state.readingMore = false;
|
442
|
+
}
|
443
|
+
|
444
|
+
// abstract method. to be overridden in specific implementation classes.
|
445
|
+
// call cb(er, data) where data is <= n in length.
|
446
|
+
// for virtual (non-string, non-buffer) streams, "length" is somewhat
|
447
|
+
// arbitrary, and perhaps not very meaningful.
|
448
|
+
Readable.prototype._read = function(n) {
|
449
|
+
this.emit('error', new Error('not implemented'));
|
450
|
+
};
|
451
|
+
|
452
|
+
Readable.prototype.pipe = function(dest, pipeOpts) {
|
453
|
+
var src = this;
|
454
|
+
var state = this._readableState;
|
455
|
+
|
456
|
+
switch (state.pipesCount) {
|
457
|
+
case 0:
|
458
|
+
state.pipes = dest;
|
459
|
+
break;
|
460
|
+
case 1:
|
461
|
+
state.pipes = [state.pipes, dest];
|
462
|
+
break;
|
463
|
+
default:
|
464
|
+
state.pipes.push(dest);
|
465
|
+
break;
|
466
|
+
}
|
467
|
+
state.pipesCount += 1;
|
468
|
+
|
469
|
+
var doEnd = (!pipeOpts || pipeOpts.end !== false) &&
|
470
|
+
dest !== process.stdout &&
|
471
|
+
dest !== process.stderr;
|
472
|
+
|
473
|
+
var endFn = doEnd ? onend : cleanup;
|
474
|
+
if (state.endEmitted)
|
475
|
+
process.nextTick(endFn);
|
476
|
+
else
|
477
|
+
src.once('end', endFn);
|
478
|
+
|
479
|
+
dest.on('unpipe', onunpipe);
|
480
|
+
function onunpipe(readable) {
|
481
|
+
if (readable !== src) return;
|
482
|
+
cleanup();
|
483
|
+
}
|
484
|
+
|
485
|
+
function onend() {
|
486
|
+
dest.end();
|
487
|
+
}
|
488
|
+
|
489
|
+
// when the dest drains, it reduces the awaitDrain counter
|
490
|
+
// on the source. This would be more elegant with a .once()
|
491
|
+
// handler in flow(), but adding and removing repeatedly is
|
492
|
+
// too slow.
|
493
|
+
var ondrain = pipeOnDrain(src);
|
494
|
+
dest.on('drain', ondrain);
|
495
|
+
|
496
|
+
function cleanup() {
|
497
|
+
// cleanup event handlers once the pipe is broken
|
498
|
+
dest.removeListener('close', onclose);
|
499
|
+
dest.removeListener('finish', onfinish);
|
500
|
+
dest.removeListener('drain', ondrain);
|
501
|
+
dest.removeListener('error', onerror);
|
502
|
+
dest.removeListener('unpipe', onunpipe);
|
503
|
+
src.removeListener('end', onend);
|
504
|
+
src.removeListener('end', cleanup);
|
505
|
+
|
506
|
+
// if the reader is waiting for a drain event from this
|
507
|
+
// specific writer, then it would cause it to never start
|
508
|
+
// flowing again.
|
509
|
+
// So, if this is awaiting a drain, then we just call it now.
|
510
|
+
// If we don't know, then assume that we are waiting for one.
|
511
|
+
if (!dest._writableState || dest._writableState.needDrain)
|
512
|
+
ondrain();
|
513
|
+
}
|
514
|
+
|
515
|
+
// if the dest has an error, then stop piping into it.
|
516
|
+
// however, don't suppress the throwing behavior for this.
|
517
|
+
function onerror(er) {
|
518
|
+
unpipe();
|
519
|
+
dest.removeListener('error', onerror);
|
520
|
+
if (EE.listenerCount(dest, 'error') === 0)
|
521
|
+
dest.emit('error', er);
|
522
|
+
}
|
523
|
+
// This is a brutally ugly hack to make sure that our error handler
|
524
|
+
// is attached before any userland ones. NEVER DO THIS.
|
525
|
+
if (!dest._events || !dest._events.error)
|
526
|
+
dest.on('error', onerror);
|
527
|
+
else if (Array.isArray(dest._events.error))
|
528
|
+
dest._events.error.unshift(onerror);
|
529
|
+
else
|
530
|
+
dest._events.error = [onerror, dest._events.error];
|
531
|
+
|
532
|
+
|
533
|
+
|
534
|
+
// Both close and finish should trigger unpipe, but only once.
|
535
|
+
function onclose() {
|
536
|
+
dest.removeListener('finish', onfinish);
|
537
|
+
unpipe();
|
538
|
+
}
|
539
|
+
dest.once('close', onclose);
|
540
|
+
function onfinish() {
|
541
|
+
dest.removeListener('close', onclose);
|
542
|
+
unpipe();
|
543
|
+
}
|
544
|
+
dest.once('finish', onfinish);
|
545
|
+
|
546
|
+
function unpipe() {
|
547
|
+
src.unpipe(dest);
|
548
|
+
}
|
549
|
+
|
550
|
+
// tell the dest that it's being piped to
|
551
|
+
dest.emit('pipe', src);
|
552
|
+
|
553
|
+
// start the flow if it hasn't been started already.
|
554
|
+
if (!state.flowing) {
|
555
|
+
// the handler that waits for readable events after all
|
556
|
+
// the data gets sucked out in flow.
|
557
|
+
// This would be easier to follow with a .once() handler
|
558
|
+
// in flow(), but that is too slow.
|
559
|
+
this.on('readable', pipeOnReadable);
|
560
|
+
|
561
|
+
state.flowing = true;
|
562
|
+
process.nextTick(function() {
|
563
|
+
flow(src);
|
564
|
+
});
|
565
|
+
}
|
566
|
+
|
567
|
+
return dest;
|
568
|
+
};
|
569
|
+
|
570
|
+
function pipeOnDrain(src) {
|
571
|
+
return function() {
|
572
|
+
var dest = this;
|
573
|
+
var state = src._readableState;
|
574
|
+
state.awaitDrain--;
|
575
|
+
if (state.awaitDrain === 0)
|
576
|
+
flow(src);
|
577
|
+
};
|
578
|
+
}
|
579
|
+
|
580
|
+
function flow(src) {
|
581
|
+
var state = src._readableState;
|
582
|
+
var chunk;
|
583
|
+
state.awaitDrain = 0;
|
584
|
+
|
585
|
+
function write(dest, i, list) {
|
586
|
+
var written = dest.write(chunk);
|
587
|
+
if (false === written) {
|
588
|
+
state.awaitDrain++;
|
589
|
+
}
|
590
|
+
}
|
591
|
+
|
592
|
+
while (state.pipesCount && null !== (chunk = src.read())) {
|
593
|
+
|
594
|
+
if (state.pipesCount === 1)
|
595
|
+
write(state.pipes, 0, null);
|
596
|
+
else
|
597
|
+
state.pipes.forEach(write);
|
598
|
+
|
599
|
+
src.emit('data', chunk);
|
600
|
+
|
601
|
+
// if anyone needs a drain, then we have to wait for that.
|
602
|
+
if (state.awaitDrain > 0)
|
603
|
+
return;
|
604
|
+
}
|
605
|
+
|
606
|
+
// if every destination was unpiped, either before entering this
|
607
|
+
// function, or in the while loop, then stop flowing.
|
608
|
+
//
|
609
|
+
// NB: This is a pretty rare edge case.
|
610
|
+
if (state.pipesCount === 0) {
|
611
|
+
state.flowing = false;
|
612
|
+
|
613
|
+
// if there were data event listeners added, then switch to old mode.
|
614
|
+
if (EE.listenerCount(src, 'data') > 0)
|
615
|
+
emitDataEvents(src);
|
616
|
+
return;
|
617
|
+
}
|
618
|
+
|
619
|
+
// at this point, no one needed a drain, so we just ran out of data
|
620
|
+
// on the next readable event, start it over again.
|
621
|
+
state.ranOut = true;
|
622
|
+
}
|
623
|
+
|
624
|
+
function pipeOnReadable() {
|
625
|
+
if (this._readableState.ranOut) {
|
626
|
+
this._readableState.ranOut = false;
|
627
|
+
flow(this);
|
628
|
+
}
|
629
|
+
}
|
630
|
+
|
631
|
+
|
632
|
+
Readable.prototype.unpipe = function(dest) {
|
633
|
+
var state = this._readableState;
|
634
|
+
|
635
|
+
// if we're not piping anywhere, then do nothing.
|
636
|
+
if (state.pipesCount === 0)
|
637
|
+
return this;
|
638
|
+
|
639
|
+
// just one destination. most common case.
|
640
|
+
if (state.pipesCount === 1) {
|
641
|
+
// passed in one, but it's not the right one.
|
642
|
+
if (dest && dest !== state.pipes)
|
643
|
+
return this;
|
644
|
+
|
645
|
+
if (!dest)
|
646
|
+
dest = state.pipes;
|
647
|
+
|
648
|
+
// got a match.
|
649
|
+
state.pipes = null;
|
650
|
+
state.pipesCount = 0;
|
651
|
+
this.removeListener('readable', pipeOnReadable);
|
652
|
+
state.flowing = false;
|
653
|
+
if (dest)
|
654
|
+
dest.emit('unpipe', this);
|
655
|
+
return this;
|
656
|
+
}
|
657
|
+
|
658
|
+
// slow case. multiple pipe destinations.
|
659
|
+
|
660
|
+
if (!dest) {
|
661
|
+
// remove all.
|
662
|
+
var dests = state.pipes;
|
663
|
+
var len = state.pipesCount;
|
664
|
+
state.pipes = null;
|
665
|
+
state.pipesCount = 0;
|
666
|
+
this.removeListener('readable', pipeOnReadable);
|
667
|
+
state.flowing = false;
|
668
|
+
|
669
|
+
for (var i = 0; i < len; i++)
|
670
|
+
dests[i].emit('unpipe', this);
|
671
|
+
return this;
|
672
|
+
}
|
673
|
+
|
674
|
+
// try to find the right one.
|
675
|
+
var i = state.pipes.indexOf(dest);
|
676
|
+
if (i === -1)
|
677
|
+
return this;
|
678
|
+
|
679
|
+
state.pipes.splice(i, 1);
|
680
|
+
state.pipesCount -= 1;
|
681
|
+
if (state.pipesCount === 1)
|
682
|
+
state.pipes = state.pipes[0];
|
683
|
+
|
684
|
+
dest.emit('unpipe', this);
|
685
|
+
|
686
|
+
return this;
|
687
|
+
};
|
688
|
+
|
689
|
+
// set up data events if they are asked for
|
690
|
+
// Ensure readable listeners eventually get something
|
691
|
+
Readable.prototype.on = function(ev, fn) {
|
692
|
+
var res = Stream.prototype.on.call(this, ev, fn);
|
693
|
+
|
694
|
+
if (ev === 'data' && !this._readableState.flowing)
|
695
|
+
emitDataEvents(this);
|
696
|
+
|
697
|
+
if (ev === 'readable' && this.readable) {
|
698
|
+
var state = this._readableState;
|
699
|
+
if (!state.readableListening) {
|
700
|
+
state.readableListening = true;
|
701
|
+
state.emittedReadable = false;
|
702
|
+
state.needReadable = true;
|
703
|
+
if (!state.reading) {
|
704
|
+
this.read(0);
|
705
|
+
} else if (state.length) {
|
706
|
+
emitReadable(this, state);
|
707
|
+
}
|
708
|
+
}
|
709
|
+
}
|
710
|
+
|
711
|
+
return res;
|
712
|
+
};
|
713
|
+
Readable.prototype.addListener = Readable.prototype.on;
|
714
|
+
|
715
|
+
// pause() and resume() are remnants of the legacy readable stream API
|
716
|
+
// If the user uses them, then switch into old mode.
|
717
|
+
Readable.prototype.resume = function() {
|
718
|
+
emitDataEvents(this);
|
719
|
+
this.read(0);
|
720
|
+
this.emit('resume');
|
721
|
+
};
|
722
|
+
|
723
|
+
Readable.prototype.pause = function() {
|
724
|
+
emitDataEvents(this, true);
|
725
|
+
this.emit('pause');
|
726
|
+
};
|
727
|
+
|
728
|
+
function emitDataEvents(stream, startPaused) {
|
729
|
+
var state = stream._readableState;
|
730
|
+
|
731
|
+
if (state.flowing) {
|
732
|
+
// https://github.com/isaacs/readable-stream/issues/16
|
733
|
+
throw new Error('Cannot switch to old mode now.');
|
734
|
+
}
|
735
|
+
|
736
|
+
var paused = startPaused || false;
|
737
|
+
var readable = false;
|
738
|
+
|
739
|
+
// convert to an old-style stream.
|
740
|
+
stream.readable = true;
|
741
|
+
stream.pipe = Stream.prototype.pipe;
|
742
|
+
stream.on = stream.addListener = Stream.prototype.on;
|
743
|
+
|
744
|
+
stream.on('readable', function() {
|
745
|
+
readable = true;
|
746
|
+
|
747
|
+
var c;
|
748
|
+
while (!paused && (null !== (c = stream.read())))
|
749
|
+
stream.emit('data', c);
|
750
|
+
|
751
|
+
if (c === null) {
|
752
|
+
readable = false;
|
753
|
+
stream._readableState.needReadable = true;
|
754
|
+
}
|
755
|
+
});
|
756
|
+
|
757
|
+
stream.pause = function() {
|
758
|
+
paused = true;
|
759
|
+
this.emit('pause');
|
760
|
+
};
|
761
|
+
|
762
|
+
stream.resume = function() {
|
763
|
+
paused = false;
|
764
|
+
if (readable)
|
765
|
+
process.nextTick(function() {
|
766
|
+
stream.emit('readable');
|
767
|
+
});
|
768
|
+
else
|
769
|
+
this.read(0);
|
770
|
+
this.emit('resume');
|
771
|
+
};
|
772
|
+
|
773
|
+
// now make it start, just in case it hadn't already.
|
774
|
+
stream.emit('readable');
|
775
|
+
}
|
776
|
+
|
777
|
+
// wrap an old-style stream as the async data source.
|
778
|
+
// This is *not* part of the readable stream interface.
|
779
|
+
// It is an ugly unfortunate mess of history.
|
780
|
+
Readable.prototype.wrap = function(stream) {
|
781
|
+
var state = this._readableState;
|
782
|
+
var paused = false;
|
783
|
+
|
784
|
+
var self = this;
|
785
|
+
stream.on('end', function() {
|
786
|
+
if (state.decoder && !state.ended) {
|
787
|
+
var chunk = state.decoder.end();
|
788
|
+
if (chunk && chunk.length)
|
789
|
+
self.push(chunk);
|
790
|
+
}
|
791
|
+
|
792
|
+
self.push(null);
|
793
|
+
});
|
794
|
+
|
795
|
+
stream.on('data', function(chunk) {
|
796
|
+
if (state.decoder)
|
797
|
+
chunk = state.decoder.write(chunk);
|
798
|
+
if (!chunk || !state.objectMode && !chunk.length)
|
799
|
+
return;
|
800
|
+
|
801
|
+
var ret = self.push(chunk);
|
802
|
+
if (!ret) {
|
803
|
+
paused = true;
|
804
|
+
stream.pause();
|
805
|
+
}
|
806
|
+
});
|
807
|
+
|
808
|
+
// proxy all the other methods.
|
809
|
+
// important when wrapping filters and duplexes.
|
810
|
+
for (var i in stream) {
|
811
|
+
if (typeof stream[i] === 'function' &&
|
812
|
+
typeof this[i] === 'undefined') {
|
813
|
+
this[i] = function(method) { return function() {
|
814
|
+
return stream[method].apply(stream, arguments);
|
815
|
+
}}(i);
|
816
|
+
}
|
817
|
+
}
|
818
|
+
|
819
|
+
// proxy certain important events.
|
820
|
+
var events = ['error', 'close', 'destroy', 'pause', 'resume'];
|
821
|
+
events.forEach(function(ev) {
|
822
|
+
stream.on(ev, self.emit.bind(self, ev));
|
823
|
+
});
|
824
|
+
|
825
|
+
// when we try to consume some more bytes, simply unpause the
|
826
|
+
// underlying stream.
|
827
|
+
self._read = function(n) {
|
828
|
+
if (paused) {
|
829
|
+
paused = false;
|
830
|
+
stream.resume();
|
831
|
+
}
|
832
|
+
};
|
833
|
+
|
834
|
+
return self;
|
835
|
+
};
|
836
|
+
|
837
|
+
|
838
|
+
|
839
|
+
// exposed for testing purposes only.
|
840
|
+
Readable._fromList = fromList;
|
841
|
+
|
842
|
+
// Pluck off n bytes from an array of buffers.
|
843
|
+
// Length is the combined lengths of all the buffers in the list.
|
844
|
+
function fromList(n, state) {
|
845
|
+
var list = state.buffer;
|
846
|
+
var length = state.length;
|
847
|
+
var stringMode = !!state.decoder;
|
848
|
+
var objectMode = !!state.objectMode;
|
849
|
+
var ret;
|
850
|
+
|
851
|
+
// nothing in the list, definitely empty.
|
852
|
+
if (list.length === 0)
|
853
|
+
return null;
|
854
|
+
|
855
|
+
if (length === 0)
|
856
|
+
ret = null;
|
857
|
+
else if (objectMode)
|
858
|
+
ret = list.shift();
|
859
|
+
else if (!n || n >= length) {
|
860
|
+
// read it all, truncate the array.
|
861
|
+
if (stringMode)
|
862
|
+
ret = list.join('');
|
863
|
+
else
|
864
|
+
ret = Buffer.concat(list, length);
|
865
|
+
list.length = 0;
|
866
|
+
} else {
|
867
|
+
// read just some of it.
|
868
|
+
if (n < list[0].length) {
|
869
|
+
// just take a part of the first list item.
|
870
|
+
// slice is the same for buffers and strings.
|
871
|
+
var buf = list[0];
|
872
|
+
ret = buf.slice(0, n);
|
873
|
+
list[0] = buf.slice(n);
|
874
|
+
} else if (n === list[0].length) {
|
875
|
+
// first list is a perfect match
|
876
|
+
ret = list.shift();
|
877
|
+
} else {
|
878
|
+
// complex case.
|
879
|
+
// we have enough to cover it, but it spans past the first buffer.
|
880
|
+
if (stringMode)
|
881
|
+
ret = '';
|
882
|
+
else
|
883
|
+
ret = new Buffer(n);
|
884
|
+
|
885
|
+
var c = 0;
|
886
|
+
for (var i = 0, l = list.length; i < l && c < n; i++) {
|
887
|
+
var buf = list[0];
|
888
|
+
var cpy = Math.min(n - c, buf.length);
|
889
|
+
|
890
|
+
if (stringMode)
|
891
|
+
ret += buf.slice(0, cpy);
|
892
|
+
else
|
893
|
+
buf.copy(ret, c, 0, cpy);
|
894
|
+
|
895
|
+
if (cpy < buf.length)
|
896
|
+
list[0] = buf.slice(cpy);
|
897
|
+
else
|
898
|
+
list.shift();
|
899
|
+
|
900
|
+
c += cpy;
|
901
|
+
}
|
902
|
+
}
|
903
|
+
}
|
904
|
+
|
905
|
+
return ret;
|
906
|
+
}
|
907
|
+
|
908
|
+
function endReadable(stream) {
|
909
|
+
var state = stream._readableState;
|
910
|
+
|
911
|
+
// If we get here before consuming all the bytes, then that is a
|
912
|
+
// bug in node. Should never happen.
|
913
|
+
if (state.length > 0)
|
914
|
+
throw new Error('endReadable called on non-empty stream');
|
915
|
+
|
916
|
+
if (!state.endEmitted && state.calledRead) {
|
917
|
+
state.ended = true;
|
918
|
+
process.nextTick(function() {
|
919
|
+
// Check that we didn't get one last unshift.
|
920
|
+
if (!state.endEmitted && state.length === 0) {
|
921
|
+
state.endEmitted = true;
|
922
|
+
stream.readable = false;
|
923
|
+
stream.emit('end');
|
924
|
+
}
|
925
|
+
});
|
926
|
+
}
|
927
|
+
}
|