├── .DS_Store
├── .gitignore
├── README.md
├── config.js
├── host-manager
├── app
│ └── prd
│ │ ├── common.js
│ │ ├── pack.css
│ │ ├── pack.js
│ │ └── vendor.js
├── index.html
├── package.json
└── webpack.config.js
├── image
├── icon.png
├── icon011.png
├── loading.gif
└── ontop.png
├── lib
├── backbone.js
├── dialog-min.js
├── easyproxy.js
├── findhost.js
├── jquery-2.1.4.js
├── platform.js
├── tools
│ ├── findMacService.sh
│ ├── firefox_proxy.bat
│ └── unzip.exe
├── underscore.js
├── updater.js
└── util.js
├── main.html
├── node_modules
├── .bin
│ ├── ncp
│ ├── ncp.cmd
│ ├── semver
│ └── semver.cmd
├── async
│ ├── .jshintrc
│ ├── .travis.yml
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── bower.json
│ ├── component.json
│ ├── coverage
│ │ ├── base.css
│ │ ├── index.html
│ │ ├── lcov-report
│ │ │ ├── base.css
│ │ │ ├── index.html
│ │ │ ├── lib
│ │ │ │ ├── async.js.html
│ │ │ │ └── index.html
│ │ │ ├── prettify.css
│ │ │ ├── prettify.js
│ │ │ ├── sort-arrow-sprite.png
│ │ │ └── sorter.js
│ │ ├── lcov.info
│ │ ├── lib
│ │ │ ├── async.js.html
│ │ │ └── index.html
│ │ ├── prettify.css
│ │ ├── prettify.js
│ │ ├── sort-arrow-sprite.png
│ │ └── sorter.js
│ ├── lib
│ │ └── async.js
│ ├── nyc_output
│ │ └── 5074.json
│ ├── package.json
│ └── support
│ │ └── sync-package-managers.js
├── del
│ ├── index.js
│ ├── node_modules
│ │ ├── .bin
│ │ │ ├── rimraf
│ │ │ └── rimraf.cmd
│ │ ├── each-async
│ │ │ ├── index.js
│ │ │ ├── node_modules
│ │ │ │ ├── onetime
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── readme.md
│ │ │ │ └── set-immediate-shim
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── readme.md
│ │ │ ├── package.json
│ │ │ └── readme.md
│ │ ├── globby
│ │ │ ├── index.js
│ │ │ ├── node_modules
│ │ │ │ ├── array-differ
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── readme.md
│ │ │ │ ├── array-union
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── node_modules
│ │ │ │ │ │ └── array-uniq
│ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ └── readme.md
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── readme.md
│ │ │ │ ├── async
│ │ │ │ │ ├── .travis.yml
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── component.json
│ │ │ │ │ ├── lib
│ │ │ │ │ │ └── async.js
│ │ │ │ │ └── package.json
│ │ │ │ └── glob
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── common.js
│ │ │ │ │ ├── glob.js
│ │ │ │ │ ├── node_modules
│ │ │ │ │ ├── inflight
│ │ │ │ │ │ ├── .eslintrc
│ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ ├── inflight.js
│ │ │ │ │ │ ├── node_modules
│ │ │ │ │ │ │ └── wrappy
│ │ │ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ │ ├── test
│ │ │ │ │ │ │ │ └── basic.js
│ │ │ │ │ │ │ │ └── wrappy.js
│ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ └── test.js
│ │ │ │ │ ├── inherits
│ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ ├── inherits.js
│ │ │ │ │ │ ├── inherits_browser.js
│ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ └── test.js
│ │ │ │ │ ├── minimatch
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ ├── browser.js
│ │ │ │ │ │ ├── minimatch.js
│ │ │ │ │ │ ├── node_modules
│ │ │ │ │ │ │ └── brace-expansion
│ │ │ │ │ │ │ │ ├── .npmignore
│ │ │ │ │ │ │ │ ├── .travis.yml
│ │ │ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ │ │ ├── example.js
│ │ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ │ ├── node_modules
│ │ │ │ │ │ │ │ ├── balanced-match
│ │ │ │ │ │ │ │ │ ├── .npmignore
│ │ │ │ │ │ │ │ │ ├── .travis.yml
│ │ │ │ │ │ │ │ │ ├── Makefile
│ │ │ │ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ │ │ │ ├── example.js
│ │ │ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ │ │ │ └── balanced.js
│ │ │ │ │ │ │ │ └── concat-map
│ │ │ │ │ │ │ │ │ ├── .travis.yml
│ │ │ │ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ │ │ │ ├── README.markdown
│ │ │ │ │ │ │ │ │ ├── example
│ │ │ │ │ │ │ │ │ └── map.js
│ │ │ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ │ │ └── map.js
│ │ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ │ ├── bash-comparison.js
│ │ │ │ │ │ │ │ ├── bash-results.txt
│ │ │ │ │ │ │ │ ├── cases.txt
│ │ │ │ │ │ │ │ ├── dollar.js
│ │ │ │ │ │ │ │ ├── empty-option.js
│ │ │ │ │ │ │ │ ├── generate.sh
│ │ │ │ │ │ │ │ ├── negative-increment.js
│ │ │ │ │ │ │ │ ├── nested.js
│ │ │ │ │ │ │ │ ├── order.js
│ │ │ │ │ │ │ │ ├── pad.js
│ │ │ │ │ │ │ │ ├── same-type.js
│ │ │ │ │ │ │ │ └── sequence.js
│ │ │ │ │ │ └── package.json
│ │ │ │ │ └── once
│ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ ├── node_modules
│ │ │ │ │ │ └── wrappy
│ │ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ ├── test
│ │ │ │ │ │ │ └── basic.js
│ │ │ │ │ │ │ └── wrappy.js
│ │ │ │ │ │ ├── once.js
│ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── once.js
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── sync.js
│ │ │ ├── package.json
│ │ │ └── readme.md
│ │ ├── is-path-cwd
│ │ │ ├── index.js
│ │ │ ├── package.json
│ │ │ └── readme.md
│ │ ├── is-path-in-cwd
│ │ │ ├── index.js
│ │ │ ├── node_modules
│ │ │ │ └── is-path-inside
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── node_modules
│ │ │ │ │ └── path-is-inside
│ │ │ │ │ │ ├── LICENSE.txt
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ ├── lib
│ │ │ │ │ │ └── path-is-inside.js
│ │ │ │ │ │ └── package.json
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── readme.md
│ │ │ ├── package.json
│ │ │ └── readme.md
│ │ └── rimraf
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── bin.js
│ │ │ ├── node_modules
│ │ │ └── glob
│ │ │ │ ├── README.md
│ │ │ │ ├── common.js
│ │ │ │ ├── glob.js
│ │ │ │ ├── node_modules
│ │ │ │ ├── inflight
│ │ │ │ │ ├── .eslintrc
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── inflight.js
│ │ │ │ │ ├── node_modules
│ │ │ │ │ │ └── wrappy
│ │ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ ├── test
│ │ │ │ │ │ │ └── basic.js
│ │ │ │ │ │ │ └── wrappy.js
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── test.js
│ │ │ │ ├── inherits
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── inherits.js
│ │ │ │ │ ├── inherits_browser.js
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── test.js
│ │ │ │ ├── minimatch
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── browser.js
│ │ │ │ │ ├── minimatch.js
│ │ │ │ │ ├── node_modules
│ │ │ │ │ │ └── brace-expansion
│ │ │ │ │ │ │ ├── .npmignore
│ │ │ │ │ │ │ ├── .travis.yml
│ │ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ │ ├── example.js
│ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ ├── node_modules
│ │ │ │ │ │ │ ├── balanced-match
│ │ │ │ │ │ │ │ ├── .npmignore
│ │ │ │ │ │ │ │ ├── .travis.yml
│ │ │ │ │ │ │ │ ├── Makefile
│ │ │ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ │ │ ├── example.js
│ │ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ │ │ └── balanced.js
│ │ │ │ │ │ │ └── concat-map
│ │ │ │ │ │ │ │ ├── .travis.yml
│ │ │ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ │ │ ├── README.markdown
│ │ │ │ │ │ │ │ ├── example
│ │ │ │ │ │ │ │ └── map.js
│ │ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ │ └── map.js
│ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ └── test
│ │ │ │ │ │ │ ├── bash-comparison.js
│ │ │ │ │ │ │ ├── bash-results.txt
│ │ │ │ │ │ │ ├── cases.txt
│ │ │ │ │ │ │ ├── dollar.js
│ │ │ │ │ │ │ ├── empty-option.js
│ │ │ │ │ │ │ ├── generate.sh
│ │ │ │ │ │ │ ├── negative-increment.js
│ │ │ │ │ │ │ ├── nested.js
│ │ │ │ │ │ │ ├── order.js
│ │ │ │ │ │ │ ├── pad.js
│ │ │ │ │ │ │ ├── same-type.js
│ │ │ │ │ │ │ └── sequence.js
│ │ │ │ │ └── package.json
│ │ │ │ └── once
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── node_modules
│ │ │ │ │ └── wrappy
│ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ ├── test
│ │ │ │ │ │ └── basic.js
│ │ │ │ │ │ └── wrappy.js
│ │ │ │ │ ├── once.js
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── test
│ │ │ │ │ └── once.js
│ │ │ │ ├── package.json
│ │ │ │ └── sync.js
│ │ │ ├── package.json
│ │ │ └── rimraf.js
│ ├── package.json
│ └── readme.md
├── ncp
│ ├── .npmignore
│ ├── .travis.yml
│ ├── LICENSE.md
│ ├── README.md
│ ├── bin
│ │ └── ncp
│ ├── lib
│ │ └── ncp.js
│ ├── package.json
│ └── test
│ │ ├── fixtures
│ │ └── src
│ │ │ ├── a
│ │ │ ├── b
│ │ │ ├── c
│ │ │ ├── d
│ │ │ ├── e
│ │ │ ├── f
│ │ │ └── sub
│ │ │ ├── a
│ │ │ └── b
│ │ └── ncp.js
├── request
│ ├── .eslintrc
│ ├── .npmignore
│ ├── .travis.yml
│ ├── CHANGELOG.md
│ ├── CONTRIBUTING.md
│ ├── LICENSE
│ ├── README.md
│ ├── disabled.appveyor.yml
│ ├── examples
│ │ └── README.md
│ ├── index.js
│ ├── lib
│ │ ├── auth.js
│ │ ├── cookies.js
│ │ ├── copy.js
│ │ ├── getProxyFromURI.js
│ │ ├── har.js
│ │ ├── helpers.js
│ │ ├── multipart.js
│ │ ├── oauth.js
│ │ └── redirect.js
│ ├── node_modules
│ │ ├── .bin
│ │ │ ├── har-validator
│ │ │ ├── har-validator.cmd
│ │ │ ├── uuid
│ │ │ └── uuid.cmd
│ │ ├── aws-sign2
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ └── package.json
│ │ ├── bl
│ │ │ ├── .jshintrc
│ │ │ ├── .npmignore
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE.md
│ │ │ ├── README.md
│ │ │ ├── bl.js
│ │ │ ├── node_modules
│ │ │ │ └── readable-stream
│ │ │ │ │ ├── .npmignore
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── duplex.js
│ │ │ │ │ ├── lib
│ │ │ │ │ ├── _stream_duplex.js
│ │ │ │ │ ├── _stream_passthrough.js
│ │ │ │ │ ├── _stream_readable.js
│ │ │ │ │ ├── _stream_transform.js
│ │ │ │ │ └── _stream_writable.js
│ │ │ │ │ ├── node_modules
│ │ │ │ │ ├── core-util-is
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ ├── lib
│ │ │ │ │ │ │ └── util.js
│ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ └── util.js
│ │ │ │ │ ├── inherits
│ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ ├── inherits.js
│ │ │ │ │ │ ├── inherits_browser.js
│ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ └── test.js
│ │ │ │ │ ├── isarray
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ ├── build
│ │ │ │ │ │ │ └── build.js
│ │ │ │ │ │ ├── component.json
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ └── package.json
│ │ │ │ │ └── string_decoder
│ │ │ │ │ │ ├── .npmignore
│ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ └── package.json
│ │ │ │ │ ├── package.json
│ │ │ │ │ ├── passthrough.js
│ │ │ │ │ ├── readable.js
│ │ │ │ │ ├── transform.js
│ │ │ │ │ └── writable.js
│ │ │ ├── package.json
│ │ │ └── test
│ │ │ │ ├── basic-test.js
│ │ │ │ ├── sauce.js
│ │ │ │ └── test.js
│ │ ├── caseless
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ ├── package.json
│ │ │ └── test.js
│ │ ├── combined-stream
│ │ │ ├── License
│ │ │ ├── Readme.md
│ │ │ ├── lib
│ │ │ │ └── combined_stream.js
│ │ │ ├── node_modules
│ │ │ │ └── delayed-stream
│ │ │ │ │ ├── .npmignore
│ │ │ │ │ ├── License
│ │ │ │ │ ├── Makefile
│ │ │ │ │ ├── Readme.md
│ │ │ │ │ ├── lib
│ │ │ │ │ └── delayed_stream.js
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── test
│ │ │ │ │ ├── common.js
│ │ │ │ │ ├── integration
│ │ │ │ │ ├── test-delayed-http-upload.js
│ │ │ │ │ ├── test-delayed-stream-auto-pause.js
│ │ │ │ │ ├── test-delayed-stream-pause.js
│ │ │ │ │ ├── test-delayed-stream.js
│ │ │ │ │ ├── test-handle-source-errors.js
│ │ │ │ │ ├── test-max-data-size.js
│ │ │ │ │ ├── test-pipe-resumes.js
│ │ │ │ │ └── test-proxy-readable.js
│ │ │ │ │ └── run.js
│ │ │ └── package.json
│ │ ├── forever-agent
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ └── package.json
│ │ ├── form-data
│ │ │ ├── License
│ │ │ ├── Readme.md
│ │ │ ├── lib
│ │ │ │ └── form_data.js
│ │ │ ├── node_modules
│ │ │ │ └── async
│ │ │ │ │ ├── .travis.yml
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── component.json
│ │ │ │ │ ├── lib
│ │ │ │ │ └── async.js
│ │ │ │ │ └── package.json
│ │ │ └── package.json
│ │ ├── har-validator
│ │ │ ├── README.md
│ │ │ ├── bin
│ │ │ │ └── har-validator
│ │ │ ├── node_modules
│ │ │ │ ├── bluebird
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── js
│ │ │ │ │ │ ├── browser
│ │ │ │ │ │ │ ├── bluebird.js
│ │ │ │ │ │ │ └── bluebird.min.js
│ │ │ │ │ │ └── main
│ │ │ │ │ │ │ ├── any.js
│ │ │ │ │ │ │ ├── assert.js
│ │ │ │ │ │ │ ├── async.js
│ │ │ │ │ │ │ ├── bind.js
│ │ │ │ │ │ │ ├── bluebird.js
│ │ │ │ │ │ │ ├── call_get.js
│ │ │ │ │ │ │ ├── cancel.js
│ │ │ │ │ │ │ ├── captured_trace.js
│ │ │ │ │ │ │ ├── catch_filter.js
│ │ │ │ │ │ │ ├── context.js
│ │ │ │ │ │ │ ├── debuggability.js
│ │ │ │ │ │ │ ├── direct_resolve.js
│ │ │ │ │ │ │ ├── each.js
│ │ │ │ │ │ │ ├── errors.js
│ │ │ │ │ │ │ ├── es5.js
│ │ │ │ │ │ │ ├── filter.js
│ │ │ │ │ │ │ ├── finally.js
│ │ │ │ │ │ │ ├── generators.js
│ │ │ │ │ │ │ ├── join.js
│ │ │ │ │ │ │ ├── map.js
│ │ │ │ │ │ │ ├── method.js
│ │ │ │ │ │ │ ├── nodeify.js
│ │ │ │ │ │ │ ├── progress.js
│ │ │ │ │ │ │ ├── promise.js
│ │ │ │ │ │ │ ├── promise_array.js
│ │ │ │ │ │ │ ├── promise_resolver.js
│ │ │ │ │ │ │ ├── promisify.js
│ │ │ │ │ │ │ ├── props.js
│ │ │ │ │ │ │ ├── queue.js
│ │ │ │ │ │ │ ├── race.js
│ │ │ │ │ │ │ ├── reduce.js
│ │ │ │ │ │ │ ├── schedule.js
│ │ │ │ │ │ │ ├── settle.js
│ │ │ │ │ │ │ ├── some.js
│ │ │ │ │ │ │ ├── synchronous_inspection.js
│ │ │ │ │ │ │ ├── thenables.js
│ │ │ │ │ │ │ ├── timers.js
│ │ │ │ │ │ │ ├── using.js
│ │ │ │ │ │ │ └── util.js
│ │ │ │ │ └── package.json
│ │ │ │ ├── chalk
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── node_modules
│ │ │ │ │ │ ├── .bin
│ │ │ │ │ │ │ ├── has-ansi
│ │ │ │ │ │ │ ├── has-ansi.cmd
│ │ │ │ │ │ │ ├── strip-ansi
│ │ │ │ │ │ │ ├── strip-ansi.cmd
│ │ │ │ │ │ │ ├── supports-color
│ │ │ │ │ │ │ └── supports-color.cmd
│ │ │ │ │ │ ├── ansi-styles
│ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ └── readme.md
│ │ │ │ │ │ ├── escape-string-regexp
│ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ └── readme.md
│ │ │ │ │ │ ├── has-ansi
│ │ │ │ │ │ │ ├── cli.js
│ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ ├── node_modules
│ │ │ │ │ │ │ │ ├── ansi-regex
│ │ │ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ │ │ └── readme.md
│ │ │ │ │ │ │ │ └── get-stdin
│ │ │ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ │ │ └── readme.md
│ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ └── readme.md
│ │ │ │ │ │ ├── strip-ansi
│ │ │ │ │ │ │ ├── cli.js
│ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ ├── node_modules
│ │ │ │ │ │ │ │ └── ansi-regex
│ │ │ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ │ │ └── readme.md
│ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ └── readme.md
│ │ │ │ │ │ └── supports-color
│ │ │ │ │ │ │ ├── cli.js
│ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ │ └── readme.md
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── readme.md
│ │ │ │ ├── commander
│ │ │ │ │ ├── Readme.md
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── node_modules
│ │ │ │ │ │ └── graceful-readlink
│ │ │ │ │ │ │ ├── .npmignore
│ │ │ │ │ │ │ ├── .travis.yml
│ │ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ └── package.json
│ │ │ │ │ └── package.json
│ │ │ │ └── is-my-json-valid
│ │ │ │ │ ├── .npmignore
│ │ │ │ │ ├── .travis.yml
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── example.js
│ │ │ │ │ ├── formats.js
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── node_modules
│ │ │ │ │ ├── generate-function
│ │ │ │ │ │ ├── .npmignore
│ │ │ │ │ │ ├── .travis.yml
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ ├── example.js
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ └── test.js
│ │ │ │ │ ├── generate-object-property
│ │ │ │ │ │ ├── .npmignore
│ │ │ │ │ │ ├── .travis.yml
│ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── node_modules
│ │ │ │ │ │ │ └── is-property
│ │ │ │ │ │ │ │ ├── .npmignore
│ │ │ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ │ │ ├── is-property.js
│ │ │ │ │ │ │ │ └── package.json
│ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ └── test.js
│ │ │ │ │ ├── jsonpointer
│ │ │ │ │ │ ├── .travis.yml
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ ├── jsonpointer.js
│ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ └── test.js
│ │ │ │ │ └── xtend
│ │ │ │ │ │ ├── .jshintrc
│ │ │ │ │ │ ├── .npmignore
│ │ │ │ │ │ ├── LICENCE
│ │ │ │ │ │ ├── Makefile
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ ├── immutable.js
│ │ │ │ │ │ ├── mutable.js
│ │ │ │ │ │ ├── package.json
│ │ │ │ │ │ └── test.js
│ │ │ │ │ ├── package.json
│ │ │ │ │ ├── require.js
│ │ │ │ │ └── test
│ │ │ │ │ ├── fixtures
│ │ │ │ │ └── cosmic.js
│ │ │ │ │ ├── json-schema-draft4
│ │ │ │ │ ├── additionalItems.json
│ │ │ │ │ ├── additionalProperties.json
│ │ │ │ │ ├── allOf.json
│ │ │ │ │ ├── anyOf.json
│ │ │ │ │ ├── bignum.json
│ │ │ │ │ ├── default.json
│ │ │ │ │ ├── definitions.json
│ │ │ │ │ ├── dependencies.json
│ │ │ │ │ ├── enum.json
│ │ │ │ │ ├── format.json
│ │ │ │ │ ├── items.json
│ │ │ │ │ ├── maxItems.json
│ │ │ │ │ ├── maxLength.json
│ │ │ │ │ ├── maxProperties.json
│ │ │ │ │ ├── maximum.json
│ │ │ │ │ ├── minItems.json
│ │ │ │ │ ├── minLength.json
│ │ │ │ │ ├── minProperties.json
│ │ │ │ │ ├── minimum.json
│ │ │ │ │ ├── multipleOf.json
│ │ │ │ │ ├── not.json
│ │ │ │ │ ├── nullAndFormat.json
│ │ │ │ │ ├── oneOf.json
│ │ │ │ │ ├── pattern.json
│ │ │ │ │ ├── patternProperties.json
│ │ │ │ │ ├── properties.json
│ │ │ │ │ ├── ref.json
│ │ │ │ │ ├── refRemote.json
│ │ │ │ │ ├── required.json
│ │ │ │ │ ├── type.json
│ │ │ │ │ └── uniqueItems.json
│ │ │ │ │ ├── json-schema.js
│ │ │ │ │ └── misc.js
│ │ │ ├── package.json
│ │ │ └── src
│ │ │ │ ├── error.js
│ │ │ │ ├── index.js
│ │ │ │ └── schemas
│ │ │ │ ├── cache.json
│ │ │ │ ├── cacheEntry.json
│ │ │ │ ├── content.json
│ │ │ │ ├── cookie.json
│ │ │ │ ├── creator.json
│ │ │ │ ├── entry.json
│ │ │ │ ├── har.json
│ │ │ │ ├── index.js
│ │ │ │ ├── log.json
│ │ │ │ ├── page.json
│ │ │ │ ├── pageTimings.json
│ │ │ │ ├── postData.json
│ │ │ │ ├── record.json
│ │ │ │ ├── request.json
│ │ │ │ ├── response.json
│ │ │ │ └── timings.json
│ │ ├── hawk
│ │ │ ├── .npmignore
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── bower.json
│ │ │ ├── component.json
│ │ │ ├── example
│ │ │ │ └── usage.js
│ │ │ ├── images
│ │ │ │ ├── hawk.png
│ │ │ │ └── logo.png
│ │ │ ├── index.js
│ │ │ ├── lib
│ │ │ │ ├── browser.js
│ │ │ │ ├── client.js
│ │ │ │ ├── crypto.js
│ │ │ │ ├── index.js
│ │ │ │ ├── server.js
│ │ │ │ └── utils.js
│ │ │ ├── node_modules
│ │ │ │ ├── boom
│ │ │ │ │ ├── .npmignore
│ │ │ │ │ ├── .travis.yml
│ │ │ │ │ ├── CONTRIBUTING.md
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── images
│ │ │ │ │ │ └── boom.png
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── lib
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── test
│ │ │ │ │ │ └── index.js
│ │ │ │ ├── cryptiles
│ │ │ │ │ ├── .npmignore
│ │ │ │ │ ├── .travis.yml
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── Makefile
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── lib
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── test
│ │ │ │ │ │ └── index.js
│ │ │ │ ├── hoek
│ │ │ │ │ ├── .npmignore
│ │ │ │ │ ├── .travis.yml
│ │ │ │ │ ├── CONTRIBUTING.md
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── Makefile
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── images
│ │ │ │ │ │ └── hoek.png
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── lib
│ │ │ │ │ │ ├── escape.js
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── test
│ │ │ │ │ │ ├── escaper.js
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ └── modules
│ │ │ │ │ │ ├── ignore.txt
│ │ │ │ │ │ ├── test1.js
│ │ │ │ │ │ ├── test2.js
│ │ │ │ │ │ └── test3.js
│ │ │ │ └── sntp
│ │ │ │ │ ├── .npmignore
│ │ │ │ │ ├── .travis.yml
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── Makefile
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── examples
│ │ │ │ │ ├── offset.js
│ │ │ │ │ └── time.js
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── lib
│ │ │ │ │ └── index.js
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── test
│ │ │ │ │ └── index.js
│ │ │ ├── package.json
│ │ │ └── test
│ │ │ │ ├── browser.js
│ │ │ │ ├── client.js
│ │ │ │ ├── crypto.js
│ │ │ │ ├── index.js
│ │ │ │ ├── message.js
│ │ │ │ ├── readme.js
│ │ │ │ ├── server.js
│ │ │ │ ├── uri.js
│ │ │ │ └── utils.js
│ │ ├── http-signature
│ │ │ ├── .dir-locals.el
│ │ │ ├── .npmignore
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── http_signing.md
│ │ │ ├── lib
│ │ │ │ ├── index.js
│ │ │ │ ├── parser.js
│ │ │ │ ├── signer.js
│ │ │ │ ├── util.js
│ │ │ │ └── verify.js
│ │ │ ├── node_modules
│ │ │ │ ├── asn1
│ │ │ │ │ ├── .npmignore
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── lib
│ │ │ │ │ │ ├── ber
│ │ │ │ │ │ │ ├── errors.js
│ │ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ │ ├── reader.js
│ │ │ │ │ │ │ ├── types.js
│ │ │ │ │ │ │ └── writer.js
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── tst
│ │ │ │ │ │ └── ber
│ │ │ │ │ │ ├── reader.test.js
│ │ │ │ │ │ └── writer.test.js
│ │ │ │ ├── assert-plus
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── assert.js
│ │ │ │ │ └── package.json
│ │ │ │ └── ctype
│ │ │ │ │ ├── .npmignore
│ │ │ │ │ ├── CHANGELOG
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── README
│ │ │ │ │ ├── README.old
│ │ │ │ │ ├── ctf.js
│ │ │ │ │ ├── ctio.js
│ │ │ │ │ ├── ctype.js
│ │ │ │ │ ├── man
│ │ │ │ │ └── man3ctype
│ │ │ │ │ │ └── ctio.3ctype
│ │ │ │ │ ├── package.json
│ │ │ │ │ └── tools
│ │ │ │ │ ├── jsl.conf
│ │ │ │ │ └── jsstyle
│ │ │ └── package.json
│ │ ├── isstream
│ │ │ ├── .jshintrc
│ │ │ ├── .npmignore
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE.md
│ │ │ ├── README.md
│ │ │ ├── isstream.js
│ │ │ ├── package.json
│ │ │ └── test.js
│ │ ├── json-stringify-safe
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── package.json
│ │ │ ├── stringify.js
│ │ │ └── test.js
│ │ ├── mime-types
│ │ │ ├── HISTORY.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ ├── node_modules
│ │ │ │ └── mime-db
│ │ │ │ │ ├── HISTORY.md
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── db.json
│ │ │ │ │ ├── index.js
│ │ │ │ │ └── package.json
│ │ │ └── package.json
│ │ ├── node-uuid
│ │ │ ├── .npmignore
│ │ │ ├── LICENSE.md
│ │ │ ├── README.md
│ │ │ ├── benchmark
│ │ │ │ ├── README.md
│ │ │ │ ├── bench.gnu
│ │ │ │ ├── bench.sh
│ │ │ │ ├── benchmark-native.c
│ │ │ │ └── benchmark.js
│ │ │ ├── bin
│ │ │ │ └── uuid
│ │ │ ├── bower.json
│ │ │ ├── component.json
│ │ │ ├── package.json
│ │ │ ├── test
│ │ │ │ ├── compare_v1.js
│ │ │ │ ├── test.html
│ │ │ │ └── test.js
│ │ │ └── uuid.js
│ │ ├── oauth-sign
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ ├── package.json
│ │ │ └── test.js
│ │ ├── qs
│ │ │ ├── .jshintignore
│ │ │ ├── .jshintrc
│ │ │ ├── .npmignore
│ │ │ ├── .travis.yml
│ │ │ ├── CHANGELOG.md
│ │ │ ├── CONTRIBUTING.md
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ ├── lib
│ │ │ │ ├── index.js
│ │ │ │ ├── parse.js
│ │ │ │ ├── stringify.js
│ │ │ │ └── utils.js
│ │ │ ├── package.json
│ │ │ └── test
│ │ │ │ ├── parse.js
│ │ │ │ └── stringify.js
│ │ ├── stringstream
│ │ │ ├── .npmignore
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE.txt
│ │ │ ├── README.md
│ │ │ ├── example.js
│ │ │ ├── package.json
│ │ │ └── stringstream.js
│ │ ├── tough-cookie
│ │ │ ├── .editorconfig
│ │ │ ├── .jshintrc
│ │ │ ├── .npmignore
│ │ │ ├── .travis.yml
│ │ │ ├── CONTRIBUTING.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── generate-pubsuffix.js
│ │ │ ├── lib
│ │ │ │ ├── cookie.js
│ │ │ │ ├── memstore.js
│ │ │ │ ├── pubsuffix.js
│ │ │ │ └── store.js
│ │ │ ├── package.json
│ │ │ ├── public-suffix.txt
│ │ │ ├── test
│ │ │ │ ├── api_test.js
│ │ │ │ ├── cookie_jar_test.js
│ │ │ │ ├── cookie_sorting_test.js
│ │ │ │ ├── cookie_to_json_test.js
│ │ │ │ ├── cookie_to_string_test.js
│ │ │ │ ├── date_test.js
│ │ │ │ ├── domain_and_path_test.js
│ │ │ │ ├── ietf_data
│ │ │ │ │ ├── dates
│ │ │ │ │ │ ├── bsd-examples.json
│ │ │ │ │ │ └── examples.json
│ │ │ │ │ └── parser.json
│ │ │ │ ├── ietf_test.js
│ │ │ │ ├── lifetime_test.js
│ │ │ │ ├── parsing_test.js
│ │ │ │ └── regression_test.js
│ │ │ └── tough-cookie-deps.tsv
│ │ └── tunnel-agent
│ │ │ ├── .jshintrc
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ └── package.json
│ ├── package.json
│ ├── release.sh
│ └── request.js
└── semver
│ ├── .npmignore
│ ├── LICENSE
│ ├── Makefile
│ ├── README.md
│ ├── bin
│ └── semver
│ ├── foot.js
│ ├── head.js
│ ├── package.json
│ ├── semver.browser.js
│ ├── semver.browser.js.gz
│ ├── semver.js
│ ├── semver.min.js
│ ├── semver.min.js.gz
│ └── test
│ ├── amd.js
│ ├── clean.js
│ ├── gtr.js
│ ├── index.js
│ ├── ltr.js
│ └── no-module.js
├── nodemain.js
├── package.json
└── pages
└── main
├── autoupdate.js
├── controller.js
├── logger.js
├── main.css
├── main.js
├── main.scss
└── ui-dialog.css
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/.DS_Store
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # kdiff3 ignore
2 | *.orig
3 |
4 | # maven ignore
5 | target/
6 |
7 | # eclipse ignore
8 | .settings/
9 | .project
10 | .classpath
11 |
12 | # idea ignore
13 | .idea/
14 | *.ipr
15 | *.iml
16 | *.iws
17 |
18 | # temp ignore
19 | *.log
20 | *.cache
21 | *.diff
22 | *.patch
23 | *.tmp
24 |
25 | # system ignore
26 | .DS_Store
27 | Thumbs.db
28 |
29 | # package ignore (optional)
30 | # *.jar
31 | # *.war
32 | # *.zip
33 | # *.tar
34 | # *.tar.gz
--------------------------------------------------------------------------------
/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by leon on 16/2/23.
3 | */
4 | module.exports = {
5 | "openPage": "https://github.com/liyangready/multiple-host", //每次打开的页面
6 | }
--------------------------------------------------------------------------------
/host-manager/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | host-manager
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/host-manager/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "host-manager",
3 | "version": "0.0.0",
4 | "scripts": {
5 | "dev": "webpack-dev-server --progress --colors "
6 | },
7 | "author": "",
8 | "license": "ISC",
9 | "dependencies": {
10 | "css-loader": "^0.23.1",
11 | "extract-text-webpack-plugin": "^1.0.1",
12 | "immutable": "^3.7.6",
13 | "react-redux": "^4.0.6",
14 | "redux": "^3.0.5",
15 | "script-loader": "^0.6.1",
16 | "style-loader": "^0.13.0"
17 | },
18 | "devDependencies": {
19 | "node-sass": "^3.4.2",
20 | "sass-loader": "^3.1.2"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/image/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/image/icon.png
--------------------------------------------------------------------------------
/image/icon011.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/image/icon011.png
--------------------------------------------------------------------------------
/image/loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/image/loading.gif
--------------------------------------------------------------------------------
/image/ontop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/image/ontop.png
--------------------------------------------------------------------------------
/lib/tools/findMacService.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | services=$(networksetup -listnetworkserviceorder | grep 'Hardware Port')
4 | rtservices=""
5 | while read line; do
6 | sname=$(echo $line | awk -F "(, )|(: )|[)]" '{print $2}')
7 | sdev=$(echo $line | awk -F "(, )|(: )|[)]" '{print $4}')
8 | if [ -n "$sdev" ]; then
9 | ifconfig $sdev 2>/dev/null | grep 'status: active' > /dev/null 2>&1
10 | rc="$?"
11 | if [ "$rc" -eq 0 ]; then
12 | rtservices="$rtservices,$sname"
13 | #currentservice="$sname"
14 | fi
15 | fi
16 | done <<< "$(echo "$services")"
17 |
18 | if [ -n "$rtservices" ]; then
19 | echo $rtservices
20 | else
21 | >&2 echo "Could not find current service"
22 | exit 1
23 | fi
--------------------------------------------------------------------------------
/lib/tools/firefox_proxy.bat:
--------------------------------------------------------------------------------
1 | set port=9393
2 | set ffdir=D:\leon\little-tools\firefox
3 |
4 | :: "create profile"
5 | cd /D %ffdir%
6 | firefox -CreateProfile ff_dev
7 | echo %ffdir%
8 |
9 | :: "setting proxy"
10 | cd /D "%APPDATA%\Mozilla\Firefox\Profiles"
11 | cd *.ff_dev
12 | set ffile=%cd%
13 | echo user_pref("network.proxy.http", "127.0.0.1 ");>>"%ffile%\prefs.js"
14 | echo user_pref("network.proxy.http_port", %port%);>>"%ffile%\prefs.js"
15 | echo user_pref("network.proxy.type", 1);>>"%ffile%\prefs.js"
16 | echo user_pref("network.proxy.ssl", "127.0.0.1 ");>>"%ffile%\prefs.js"
17 | echo user_pref("network.proxy.ssl_port", %port%);>>"%ffile%\prefs.js"
18 | set ffile=
19 | cd %windir%
20 |
21 | :: "start Firefox"
22 | start /D "%ffdir%" firefox.exe -P ff_dev -no-remote http://wiki.corp.qunar.com/pages/viewpage.action?pageId=77931765
--------------------------------------------------------------------------------
/lib/tools/unzip.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/lib/tools/unzip.exe
--------------------------------------------------------------------------------
/lib/util.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by leon.li on 2015/5/13.
3 | */
4 | exports.dirname = __dirname;
--------------------------------------------------------------------------------
/node_modules/.bin/ncp:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | basedir=`dirname "$0"`
3 |
4 | case `uname` in
5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 | esac
7 |
8 | if [ -x "$basedir/node" ]; then
9 | "$basedir/node" "$basedir/../ncp/bin/ncp" "$@"
10 | ret=$?
11 | else
12 | node "$basedir/../ncp/bin/ncp" "$@"
13 | ret=$?
14 | fi
15 | exit $ret
16 |
--------------------------------------------------------------------------------
/node_modules/.bin/ncp.cmd:
--------------------------------------------------------------------------------
1 | @IF EXIST "%~dp0\node.exe" (
2 | "%~dp0\node.exe" "%~dp0\..\ncp\bin\ncp" %*
3 | ) ELSE (
4 | node "%~dp0\..\ncp\bin\ncp" %*
5 | )
--------------------------------------------------------------------------------
/node_modules/.bin/semver:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | basedir=`dirname "$0"`
3 |
4 | case `uname` in
5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 | esac
7 |
8 | if [ -x "$basedir/node" ]; then
9 | "$basedir/node" "$basedir/../semver/bin/semver" "$@"
10 | ret=$?
11 | else
12 | node "$basedir/../semver/bin/semver" "$@"
13 | ret=$?
14 | fi
15 | exit $ret
16 |
--------------------------------------------------------------------------------
/node_modules/.bin/semver.cmd:
--------------------------------------------------------------------------------
1 | @IF EXIST "%~dp0\node.exe" (
2 | "%~dp0\node.exe" "%~dp0\..\semver\bin\semver" %*
3 | ) ELSE (
4 | node "%~dp0\..\semver\bin\semver" %*
5 | )
--------------------------------------------------------------------------------
/node_modules/async/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | // Enforcing options
3 | "eqeqeq": false,
4 | "forin": true,
5 | "indent": 4,
6 | "noarg": true,
7 | "undef": true,
8 | "unused": true,
9 | "trailing": true,
10 | "evil": true,
11 | "laxcomma": true,
12 |
13 | // Relaxing options
14 | "onevar": false,
15 | "asi": false,
16 | "eqnull": true,
17 | "expr": false,
18 | "loopfunc": true,
19 | "sub": true,
20 | "browser": true,
21 | "node": true,
22 | "globals": {
23 | "define": true
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/node_modules/async/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 | - "0.12"
5 | - "iojs-v2.1.0"
6 | after_success: npm run coveralls
7 |
--------------------------------------------------------------------------------
/node_modules/async/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2010-2014 Caolan McMahon
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/node_modules/async/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "async",
3 | "description": "Higher-order functions and common patterns for asynchronous code",
4 | "version": "1.2.1",
5 | "main": "lib/async.js",
6 | "keywords": [
7 | "async",
8 | "callback",
9 | "utility",
10 | "module"
11 | ],
12 | "license": "MIT",
13 | "repository": {
14 | "type": "git",
15 | "url": "https://github.com/caolan/async.git"
16 | },
17 | "devDependencies": {
18 | "benchmark": "bestiejs/benchmark.js",
19 | "coveralls": "^2.11.2",
20 | "jshint": "~2.7.0",
21 | "lodash": ">=2.4.1",
22 | "mkdirp": "~0.5.1",
23 | "nodeunit": ">0.0.0",
24 | "nyc": "^2.1.0",
25 | "uglify-js": "1.2.x",
26 | "yargs": "~3.9.1"
27 | },
28 | "moduleType": [
29 | "amd",
30 | "globals",
31 | "node"
32 | ],
33 | "ignore": [
34 | "**/.*",
35 | "node_modules",
36 | "bower_components",
37 | "test",
38 | "tests"
39 | ],
40 | "authors": [
41 | "Caolan McMahon"
42 | ]
43 | }
--------------------------------------------------------------------------------
/node_modules/async/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "async",
3 | "description": "Higher-order functions and common patterns for asynchronous code",
4 | "version": "1.2.1",
5 | "keywords": [
6 | "async",
7 | "callback",
8 | "utility",
9 | "module"
10 | ],
11 | "license": "MIT",
12 | "main": "lib/async.js",
13 | "repository": "caolan/async",
14 | "scripts": [
15 | "lib/async.js"
16 | ]
17 | }
--------------------------------------------------------------------------------
/node_modules/async/coverage/lcov-report/prettify.css:
--------------------------------------------------------------------------------
1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}
2 |
--------------------------------------------------------------------------------
/node_modules/async/coverage/lcov-report/sort-arrow-sprite.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/node_modules/async/coverage/lcov-report/sort-arrow-sprite.png
--------------------------------------------------------------------------------
/node_modules/async/coverage/prettify.css:
--------------------------------------------------------------------------------
1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}
2 |
--------------------------------------------------------------------------------
/node_modules/async/coverage/sort-arrow-sprite.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/node_modules/async/coverage/sort-arrow-sprite.png
--------------------------------------------------------------------------------
/node_modules/del/node_modules/.bin/rimraf:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | basedir=`dirname "$0"`
3 |
4 | case `uname` in
5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 | esac
7 |
8 | if [ -x "$basedir/node" ]; then
9 | "$basedir/node" "$basedir/../rimraf/bin.js" "$@"
10 | ret=$?
11 | else
12 | node "$basedir/../rimraf/bin.js" "$@"
13 | ret=$?
14 | fi
15 | exit $ret
16 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/.bin/rimraf.cmd:
--------------------------------------------------------------------------------
1 | @IF EXIST "%~dp0\node.exe" (
2 | "%~dp0\node.exe" "%~dp0\..\rimraf\bin.js" %*
3 | ) ELSE (
4 | node "%~dp0\..\rimraf\bin.js" %*
5 | )
--------------------------------------------------------------------------------
/node_modules/del/node_modules/each-async/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | var onetime = require('onetime');
3 | var setImmediateShim = require('set-immediate-shim');
4 |
5 | module.exports = function (arr, next, cb) {
6 | var failed = false;
7 | var count = 0;
8 |
9 | cb = cb || function () {};
10 |
11 | if (!Array.isArray(arr)) {
12 | throw new TypeError('First argument must be an array');
13 | }
14 |
15 | if (typeof next !== 'function') {
16 | throw new TypeError('Second argument must be a function');
17 | }
18 |
19 | var len = arr.length;
20 |
21 | if (!len) {
22 | cb();
23 | return;
24 | }
25 |
26 | function callback(err) {
27 | if (failed) {
28 | return;
29 | }
30 |
31 | if (err !== undefined && err !== null) {
32 | failed = true;
33 | cb(err);
34 | return;
35 | }
36 |
37 | if (++count === len) {
38 | cb();
39 | return;
40 | }
41 | }
42 |
43 | for (var i = 0; i < len; i++) {
44 | setImmediateShim(next, arr[i], i, onetime(callback, true));
45 | }
46 | };
47 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/each-async/node_modules/onetime/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | module.exports = function (fn, errMsg) {
3 | if (typeof fn !== 'function') {
4 | throw new TypeError('Expected a function.');
5 | }
6 |
7 | var ret;
8 | var called = false;
9 | var fnName = fn.name || (/function ([^\(]+)/.exec(fn.toString()) || [])[1];
10 |
11 | return function () {
12 | if (called) {
13 | if (errMsg === true) {
14 | fnName = fnName ? fnName + '()' : 'Function';
15 | throw new Error(fnName + ' can only be called once.');
16 | }
17 | return ret;
18 | }
19 | called = true;
20 | ret = fn.apply(this, arguments);
21 | fn = null;
22 | return ret;
23 | };
24 | };
25 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/each-async/node_modules/set-immediate-shim/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | module.exports = typeof setImmediate === 'function' ? setImmediate :
3 | function setImmediate() {
4 | var args = [].slice.apply(arguments);
5 | args.splice(1, 0, 0);
6 | setTimeout.apply(null, args);
7 | };
8 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/each-async/node_modules/set-immediate-shim/readme.md:
--------------------------------------------------------------------------------
1 | # set-immediate-shim [](https://travis-ci.org/sindresorhus/set-immediate-shim)
2 |
3 | > Simple [`setImmediate`](https://developer.mozilla.org/en-US/docs/Web/API/Window.setImmediate) shim
4 |
5 |
6 | ## Install
7 |
8 | ```
9 | $ npm install --save set-immediate-shim
10 | ```
11 |
12 |
13 | ## Usage
14 |
15 | ```js
16 | var setImmediateShim = require('set-immediate-shim');
17 |
18 | setImmediateShim(function () {
19 | console.log('2');
20 | });
21 |
22 | console.log('1');
23 |
24 | //=> 1
25 | //=> 2
26 | ```
27 |
28 |
29 | ## License
30 |
31 | MIT © [Sindre Sorhus](http://sindresorhus.com)
32 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/array-differ/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | module.exports = function (arr) {
3 | var rest = [].concat.apply([], [].slice.call(arguments, 1));
4 | return arr.filter(function (el) {
5 | return rest.indexOf(el) === -1;
6 | });
7 | };
8 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/array-differ/readme.md:
--------------------------------------------------------------------------------
1 | # array-differ [](https://travis-ci.org/sindresorhus/array-differ)
2 |
3 | > Create an array with values that are present in the first input array but not additional ones
4 |
5 |
6 | ## Install
7 |
8 | ```sh
9 | $ npm install --save array-differ
10 | ```
11 |
12 |
13 | ## Usage
14 |
15 | ```js
16 | var arrayDiffer = require('array-differ');
17 |
18 | arrayDiffer([2, 3, 4], [3, 50]);
19 | //=> [2, 4]
20 | ```
21 |
22 | ## API
23 |
24 | ### arrayDiffer(input, values, [values, ...])
25 |
26 | Returns the new array.
27 |
28 | #### input
29 |
30 | Type: `array`
31 |
32 | #### values
33 |
34 | Type: `array`
35 |
36 | Arrays of values to exclude.
37 |
38 |
39 | ## License
40 |
41 | MIT © [Sindre Sorhus](http://sindresorhus.com)
42 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/array-union/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | var arrayUniq = require('array-uniq');
3 |
4 | module.exports = function () {
5 | return arrayUniq([].concat.apply([], arguments));
6 | };
7 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/array-union/node_modules/array-uniq/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | // we have 3 implementations for unique, written in increasing order of efficiency
4 |
5 | // 1 - no Set type is defined
6 | function uniqNoSet(arr) {
7 | var ret = [];
8 |
9 | for (var i = 0; i < arr.length; i++) {
10 | if (ret.indexOf(arr[i]) === -1) {
11 | ret.push(arr[i]);
12 | }
13 | }
14 |
15 | return ret;
16 | }
17 |
18 | // 2 - a simple Set type is defined
19 | function uniqSet(arr) {
20 | var seen = new Set();
21 | return arr.filter(function (el) {
22 | if (!seen.has(el)) {
23 | seen.add(el);
24 | return true;
25 | }
26 | });
27 | }
28 |
29 | // 3 - a standard Set type is defined and it has a forEach method
30 | function uniqSetWithForEach(arr) {
31 | var ret = [];
32 |
33 | (new Set(arr)).forEach(function (el) {
34 | ret.push(el);
35 | });
36 |
37 | return ret;
38 | }
39 |
40 | // export the relevant implementation
41 | if ('Set' in global) {
42 | if (typeof Set.prototype.forEach === 'function') {
43 | module.exports = uniqSetWithForEach;
44 | } else {
45 | module.exports = uniqSet;
46 | }
47 | } else {
48 | module.exports = uniqNoSet;
49 | }
50 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/array-union/node_modules/array-uniq/readme.md:
--------------------------------------------------------------------------------
1 | # array-uniq [](https://travis-ci.org/sindresorhus/array-uniq)
2 |
3 | > Create an array without duplicates
4 |
5 | It's already pretty fast, but will be much faster when [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) becomes available in V8 (especially with large arrays).
6 |
7 |
8 | ## Install
9 |
10 | ```sh
11 | $ npm install --save array-uniq
12 | ```
13 |
14 |
15 | ## Usage
16 |
17 | ```js
18 | var arrayUniq = require('array-uniq');
19 |
20 | arrayUniq([1, 1, 2, 3, 3]);
21 | //=> [1, 2, 3]
22 |
23 | arrayUniq(['foo', 'foo', 'bar', 'foo']);
24 | //=> ['foo', 'bar']
25 | ```
26 |
27 |
28 | ## License
29 |
30 | MIT © [Sindre Sorhus](http://sindresorhus.com)
31 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/array-union/readme.md:
--------------------------------------------------------------------------------
1 | # array-union [](https://travis-ci.org/sindresorhus/array-union)
2 |
3 | > Creates an array of unique values, in order, from the input arrays
4 |
5 |
6 | ## Install
7 |
8 | ```sh
9 | $ npm install --save array-union
10 | ```
11 |
12 |
13 | ## Usage
14 |
15 | ```js
16 | var arrayUnion = require('array-union');
17 |
18 | arrayUnion([1, 1, 2, 3], [2, 3]);
19 | //=> [1, 2, 3]
20 |
21 | arrayUnion(['foo', 'foo', 'bar'], ['foo']);
22 | //=> ['foo', 'bar']
23 | ```
24 |
25 |
26 | ## License
27 |
28 | MIT © [Sindre Sorhus](http://sindresorhus.com)
29 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/async/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/async/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2010-2014 Caolan McMahon
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/async/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "async",
3 | "repo": "caolan/async",
4 | "description": "Higher-order functions and common patterns for asynchronous code",
5 | "version": "0.1.23",
6 | "keywords": [],
7 | "dependencies": {},
8 | "development": {},
9 | "main": "lib/async.js",
10 | "scripts": [ "lib/async.js" ]
11 | }
12 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/inflight/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "env" : {
3 | "node" : true
4 | },
5 | "rules" : {
6 | "semi": [2, "never"],
7 | "strict": 0,
8 | "quotes": [1, "single", "avoid-escape"],
9 | "no-use-before-define": 0,
10 | "curly": 0,
11 | "no-underscore-dangle": 0,
12 | "no-lonely-if": 1,
13 | "no-unused-vars": [2, {"vars" : "all", "args" : "after-used"}],
14 | "no-mixed-requires": 0,
15 | "space-infix-ops": 0
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/inflight/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/inflight/inflight.js:
--------------------------------------------------------------------------------
1 | var wrappy = require('wrappy')
2 | var reqs = Object.create(null)
3 | var once = require('once')
4 |
5 | module.exports = wrappy(inflight)
6 |
7 | function inflight (key, cb) {
8 | if (reqs[key]) {
9 | reqs[key].push(cb)
10 | return null
11 | } else {
12 | reqs[key] = [cb]
13 | return makeres(key)
14 | }
15 | }
16 |
17 | function makeres (key) {
18 | return once(function RES () {
19 | var cbs = reqs[key]
20 | var len = cbs.length
21 | var args = slice(arguments)
22 | for (var i = 0; i < len; i++) {
23 | cbs[i].apply(null, args)
24 | }
25 | if (cbs.length > len) {
26 | // added more in the interim.
27 | // de-zalgo, just in case, but don't call again.
28 | cbs.splice(0, len)
29 | process.nextTick(function () {
30 | RES.apply(null, args)
31 | })
32 | } else {
33 | delete reqs[key]
34 | }
35 | })
36 | }
37 |
38 | function slice (args) {
39 | var length = args.length
40 | var array = []
41 |
42 | for (var i = 0; i < length; i++) array[i] = args[i]
43 | return array
44 | }
45 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/inflight/node_modules/wrappy/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter and Contributors
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md:
--------------------------------------------------------------------------------
1 | # wrappy
2 |
3 | Callback wrapping utility
4 |
5 | ## USAGE
6 |
7 | ```javascript
8 | var wrappy = require("wrappy")
9 |
10 | // var wrapper = wrappy(wrapperFunction)
11 |
12 | // make sure a cb is called only once
13 | // See also: http://npm.im/once for this specific use case
14 | var once = wrappy(function (cb) {
15 | var called = false
16 | return function () {
17 | if (called) return
18 | called = true
19 | return cb.apply(this, arguments)
20 | }
21 | })
22 |
23 | function printBoo () {
24 | console.log('boo')
25 | }
26 | // has some rando property
27 | printBoo.iAmBooPrinter = true
28 |
29 | var onlyPrintOnce = once(printBoo)
30 |
31 | onlyPrintOnce() // prints 'boo'
32 | onlyPrintOnce() // does nothing
33 |
34 | // random property is retained!
35 | assert.equal(onlyPrintOnce.iAmBooPrinter, true)
36 | ```
37 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js:
--------------------------------------------------------------------------------
1 | // Returns a wrapper function that returns a wrapped callback
2 | // The wrapper function should do some stuff, and return a
3 | // presumably different callback function.
4 | // This makes sure that own properties are retained, so that
5 | // decorations and such are not lost along the way.
6 | module.exports = wrappy
7 | function wrappy (fn, cb) {
8 | if (fn && cb) return wrappy(fn)(cb)
9 |
10 | if (typeof fn !== 'function')
11 | throw new TypeError('need wrapper function')
12 |
13 | Object.keys(fn).forEach(function (k) {
14 | wrapper[k] = fn[k]
15 | })
16 |
17 | return wrapper
18 |
19 | function wrapper() {
20 | var args = new Array(arguments.length)
21 | for (var i = 0; i < args.length; i++) {
22 | args[i] = arguments[i]
23 | }
24 | var ret = fn.apply(this, args)
25 | var cb = args[args.length-1]
26 | if (typeof ret === 'function' && ret !== cb) {
27 | Object.keys(cb).forEach(function (k) {
28 | ret[k] = cb[k]
29 | })
30 | }
31 | return ret
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/inherits/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 | PERFORMANCE OF THIS SOFTWARE.
16 |
17 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/inherits/inherits.js:
--------------------------------------------------------------------------------
1 | module.exports = require('util').inherits
2 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/inherits/inherits_browser.js:
--------------------------------------------------------------------------------
1 | if (typeof Object.create === 'function') {
2 | // implementation from standard node.js 'util' module
3 | module.exports = function inherits(ctor, superCtor) {
4 | ctor.super_ = superCtor
5 | ctor.prototype = Object.create(superCtor.prototype, {
6 | constructor: {
7 | value: ctor,
8 | enumerable: false,
9 | writable: true,
10 | configurable: true
11 | }
12 | });
13 | };
14 | } else {
15 | // old school shim for old browsers
16 | module.exports = function inherits(ctor, superCtor) {
17 | ctor.super_ = superCtor
18 | var TempCtor = function () {}
19 | TempCtor.prototype = superCtor.prototype
20 | ctor.prototype = new TempCtor()
21 | ctor.prototype.constructor = ctor
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/inherits/test.js:
--------------------------------------------------------------------------------
1 | var inherits = require('./inherits.js')
2 | var assert = require('assert')
3 |
4 | function test(c) {
5 | assert(c.constructor === Child)
6 | assert(c.constructor.super_ === Parent)
7 | assert(Object.getPrototypeOf(c) === Child.prototype)
8 | assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype)
9 | assert(c instanceof Child)
10 | assert(c instanceof Parent)
11 | }
12 |
13 | function Child() {
14 | Parent.call(this)
15 | test(this)
16 | }
17 |
18 | function Parent() {}
19 |
20 | inherits(Child, Parent)
21 |
22 | var c = new Child
23 | test(c)
24 |
25 | console.log('ok')
26 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.sw*
3 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js:
--------------------------------------------------------------------------------
1 | var expand = require('./');
2 |
3 | console.log(expand('http://any.org/archive{1996..1999}/vol{1..4}/part{a,b,c}.html'));
4 | console.log(expand('http://www.numericals.com/file{1..100..10}.txt'));
5 | console.log(expand('http://www.letters.com/file{a..z..2}.txt'));
6 | console.log(expand('mkdir /usr/local/src/bash/{old,new,dist,bugs}'));
7 | console.log(expand('chown root /usr/{ucb/{ex,edit},lib/{ex?.?*,how_ex}}'));
8 |
9 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .DS_Store
3 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.8"
4 | - "0.10"
5 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @node_modules/.bin/tape test/*.js
4 |
5 | .PHONY: test
6 |
7 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js:
--------------------------------------------------------------------------------
1 | var balanced = require('./');
2 |
3 | console.log(balanced('{', '}', 'pre{in{nested}}post'));
4 | console.log(balanced('{', '}', 'pre{first}between{second}post'));
5 |
6 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js:
--------------------------------------------------------------------------------
1 | module.exports = balanced;
2 | function balanced(a, b, str) {
3 | var bal = 0;
4 | var m = {};
5 | var ended = false;
6 |
7 | for (var i = 0; i < str.length; i++) {
8 | if (a == str.substr(i, a.length)) {
9 | if (!('start' in m)) m.start = i;
10 | bal++;
11 | }
12 | else if (b == str.substr(i, b.length) && 'start' in m) {
13 | ended = true;
14 | bal--;
15 | if (!bal) {
16 | m.end = i;
17 | m.pre = str.substr(0, m.start);
18 | m.body = (m.end - m.start > 1)
19 | ? str.substring(m.start + a.length, m.end)
20 | : '';
21 | m.post = str.slice(m.end + b.length);
22 | return m;
23 | }
24 | }
25 | }
26 |
27 | // if we opened more than we closed, find the one we closed
28 | if (bal && ended) {
29 | var start = m.start + a.length;
30 | m = balanced(a, b, str.substr(start));
31 | if (m) {
32 | m.start += start;
33 | m.end += start;
34 | m.pre = str.slice(0, start) + m.pre;
35 | }
36 | return m;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.4
4 | - 0.6
5 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js:
--------------------------------------------------------------------------------
1 | var concatMap = require('../');
2 | var xs = [ 1, 2, 3, 4, 5, 6 ];
3 | var ys = concatMap(xs, function (x) {
4 | return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
5 | });
6 | console.dir(ys);
7 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js:
--------------------------------------------------------------------------------
1 | module.exports = function (xs, fn) {
2 | var res = [];
3 | for (var i = 0; i < xs.length; i++) {
4 | var x = fn(xs[i], i);
5 | if (isArray(x)) res.push.apply(res, x);
6 | else res.push(x);
7 | }
8 | return res;
9 | };
10 |
11 | var isArray = Array.isArray || function (xs) {
12 | return Object.prototype.toString.call(xs) === '[object Array]';
13 | };
14 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-comparison.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var expand = require('..');
3 | var fs = require('fs');
4 | var resfile = __dirname + '/bash-results.txt';
5 | var cases = fs.readFileSync(resfile, 'utf8').split('><><><><');
6 |
7 | // throw away the EOF marker
8 | cases.pop()
9 |
10 | test('matches bash expansions', function(t) {
11 | cases.forEach(function(testcase) {
12 | var set = testcase.split('\n');
13 | var pattern = set.shift();
14 | var actual = expand(pattern);
15 |
16 | // If it expands to the empty string, then it's actually
17 | // just nothing, but Bash is a singly typed language, so
18 | // "nothing" is the same as "".
19 | if (set.length === 1 && set[0] === '') {
20 | set = []
21 | } else {
22 | // otherwise, strip off the [] that were added so that
23 | // "" expansions would be preserved properly.
24 | set = set.map(function (s) {
25 | return s.replace(/^\[|\]$/g, '')
26 | })
27 | }
28 |
29 | t.same(actual, set, pattern);
30 | });
31 | t.end();
32 | })
33 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/dollar.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var expand = require('..');
3 |
4 | test('ignores ${', function(t) {
5 | t.deepEqual(expand('${1..3}'), ['${1..3}']);
6 | t.deepEqual(expand('${a,b}${c,d}'), ['${a,b}${c,d}']);
7 | t.deepEqual(expand('x${a,b}x${c,d}x'), ['x${a,b}x${c,d}x']);
8 | t.end();
9 | });
10 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/empty-option.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var expand = require('..');
3 |
4 | test('empty option', function(t) {
5 | t.deepEqual(expand('-v{,,,,}'), [
6 | '-v', '-v', '-v', '-v', '-v'
7 | ]);
8 | t.end();
9 | });
10 |
11 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -e
4 |
5 | # Bash 4.3 because of arbitrary need to pick a single standard.
6 |
7 | if [ "${BASH_VERSINFO[0]}" != "4" ] || [ "${BASH_VERSINFO[1]}" != "3" ]; then
8 | echo "this script requires bash 4.3" >&2
9 | exit 1
10 | fi
11 |
12 | CDPATH= cd "$(dirname "$0")"
13 |
14 | js='require("./")(process.argv[1]).join(" ")'
15 |
16 | cat cases.txt | \
17 | while read case; do
18 | if [ "${case:0:1}" = "#" ]; then
19 | continue;
20 | fi;
21 | b="$($BASH -c 'for c in '"$case"'; do echo ["$c"]; done')"
22 | echo "$case"
23 | echo -n "$b><><><><";
24 | done > bash-results.txt
25 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/negative-increment.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var expand = require('..');
3 |
4 | test('negative increment', function(t) {
5 | t.deepEqual(expand('{3..1}'), ['3', '2', '1']);
6 | t.deepEqual(expand('{10..8}'), ['10', '9', '8']);
7 | t.deepEqual(expand('{10..08}'), ['10', '09', '08']);
8 | t.deepEqual(expand('{c..a}'), ['c', 'b', 'a']);
9 |
10 | t.deepEqual(expand('{4..0..2}'), ['4', '2', '0']);
11 | t.deepEqual(expand('{4..0..-2}'), ['4', '2', '0']);
12 | t.deepEqual(expand('{e..a..2}'), ['e', 'c', 'a']);
13 |
14 | t.end();
15 | });
16 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/nested.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var expand = require('..');
3 |
4 | test('nested', function(t) {
5 | t.deepEqual(expand('{a,b{1..3},c}'), [
6 | 'a', 'b1', 'b2', 'b3', 'c'
7 | ]);
8 | t.deepEqual(expand('{{A..Z},{a..z}}'),
9 | 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('')
10 | );
11 | t.deepEqual(expand('ppp{,config,oe{,conf}}'), [
12 | 'ppp', 'pppconfig', 'pppoe', 'pppoeconf'
13 | ]);
14 | t.end();
15 | });
16 |
17 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/order.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var expand = require('..');
3 |
4 | test('order', function(t) {
5 | t.deepEqual(expand('a{d,c,b}e'), [
6 | 'ade', 'ace', 'abe'
7 | ]);
8 | t.end();
9 | });
10 |
11 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/pad.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var expand = require('..');
3 |
4 | test('pad', function(t) {
5 | t.deepEqual(expand('{9..11}'), [
6 | '9', '10', '11'
7 | ]);
8 | t.deepEqual(expand('{09..11}'), [
9 | '09', '10', '11'
10 | ]);
11 | t.end();
12 | });
13 |
14 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/same-type.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var expand = require('..');
3 |
4 | test('x and y of same type', function(t) {
5 | t.deepEqual(expand('{a..9}'), ['{a..9}']);
6 | t.end();
7 | });
8 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/once/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter and Contributors
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter and Contributors
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/once/node_modules/wrappy/README.md:
--------------------------------------------------------------------------------
1 | # wrappy
2 |
3 | Callback wrapping utility
4 |
5 | ## USAGE
6 |
7 | ```javascript
8 | var wrappy = require("wrappy")
9 |
10 | // var wrapper = wrappy(wrapperFunction)
11 |
12 | // make sure a cb is called only once
13 | // See also: http://npm.im/once for this specific use case
14 | var once = wrappy(function (cb) {
15 | var called = false
16 | return function () {
17 | if (called) return
18 | called = true
19 | return cb.apply(this, arguments)
20 | }
21 | })
22 |
23 | function printBoo () {
24 | console.log('boo')
25 | }
26 | // has some rando property
27 | printBoo.iAmBooPrinter = true
28 |
29 | var onlyPrintOnce = once(printBoo)
30 |
31 | onlyPrintOnce() // prints 'boo'
32 | onlyPrintOnce() // does nothing
33 |
34 | // random property is retained!
35 | assert.equal(onlyPrintOnce.iAmBooPrinter, true)
36 | ```
37 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js:
--------------------------------------------------------------------------------
1 | // Returns a wrapper function that returns a wrapped callback
2 | // The wrapper function should do some stuff, and return a
3 | // presumably different callback function.
4 | // This makes sure that own properties are retained, so that
5 | // decorations and such are not lost along the way.
6 | module.exports = wrappy
7 | function wrappy (fn, cb) {
8 | if (fn && cb) return wrappy(fn)(cb)
9 |
10 | if (typeof fn !== 'function')
11 | throw new TypeError('need wrapper function')
12 |
13 | Object.keys(fn).forEach(function (k) {
14 | wrapper[k] = fn[k]
15 | })
16 |
17 | return wrapper
18 |
19 | function wrapper() {
20 | var args = new Array(arguments.length)
21 | for (var i = 0; i < args.length; i++) {
22 | args[i] = arguments[i]
23 | }
24 | var ret = fn.apply(this, args)
25 | var cb = args[args.length-1]
26 | if (typeof ret === 'function' && ret !== cb) {
27 | Object.keys(cb).forEach(function (k) {
28 | ret[k] = cb[k]
29 | })
30 | }
31 | return ret
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/once/once.js:
--------------------------------------------------------------------------------
1 | var wrappy = require('wrappy')
2 | module.exports = wrappy(once)
3 |
4 | once.proto = once(function () {
5 | Object.defineProperty(Function.prototype, 'once', {
6 | value: function () {
7 | return once(this)
8 | },
9 | configurable: true
10 | })
11 | })
12 |
13 | function once (fn) {
14 | var f = function () {
15 | if (f.called) return f.value
16 | f.called = true
17 | return f.value = fn.apply(this, arguments)
18 | }
19 | f.called = false
20 | return f
21 | }
22 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/globby/node_modules/glob/node_modules/once/test/once.js:
--------------------------------------------------------------------------------
1 | var test = require('tap').test
2 | var once = require('../once.js')
3 |
4 | test('once', function (t) {
5 | var f = 0
6 | function fn (g) {
7 | t.equal(f, 0)
8 | f ++
9 | return f + g + this
10 | }
11 | fn.ownProperty = {}
12 | var foo = once(fn)
13 | t.equal(fn.ownProperty, foo.ownProperty)
14 | t.notOk(foo.called)
15 | for (var i = 0; i < 1E3; i++) {
16 | t.same(f, i === 0 ? 0 : 1)
17 | var g = foo.call(1, 1)
18 | t.ok(foo.called)
19 | t.same(g, 3)
20 | t.same(f, 1)
21 | }
22 | t.end()
23 | })
24 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/is-path-cwd/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | var path = require('path');
3 |
4 | module.exports = function (str) {
5 | return path.resolve(str) === path.resolve(process.cwd());
6 | };
7 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/is-path-cwd/readme.md:
--------------------------------------------------------------------------------
1 | # is-path-cwd [](https://travis-ci.org/sindresorhus/is-path-cwd)
2 |
3 | > Check if a path is [CWD](http://en.wikipedia.org/wiki/Working_directory)
4 |
5 |
6 | ## Install
7 |
8 | ```sh
9 | $ npm install --save is-path-cwd
10 | ```
11 |
12 |
13 | ## Usage
14 |
15 | ```js
16 | var isPathCwd = require('is-path-cwd');
17 |
18 | isPathCwd(process.cwd());
19 | //=> true
20 |
21 | isPathCwd('unicorn');
22 | //=> false
23 | ```
24 |
25 |
26 | ## License
27 |
28 | MIT © [Sindre Sorhus](http://sindresorhus.com)
29 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/is-path-in-cwd/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | var isPathInside = require('is-path-inside');
3 |
4 | module.exports = function (str) {
5 | return isPathInside(str, process.cwd());
6 | };
7 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/is-path-in-cwd/node_modules/is-path-inside/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | var path = require('path');
3 | var pathIsInside = require('path-is-inside');
4 |
5 | module.exports = function (a, b) {
6 | a = path.resolve(a);
7 | b = path.resolve(b);
8 |
9 | if (a === b) {
10 | return false;
11 | }
12 |
13 | return pathIsInside(a, b);
14 | };
15 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/is-path-in-cwd/node_modules/is-path-inside/node_modules/path-is-inside/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright © 2013–2014 Domenic Denicola
2 |
3 | This work is free. You can redistribute it and/or modify it under the
4 | terms of the Do What The Fuck You Want To Public License, Version 2,
5 | as published by Sam Hocevar. See below for more details.
6 |
7 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
8 | Version 2, December 2004
9 |
10 | Copyright (C) 2004 Sam Hocevar
11 |
12 | Everyone is permitted to copy and distribute verbatim or modified
13 | copies of this license document, and changing it is allowed as long
14 | as the name is changed.
15 |
16 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
17 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
18 |
19 | 0. You just DO WHAT THE FUCK YOU WANT TO.
20 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/is-path-in-cwd/node_modules/is-path-inside/node_modules/path-is-inside/lib/path-is-inside.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | var path = require("path");
4 |
5 | module.exports = function (thePath, potentialParent) {
6 | // For inside-directory checking, we want to allow trailing slashes, so normalize.
7 | thePath = stripTrailingSep(thePath);
8 | potentialParent = stripTrailingSep(potentialParent);
9 |
10 | // Node treats only Windows as case-insensitive in its path module; we follow those conventions.
11 | if (process.platform === "win32") {
12 | thePath = thePath.toLowerCase();
13 | potentialParent = potentialParent.toLowerCase();
14 | }
15 |
16 | return thePath.lastIndexOf(potentialParent, 0) === 0 &&
17 | (
18 | thePath[potentialParent.length] === path.sep ||
19 | thePath[potentialParent.length] === undefined
20 | );
21 | };
22 |
23 | function stripTrailingSep(thePath) {
24 | if (thePath[thePath.length - 1] === path.sep) {
25 | return thePath.slice(0, -1);
26 | }
27 | return thePath;
28 | }
29 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/is-path-in-cwd/node_modules/is-path-inside/readme.md:
--------------------------------------------------------------------------------
1 | # is-path-inside [](https://travis-ci.org/sindresorhus/is-path-inside)
2 |
3 | > Check if a path is inside another path
4 |
5 |
6 | ## Install
7 |
8 | ```sh
9 | $ npm install --save is-path-inside
10 | ```
11 |
12 |
13 | ## Usage
14 |
15 | ```js
16 | var isPathInside = require('is-path-inside');
17 |
18 | isPathInside('a/b', 'a/b/c');
19 | //=> true
20 |
21 | isPathInside('x/y', 'a/b/c');
22 | //=> false
23 |
24 | isPathInside('a/b/c', 'a/b/c');
25 | //=> false
26 | ```
27 |
28 |
29 | ## License
30 |
31 | MIT © [Sindre Sorhus](http://sindresorhus.com)
32 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/is-path-in-cwd/readme.md:
--------------------------------------------------------------------------------
1 | # is-path-in-cwd [](https://travis-ci.org/sindresorhus/is-path-in-cwd)
2 |
3 | > Check if a path is in the [current working directory](http://en.wikipedia.org/wiki/Working_directory)
4 |
5 |
6 | ## Install
7 |
8 | ```sh
9 | $ npm install --save is-path-in-cwd
10 | ```
11 |
12 |
13 | ## Usage
14 |
15 | ```js
16 | var isPathInCwd = require('is-path-in-cwd');
17 |
18 | isPathInCwd('unicorn');
19 | //=> true
20 |
21 | isPathInCwd('../rainbow');
22 | //=> false
23 | ```
24 |
25 |
26 | ## License
27 |
28 | MIT © [Sindre Sorhus](http://sindresorhus.com)
29 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/bin.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var rimraf = require('./')
4 |
5 | var help = false
6 | var dashdash = false
7 | var args = process.argv.slice(2).filter(function(arg) {
8 | if (dashdash)
9 | return !!arg
10 | else if (arg === '--')
11 | dashdash = true
12 | else if (arg.match(/^(-+|\/)(h(elp)?|\?)$/))
13 | help = true
14 | else
15 | return !!arg
16 | });
17 |
18 | if (help || args.length === 0) {
19 | // If they didn't ask for help, then this is not a "success"
20 | var log = help ? console.log : console.error
21 | log('Usage: rimraf ')
22 | log('')
23 | log(' Deletes all files and folders at "path" recursively.')
24 | log('')
25 | log('Options:')
26 | log('')
27 | log(' -h, --help Display this usage info')
28 | process.exit(help ? 0 : 1)
29 | } else {
30 | args.forEach(function(arg) {
31 | rimraf.sync(arg)
32 | })
33 | }
34 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/inflight/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "env" : {
3 | "node" : true
4 | },
5 | "rules" : {
6 | "semi": [2, "never"],
7 | "strict": 0,
8 | "quotes": [1, "single", "avoid-escape"],
9 | "no-use-before-define": 0,
10 | "curly": 0,
11 | "no-underscore-dangle": 0,
12 | "no-lonely-if": 1,
13 | "no-unused-vars": [2, {"vars" : "all", "args" : "after-used"}],
14 | "no-mixed-requires": 0,
15 | "space-infix-ops": 0
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/inflight/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/inflight/inflight.js:
--------------------------------------------------------------------------------
1 | var wrappy = require('wrappy')
2 | var reqs = Object.create(null)
3 | var once = require('once')
4 |
5 | module.exports = wrappy(inflight)
6 |
7 | function inflight (key, cb) {
8 | if (reqs[key]) {
9 | reqs[key].push(cb)
10 | return null
11 | } else {
12 | reqs[key] = [cb]
13 | return makeres(key)
14 | }
15 | }
16 |
17 | function makeres (key) {
18 | return once(function RES () {
19 | var cbs = reqs[key]
20 | var len = cbs.length
21 | var args = slice(arguments)
22 | for (var i = 0; i < len; i++) {
23 | cbs[i].apply(null, args)
24 | }
25 | if (cbs.length > len) {
26 | // added more in the interim.
27 | // de-zalgo, just in case, but don't call again.
28 | cbs.splice(0, len)
29 | process.nextTick(function () {
30 | RES.apply(null, args)
31 | })
32 | } else {
33 | delete reqs[key]
34 | }
35 | })
36 | }
37 |
38 | function slice (args) {
39 | var length = args.length
40 | var array = []
41 |
42 | for (var i = 0; i < length; i++) array[i] = args[i]
43 | return array
44 | }
45 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter and Contributors
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md:
--------------------------------------------------------------------------------
1 | # wrappy
2 |
3 | Callback wrapping utility
4 |
5 | ## USAGE
6 |
7 | ```javascript
8 | var wrappy = require("wrappy")
9 |
10 | // var wrapper = wrappy(wrapperFunction)
11 |
12 | // make sure a cb is called only once
13 | // See also: http://npm.im/once for this specific use case
14 | var once = wrappy(function (cb) {
15 | var called = false
16 | return function () {
17 | if (called) return
18 | called = true
19 | return cb.apply(this, arguments)
20 | }
21 | })
22 |
23 | function printBoo () {
24 | console.log('boo')
25 | }
26 | // has some rando property
27 | printBoo.iAmBooPrinter = true
28 |
29 | var onlyPrintOnce = once(printBoo)
30 |
31 | onlyPrintOnce() // prints 'boo'
32 | onlyPrintOnce() // does nothing
33 |
34 | // random property is retained!
35 | assert.equal(onlyPrintOnce.iAmBooPrinter, true)
36 | ```
37 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js:
--------------------------------------------------------------------------------
1 | // Returns a wrapper function that returns a wrapped callback
2 | // The wrapper function should do some stuff, and return a
3 | // presumably different callback function.
4 | // This makes sure that own properties are retained, so that
5 | // decorations and such are not lost along the way.
6 | module.exports = wrappy
7 | function wrappy (fn, cb) {
8 | if (fn && cb) return wrappy(fn)(cb)
9 |
10 | if (typeof fn !== 'function')
11 | throw new TypeError('need wrapper function')
12 |
13 | Object.keys(fn).forEach(function (k) {
14 | wrapper[k] = fn[k]
15 | })
16 |
17 | return wrapper
18 |
19 | function wrapper() {
20 | var args = new Array(arguments.length)
21 | for (var i = 0; i < args.length; i++) {
22 | args[i] = arguments[i]
23 | }
24 | var ret = fn.apply(this, args)
25 | var cb = args[args.length-1]
26 | if (typeof ret === 'function' && ret !== cb) {
27 | Object.keys(cb).forEach(function (k) {
28 | ret[k] = cb[k]
29 | })
30 | }
31 | return ret
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 | PERFORMANCE OF THIS SOFTWARE.
16 |
17 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js:
--------------------------------------------------------------------------------
1 | module.exports = require('util').inherits
2 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js:
--------------------------------------------------------------------------------
1 | if (typeof Object.create === 'function') {
2 | // implementation from standard node.js 'util' module
3 | module.exports = function inherits(ctor, superCtor) {
4 | ctor.super_ = superCtor
5 | ctor.prototype = Object.create(superCtor.prototype, {
6 | constructor: {
7 | value: ctor,
8 | enumerable: false,
9 | writable: true,
10 | configurable: true
11 | }
12 | });
13 | };
14 | } else {
15 | // old school shim for old browsers
16 | module.exports = function inherits(ctor, superCtor) {
17 | ctor.super_ = superCtor
18 | var TempCtor = function () {}
19 | TempCtor.prototype = superCtor.prototype
20 | ctor.prototype = new TempCtor()
21 | ctor.prototype.constructor = ctor
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js:
--------------------------------------------------------------------------------
1 | var inherits = require('./inherits.js')
2 | var assert = require('assert')
3 |
4 | function test(c) {
5 | assert(c.constructor === Child)
6 | assert(c.constructor.super_ === Parent)
7 | assert(Object.getPrototypeOf(c) === Child.prototype)
8 | assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype)
9 | assert(c instanceof Child)
10 | assert(c instanceof Parent)
11 | }
12 |
13 | function Child() {
14 | Parent.call(this)
15 | test(this)
16 | }
17 |
18 | function Parent() {}
19 |
20 | inherits(Child, Parent)
21 |
22 | var c = new Child
23 | test(c)
24 |
25 | console.log('ok')
26 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.sw*
3 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js:
--------------------------------------------------------------------------------
1 | var expand = require('./');
2 |
3 | console.log(expand('http://any.org/archive{1996..1999}/vol{1..4}/part{a,b,c}.html'));
4 | console.log(expand('http://www.numericals.com/file{1..100..10}.txt'));
5 | console.log(expand('http://www.letters.com/file{a..z..2}.txt'));
6 | console.log(expand('mkdir /usr/local/src/bash/{old,new,dist,bugs}'));
7 | console.log(expand('chown root /usr/{ucb/{ex,edit},lib/{ex?.?*,how_ex}}'));
8 |
9 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .DS_Store
3 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.8"
4 | - "0.10"
5 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @node_modules/.bin/tape test/*.js
4 |
5 | .PHONY: test
6 |
7 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js:
--------------------------------------------------------------------------------
1 | var balanced = require('./');
2 |
3 | console.log(balanced('{', '}', 'pre{in{nested}}post'));
4 | console.log(balanced('{', '}', 'pre{first}between{second}post'));
5 |
6 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js:
--------------------------------------------------------------------------------
1 | module.exports = balanced;
2 | function balanced(a, b, str) {
3 | var bal = 0;
4 | var m = {};
5 | var ended = false;
6 |
7 | for (var i = 0; i < str.length; i++) {
8 | if (a == str.substr(i, a.length)) {
9 | if (!('start' in m)) m.start = i;
10 | bal++;
11 | }
12 | else if (b == str.substr(i, b.length) && 'start' in m) {
13 | ended = true;
14 | bal--;
15 | if (!bal) {
16 | m.end = i;
17 | m.pre = str.substr(0, m.start);
18 | m.body = (m.end - m.start > 1)
19 | ? str.substring(m.start + a.length, m.end)
20 | : '';
21 | m.post = str.slice(m.end + b.length);
22 | return m;
23 | }
24 | }
25 | }
26 |
27 | // if we opened more than we closed, find the one we closed
28 | if (bal && ended) {
29 | var start = m.start + a.length;
30 | m = balanced(a, b, str.substr(start));
31 | if (m) {
32 | m.start += start;
33 | m.end += start;
34 | m.pre = str.slice(0, start) + m.pre;
35 | }
36 | return m;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.4
4 | - 0.6
5 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js:
--------------------------------------------------------------------------------
1 | var concatMap = require('../');
2 | var xs = [ 1, 2, 3, 4, 5, 6 ];
3 | var ys = concatMap(xs, function (x) {
4 | return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
5 | });
6 | console.dir(ys);
7 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js:
--------------------------------------------------------------------------------
1 | module.exports = function (xs, fn) {
2 | var res = [];
3 | for (var i = 0; i < xs.length; i++) {
4 | var x = fn(xs[i], i);
5 | if (isArray(x)) res.push.apply(res, x);
6 | else res.push(x);
7 | }
8 | return res;
9 | };
10 |
11 | var isArray = Array.isArray || function (xs) {
12 | return Object.prototype.toString.call(xs) === '[object Array]';
13 | };
14 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-comparison.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var expand = require('..');
3 | var fs = require('fs');
4 | var resfile = __dirname + '/bash-results.txt';
5 | var cases = fs.readFileSync(resfile, 'utf8').split('><><><><');
6 |
7 | // throw away the EOF marker
8 | cases.pop()
9 |
10 | test('matches bash expansions', function(t) {
11 | cases.forEach(function(testcase) {
12 | var set = testcase.split('\n');
13 | var pattern = set.shift();
14 | var actual = expand(pattern);
15 |
16 | // If it expands to the empty string, then it's actually
17 | // just nothing, but Bash is a singly typed language, so
18 | // "nothing" is the same as "".
19 | if (set.length === 1 && set[0] === '') {
20 | set = []
21 | } else {
22 | // otherwise, strip off the [] that were added so that
23 | // "" expansions would be preserved properly.
24 | set = set.map(function (s) {
25 | return s.replace(/^\[|\]$/g, '')
26 | })
27 | }
28 |
29 | t.same(actual, set, pattern);
30 | });
31 | t.end();
32 | })
33 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/dollar.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var expand = require('..');
3 |
4 | test('ignores ${', function(t) {
5 | t.deepEqual(expand('${1..3}'), ['${1..3}']);
6 | t.deepEqual(expand('${a,b}${c,d}'), ['${a,b}${c,d}']);
7 | t.deepEqual(expand('x${a,b}x${c,d}x'), ['x${a,b}x${c,d}x']);
8 | t.end();
9 | });
10 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/empty-option.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var expand = require('..');
3 |
4 | test('empty option', function(t) {
5 | t.deepEqual(expand('-v{,,,,}'), [
6 | '-v', '-v', '-v', '-v', '-v'
7 | ]);
8 | t.end();
9 | });
10 |
11 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -e
4 |
5 | # Bash 4.3 because of arbitrary need to pick a single standard.
6 |
7 | if [ "${BASH_VERSINFO[0]}" != "4" ] || [ "${BASH_VERSINFO[1]}" != "3" ]; then
8 | echo "this script requires bash 4.3" >&2
9 | exit 1
10 | fi
11 |
12 | CDPATH= cd "$(dirname "$0")"
13 |
14 | js='require("./")(process.argv[1]).join(" ")'
15 |
16 | cat cases.txt | \
17 | while read case; do
18 | if [ "${case:0:1}" = "#" ]; then
19 | continue;
20 | fi;
21 | b="$($BASH -c 'for c in '"$case"'; do echo ["$c"]; done')"
22 | echo "$case"
23 | echo -n "$b><><><><";
24 | done > bash-results.txt
25 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/negative-increment.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var expand = require('..');
3 |
4 | test('negative increment', function(t) {
5 | t.deepEqual(expand('{3..1}'), ['3', '2', '1']);
6 | t.deepEqual(expand('{10..8}'), ['10', '9', '8']);
7 | t.deepEqual(expand('{10..08}'), ['10', '09', '08']);
8 | t.deepEqual(expand('{c..a}'), ['c', 'b', 'a']);
9 |
10 | t.deepEqual(expand('{4..0..2}'), ['4', '2', '0']);
11 | t.deepEqual(expand('{4..0..-2}'), ['4', '2', '0']);
12 | t.deepEqual(expand('{e..a..2}'), ['e', 'c', 'a']);
13 |
14 | t.end();
15 | });
16 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/nested.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var expand = require('..');
3 |
4 | test('nested', function(t) {
5 | t.deepEqual(expand('{a,b{1..3},c}'), [
6 | 'a', 'b1', 'b2', 'b3', 'c'
7 | ]);
8 | t.deepEqual(expand('{{A..Z},{a..z}}'),
9 | 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('')
10 | );
11 | t.deepEqual(expand('ppp{,config,oe{,conf}}'), [
12 | 'ppp', 'pppconfig', 'pppoe', 'pppoeconf'
13 | ]);
14 | t.end();
15 | });
16 |
17 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/order.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var expand = require('..');
3 |
4 | test('order', function(t) {
5 | t.deepEqual(expand('a{d,c,b}e'), [
6 | 'ade', 'ace', 'abe'
7 | ]);
8 | t.end();
9 | });
10 |
11 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/pad.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var expand = require('..');
3 |
4 | test('pad', function(t) {
5 | t.deepEqual(expand('{9..11}'), [
6 | '9', '10', '11'
7 | ]);
8 | t.deepEqual(expand('{09..11}'), [
9 | '09', '10', '11'
10 | ]);
11 | t.end();
12 | });
13 |
14 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/same-type.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var expand = require('..');
3 |
4 | test('x and y of same type', function(t) {
5 | t.deepEqual(expand('{a..9}'), ['{a..9}']);
6 | t.end();
7 | });
8 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/once/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter and Contributors
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter and Contributors
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md:
--------------------------------------------------------------------------------
1 | # wrappy
2 |
3 | Callback wrapping utility
4 |
5 | ## USAGE
6 |
7 | ```javascript
8 | var wrappy = require("wrappy")
9 |
10 | // var wrapper = wrappy(wrapperFunction)
11 |
12 | // make sure a cb is called only once
13 | // See also: http://npm.im/once for this specific use case
14 | var once = wrappy(function (cb) {
15 | var called = false
16 | return function () {
17 | if (called) return
18 | called = true
19 | return cb.apply(this, arguments)
20 | }
21 | })
22 |
23 | function printBoo () {
24 | console.log('boo')
25 | }
26 | // has some rando property
27 | printBoo.iAmBooPrinter = true
28 |
29 | var onlyPrintOnce = once(printBoo)
30 |
31 | onlyPrintOnce() // prints 'boo'
32 | onlyPrintOnce() // does nothing
33 |
34 | // random property is retained!
35 | assert.equal(onlyPrintOnce.iAmBooPrinter, true)
36 | ```
37 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js:
--------------------------------------------------------------------------------
1 | // Returns a wrapper function that returns a wrapped callback
2 | // The wrapper function should do some stuff, and return a
3 | // presumably different callback function.
4 | // This makes sure that own properties are retained, so that
5 | // decorations and such are not lost along the way.
6 | module.exports = wrappy
7 | function wrappy (fn, cb) {
8 | if (fn && cb) return wrappy(fn)(cb)
9 |
10 | if (typeof fn !== 'function')
11 | throw new TypeError('need wrapper function')
12 |
13 | Object.keys(fn).forEach(function (k) {
14 | wrapper[k] = fn[k]
15 | })
16 |
17 | return wrapper
18 |
19 | function wrapper() {
20 | var args = new Array(arguments.length)
21 | for (var i = 0; i < args.length; i++) {
22 | args[i] = arguments[i]
23 | }
24 | var ret = fn.apply(this, args)
25 | var cb = args[args.length-1]
26 | if (typeof ret === 'function' && ret !== cb) {
27 | Object.keys(cb).forEach(function (k) {
28 | ret[k] = cb[k]
29 | })
30 | }
31 | return ret
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/once/once.js:
--------------------------------------------------------------------------------
1 | var wrappy = require('wrappy')
2 | module.exports = wrappy(once)
3 |
4 | once.proto = once(function () {
5 | Object.defineProperty(Function.prototype, 'once', {
6 | value: function () {
7 | return once(this)
8 | },
9 | configurable: true
10 | })
11 | })
12 |
13 | function once (fn) {
14 | var f = function () {
15 | if (f.called) return f.value
16 | f.called = true
17 | return f.value = fn.apply(this, arguments)
18 | }
19 | f.called = false
20 | return f
21 | }
22 |
--------------------------------------------------------------------------------
/node_modules/del/node_modules/rimraf/node_modules/glob/node_modules/once/test/once.js:
--------------------------------------------------------------------------------
1 | var test = require('tap').test
2 | var once = require('../once.js')
3 |
4 | test('once', function (t) {
5 | var f = 0
6 | function fn (g) {
7 | t.equal(f, 0)
8 | f ++
9 | return f + g + this
10 | }
11 | fn.ownProperty = {}
12 | var foo = once(fn)
13 | t.equal(fn.ownProperty, foo.ownProperty)
14 | t.notOk(foo.called)
15 | for (var i = 0; i < 1E3; i++) {
16 | t.same(f, i === 0 ? 0 : 1)
17 | var g = foo.call(1, 1)
18 | t.ok(foo.called)
19 | t.same(g, 3)
20 | t.same(f, 1)
21 | }
22 | t.end()
23 | })
24 |
--------------------------------------------------------------------------------
/node_modules/ncp/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .*.sw[op]
3 | .DS_Store
4 | test/fixtures/out
5 |
--------------------------------------------------------------------------------
/node_modules/ncp/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 |
3 | node_js:
4 | - 0.8
5 | - "0.10"
6 | - "0.11"
7 |
--------------------------------------------------------------------------------
/node_modules/ncp/LICENSE.md:
--------------------------------------------------------------------------------
1 | # MIT License
2 |
3 | ###Copyright (C) 2011 by Charlie McConnell
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/node_modules/ncp/test/fixtures/src/a:
--------------------------------------------------------------------------------
1 | Hello world
2 |
--------------------------------------------------------------------------------
/node_modules/ncp/test/fixtures/src/b:
--------------------------------------------------------------------------------
1 | Hello ncp
2 |
--------------------------------------------------------------------------------
/node_modules/ncp/test/fixtures/src/c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/node_modules/ncp/test/fixtures/src/c
--------------------------------------------------------------------------------
/node_modules/ncp/test/fixtures/src/d:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/node_modules/ncp/test/fixtures/src/d
--------------------------------------------------------------------------------
/node_modules/ncp/test/fixtures/src/e:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/node_modules/ncp/test/fixtures/src/e
--------------------------------------------------------------------------------
/node_modules/ncp/test/fixtures/src/f:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/node_modules/ncp/test/fixtures/src/f
--------------------------------------------------------------------------------
/node_modules/ncp/test/fixtures/src/sub/a:
--------------------------------------------------------------------------------
1 | Hello nodejitsu
2 |
--------------------------------------------------------------------------------
/node_modules/ncp/test/fixtures/src/sub/b:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/node_modules/ncp/test/fixtures/src/sub/b
--------------------------------------------------------------------------------
/node_modules/request/.npmignore:
--------------------------------------------------------------------------------
1 | coverage
2 | tests
3 | node_modules
4 |
--------------------------------------------------------------------------------
/node_modules/request/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "io.js"
4 | - "0.12"
5 | - "0.10"
6 | after_script: ./node_modules/.bin/istanbul cover ./node_modules/tape/bin/tape tests/test-*.js --report lcovonly && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js --verbose
7 | webhooks:
8 | urls: https://webhooks.gitter.im/e/237280ed4796c19cc626
9 | on_success: change # options: [always|never|change] default: always
10 | on_failure: always # options: [always|never|change] default: always
11 | on_start: false # default: false
12 | sudo: false
13 |
--------------------------------------------------------------------------------
/node_modules/request/disabled.appveyor.yml:
--------------------------------------------------------------------------------
1 | # http://www.appveyor.com/docs/appveyor-yml
2 |
3 | # Fix line endings in Windows. (runs before repo cloning)
4 | init:
5 | - git config --global core.autocrlf input
6 |
7 | # Test against these versions of Node.js.
8 | environment:
9 | matrix:
10 | - nodejs_version: "0.10"
11 | - nodejs_version: "0.8"
12 | - nodejs_version: "0.11"
13 |
14 | # Allow failing jobs for bleeding-edge Node.js versions.
15 | matrix:
16 | allow_failures:
17 | - nodejs_version: "0.11"
18 |
19 | # Install scripts. (runs after repo cloning)
20 | install:
21 | # Get the latest stable version of Node 0.STABLE.latest
22 | - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
23 | # Typical npm stuff.
24 | - npm install
25 |
26 | # Post-install test scripts.
27 | test_script:
28 | # Output useful info for debugging.
29 | - ps: "npm test # PowerShell" # Pass comment to PS for easier debugging
30 | - cmd: npm test
31 |
32 | # Don't actually build.
33 | build: off
34 |
35 | # Set build version format here instead of in the admin panel.
36 | version: "{build}"
37 |
--------------------------------------------------------------------------------
/node_modules/request/lib/cookies.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | var tough = require('tough-cookie')
4 |
5 | var Cookie = tough.Cookie
6 | , CookieJar = tough.CookieJar
7 |
8 |
9 | exports.parse = function(str) {
10 | if (str && str.uri) {
11 | str = str.uri
12 | }
13 | if (typeof str !== 'string') {
14 | throw new Error('The cookie function only accepts STRING as param')
15 | }
16 | return Cookie.parse(str)
17 | }
18 |
19 | // Adapt the sometimes-Async api of tough.CookieJar to our requirements
20 | function RequestJar(store) {
21 | var self = this
22 | self._jar = new CookieJar(store)
23 | }
24 | RequestJar.prototype.setCookie = function(cookieOrStr, uri, options) {
25 | var self = this
26 | return self._jar.setCookieSync(cookieOrStr, uri, options || {})
27 | }
28 | RequestJar.prototype.getCookieString = function(uri) {
29 | var self = this
30 | return self._jar.getCookieStringSync(uri)
31 | }
32 | RequestJar.prototype.getCookies = function(uri) {
33 | var self = this
34 | return self._jar.getCookiesSync(uri)
35 | }
36 |
37 | exports.jar = function(store) {
38 | return new RequestJar(store)
39 | }
40 |
--------------------------------------------------------------------------------
/node_modules/request/lib/copy.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | module.exports =
4 | function copy (obj) {
5 | var o = {}
6 | Object.keys(obj).forEach(function (i) {
7 | o[i] = obj[i]
8 | })
9 | return o
10 | }
11 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/.bin/har-validator:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | basedir=`dirname "$0"`
3 |
4 | case `uname` in
5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 | esac
7 |
8 | if [ -x "$basedir/node" ]; then
9 | "$basedir/node" "$basedir/../har-validator/bin/har-validator" "$@"
10 | ret=$?
11 | else
12 | node "$basedir/../har-validator/bin/har-validator" "$@"
13 | ret=$?
14 | fi
15 | exit $ret
16 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/.bin/har-validator.cmd:
--------------------------------------------------------------------------------
1 | @IF EXIST "%~dp0\node.exe" (
2 | "%~dp0\node.exe" "%~dp0\..\har-validator\bin\har-validator" %*
3 | ) ELSE (
4 | node "%~dp0\..\har-validator\bin\har-validator" %*
5 | )
--------------------------------------------------------------------------------
/node_modules/request/node_modules/.bin/uuid:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | basedir=`dirname "$0"`
3 |
4 | case `uname` in
5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 | esac
7 |
8 | if [ -x "$basedir/node" ]; then
9 | "$basedir/node" "$basedir/../node-uuid/bin/uuid" "$@"
10 | ret=$?
11 | else
12 | node "$basedir/../node-uuid/bin/uuid" "$@"
13 | ret=$?
14 | fi
15 | exit $ret
16 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/.bin/uuid.cmd:
--------------------------------------------------------------------------------
1 | @IF EXIST "%~dp0\node.exe" (
2 | "%~dp0\node.exe" "%~dp0\..\node-uuid\bin\uuid" %*
3 | ) ELSE (
4 | node "%~dp0\..\node-uuid\bin\uuid" %*
5 | )
--------------------------------------------------------------------------------
/node_modules/request/node_modules/aws-sign2/README.md:
--------------------------------------------------------------------------------
1 | aws-sign
2 | ========
3 |
4 | AWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module.
5 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/aws-sign2/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "author": {
3 | "name": "Mikeal Rogers",
4 | "email": "mikeal.rogers@gmail.com",
5 | "url": "http://www.futurealoof.com"
6 | },
7 | "name": "aws-sign2",
8 | "description": "AWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module.",
9 | "version": "0.5.0",
10 | "repository": {
11 | "url": "https://github.com/mikeal/aws-sign"
12 | },
13 | "main": "index.js",
14 | "dependencies": {},
15 | "devDependencies": {},
16 | "optionalDependencies": {},
17 | "engines": {
18 | "node": "*"
19 | },
20 | "readme": "aws-sign\n========\n\nAWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module.\n",
21 | "readmeFilename": "README.md",
22 | "bugs": {
23 | "url": "https://github.com/mikeal/aws-sign/issues"
24 | },
25 | "homepage": "https://github.com/mikeal/aws-sign",
26 | "_id": "aws-sign2@0.5.0",
27 | "_from": "aws-sign2@~0.5.0"
28 | }
29 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules/
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.8
4 | - "0.10"
5 | branches:
6 | only:
7 | - master
8 | notifications:
9 | email:
10 | - rod@vagg.org
11 | script: npm test
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/node_modules/readable-stream/.npmignore:
--------------------------------------------------------------------------------
1 | build/
2 | test/
3 | examples/
4 | fs.js
5 | zlib.js
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/node_modules/readable-stream/duplex.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_duplex.js")
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/README.md:
--------------------------------------------------------------------------------
1 | # core-util-is
2 |
3 | The `util.is*` functions introduced in Node v0.12.
4 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "core-util-is",
3 | "version": "1.0.1",
4 | "description": "The `util.is*` functions introduced in Node v0.12.",
5 | "main": "lib/util.js",
6 | "repository": {
7 | "type": "git",
8 | "url": "git://github.com/isaacs/core-util-is"
9 | },
10 | "keywords": [
11 | "util",
12 | "isBuffer",
13 | "isArray",
14 | "isNumber",
15 | "isString",
16 | "isRegExp",
17 | "isThis",
18 | "isThat",
19 | "polyfill"
20 | ],
21 | "author": {
22 | "name": "Isaac Z. Schlueter",
23 | "email": "i@izs.me",
24 | "url": "http://blog.izs.me/"
25 | },
26 | "license": "MIT",
27 | "bugs": {
28 | "url": "https://github.com/isaacs/core-util-is/issues"
29 | },
30 | "readme": "# core-util-is\n\nThe `util.is*` functions introduced in Node v0.12.\n",
31 | "readmeFilename": "README.md",
32 | "homepage": "https://github.com/isaacs/core-util-is",
33 | "_id": "core-util-is@1.0.1",
34 | "_from": "core-util-is@~1.0.0"
35 | }
36 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/inherits/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 | PERFORMANCE OF THIS SOFTWARE.
16 |
17 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/inherits/inherits.js:
--------------------------------------------------------------------------------
1 | module.exports = require('util').inherits
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/inherits/inherits_browser.js:
--------------------------------------------------------------------------------
1 | if (typeof Object.create === 'function') {
2 | // implementation from standard node.js 'util' module
3 | module.exports = function inherits(ctor, superCtor) {
4 | ctor.super_ = superCtor
5 | ctor.prototype = Object.create(superCtor.prototype, {
6 | constructor: {
7 | value: ctor,
8 | enumerable: false,
9 | writable: true,
10 | configurable: true
11 | }
12 | });
13 | };
14 | } else {
15 | // old school shim for old browsers
16 | module.exports = function inherits(ctor, superCtor) {
17 | ctor.super_ = superCtor
18 | var TempCtor = function () {}
19 | TempCtor.prototype = superCtor.prototype
20 | ctor.prototype = new TempCtor()
21 | ctor.prototype.constructor = ctor
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/inherits/test.js:
--------------------------------------------------------------------------------
1 | var inherits = require('./inherits.js')
2 | var assert = require('assert')
3 |
4 | function test(c) {
5 | assert(c.constructor === Child)
6 | assert(c.constructor.super_ === Parent)
7 | assert(Object.getPrototypeOf(c) === Child.prototype)
8 | assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype)
9 | assert(c instanceof Child)
10 | assert(c instanceof Parent)
11 | }
12 |
13 | function Child() {
14 | Parent.call(this)
15 | test(this)
16 | }
17 |
18 | function Parent() {}
19 |
20 | inherits(Child, Parent)
21 |
22 | var c = new Child
23 | test(c)
24 |
25 | console.log('ok')
26 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/isarray/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name" : "isarray",
3 | "description" : "Array#isArray for older browsers",
4 | "version" : "0.0.1",
5 | "repository" : "juliangruber/isarray",
6 | "homepage": "https://github.com/juliangruber/isarray",
7 | "main" : "index.js",
8 | "scripts" : [
9 | "index.js"
10 | ],
11 | "dependencies" : {},
12 | "keywords": ["browser","isarray","array"],
13 | "author": {
14 | "name": "Julian Gruber",
15 | "email": "mail@juliangruber.com",
16 | "url": "http://juliangruber.com"
17 | },
18 | "license": "MIT"
19 | }
20 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/isarray/index.js:
--------------------------------------------------------------------------------
1 | module.exports = Array.isArray || function (arr) {
2 | return Object.prototype.toString.call(arr) == '[object Array]';
3 | };
4 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/string_decoder/.npmignore:
--------------------------------------------------------------------------------
1 | build
2 | test
3 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/string_decoder/README.md:
--------------------------------------------------------------------------------
1 | **string_decoder.js** (`require('string_decoder')`) from Node.js core
2 |
3 | Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details.
4 |
5 | Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.**
6 |
7 | The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version.
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/node_modules/readable-stream/passthrough.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_passthrough.js")
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/node_modules/readable-stream/readable.js:
--------------------------------------------------------------------------------
1 | var Stream = require('stream'); // hack to fix a circular dependency issue when used with browserify
2 | exports = module.exports = require('./lib/_stream_readable.js');
3 | exports.Stream = Stream;
4 | exports.Readable = exports;
5 | exports.Writable = require('./lib/_stream_writable.js');
6 | exports.Duplex = require('./lib/_stream_duplex.js');
7 | exports.Transform = require('./lib/_stream_transform.js');
8 | exports.PassThrough = require('./lib/_stream_passthrough.js');
9 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/node_modules/readable-stream/transform.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_transform.js")
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/node_modules/readable-stream/writable.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_writable.js")
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/bl/test/test.js:
--------------------------------------------------------------------------------
1 | require('./basic-test')
2 |
3 | if (!process.env.SAUCE_KEY || !process.env.SAUCE_USER)
4 | return console.log('SAUCE_KEY and/or SAUCE_USER not set, not running sauce tests')
5 |
6 | if (!/v0\.10/.test(process.version))
7 | return console.log('Not Node v0.10.x, not running sauce tests')
8 |
9 | require('./sauce.js')
--------------------------------------------------------------------------------
/node_modules/request/node_modules/caseless/test.js:
--------------------------------------------------------------------------------
1 | var tape = require('tape')
2 | , caseless = require('./')
3 | ;
4 |
5 | tape('set get has', function (t) {
6 | var headers = {}
7 | , c = caseless(headers)
8 | ;
9 | t.plan(17)
10 | c.set('a-Header', 'asdf')
11 | t.equal(c.get('a-header'), 'asdf')
12 | t.equal(c.has('a-header'), 'a-Header')
13 | t.ok(!c.has('nothing'))
14 | // old bug where we used the wrong regex
15 | t.ok(!c.has('a-hea'))
16 | c.set('a-header', 'fdsa')
17 | t.equal(c.get('a-header'), 'fdsa')
18 | t.equal(c.get('a-Header'), 'fdsa')
19 | c.set('a-HEADER', 'more', false)
20 | t.equal(c.get('a-header'), 'fdsa,more')
21 |
22 | t.deepEqual(headers, {'a-Header': 'fdsa,more'})
23 | c.swap('a-HEADER')
24 | t.deepEqual(headers, {'a-HEADER': 'fdsa,more'})
25 |
26 | c.set('deleteme', 'foobar')
27 | t.ok(c.has('deleteme'))
28 | t.ok(c.del('deleteme'))
29 | t.notOk(c.has('deleteme'))
30 | t.notOk(c.has('idonotexist'))
31 | t.ok(c.del('idonotexist'))
32 |
33 | c.set('tva', 'test1')
34 | c.set('tva-header', 'test2')
35 | t.equal(c.has('tva'), 'tva')
36 | t.notOk(c.has('header'))
37 |
38 | t.equal(c.get('tva'), 'test1')
39 |
40 | })
41 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/combined-stream/License:
--------------------------------------------------------------------------------
1 | Copyright (c) 2011 Debuggable Limited
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/.npmignore:
--------------------------------------------------------------------------------
1 | *.un~
2 | /node_modules/*
3 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/Makefile:
--------------------------------------------------------------------------------
1 | SHELL := /bin/bash
2 |
3 | test:
4 | @./test/run.js
5 |
6 | .PHONY: test
7 |
8 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/common.js:
--------------------------------------------------------------------------------
1 | var common = module.exports;
2 |
3 | common.DelayedStream = require('..');
4 | common.assert = require('assert');
5 | common.fake = require('fake');
6 | common.PORT = 49252;
7 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js:
--------------------------------------------------------------------------------
1 | var common = require('../common');
2 | var assert = common.assert;
3 | var DelayedStream = common.DelayedStream;
4 | var http = require('http');
5 |
6 | var UPLOAD = new Buffer(10 * 1024 * 1024);
7 |
8 | var server = http.createServer(function(req, res) {
9 | var delayed = DelayedStream.create(req, {maxDataSize: UPLOAD.length});
10 |
11 | setTimeout(function() {
12 | res.writeHead(200);
13 | delayed.pipe(res);
14 | }, 10);
15 | });
16 | server.listen(common.PORT, function() {
17 | var request = http.request({
18 | method: 'POST',
19 | port: common.PORT,
20 | });
21 |
22 | request.write(UPLOAD);
23 | request.end();
24 |
25 | request.on('response', function(res) {
26 | var received = 0;
27 | res
28 | .on('data', function(chunk) {
29 | received += chunk.length;
30 | })
31 | .on('end', function() {
32 | assert.equal(received, UPLOAD.length);
33 | server.close();
34 | });
35 | });
36 | });
37 |
38 |
39 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream-auto-pause.js:
--------------------------------------------------------------------------------
1 | var common = require('../common');
2 | var assert = common.assert;
3 | var fake = common.fake.create();
4 | var DelayedStream = common.DelayedStream;
5 | var Stream = require('stream').Stream;
6 |
7 | (function testAutoPause() {
8 | var source = new Stream();
9 |
10 | fake.expect(source, 'pause', 1);
11 | var delayedStream = DelayedStream.create(source);
12 | fake.verify();
13 | })();
14 |
15 | (function testDisableAutoPause() {
16 | var source = new Stream();
17 | fake.expect(source, 'pause', 0);
18 |
19 | var delayedStream = DelayedStream.create(source, {pauseStream: false});
20 | fake.verify();
21 | })();
22 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream-pause.js:
--------------------------------------------------------------------------------
1 | var common = require('../common');
2 | var assert = common.assert;
3 | var fake = common.fake.create();
4 | var DelayedStream = common.DelayedStream;
5 | var Stream = require('stream').Stream;
6 |
7 | (function testDelayEventsUntilResume() {
8 | var source = new Stream();
9 | var delayedStream = DelayedStream.create(source, {pauseStream: false});
10 |
11 | fake.expect(source, 'pause');
12 | delayedStream.pause();
13 | fake.verify();
14 | })();
15 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js:
--------------------------------------------------------------------------------
1 | var common = require('../common');
2 | var assert = common.assert;
3 | var fake = common.fake.create();
4 | var DelayedStream = common.DelayedStream;
5 | var Stream = require('stream').Stream;
6 |
7 | (function testHandleSourceErrors() {
8 | var source = new Stream();
9 | var delayedStream = DelayedStream.create(source, {pauseStream: false});
10 |
11 | // We deal with this by attaching a no-op listener to 'error' on the source
12 | // when creating a new DelayedStream. This way error events on the source
13 | // won't throw.
14 | source.emit('error', new Error('something went wrong'));
15 | })();
16 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-max-data-size.js:
--------------------------------------------------------------------------------
1 | var common = require('../common');
2 | var assert = common.assert;
3 | var fake = common.fake.create();
4 | var DelayedStream = common.DelayedStream;
5 | var Stream = require('stream').Stream;
6 |
7 | (function testMaxDataSize() {
8 | var source = new Stream();
9 | var delayedStream = DelayedStream.create(source, {maxDataSize: 1024, pauseStream: false});
10 |
11 | source.emit('data', new Buffer(1024));
12 |
13 | fake
14 | .expect(delayedStream, 'emit')
15 | .withArg(1, 'error');
16 | source.emit('data', new Buffer(1));
17 | fake.verify();
18 | })();
19 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-pipe-resumes.js:
--------------------------------------------------------------------------------
1 | var common = require('../common');
2 | var assert = common.assert;
3 | var fake = common.fake.create();
4 | var DelayedStream = common.DelayedStream;
5 | var Stream = require('stream').Stream;
6 |
7 | (function testPipeReleases() {
8 | var source = new Stream();
9 | var delayedStream = DelayedStream.create(source, {pauseStream: false});
10 |
11 | fake.expect(delayedStream, 'resume');
12 | delayedStream.pipe(new Stream());
13 | })();
14 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-proxy-readable.js:
--------------------------------------------------------------------------------
1 | var common = require('../common');
2 | var assert = common.assert;
3 | var fake = common.fake.create();
4 | var DelayedStream = common.DelayedStream;
5 | var Stream = require('stream').Stream;
6 |
7 | (function testProxyReadableProperty() {
8 | var source = new Stream();
9 | var delayedStream = DelayedStream.create(source, {pauseStream: false});
10 |
11 | source.readable = fake.value('source.readable');
12 | assert.strictEqual(delayedStream.readable, source.readable);
13 | })();
14 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/run.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var far = require('far').create();
3 |
4 | far.add(__dirname);
5 | far.include(/test-.*\.js$/);
6 |
7 | far.execute();
8 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/forever-agent/README.md:
--------------------------------------------------------------------------------
1 | forever-agent
2 | =============
3 |
4 | HTTP Agent that keeps socket connections alive between keep-alive requests. Formerly part of mikeal/request, now a standalone module.
5 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/forever-agent/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "author": {
3 | "name": "Mikeal Rogers",
4 | "email": "mikeal.rogers@gmail.com",
5 | "url": "http://www.futurealoof.com"
6 | },
7 | "name": "forever-agent",
8 | "description": "HTTP Agent that keeps socket connections alive between keep-alive requests. Formerly part of mikeal/request, now a standalone module.",
9 | "version": "0.6.1",
10 | "license": "Apache-2.0",
11 | "repository": {
12 | "url": "https://github.com/mikeal/forever-agent"
13 | },
14 | "main": "index.js",
15 | "dependencies": {},
16 | "devDependencies": {},
17 | "optionalDependencies": {},
18 | "engines": {
19 | "node": "*"
20 | },
21 | "readme": "forever-agent\n=============\n\nHTTP Agent that keeps socket connections alive between keep-alive requests. Formerly part of mikeal/request, now a standalone module.\n",
22 | "readmeFilename": "README.md",
23 | "bugs": {
24 | "url": "https://github.com/mikeal/forever-agent/issues"
25 | },
26 | "homepage": "https://github.com/mikeal/forever-agent",
27 | "_id": "forever-agent@0.6.1",
28 | "_from": "forever-agent@~0.6.0"
29 | }
30 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/form-data/node_modules/async/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/form-data/node_modules/async/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2010-2014 Caolan McMahon
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/form-data/node_modules/async/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "async",
3 | "repo": "caolan/async",
4 | "description": "Higher-order functions and common patterns for asynchronous code",
5 | "version": "0.1.23",
6 | "keywords": [],
7 | "dependencies": {},
8 | "development": {},
9 | "main": "lib/async.js",
10 | "scripts": [ "lib/async.js" ]
11 | }
12 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/bluebird/js/main/any.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | module.exports = function(Promise) {
3 | var SomePromiseArray = Promise._SomePromiseArray;
4 | function any(promises) {
5 | var ret = new SomePromiseArray(promises);
6 | var promise = ret.promise();
7 | ret.setHowMany(1);
8 | ret.setUnwrap();
9 | ret.init();
10 | return promise;
11 | }
12 |
13 | Promise.any = function (promises) {
14 | return any(promises);
15 | };
16 |
17 | Promise.prototype.any = function () {
18 | return any(this);
19 | };
20 |
21 | };
22 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/bluebird/js/main/bluebird.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | var old;
3 | if (typeof Promise !== "undefined") old = Promise;
4 | function noConflict() {
5 | try { if (Promise === bluebird) Promise = old; }
6 | catch (e) {}
7 | return bluebird;
8 | }
9 | var bluebird = require("./promise.js")();
10 | bluebird.noConflict = noConflict;
11 | module.exports = bluebird;
12 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/bluebird/js/main/context.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | module.exports = function(Promise, CapturedTrace, isDebugging) {
3 | var contextStack = [];
4 | function Context() {
5 | this._trace = new CapturedTrace(peekContext());
6 | }
7 | Context.prototype._pushContext = function () {
8 | if (!isDebugging()) return;
9 | if (this._trace !== undefined) {
10 | contextStack.push(this._trace);
11 | }
12 | };
13 |
14 | Context.prototype._popContext = function () {
15 | if (!isDebugging()) return;
16 | if (this._trace !== undefined) {
17 | contextStack.pop();
18 | }
19 | };
20 |
21 | function createContext() {
22 | if (isDebugging()) return new Context();
23 | }
24 |
25 | function peekContext() {
26 | var lastIndex = contextStack.length - 1;
27 | if (lastIndex >= 0) {
28 | return contextStack[lastIndex];
29 | }
30 | return undefined;
31 | }
32 |
33 | Promise.prototype._peekContext = peekContext;
34 | Promise.prototype._pushContext = Context.prototype._pushContext;
35 | Promise.prototype._popContext = Context.prototype._popContext;
36 |
37 | return createContext;
38 | };
39 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/bluebird/js/main/each.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | module.exports = function(Promise, INTERNAL) {
3 | var PromiseReduce = Promise.reduce;
4 |
5 | Promise.prototype.each = function (fn) {
6 | return PromiseReduce(this, fn, null, INTERNAL);
7 | };
8 |
9 | Promise.each = function (promises, fn) {
10 | return PromiseReduce(promises, fn, null, INTERNAL);
11 | };
12 | };
13 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/bluebird/js/main/filter.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | module.exports = function(Promise, INTERNAL) {
3 | var PromiseMap = Promise.map;
4 |
5 | Promise.prototype.filter = function (fn, options) {
6 | return PromiseMap(this, fn, options, INTERNAL);
7 | };
8 |
9 | Promise.filter = function (promises, fn, options) {
10 | return PromiseMap(promises, fn, options, INTERNAL);
11 | };
12 | };
13 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/.bin/has-ansi:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | basedir=`dirname "$0"`
3 |
4 | case `uname` in
5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 | esac
7 |
8 | if [ -x "$basedir/node" ]; then
9 | "$basedir/node" "$basedir/../has-ansi/cli.js" "$@"
10 | ret=$?
11 | else
12 | node "$basedir/../has-ansi/cli.js" "$@"
13 | ret=$?
14 | fi
15 | exit $ret
16 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/.bin/has-ansi.cmd:
--------------------------------------------------------------------------------
1 | @IF EXIST "%~dp0\node.exe" (
2 | "%~dp0\node.exe" "%~dp0\..\has-ansi\cli.js" %*
3 | ) ELSE (
4 | node "%~dp0\..\has-ansi\cli.js" %*
5 | )
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/.bin/strip-ansi:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | basedir=`dirname "$0"`
3 |
4 | case `uname` in
5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 | esac
7 |
8 | if [ -x "$basedir/node" ]; then
9 | "$basedir/node" "$basedir/../strip-ansi/cli.js" "$@"
10 | ret=$?
11 | else
12 | node "$basedir/../strip-ansi/cli.js" "$@"
13 | ret=$?
14 | fi
15 | exit $ret
16 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/.bin/strip-ansi.cmd:
--------------------------------------------------------------------------------
1 | @IF EXIST "%~dp0\node.exe" (
2 | "%~dp0\node.exe" "%~dp0\..\strip-ansi\cli.js" %*
3 | ) ELSE (
4 | node "%~dp0\..\strip-ansi\cli.js" %*
5 | )
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/.bin/supports-color:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | basedir=`dirname "$0"`
3 |
4 | case `uname` in
5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 | esac
7 |
8 | if [ -x "$basedir/node" ]; then
9 | "$basedir/node" "$basedir/../supports-color/cli.js" "$@"
10 | ret=$?
11 | else
12 | node "$basedir/../supports-color/cli.js" "$@"
13 | ret=$?
14 | fi
15 | exit $ret
16 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/.bin/supports-color.cmd:
--------------------------------------------------------------------------------
1 | @IF EXIST "%~dp0\node.exe" (
2 | "%~dp0\node.exe" "%~dp0\..\supports-color\cli.js" %*
3 | ) ELSE (
4 | node "%~dp0\..\supports-color\cli.js" %*
5 | )
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/escape-string-regexp/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
4 |
5 | module.exports = function (str) {
6 | if (typeof str !== 'string') {
7 | throw new TypeError('Expected a string');
8 | }
9 |
10 | return str.replace(matchOperatorsRe, '\\$&');
11 | };
12 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/escape-string-regexp/readme.md:
--------------------------------------------------------------------------------
1 | # escape-string-regexp [](https://travis-ci.org/sindresorhus/escape-string-regexp)
2 |
3 | > Escape RegExp special characters
4 |
5 |
6 | ## Install
7 |
8 | ```sh
9 | $ npm install --save escape-string-regexp
10 | ```
11 |
12 |
13 | ## Usage
14 |
15 | ```js
16 | var escapeStringRegexp = require('escape-string-regexp');
17 |
18 | var escapedString = escapeStringRegexp('how much $ for a unicorn?');
19 | //=> how much \$ for a unicorn\?
20 |
21 | new RegExp(escapedString);
22 | ```
23 |
24 |
25 | ## License
26 |
27 | MIT © [Sindre Sorhus](http://sindresorhus.com)
28 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/cli.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | 'use strict';
3 | var stdin = require('get-stdin');
4 | var pkg = require('./package.json');
5 | var hasAnsi = require('./');
6 | var argv = process.argv.slice(2);
7 | var input = argv[0];
8 |
9 | function help() {
10 | console.log([
11 | '',
12 | ' ' + pkg.description,
13 | '',
14 | ' Usage',
15 | ' has-ansi ',
16 | ' echo | has-ansi',
17 | '',
18 | ' Exits with code 0 if input has ANSI escape codes and 1 if not'
19 | ].join('\n'));
20 | }
21 |
22 | function init(data) {
23 | process.exit(hasAnsi(data) ? 0 : 1);
24 | }
25 |
26 | if (argv.indexOf('--help') !== -1) {
27 | help();
28 | return;
29 | }
30 |
31 | if (argv.indexOf('--version') !== -1) {
32 | console.log(pkg.version);
33 | return;
34 | }
35 |
36 | if (process.stdin.isTTY) {
37 | if (!input) {
38 | help();
39 | return;
40 | }
41 |
42 | init(input);
43 | } else {
44 | stdin(init);
45 | }
46 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | var ansiRegex = require('ansi-regex');
3 | var re = new RegExp(ansiRegex().source); // remove the `g` flag
4 | module.exports = re.test.bind(re);
5 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/node_modules/ansi-regex/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | module.exports = function () {
3 | return /(?:(?:\u001b\[)|\u009b)(?:(?:[0-9]{1,3})?(?:(?:;[0-9]{0,3})*)?[A-M|f-m])|\u001b[A-M]/g;
4 | };
5 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/node_modules/ansi-regex/readme.md:
--------------------------------------------------------------------------------
1 | # ansi-regex [](https://travis-ci.org/sindresorhus/ansi-regex)
2 |
3 | > Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
4 |
5 |
6 | ## Install
7 |
8 | ```sh
9 | $ npm install --save ansi-regex
10 | ```
11 |
12 |
13 | ## Usage
14 |
15 | ```js
16 | var ansiRegex = require('ansi-regex');
17 |
18 | ansiRegex().test('\u001b[4mcake\u001b[0m');
19 | //=> true
20 |
21 | ansiRegex().test('cake');
22 | //=> false
23 |
24 | '\u001b[4mcake\u001b[0m'.match(ansiRegex());
25 | //=> ['\u001b[4m', '\u001b[0m']
26 | ```
27 |
28 | *It's a function so you can create multiple instances. Regexes with the global flag will have the `.lastIndex` property changed for each call to methods on the instance. Therefore reusing the instance with multiple calls will not work as expected for `.test()`.*
29 |
30 |
31 | ## License
32 |
33 | MIT © [Sindre Sorhus](http://sindresorhus.com)
34 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/node_modules/get-stdin/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function (cb) {
4 | var stdin = process.stdin;
5 | var ret = '';
6 |
7 | if (stdin.isTTY) {
8 | setImmediate(cb, '');
9 | return;
10 | }
11 |
12 | stdin.setEncoding('utf8');
13 |
14 | stdin.on('readable', function () {
15 | var chunk;
16 |
17 | while (chunk = stdin.read()) {
18 | ret += chunk;
19 | }
20 | });
21 |
22 | stdin.on('end', function () {
23 | cb(ret);
24 | });
25 | };
26 |
27 | module.exports.buffer = function (cb) {
28 | var stdin = process.stdin;
29 | var ret = [];
30 | var len = 0;
31 |
32 | if (stdin.isTTY) {
33 | setImmediate(cb, new Buffer(''));
34 | return;
35 | }
36 |
37 | stdin.on('readable', function () {
38 | var chunk;
39 |
40 | while (chunk = stdin.read()) {
41 | ret.push(chunk);
42 | len += chunk.length;
43 | }
44 | });
45 |
46 | stdin.on('end', function () {
47 | cb(Buffer.concat(ret, len));
48 | });
49 | };
50 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/node_modules/get-stdin/readme.md:
--------------------------------------------------------------------------------
1 | # get-stdin [](https://travis-ci.org/sindresorhus/get-stdin)
2 |
3 | > Easier stdin
4 |
5 |
6 | ## Install
7 |
8 | ```sh
9 | $ npm install --save get-stdin
10 | ```
11 |
12 |
13 | ## Usage
14 |
15 | ```js
16 | // example.js
17 | var stdin = require('get-stdin');
18 |
19 | stdin(function (data) {
20 | console.log(data);
21 | //=> unicorns
22 | });
23 | ```
24 |
25 | ```sh
26 | $ echo unicorns | node example.js
27 | unicorns
28 | ```
29 |
30 |
31 | ## API
32 |
33 | ### stdin(callback)
34 |
35 | Get `stdin` as a string.
36 |
37 | ### stdin.buffer(callback)
38 |
39 | Get `stdin` as a buffer.
40 |
41 |
42 | ## License
43 |
44 | MIT © [Sindre Sorhus](http://sindresorhus.com)
45 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/readme.md:
--------------------------------------------------------------------------------
1 | # has-ansi [](https://travis-ci.org/sindresorhus/has-ansi)
2 |
3 | > Check if a string has [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
4 |
5 |
6 | ## Install
7 |
8 | ```sh
9 | $ npm install --save has-ansi
10 | ```
11 |
12 |
13 | ## Usage
14 |
15 | ```js
16 | var hasAnsi = require('has-ansi');
17 |
18 | hasAnsi('\u001b[4mcake\u001b[0m');
19 | //=> true
20 |
21 | hasAnsi('cake');
22 | //=> false
23 | ```
24 |
25 |
26 | ## CLI
27 |
28 | ```sh
29 | $ npm install --global has-ansi
30 | ```
31 |
32 | ```
33 | $ has-ansi --help
34 |
35 | Usage
36 | has-ansi
37 | echo | has-ansi
38 |
39 | Exits with code 0 if input has ANSI escape codes and 1 if not
40 | ```
41 |
42 |
43 | ## License
44 |
45 | MIT © [Sindre Sorhus](http://sindresorhus.com)
46 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/strip-ansi/cli.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | 'use strict';
3 | var fs = require('fs');
4 | var pkg = require('./package.json');
5 | var stripAnsi = require('./');
6 | var argv = process.argv.slice(2);
7 | var input = argv[0];
8 |
9 | function help() {
10 | console.log([
11 | '',
12 | ' ' + pkg.description,
13 | '',
14 | ' Usage',
15 | ' strip-ansi > ',
16 | ' cat | strip-ansi > ',
17 | '',
18 | ' Example',
19 | ' strip-ansi unicorn.txt > unicorn-stripped.txt'
20 | ].join('\n'));
21 | }
22 |
23 | function init(data) {
24 | process.stdout.write(stripAnsi(data));
25 | }
26 |
27 | if (argv.indexOf('--help') !== -1) {
28 | help();
29 | return;
30 | }
31 |
32 | if (argv.indexOf('--version') !== -1) {
33 | console.log(pkg.version);
34 | return;
35 | }
36 |
37 | if (!input && process.stdin.isTTY) {
38 | help();
39 | return;
40 | }
41 |
42 | if (input) {
43 | init(fs.readFileSync(input, 'utf8'));
44 | } else {
45 | process.stdin.setEncoding('utf8');
46 | process.stdin.on('data', init);
47 | }
48 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/strip-ansi/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | var ansiRegex = require('ansi-regex')();
3 |
4 | module.exports = function (str) {
5 | return typeof str === 'string' ? str.replace(ansiRegex, '') : str;
6 | };
7 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | module.exports = function () {
3 | return /(?:(?:\u001b\[)|\u009b)(?:(?:[0-9]{1,3})?(?:(?:;[0-9]{0,3})*)?[A-M|f-m])|\u001b[A-M]/g;
4 | };
5 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/readme.md:
--------------------------------------------------------------------------------
1 | # ansi-regex [](https://travis-ci.org/sindresorhus/ansi-regex)
2 |
3 | > Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
4 |
5 |
6 | ## Install
7 |
8 | ```sh
9 | $ npm install --save ansi-regex
10 | ```
11 |
12 |
13 | ## Usage
14 |
15 | ```js
16 | var ansiRegex = require('ansi-regex');
17 |
18 | ansiRegex().test('\u001b[4mcake\u001b[0m');
19 | //=> true
20 |
21 | ansiRegex().test('cake');
22 | //=> false
23 |
24 | '\u001b[4mcake\u001b[0m'.match(ansiRegex());
25 | //=> ['\u001b[4m', '\u001b[0m']
26 | ```
27 |
28 | *It's a function so you can create multiple instances. Regexes with the global flag will have the `.lastIndex` property changed for each call to methods on the instance. Therefore reusing the instance with multiple calls will not work as expected for `.test()`.*
29 |
30 |
31 | ## License
32 |
33 | MIT © [Sindre Sorhus](http://sindresorhus.com)
34 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/strip-ansi/readme.md:
--------------------------------------------------------------------------------
1 | # strip-ansi [](https://travis-ci.org/sindresorhus/strip-ansi)
2 |
3 | > Strip [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
4 |
5 |
6 | ## Install
7 |
8 | ```sh
9 | $ npm install --save strip-ansi
10 | ```
11 |
12 |
13 | ## Usage
14 |
15 | ```js
16 | var stripAnsi = require('strip-ansi');
17 |
18 | stripAnsi('\u001b[4mcake\u001b[0m');
19 | //=> 'cake'
20 | ```
21 |
22 |
23 | ## CLI
24 |
25 | ```sh
26 | $ npm install --global strip-ansi
27 | ```
28 |
29 | ```sh
30 | $ strip-ansi --help
31 |
32 | Usage
33 | strip-ansi >
34 | cat | strip-ansi >
35 |
36 | Example
37 | strip-ansi unicorn.txt > unicorn-stripped.txt
38 | ```
39 |
40 |
41 | ## License
42 |
43 | MIT © [Sindre Sorhus](http://sindresorhus.com)
44 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/supports-color/cli.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | 'use strict';
3 | var pkg = require('./package.json');
4 | var supportsColor = require('./');
5 | var argv = process.argv.slice(2);
6 |
7 | function help() {
8 | console.log([
9 | '',
10 | ' ' + pkg.description,
11 | '',
12 | ' Usage',
13 | ' supports-color',
14 | '',
15 | ' Exits with code 0 if color is supported and 1 if not'
16 | ].join('\n'));
17 | }
18 |
19 | if (argv.indexOf('--help') !== -1) {
20 | help();
21 | return;
22 | }
23 |
24 | if (argv.indexOf('--version') !== -1) {
25 | console.log(pkg.version);
26 | return;
27 | }
28 |
29 | process.exit(supportsColor ? 0 : 1);
30 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/supports-color/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | var argv = process.argv;
3 |
4 | module.exports = (function () {
5 | if ('FORCE_COLOR' in process.env) {
6 | return true;
7 | }
8 |
9 | if (argv.indexOf('--no-color') !== -1 ||
10 | argv.indexOf('--no-colors') !== -1 ||
11 | argv.indexOf('--color=false') !== -1) {
12 | return false;
13 | }
14 |
15 | if (argv.indexOf('--color') !== -1 ||
16 | argv.indexOf('--colors') !== -1 ||
17 | argv.indexOf('--color=true') !== -1 ||
18 | argv.indexOf('--color=always') !== -1) {
19 | return true;
20 | }
21 |
22 | if (process.stdout && !process.stdout.isTTY) {
23 | return false;
24 | }
25 |
26 | if (process.platform === 'win32') {
27 | return true;
28 | }
29 |
30 | if ('COLORTERM' in process.env) {
31 | return true;
32 | }
33 |
34 | if (process.env.TERM === 'dumb') {
35 | return false;
36 | }
37 |
38 | if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) {
39 | return true;
40 | }
41 |
42 | return false;
43 | })();
44 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/supports-color/readme.md:
--------------------------------------------------------------------------------
1 | # supports-color [](https://travis-ci.org/sindresorhus/supports-color)
2 |
3 | > Detect whether a terminal supports color
4 |
5 |
6 | ## Install
7 |
8 | ```
9 | $ npm install --save supports-color
10 | ```
11 |
12 |
13 | ## Usage
14 |
15 | ```js
16 | var supportsColor = require('supports-color');
17 |
18 | if (supportsColor) {
19 | console.log('Terminal supports color');
20 | }
21 | ```
22 |
23 | It obeys the `--color` and `--no-color` CLI flags.
24 |
25 | For situations where using `--color` is not possible, add an environment variable `FORCE_COLOR` with any value to force color. Trumps `--no-color`.
26 |
27 |
28 | ## CLI
29 |
30 | ```
31 | $ npm install --global supports-color
32 | ```
33 |
34 | ```
35 | $ supports-color --help
36 |
37 | Usage
38 | supports-color
39 |
40 | Exits with code 0 if color is supported and 1 if not
41 | ```
42 |
43 |
44 | ## License
45 |
46 | MIT © [Sindre Sorhus](http://sindresorhus.com)
47 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/commander/node_modules/graceful-readlink/.npmignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | .DS_Store
3 | node_modules/
4 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/commander/node_modules/graceful-readlink/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 | - "0.12"
5 | - "io.js"
6 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/commander/node_modules/graceful-readlink/README.md:
--------------------------------------------------------------------------------
1 | # graceful-readlink
2 | [](https://www.npmjs.org/package/graceful-readlink)
3 | [](https://www.npmjs.org/package/graceful-readlink)
4 |
5 |
6 | ## Usage
7 |
8 | ```js
9 | var readlinkSync = require('graceful-readlink').readlinkSync;
10 | console.log(readlinkSync(f));
11 | // output
12 | // the file pointed to when `f` is a symbolic link
13 | // the `f` itself when `f` is not a symbolic link
14 | ```
15 | ## Licence
16 |
17 | MIT License
18 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/commander/node_modules/graceful-readlink/index.js:
--------------------------------------------------------------------------------
1 | var fs = require('fs')
2 | , lstat = fs.lstatSync;
3 |
4 | exports.readlinkSync = function (p) {
5 | if (lstat(p).isSymbolicLink()) {
6 | return fs.readlinkSync(p);
7 | } else {
8 | return p;
9 | }
10 | };
11 |
12 |
13 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | cosmicrealms.com
3 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/example.js:
--------------------------------------------------------------------------------
1 | var validator = require('./')
2 |
3 | var validate = validator({
4 | type: 'object',
5 | properties: {
6 | hello: {
7 | required: true,
8 | type: 'string'
9 | }
10 | }
11 | })
12 |
13 | console.log('should be valid', validate({hello: 'world'}))
14 | console.log('should not be valid', validate({}))
15 |
16 | // get the last error message by checking validate.error
17 | // the following will print "data.hello is required"
18 | console.log('the errors were:', validate.errors)
19 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-function/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-function/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-function/example.js:
--------------------------------------------------------------------------------
1 | var genfun = require('./')
2 |
3 | var multiply = function(a, b) {
4 | return a * b
5 | }
6 |
7 | var addAndMultiplyNumber = function(val) {
8 | var fn = genfun()
9 | ('function(n) {')
10 | ('if (typeof n !== "number") {') // ending a line with { will indent the source
11 | ('throw new Error("argument should be a number")')
12 | ('}')
13 | ('var result = multiply(%d, n+%d)', val, val)
14 | ('return result')
15 | ('}')
16 |
17 | // use fn.toString() if you want to see the generated source
18 |
19 | return fn.toFunction({
20 | multiply: multiply
21 | })
22 | }
23 |
24 | var addAndMultiply2 = addAndMultiplyNumber(2)
25 |
26 | console.log(addAndMultiply2.toString())
27 | console.log('(3 + 2) * 2 =', addAndMultiply2(3))
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-function/test.js:
--------------------------------------------------------------------------------
1 | var tape = require('tape')
2 | var genfun = require('./')
3 |
4 | tape('generate add function', function(t) {
5 | var fn = genfun()
6 | ('function add(n) {')
7 | ('return n + %d', 42)
8 | ('}')
9 |
10 | t.same(fn.toString(), 'function add(n) {\n return n + 42\n}', 'code is indented')
11 | t.same(fn.toFunction()(10), 52, 'function works')
12 | t.end()
13 | })
14 |
15 | tape('generate function + closed variables', function(t) {
16 | var fn = genfun()
17 | ('function add(n) {')
18 | ('return n + %d + number', 42)
19 | ('}')
20 |
21 | var notGood = fn.toFunction()
22 | var good = fn.toFunction({number:10})
23 |
24 | try {
25 | notGood(10)
26 | t.ok(false, 'function should not work')
27 | } catch (err) {
28 | t.same(err.message, 'number is not defined', 'throws reference error')
29 | }
30 |
31 | t.same(good(11), 63, 'function with closed var works')
32 | t.end()
33 | })
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/README.md:
--------------------------------------------------------------------------------
1 | # generate-object-property
2 |
3 | Generate safe JS code that can used to reference a object property
4 |
5 | npm install generate-object-property
6 |
7 | [](http://travis-ci.org/mafintosh/generate-object-property)
8 |
9 | ## Usage
10 |
11 | ``` js
12 | var gen = require('generate-object-property');
13 | console.log(gen('a','b')); // prints a.b
14 | console.log(gen('a', 'foo-bar')); // prints a["foo-bar"]
15 | ```
16 |
17 | ## License
18 |
19 | MIT
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/index.js:
--------------------------------------------------------------------------------
1 | var isProperty = require('is-property')
2 |
3 | var gen = function(obj, prop) {
4 | return isProperty(prop) ? obj+'.'+prop : obj+'['+JSON.stringify(prop)+']'
5 | }
6 |
7 | gen.valid = isProperty
8 | module.exports = gen
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/node_modules/is-property/.npmignore:
--------------------------------------------------------------------------------
1 | lib-cov
2 | *.seed
3 | *.log
4 | *.csv
5 | *.dat
6 | *.out
7 | *.pid
8 | *.gz
9 |
10 | pids
11 | logs
12 | results
13 |
14 | npm-debug.log
15 | node_modules/*
16 | *.DS_Store
17 | test/*
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/node_modules/is-property/README.md:
--------------------------------------------------------------------------------
1 | is-property
2 | ===========
3 | Tests if a property of a JavaScript object can be accessed using the dot (.) notation or if it must be enclosed in brackets, (ie use x[" ... "])
4 |
5 | Example
6 | -------
7 |
8 | ```javascript
9 | var isProperty = require("is-property")
10 |
11 | console.log(isProperty("foo")) //Prints true
12 | console.log(isProperty("0")) //Prints false
13 | ```
14 |
15 | Install
16 | -------
17 |
18 | npm install is-property
19 |
20 | ### `require("is-property")(str)`
21 | Checks if str is a property
22 |
23 | * `str` is a string which we will test if it is a property or not
24 |
25 | **Returns** true or false depending if str is a property
26 |
27 | ## Credits
28 | (c) 2013 Mikola Lysenko. MIT License
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/test.js:
--------------------------------------------------------------------------------
1 | var tape = require('tape')
2 | var gen = require('./')
3 |
4 | tape('valid', function(t) {
5 | t.same(gen('a', 'b'), 'a.b')
6 | t.end()
7 | })
8 |
9 | tape('invalid', function(t) {
10 | t.same(gen('a', '-b'), 'a["-b"]')
11 | t.end()
12 | })
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/jsonpointer/.travis.yml:
--------------------------------------------------------------------------------
1 | language: "node_js"
2 | node_js:
3 | - 0.4
4 | - 0.5
5 | - 0.6
6 | - 0.8
7 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/jsonpointer/README.md:
--------------------------------------------------------------------------------
1 | # JSON Pointer for nodejs
2 |
3 | This is an implementation of [JSON Pointer](http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-08).
4 |
5 | ## Usage
6 |
7 | var jsonpointer = require("jsonpointer");
8 | var obj = { foo: 1, bar: { baz: 2}, qux: [3, 4, 5]};
9 | var one = jsonpointer.get(obj, "/foo");
10 | var two = jsonpointer.get(obj, "/bar/baz");
11 | var three = jsonpointer.get(obj, "/qux/0");
12 | var four = jsonpointer.get(obj, "/qux/1");
13 | var five = jsonpointer.get(obj, "/qux/2");
14 |
15 | jsonpointer.set(obj, "/foo", 6); // obj.foo = 6;
16 |
17 | ## Testing
18 |
19 | $ node test.js
20 | All tests pass.
21 | $
22 |
23 | [](undefined)
24 |
25 | ## Author
26 |
27 | (c) 2011 Jan Lehnardt
28 |
29 | ## License
30 |
31 | MIT License.
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "maxdepth": 4,
3 | "maxstatements": 200,
4 | "maxcomplexity": 12,
5 | "maxlen": 80,
6 | "maxparams": 5,
7 |
8 | "curly": true,
9 | "eqeqeq": true,
10 | "immed": true,
11 | "latedef": false,
12 | "noarg": true,
13 | "noempty": true,
14 | "nonew": true,
15 | "undef": true,
16 | "unused": "vars",
17 | "trailing": true,
18 |
19 | "quotmark": true,
20 | "expr": true,
21 | "asi": true,
22 |
23 | "browser": false,
24 | "esnext": true,
25 | "devel": false,
26 | "node": false,
27 | "nonstandard": false,
28 |
29 | "predef": ["require", "module", "__dirname", "__filename"]
30 | }
31 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend/Makefile:
--------------------------------------------------------------------------------
1 | browser:
2 | node ./support/compile
3 |
4 | .PHONY: browser
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend/README.md:
--------------------------------------------------------------------------------
1 | # xtend
2 |
3 | [![browser support][3]][4]
4 |
5 | [](http://github.com/badges/stability-badges)
6 |
7 | Extend like a boss
8 |
9 | xtend is a basic utility library which allows you to extend an object by appending all of the properties from each object in a list. When there are identical properties, the right-most property takes precedence.
10 |
11 | ## Examples
12 |
13 | ```js
14 | var extend = require("xtend")
15 |
16 | // extend returns a new object. Does not mutate arguments
17 | var combination = extend({
18 | a: "a",
19 | b: 'c'
20 | }, {
21 | b: "b"
22 | })
23 | // { a: "a", b: "b" }
24 | ```
25 |
26 | ## Stability status: Locked
27 |
28 | ## MIT Licenced
29 |
30 |
31 | [3]: http://ci.testling.com/Raynos/xtend.png
32 | [4]: http://ci.testling.com/Raynos/xtend
33 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend/immutable.js:
--------------------------------------------------------------------------------
1 | module.exports = extend
2 |
3 | function extend() {
4 | var target = {}
5 |
6 | for (var i = 0; i < arguments.length; i++) {
7 | var source = arguments[i]
8 |
9 | for (var key in source) {
10 | if (source.hasOwnProperty(key)) {
11 | target[key] = source[key]
12 | }
13 | }
14 | }
15 |
16 | return target
17 | }
18 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend/mutable.js:
--------------------------------------------------------------------------------
1 | module.exports = extend
2 |
3 | function extend(target) {
4 | for (var i = 1; i < arguments.length; i++) {
5 | var source = arguments[i]
6 |
7 | for (var key in source) {
8 | if (source.hasOwnProperty(key)) {
9 | target[key] = source[key]
10 | }
11 | }
12 | }
13 |
14 | return target
15 | }
16 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/require.js:
--------------------------------------------------------------------------------
1 | var fs = require('fs')
2 | var path = require('path')
3 | var compile = require('./')
4 |
5 | delete require.cache[require.resolve(__filename)]
6 |
7 | module.exports = function(file, opts) {
8 | file = path.join(path.dirname(module.parent.filename), file)
9 | if (!fs.existsSync(file) && fs.existsSync(file+'.schema')) file += '.schema'
10 | if (!fs.existsSync(file) && fs.existsSync(file+'.json')) file += '.json'
11 | return compile(fs.readFileSync(file, 'utf-8'), opts)
12 | }
13 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/definitions.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "description": "valid definition",
4 | "schema": {"$ref": "http://json-schema.org/draft-04/schema#"},
5 | "tests": [
6 | {
7 | "description": "valid definition schema",
8 | "data": {
9 | "definitions": {
10 | "foo": {"type": "integer"}
11 | }
12 | },
13 | "valid": true
14 | }
15 | ]
16 | },
17 | {
18 | "description": "invalid definition",
19 | "schema": {"$ref": "http://json-schema.org/draft-04/schema#"},
20 | "tests": [
21 | {
22 | "description": "invalid definition schema",
23 | "data": {
24 | "definitions": {
25 | "foo": {"type": 1}
26 | }
27 | },
28 | "valid": false
29 | }
30 | ]
31 | }
32 | ]
33 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/maxItems.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "description": "maxItems validation",
4 | "schema": {"maxItems": 2},
5 | "tests": [
6 | {
7 | "description": "shorter is valid",
8 | "data": [1],
9 | "valid": true
10 | },
11 | {
12 | "description": "exact length is valid",
13 | "data": [1, 2],
14 | "valid": true
15 | },
16 | {
17 | "description": "too long is invalid",
18 | "data": [1, 2, 3],
19 | "valid": false
20 | },
21 | {
22 | "description": "ignores non-arrays",
23 | "data": "foobar",
24 | "valid": true
25 | }
26 | ]
27 | }
28 | ]
29 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/maxLength.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "description": "maxLength validation",
4 | "schema": {"maxLength": 2},
5 | "tests": [
6 | {
7 | "description": "shorter is valid",
8 | "data": "f",
9 | "valid": true
10 | },
11 | {
12 | "description": "exact length is valid",
13 | "data": "fo",
14 | "valid": true
15 | },
16 | {
17 | "description": "too long is invalid",
18 | "data": "foo",
19 | "valid": false
20 | },
21 | {
22 | "description": "ignores non-strings",
23 | "data": 100,
24 | "valid": true
25 | }
26 | ]
27 | }
28 | ]
29 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/maxProperties.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "description": "maxProperties validation",
4 | "schema": {"maxProperties": 2},
5 | "tests": [
6 | {
7 | "description": "shorter is valid",
8 | "data": {"foo": 1},
9 | "valid": true
10 | },
11 | {
12 | "description": "exact length is valid",
13 | "data": {"foo": 1, "bar": 2},
14 | "valid": true
15 | },
16 | {
17 | "description": "too long is invalid",
18 | "data": {"foo": 1, "bar": 2, "baz": 3},
19 | "valid": false
20 | },
21 | {
22 | "description": "ignores non-objects",
23 | "data": "foobar",
24 | "valid": true
25 | }
26 | ]
27 | }
28 | ]
29 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/minItems.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "description": "minItems validation",
4 | "schema": {"minItems": 1},
5 | "tests": [
6 | {
7 | "description": "longer is valid",
8 | "data": [1, 2],
9 | "valid": true
10 | },
11 | {
12 | "description": "exact length is valid",
13 | "data": [1],
14 | "valid": true
15 | },
16 | {
17 | "description": "too short is invalid",
18 | "data": [],
19 | "valid": false
20 | },
21 | {
22 | "description": "ignores non-arrays",
23 | "data": "",
24 | "valid": true
25 | }
26 | ]
27 | }
28 | ]
29 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/minLength.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "description": "minLength validation",
4 | "schema": {"minLength": 2},
5 | "tests": [
6 | {
7 | "description": "longer is valid",
8 | "data": "foo",
9 | "valid": true
10 | },
11 | {
12 | "description": "exact length is valid",
13 | "data": "fo",
14 | "valid": true
15 | },
16 | {
17 | "description": "too short is invalid",
18 | "data": "f",
19 | "valid": false
20 | },
21 | {
22 | "description": "ignores non-strings",
23 | "data": 1,
24 | "valid": true
25 | }
26 | ]
27 | }
28 | ]
29 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/minProperties.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "description": "minProperties validation",
4 | "schema": {"minProperties": 1},
5 | "tests": [
6 | {
7 | "description": "longer is valid",
8 | "data": {"foo": 1, "bar": 2},
9 | "valid": true
10 | },
11 | {
12 | "description": "exact length is valid",
13 | "data": {"foo": 1},
14 | "valid": true
15 | },
16 | {
17 | "description": "too short is invalid",
18 | "data": {},
19 | "valid": false
20 | },
21 | {
22 | "description": "ignores non-objects",
23 | "data": "",
24 | "valid": true
25 | }
26 | ]
27 | }
28 | ]
29 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndFormat.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "description": "validation of null and format",
4 | "schema": {"type": ["null", "string"], "format": "date-time"},
5 | "tests": [
6 | {
7 | "description": "a valid date-time string",
8 | "data": "1963-06-19T08:30:06.283185Z",
9 | "valid": true
10 | },
11 | {
12 | "description": "allow null",
13 | "data": null,
14 | "valid": true
15 | }
16 | ]
17 | }
18 | ]
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/pattern.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "description": "pattern validation",
4 | "schema": {"pattern": "^a*$"},
5 | "tests": [
6 | {
7 | "description": "a matching pattern is valid",
8 | "data": "aaa",
9 | "valid": true
10 | },
11 | {
12 | "description": "a non-matching pattern is invalid",
13 | "data": "abc",
14 | "valid": false
15 | },
16 | {
17 | "description": "ignores non-strings",
18 | "data": true,
19 | "valid": true
20 | }
21 | ]
22 | }
23 | ]
24 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/required.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "description": "required validation",
4 | "schema": {
5 | "properties": {
6 | "foo": {},
7 | "bar": {}
8 | },
9 | "required": ["foo"]
10 | },
11 | "tests": [
12 | {
13 | "description": "present required property is valid",
14 | "data": {"foo": 1},
15 | "valid": true
16 | },
17 | {
18 | "description": "non-present required property is invalid",
19 | "data": {"bar": 1},
20 | "valid": false
21 | }
22 | ]
23 | },
24 | {
25 | "description": "required default validation",
26 | "schema": {
27 | "properties": {
28 | "foo": {}
29 | }
30 | },
31 | "tests": [
32 | {
33 | "description": "not required by default",
34 | "data": {},
35 | "valid": true
36 | }
37 | ]
38 | }
39 | ]
40 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema.js:
--------------------------------------------------------------------------------
1 | var tape = require('tape')
2 | var fs = require('fs')
3 | var validator = require('../')
4 |
5 | var files = fs.readdirSync(__dirname+'/json-schema-draft4')
6 | .map(function(file) {
7 | if (file === 'definitions.json') return null
8 | if (file === 'refRemote.json') return null
9 | return require('./json-schema-draft4/'+file)
10 | })
11 | .filter(Boolean)
12 |
13 | files.forEach(function(file) {
14 | file.forEach(function(f) {
15 | tape('json-schema-test-suite '+f.description, function(t) {
16 | var validate = validator(f.schema)
17 | f.tests.forEach(function(test) {
18 | t.same(validate(test.data), test.valid, test.description)
19 | })
20 | t.end()
21 | })
22 | })
23 | })
24 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/error.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | function ValidationError (errors) {
4 | this.name = 'ValidationError'
5 | this.errors = errors
6 | }
7 |
8 | ValidationError.prototype = Error.prototype
9 |
10 | module.exports = ValidationError
11 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/index.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | var schemas = require('./schemas')
4 | var ValidationError = require('./error')
5 | var validator = require('is-my-json-valid')
6 |
7 | var runner = function (schema, data, cb) {
8 | var validate = validator(schema, {
9 | greedy: true,
10 | verbose: true,
11 | schemas: schemas
12 | })
13 |
14 | var valid = false
15 |
16 | if (data !== undefined) {
17 | // execute is-my-json-valid
18 | valid = validate(data)
19 | }
20 |
21 | // callback?
22 | if (!cb) {
23 | return validate.errors ? false : true
24 | } else {
25 | return cb(validate.errors ? new ValidationError(validate.errors) : null, valid)
26 | }
27 |
28 | return valid
29 | }
30 |
31 | module.exports = function (data, cb) {
32 | return runner(schemas.har, data, cb)
33 | }
34 |
35 | Object.keys(schemas).map(function (name) {
36 | module.exports[name] = function (data, cb) {
37 | return runner(schemas[name], data, cb)
38 | }
39 | })
40 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/schemas/cache.json:
--------------------------------------------------------------------------------
1 | {
2 | "properties": {
3 | "beforeRequest": {
4 | "$ref": "#cacheEntry"
5 | },
6 | "afterRequest": {
7 | "$ref": "#cacheEntry"
8 | },
9 | "comment": {
10 | "type": "string"
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/schemas/cacheEntry.json:
--------------------------------------------------------------------------------
1 | {
2 | "oneOf": [{
3 | "type": "object",
4 | "optional": true,
5 | "required": [
6 | "lastAccess",
7 | "eTag",
8 | "hitCount"
9 | ],
10 | "properties": {
11 | "expires": {
12 | "type": "string"
13 | },
14 | "lastAccess": {
15 | "type": "string"
16 | },
17 | "eTag": {
18 | "type": "string"
19 | },
20 | "hitCount": {
21 | "type": "integer"
22 | },
23 | "comment": {
24 | "type": "string"
25 | }
26 | }
27 | }, {
28 | "type": null,
29 | "additionalProperties": false
30 | }]
31 | }
32 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/schemas/content.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "object",
3 | "required": [
4 | "size",
5 | "mimeType"
6 | ],
7 | "properties": {
8 | "size": {
9 | "type": "integer"
10 | },
11 | "compression": {
12 | "type": "integer"
13 | },
14 | "mimeType": {
15 | "type": "string"
16 | },
17 | "text": {
18 | "type": "string"
19 | },
20 | "encoding": {
21 | "type": "string"
22 | },
23 | "comment": {
24 | "type": "string"
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/schemas/cookie.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "object",
3 | "required": [
4 | "name",
5 | "value"
6 | ],
7 | "properties": {
8 | "name": {
9 | "type": "string"
10 | },
11 | "value": {
12 | "type": "string"
13 | },
14 | "path": {
15 | "type": "string"
16 | },
17 | "domain": {
18 | "type": "string"
19 | },
20 | "expires": {
21 | "type": ["string", "null"],
22 | "format": "date-time"
23 | },
24 | "httpOnly": {
25 | "type": "boolean"
26 | },
27 | "secure": {
28 | "type": "boolean"
29 | },
30 | "comment": {
31 | "type": "string"
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/schemas/creator.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "object",
3 | "required": [
4 | "name",
5 | "version"
6 | ],
7 | "properties": {
8 | "name": {
9 | "type": "string"
10 | },
11 | "version": {
12 | "type": "string"
13 | },
14 | "comment": {
15 | "type": "string"
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/schemas/entry.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "object",
3 | "optional": true,
4 | "required": [
5 | "startedDateTime",
6 | "time",
7 | "request",
8 | "response",
9 | "cache",
10 | "timings"
11 | ],
12 | "properties": {
13 | "pageref": {
14 | "type": "string"
15 | },
16 | "startedDateTime": {
17 | "type": "string",
18 | "format": "date-time",
19 | "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"
20 | },
21 | "time": {
22 | "type": "number",
23 | "min": 0
24 | },
25 | "request": {
26 | "$ref": "#request"
27 | },
28 | "response": {
29 | "$ref": "#response"
30 | },
31 | "cache": {
32 | "$ref": "#cache"
33 | },
34 | "timings": {
35 | "$ref": "#timings"
36 | },
37 | "serverIPAddress": {
38 | "type": "string",
39 | "format": "ipv4"
40 | },
41 | "connection": {
42 | "type": "string"
43 | },
44 | "comment": {
45 | "type": "string"
46 | }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/schemas/har.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "object",
3 | "required": [
4 | "log"
5 | ],
6 | "properties": {
7 | "log": {
8 | "$ref": "#log"
9 | }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/schemas/log.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "object",
3 | "required": [
4 | "version",
5 | "creator",
6 | "entries"
7 | ],
8 | "properties": {
9 | "version": {
10 | "type": "string"
11 | },
12 | "creator": {
13 | "$ref": "#creator"
14 | },
15 | "browser": {
16 | "$ref": "#creator"
17 | },
18 | "pages": {
19 | "type": "array",
20 | "items": {
21 | "$ref": "#page"
22 | }
23 | },
24 | "entries": {
25 | "type": "array",
26 | "items": {
27 | "$ref": "#entry"
28 | }
29 | },
30 | "comment": {
31 | "type": "string"
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/schemas/page.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "object",
3 | "optional": true,
4 | "required": [
5 | "startedDateTime",
6 | "id",
7 | "title",
8 | "pageTimings"
9 | ],
10 | "properties": {
11 | "startedDateTime": {
12 | "type": "string",
13 | "format": "date-time",
14 | "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"
15 | },
16 | "id": {
17 | "type": "string",
18 | "unique": true
19 | },
20 | "title": {
21 | "type": "string"
22 | },
23 | "pageTimings": {
24 | "$ref": "#pageTimings"
25 | },
26 | "comment": {
27 | "type": "string"
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/schemas/pageTimings.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "object",
3 | "properties": {
4 | "onContentLoad": {
5 | "type": "number",
6 | "min": -1
7 | },
8 | "onLoad": {
9 | "type": "number",
10 | "min": -1
11 | },
12 | "comment": {
13 | "type": "string"
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/schemas/postData.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "object",
3 | "optional": true,
4 | "required": [
5 | "mimeType"
6 | ],
7 | "properties": {
8 | "mimeType": {
9 | "type": "string"
10 | },
11 | "text": {
12 | "type": "string"
13 | },
14 | "params": {
15 | "type": "array",
16 | "required": [
17 | "name"
18 | ],
19 | "properties": {
20 | "name": {
21 | "type": "string"
22 | },
23 | "value": {
24 | "type": "string"
25 | },
26 | "fileName": {
27 | "type": "string"
28 | },
29 | "contentType": {
30 | "type": "string"
31 | },
32 | "comment": {
33 | "type": "string"
34 | }
35 | }
36 | },
37 | "comment": {
38 | "type": "string"
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/schemas/record.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "object",
3 | "required": [
4 | "name",
5 | "value"
6 | ],
7 | "properties": {
8 | "name": {
9 | "type": "string"
10 | },
11 | "value": {
12 | "type": "string"
13 | },
14 | "comment": {
15 | "type": "string"
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/schemas/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "object",
3 | "required": [
4 | "method",
5 | "url",
6 | "httpVersion",
7 | "cookies",
8 | "headers",
9 | "queryString",
10 | "headersSize",
11 | "bodySize"
12 | ],
13 | "properties": {
14 | "method": {
15 | "type": "string"
16 | },
17 | "url": {
18 | "type": "string",
19 | "format": "uri"
20 | },
21 | "httpVersion": {
22 | "type": "string"
23 | },
24 | "cookies": {
25 | "type": "array",
26 | "items": {
27 | "$ref": "#cookie"
28 | }
29 | },
30 | "headers": {
31 | "type": "array",
32 | "items": {
33 | "$ref": "#record"
34 | }
35 | },
36 | "queryString": {
37 | "type": "array",
38 | "items": {
39 | "$ref": "#record"
40 | }
41 | },
42 | "postData": {
43 | "$ref": "#postData"
44 | },
45 | "headersSize": {
46 | "type": "integer"
47 | },
48 | "bodySize": {
49 | "type": "integer"
50 | },
51 | "comment": {
52 | "type": "string"
53 | }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/schemas/response.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "object",
3 | "required": [
4 | "status",
5 | "statusText",
6 | "httpVersion",
7 | "cookies",
8 | "headers",
9 | "content",
10 | "redirectURL",
11 | "headersSize",
12 | "bodySize"
13 | ],
14 | "properties": {
15 | "status": {
16 | "type": "integer"
17 | },
18 | "statusText": {
19 | "type": "string"
20 | },
21 | "httpVersion": {
22 | "type": "string"
23 | },
24 | "cookies": {
25 | "type": "array",
26 | "items": {
27 | "$ref": "#cookie"
28 | }
29 | },
30 | "headers": {
31 | "type": "array",
32 | "items": {
33 | "$ref": "#record"
34 | }
35 | },
36 | "content": {
37 | "$ref": "#content"
38 | },
39 | "redirectURL": {
40 | "type": "string"
41 | },
42 | "headersSize": {
43 | "type": "integer"
44 | },
45 | "bodySize": {
46 | "type": "integer"
47 | },
48 | "comment": {
49 | "type": "string"
50 | }
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/har-validator/src/schemas/timings.json:
--------------------------------------------------------------------------------
1 | {
2 | "required": [
3 | "send",
4 | "wait",
5 | "receive"
6 | ],
7 | "properties": {
8 | "dns": {
9 | "type": "number",
10 | "min": -1
11 | },
12 | "connect": {
13 | "type": "number",
14 | "min": -1
15 | },
16 | "blocked": {
17 | "type": "number",
18 | "min": -1
19 | },
20 | "send": {
21 | "type": "number",
22 | "min": -1
23 | },
24 | "wait": {
25 | "type": "number",
26 | "min": -1
27 | },
28 | "receive": {
29 | "type": "number",
30 | "min": -1
31 | },
32 | "ssl": {
33 | "type": "number",
34 | "min": -1
35 | },
36 | "comment": {
37 | "type": "string"
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/.npmignore:
--------------------------------------------------------------------------------
1 | .idea
2 | *.iml
3 | npm-debug.log
4 | dump.rdb
5 | node_modules
6 | components
7 | build
8 | results.tap
9 | results.xml
10 | npm-shrinkwrap.json
11 | config.json
12 | .DS_Store
13 | */.DS_Store
14 | */*/.DS_Store
15 | ._*
16 | */._*
17 | */*/._*
18 | coverage.*
19 | lib-cov
20 |
21 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 |
3 | node_js:
4 | - 0.10
5 |
6 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/Makefile:
--------------------------------------------------------------------------------
1 | test:
2 | @node node_modules/lab/bin/lab -a code
3 | test-cov:
4 | @node node_modules/lab/bin/lab -a code -t 100
5 | test-cov-html:
6 | @node node_modules/lab/bin/lab -a code -r html -o coverage.html
7 |
8 | .PHONY: test test-cov test-cov-html
9 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "hawk",
3 | "main": "lib/browser.js",
4 | "license": "./LICENSE",
5 | "ignore": [
6 | "!lib",
7 | "lib/*",
8 | "!lib/browser.js",
9 | "index.js"
10 | ],
11 | "keywords": [
12 | "http",
13 | "authentication",
14 | "scheme",
15 | "hawk"
16 | ],
17 | "authors": [
18 | "Eran Hammer "
19 | ],
20 | "repository": {
21 | "type": "git",
22 | "url": "git://github.com/hueniverse/hawk.git"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "hawk",
3 | "repo": "hueniverse/hawk",
4 | "description": "HTTP Hawk Authentication Scheme",
5 | "version": "1.0.0",
6 | "keywords": [
7 | "http",
8 | "authentication",
9 | "scheme",
10 | "hawk"
11 | ],
12 | "dependencies": {},
13 | "development": {},
14 | "license": "BSD",
15 | "main": "lib/browser.js",
16 | "scripts": [
17 | "lib/browser.js"
18 | ]
19 | }
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/images/hawk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/node_modules/request/node_modules/hawk/images/hawk.png
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/node_modules/request/node_modules/hawk/images/logo.png
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib');
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/lib/index.js:
--------------------------------------------------------------------------------
1 | // Export sub-modules
2 |
3 | exports.error = exports.Error = require('boom');
4 | exports.sntp = require('sntp');
5 |
6 | exports.server = require('./server');
7 | exports.client = require('./client');
8 | exports.crypto = require('./crypto');
9 | exports.utils = require('./utils');
10 |
11 | exports.uri = {
12 | authenticate: exports.server.authenticateBewit,
13 | getBewit: exports.client.getBewit
14 | };
15 |
16 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/boom/.npmignore:
--------------------------------------------------------------------------------
1 | .idea
2 | *.iml
3 | npm-debug.log
4 | dump.rdb
5 | node_modules
6 | results.tap
7 | results.xml
8 | npm-shrinkwrap.json
9 | config.json
10 | .DS_Store
11 | */.DS_Store
12 | */*/.DS_Store
13 | ._*
14 | */._*
15 | */*/._*
16 | coverage.*
17 | lib-cov
18 |
19 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/boom/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 |
3 | node_js:
4 | - 0.10
5 | - 0.12
6 | - iojs
7 |
8 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/boom/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md).
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/boom/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib');
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/cryptiles/.npmignore:
--------------------------------------------------------------------------------
1 | .idea
2 | *.iml
3 | npm-debug.log
4 | dump.rdb
5 | node_modules
6 | results.tap
7 | results.xml
8 | npm-shrinkwrap.json
9 | config.json
10 | .DS_Store
11 | */.DS_Store
12 | */*/.DS_Store
13 | ._*
14 | */._*
15 | */*/._*
16 | coverage.*
17 | lib-cov
18 |
19 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/cryptiles/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 |
3 | node_js:
4 | - 0.10
5 |
6 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/cryptiles/Makefile:
--------------------------------------------------------------------------------
1 | test:
2 | node node_modules/lab/bin/lab
3 | test-cov:
4 | node node_modules/lab/bin/lab -t 100
5 | test-cov-html:
6 | node node_modules/lab/bin/lab -r html -o coverage.html
7 |
8 | .PHONY: test test-cov test-cov-html
9 |
10 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/cryptiles/README.md:
--------------------------------------------------------------------------------
1 | cryptiles
2 | =========
3 |
4 | General purpose crypto utilities
5 |
6 | [](http://travis-ci.org/hapijs/cryptiles)
7 |
8 | ## Methods
9 |
10 | ### `randomString( size)`
11 | Returns a cryptographically strong pseudo-random data string. Takes a size argument for the length of the string.
12 |
13 | ### `fixedTimeComparison( a, b)`
14 | Compare two strings using fixed time algorithm (to prevent time-based analysis of MAC digest match). Returns `true` if the strings match, `false` if they differ.
15 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/cryptiles/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib');
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/hoek/.npmignore:
--------------------------------------------------------------------------------
1 | .idea
2 | *.iml
3 | npm-debug.log
4 | dump.rdb
5 | node_modules
6 | results.tap
7 | results.xml
8 | npm-shrinkwrap.json
9 | config.json
10 | .DS_Store
11 | */.DS_Store
12 | */*/.DS_Store
13 | ._*
14 | */._*
15 | */*/._*
16 | coverage.*
17 | lib-cov
18 | complexity.md
19 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/hoek/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 |
3 | node_js:
4 | - 0.10
5 | - 0.12
6 | - iojs
7 |
8 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/hoek/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md).
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/hoek/Makefile:
--------------------------------------------------------------------------------
1 | test:
2 | @node node_modules/lab/bin/lab -a code
3 | test-cov:
4 | @node node_modules/lab/bin/lab -a code -t 100 -L
5 | test-cov-html:
6 | @node node_modules/lab/bin/lab -a code -r html -o coverage.html
7 |
8 | .PHONY: test test-cov test-cov-html
9 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/hoek/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib');
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/ignore.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/ignore.txt
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test1.js:
--------------------------------------------------------------------------------
1 | exports.x = 1;
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test2.js:
--------------------------------------------------------------------------------
1 | exports.y = 2;
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test3.js:
--------------------------------------------------------------------------------
1 | exports.z = 3;
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/sntp/.npmignore:
--------------------------------------------------------------------------------
1 | .idea
2 | *.iml
3 | npm-debug.log
4 | dump.rdb
5 | node_modules
6 | results.tap
7 | results.xml
8 | npm-shrinkwrap.json
9 | config.json
10 | .DS_Store
11 | */.DS_Store
12 | */*/.DS_Store
13 | ._*
14 | */._*
15 | */*/._*
16 | coverage.*
17 | lib-cov
18 |
19 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/sntp/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 |
3 | node_js:
4 | - 0.10
5 |
6 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/sntp/Makefile:
--------------------------------------------------------------------------------
1 | test:
2 | @node node_modules/lab/bin/lab
3 | test-cov:
4 | @node node_modules/lab/bin/lab -t 100 -m 3000
5 | test-cov-html:
6 | @node node_modules/lab/bin/lab -r html -o coverage.html
7 |
8 | .PHONY: test test-cov test-cov-html
9 |
10 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/sntp/examples/offset.js:
--------------------------------------------------------------------------------
1 | var Sntp = require('../lib');
2 |
3 | // Request offset once
4 |
5 | Sntp.offset(function (err, offset) {
6 |
7 | console.log(offset); // New (served fresh)
8 |
9 | // Request offset again
10 |
11 | Sntp.offset(function (err, offset) {
12 |
13 | console.log(offset); // Identical (served from cache)
14 | });
15 | });
16 |
17 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/sntp/examples/time.js:
--------------------------------------------------------------------------------
1 | var Sntp = require('../lib');
2 |
3 | // All options are optional
4 |
5 | var options = {
6 | host: 'nist1-sj.ustiming.org', // Defaults to pool.ntp.org
7 | port: 123, // Defaults to 123 (NTP)
8 | resolveReference: true, // Default to false (not resolving)
9 | timeout: 1000 // Defaults to zero (no timeout)
10 | };
11 |
12 | // Request server time
13 |
14 | Sntp.time(options, function (err, time) {
15 |
16 | if (err) {
17 | console.log('Failed: ' + err.message);
18 | process.exit(1);
19 | }
20 |
21 | console.log(time);
22 | console.log('Local clock is off by: ' + time.t + ' milliseconds');
23 | process.exit(0);
24 | });
25 |
26 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/hawk/node_modules/sntp/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib');
--------------------------------------------------------------------------------
/node_modules/request/node_modules/http-signature/.dir-locals.el:
--------------------------------------------------------------------------------
1 | ((nil . ((indent-tabs-mode . nil)
2 | (tab-width . 8)
3 | (fill-column . 80)))
4 | (js-mode . ((js-indent-level . 2)
5 | (indent-tabs-mode . nil)
6 | )))
--------------------------------------------------------------------------------
/node_modules/request/node_modules/http-signature/.npmignore:
--------------------------------------------------------------------------------
1 | .gitmodules
2 | deps
3 | docs
4 | Makefile
5 | node_modules
6 | test
7 | tools
--------------------------------------------------------------------------------
/node_modules/request/node_modules/http-signature/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright Joyent, Inc. All rights reserved.
2 | Permission is hereby granted, free of charge, to any person obtaining a copy
3 | of this software and associated documentation files (the "Software"), to
4 | deal in the Software without restriction, including without limitation the
5 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
6 | sell copies of the Software, and to permit persons to whom the Software is
7 | furnished to do so, subject to the following conditions:
8 |
9 | The above copyright notice and this permission notice shall be included in
10 | all copies or substantial portions of the Software.
11 |
12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
18 | IN THE SOFTWARE.
19 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/http-signature/lib/index.js:
--------------------------------------------------------------------------------
1 | // Copyright 2011 Joyent, Inc. All rights reserved.
2 |
3 | var parser = require('./parser');
4 | var signer = require('./signer');
5 | var verify = require('./verify');
6 | var util = require('./util');
7 |
8 |
9 |
10 | ///--- API
11 |
12 | module.exports = {
13 |
14 | parse: parser.parseRequest,
15 | parseRequest: parser.parseRequest,
16 |
17 | sign: signer.signRequest,
18 | signRequest: signer.signRequest,
19 |
20 | sshKeyToPEM: util.sshKeyToPEM,
21 | sshKeyFingerprint: util.fingerprint,
22 | pemToRsaSSHKey: util.pemToRsaSSHKey,
23 |
24 | verify: verify.verifySignature,
25 | verifySignature: verify.verifySignature
26 | };
27 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/http-signature/node_modules/asn1/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/http-signature/node_modules/asn1/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2011 Mark Cavage, All rights reserved.
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE
20 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/errors.js:
--------------------------------------------------------------------------------
1 | // Copyright 2011 Mark Cavage All rights reserved.
2 |
3 |
4 | module.exports = {
5 |
6 | newInvalidAsn1Error: function(msg) {
7 | var e = new Error();
8 | e.name = 'InvalidAsn1Error';
9 | e.message = msg || '';
10 | return e;
11 | }
12 |
13 | };
14 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/index.js:
--------------------------------------------------------------------------------
1 | // Copyright 2011 Mark Cavage All rights reserved.
2 |
3 | var errors = require('./errors');
4 | var types = require('./types');
5 |
6 | var Reader = require('./reader');
7 | var Writer = require('./writer');
8 |
9 |
10 | ///--- Exports
11 |
12 | module.exports = {
13 |
14 | Reader: Reader,
15 |
16 | Writer: Writer
17 |
18 | };
19 |
20 | for (var t in types) {
21 | if (types.hasOwnProperty(t))
22 | module.exports[t] = types[t];
23 | }
24 | for (var e in errors) {
25 | if (errors.hasOwnProperty(e))
26 | module.exports[e] = errors[e];
27 | }
28 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/types.js:
--------------------------------------------------------------------------------
1 | // Copyright 2011 Mark Cavage All rights reserved.
2 |
3 |
4 | module.exports = {
5 | EOC: 0,
6 | Boolean: 1,
7 | Integer: 2,
8 | BitString: 3,
9 | OctetString: 4,
10 | Null: 5,
11 | OID: 6,
12 | ObjectDescriptor: 7,
13 | External: 8,
14 | Real: 9, // float
15 | Enumeration: 10,
16 | PDV: 11,
17 | Utf8String: 12,
18 | RelativeOID: 13,
19 | Sequence: 16,
20 | Set: 17,
21 | NumericString: 18,
22 | PrintableString: 19,
23 | T61String: 20,
24 | VideotexString: 21,
25 | IA5String: 22,
26 | UTCTime: 23,
27 | GeneralizedTime: 24,
28 | GraphicString: 25,
29 | VisibleString: 26,
30 | GeneralString: 28,
31 | UniversalString: 29,
32 | CharacterString: 30,
33 | BMPString: 31,
34 | Constructor: 32,
35 | Context: 128
36 | };
37 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/index.js:
--------------------------------------------------------------------------------
1 | // Copyright 2011 Mark Cavage All rights reserved.
2 |
3 | // If you have no idea what ASN.1 or BER is, see this:
4 | // ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc
5 |
6 | var Ber = require('./ber/index');
7 |
8 |
9 |
10 | ///--- Exported API
11 |
12 | module.exports = {
13 |
14 | Ber: Ber,
15 |
16 | BerReader: Ber.Reader,
17 |
18 | BerWriter: Ber.Writer
19 |
20 | };
21 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/http-signature/node_modules/ctype/.npmignore:
--------------------------------------------------------------------------------
1 | tst/
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/isstream/.npmignore:
--------------------------------------------------------------------------------
1 | *.tgz
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/isstream/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.8"
4 | - "0.10"
5 | - "0.11"
6 | branches:
7 | only:
8 | - master
9 | notifications:
10 | email:
11 | - rod@vagg.org
12 | script: npm test
13 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/isstream/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 | =====================
3 |
4 | Copyright (c) 2015 Rod Vagg
5 | ---------------------------
6 |
7 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8 |
9 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10 |
11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/isstream/isstream.js:
--------------------------------------------------------------------------------
1 | var stream = require('stream')
2 |
3 |
4 | function isStream (obj) {
5 | return obj instanceof stream.Stream
6 | }
7 |
8 |
9 | function isReadable (obj) {
10 | return isStream(obj) && typeof obj._read == 'function' && typeof obj._readableState == 'object'
11 | }
12 |
13 |
14 | function isWritable (obj) {
15 | return isStream(obj) && typeof obj._write == 'function' && typeof obj._writableState == 'object'
16 | }
17 |
18 |
19 | function isDuplex (obj) {
20 | return isReadable(obj) && isWritable(obj)
21 | }
22 |
23 |
24 | module.exports = isStream
25 | module.exports.isReadable = isReadable
26 | module.exports.isWritable = isWritable
27 | module.exports.isDuplex = isDuplex
28 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/json-stringify-safe/stringify.js:
--------------------------------------------------------------------------------
1 | module.exports = stringify;
2 |
3 | function getSerialize (fn, decycle) {
4 | var seen = [], keys = [];
5 | decycle = decycle || function(key, value) {
6 | return '[Circular ' + getPath(value, seen, keys) + ']'
7 | };
8 | return function(key, value) {
9 | var ret = value;
10 | if (typeof value === 'object' && value) {
11 | if (seen.indexOf(value) !== -1)
12 | ret = decycle(key, value);
13 | else {
14 | seen.push(value);
15 | keys.push(key);
16 | }
17 | }
18 | if (fn) ret = fn(key, ret);
19 | return ret;
20 | }
21 | }
22 |
23 | function getPath (value, seen, keys) {
24 | var index = seen.indexOf(value);
25 | var path = [ keys[index] ];
26 | for (index--; index >= 0; index--) {
27 | if (seen[index][ path[0] ] === value) {
28 | value = seen[index];
29 | path.unshift(keys[index]);
30 | }
31 | }
32 | return '~' + path.join('.');
33 | }
34 |
35 | function stringify(obj, fn, spaces, decycle) {
36 | return JSON.stringify(obj, getSerialize(fn, decycle), spaces);
37 | }
38 |
39 | stringify.getSerialize = getSerialize;
40 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/mime-types/node_modules/mime-db/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * mime-db
3 | * Copyright(c) 2014 Jonathan Ong
4 | * MIT Licensed
5 | */
6 |
7 | /**
8 | * Module exports.
9 | */
10 |
11 | module.exports = require('./db.json')
12 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/node-uuid/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .DS_Store
3 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/node-uuid/benchmark/benchmark-native.c:
--------------------------------------------------------------------------------
1 | /*
2 | Test performance of native C UUID generation
3 |
4 | To Compile: cc -luuid benchmark-native.c -o benchmark-native
5 | */
6 |
7 | #include
8 | #include
9 | #include
10 | #include
11 |
12 | int main() {
13 | uuid_t myid;
14 | char buf[36+1];
15 | int i;
16 | struct timeval t;
17 | double start, finish;
18 |
19 | gettimeofday(&t, NULL);
20 | start = t.tv_sec + t.tv_usec/1e6;
21 |
22 | int n = 2e5;
23 | for (i = 0; i < n; i++) {
24 | uuid_generate(myid);
25 | uuid_unparse(myid, buf);
26 | }
27 |
28 | gettimeofday(&t, NULL);
29 | finish = t.tv_sec + t.tv_usec/1e6;
30 | double dur = finish - start;
31 |
32 | printf("%d uuids/sec", (int)(n/dur));
33 | return 0;
34 | }
35 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/node-uuid/bin/uuid:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var path = require('path');
4 | var uuid = require(path.join(__dirname, '..'));
5 |
6 | var arg = process.argv[2];
7 |
8 | if ('--help' === arg) {
9 | console.log('\n USAGE: uuid [version] [options]\n\n');
10 | console.log(' options:\n');
11 | console.log(' --help Display this message and exit\n');
12 | process.exit(0);
13 | }
14 |
15 | if (null == arg) {
16 | console.log(uuid());
17 | process.exit(0);
18 | }
19 |
20 | if ('v1' !== arg && 'v4' !== arg) {
21 | console.error('Version must be RFC4122 version 1 or version 4, denoted as "v1" or "v4"');
22 | process.exit(1);
23 | }
24 |
25 | console.log(uuid[arg]());
26 | process.exit(0);
27 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/node-uuid/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "node-uuid",
3 | "version": "1.4.3",
4 | "homepage": "https://github.com/broofa/node-uuid",
5 | "authors": [
6 | "Robert Kieffer "
7 | ],
8 | "description": "Rigorous implementation of RFC4122 (v1 and v4) UUIDs.",
9 | "main": "uuid.js",
10 | "keywords": [
11 | "uuid",
12 | "gid",
13 | "rfc4122"
14 | ],
15 | "license": "MIT",
16 | "ignore": [
17 | "**/.*",
18 | "node_modules",
19 | "bower_components",
20 | "test",
21 | "tests"
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/node-uuid/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "node-uuid",
3 | "repo": "broofa/node-uuid",
4 | "description": "Rigorous implementation of RFC4122 (v1 and v4) UUIDs.",
5 | "version": "1.4.3",
6 | "author": "Robert Kieffer ",
7 | "contributors": [
8 | {"name": "Christoph Tavan ", "github": "https://github.com/ctavan"}
9 | ],
10 | "keywords": ["uuid", "guid", "rfc4122"],
11 | "dependencies": {},
12 | "development": {},
13 | "main": "uuid.js",
14 | "scripts": [
15 | "uuid.js"
16 | ],
17 | "license": "MIT"
18 | }
19 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/node-uuid/test/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/oauth-sign/README.md:
--------------------------------------------------------------------------------
1 | oauth-sign
2 | ==========
3 |
4 | OAuth 1 signing. Formerly a vendor lib in mikeal/request, now a standalone module.
5 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/oauth-sign/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "author": {
3 | "name": "Mikeal Rogers",
4 | "email": "mikeal.rogers@gmail.com",
5 | "url": "http://www.futurealoof.com"
6 | },
7 | "name": "oauth-sign",
8 | "description": "OAuth 1 signing. Formerly a vendor lib in mikeal/request, now a standalone module.",
9 | "version": "0.6.0",
10 | "repository": {
11 | "url": "https://github.com/mikeal/oauth-sign"
12 | },
13 | "main": "index.js",
14 | "dependencies": {},
15 | "devDependencies": {},
16 | "optionalDependencies": {},
17 | "engines": {
18 | "node": "*"
19 | },
20 | "scripts": {
21 | "test": "node test.js"
22 | },
23 | "readme": "oauth-sign\n==========\n\nOAuth 1 signing. Formerly a vendor lib in mikeal/request, now a standalone module. \n",
24 | "readmeFilename": "README.md",
25 | "bugs": {
26 | "url": "https://github.com/mikeal/oauth-sign/issues"
27 | },
28 | "homepage": "https://github.com/mikeal/oauth-sign",
29 | "_id": "oauth-sign@0.6.0",
30 | "_from": "oauth-sign@~0.6.0"
31 | }
32 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/qs/.jshintignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/qs/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "node": true,
3 |
4 | "curly": true,
5 | "latedef": true,
6 | "quotmark": true,
7 | "undef": true,
8 | "unused": true,
9 | "trailing": true
10 | }
11 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/qs/.npmignore:
--------------------------------------------------------------------------------
1 | .idea
2 | *.iml
3 | npm-debug.log
4 | dump.rdb
5 | node_modules
6 | results.tap
7 | results.xml
8 | npm-shrinkwrap.json
9 | config.json
10 | .DS_Store
11 | */.DS_Store
12 | */*/.DS_Store
13 | ._*
14 | */._*
15 | */*/._*
16 | coverage.*
17 | lib-cov
18 | complexity.md
19 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/qs/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 |
3 | node_js:
4 | - 0.10
5 | - 0.12
6 | - iojs
7 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/qs/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md).
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/qs/Makefile:
--------------------------------------------------------------------------------
1 | test:
2 | @node node_modules/lab/bin/lab -a code -L
3 | test-cov:
4 | @node node_modules/lab/bin/lab -a code -t 100 -L
5 | test-cov-html:
6 | @node node_modules/lab/bin/lab -a code -L -r html -o coverage.html
7 |
8 | .PHONY: test test-cov test-cov-html
9 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/qs/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib/');
2 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/qs/lib/index.js:
--------------------------------------------------------------------------------
1 | // Load modules
2 |
3 | var Stringify = require('./stringify');
4 | var Parse = require('./parse');
5 |
6 |
7 | // Declare internals
8 |
9 | var internals = {};
10 |
11 |
12 | module.exports = {
13 | stringify: Stringify,
14 | parse: Parse
15 | };
16 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/stringstream/.npmignore:
--------------------------------------------------------------------------------
1 | lib-cov
2 | *.seed
3 | *.log
4 | *.csv
5 | *.dat
6 | *.out
7 | *.pid
8 | *.gz
9 |
10 | pids
11 | logs
12 | results
13 |
14 | node_modules
15 | npm-debug.log
--------------------------------------------------------------------------------
/node_modules/request/node_modules/stringstream/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.4
4 | - 0.6
5 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/stringstream/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2012 Michael Hart (michael.hart.au@gmail.com)
2 |
3 | This project is free software released under the MIT license:
4 | http://www.opensource.org/licenses/mit-license.php
5 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/stringstream/example.js:
--------------------------------------------------------------------------------
1 | var fs = require('fs')
2 | var zlib = require('zlib')
3 | var strs = require('stringstream')
4 |
5 | var utf8Stream = fs.createReadStream('massiveLogFile.gz')
6 | .pipe(zlib.createGunzip())
7 | .pipe(strs('utf8'))
8 |
9 | utf8Stream.pipe(process.stdout)
10 |
11 | // Stream from utf8 to hex to base64... Why not, ay.
12 | var hex64Stream = fs.createReadStream('myFile')
13 | .pipe(strs('utf8', 'hex'))
14 | .pipe(strs('hex', 'base64'))
15 |
16 | hex64Stream.pipe(process.stdout)
17 |
18 | // Deals with base64 correctly by aligning chunks
19 | var stream = fs.createReadStream('myFile').pipe(strs('base64'))
20 |
21 | var base64Str = ''
22 |
23 | stream.on('data', function(data) { base64Str += data })
24 | stream.on('end', function() {
25 | console.log('My base64 encoded file is: ' + base64Str) // Wouldn't work with setEncoding()
26 | console.log('Original file is: ' + new Buffer(base64Str, 'base64'))
27 | })
28 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/tough-cookie/.editorconfig:
--------------------------------------------------------------------------------
1 | # This file is for unifying the coding style for different editors and IDEs
2 | # editorconfig.org
3 |
4 | root = true
5 |
6 | [*]
7 | end_of_line = lf
8 | charset = utf-8
9 | insert_final_newline = true
10 | trim_trailing_whitespace = true
11 | indent_style = space
12 | indent_size = 2
13 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/tough-cookie/.npmignore:
--------------------------------------------------------------------------------
1 | .idea
2 | node_modules/
3 | .*.sw[nmop]
4 | npm-debug.log
5 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/tough-cookie/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 | - "0.12"
5 | - iojs
6 | matrix:
7 | fast_finish: true
8 | allow_failures:
9 | - node_js: 0.11
10 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/tough-cookie/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing
2 |
3 | This is the contribution guide for tough-cookie.
4 |
5 | ## CLA
6 |
7 | As with all Salesforce open-source projects, tough-cookie requires a Contributor License Agreement to be signed by you (or your company).
8 |
9 |
10 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/tough-cookie/tough-cookie-deps.tsv:
--------------------------------------------------------------------------------
1 | async (0.1.18) MIT (http://github.com/caolan/async/raw/master/LICENSE) node_modules/async/package.json
2 | diff (1.0.8) BSD (http://github.com/kpdecker/jsdiff/blob/master/LICENSE) node_modules/vows/node_modules/diff/package.json
3 | eyes (0.1.8) MIT License (https://spdx.org/licenses/MIT) node_modules/vows/node_modules/eyes/package.json
4 | punycode (1.0.0) MIT (http://mths.be/mit) node_modules/punycode/package.json
5 | tough-cookie (0.12.1) MIT License (https://spdx.org/licenses/MIT) package.json
6 | vows (0.7.0) MIT License (https://spdx.org/licenses/MIT) node_modules/vows/LICENSE
7 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/tunnel-agent/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "node": true,
3 | "asi": true,
4 | "laxcomma": true
5 | }
6 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/tunnel-agent/README.md:
--------------------------------------------------------------------------------
1 | tunnel-agent
2 | ============
3 |
4 | HTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module.
5 |
--------------------------------------------------------------------------------
/node_modules/request/node_modules/tunnel-agent/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "author": {
3 | "name": "Mikeal Rogers",
4 | "email": "mikeal.rogers@gmail.com",
5 | "url": "http://www.futurealoof.com"
6 | },
7 | "name": "tunnel-agent",
8 | "description": "HTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module.",
9 | "version": "0.4.0",
10 | "repository": {
11 | "url": "https://github.com/mikeal/tunnel-agent"
12 | },
13 | "main": "index.js",
14 | "dependencies": {},
15 | "devDependencies": {},
16 | "optionalDependencies": {},
17 | "engines": {
18 | "node": "*"
19 | },
20 | "readme": "tunnel-agent\n============\n\nHTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module.\n",
21 | "readmeFilename": "README.md",
22 | "bugs": {
23 | "url": "https://github.com/mikeal/tunnel-agent/issues"
24 | },
25 | "homepage": "https://github.com/mikeal/tunnel-agent",
26 | "_id": "tunnel-agent@0.4.0",
27 | "_from": "tunnel-agent@~0.4.0"
28 | }
29 |
--------------------------------------------------------------------------------
/node_modules/semver/.npmignore:
--------------------------------------------------------------------------------
1 | # nada
2 |
--------------------------------------------------------------------------------
/node_modules/semver/Makefile:
--------------------------------------------------------------------------------
1 | files = semver.browser.js \
2 | semver.min.js \
3 | semver.browser.js.gz \
4 | semver.min.js.gz
5 |
6 | all: $(files)
7 |
8 | clean:
9 | rm -f $(files)
10 |
11 | semver.browser.js: head.js semver.js foot.js
12 | ( cat head.js; \
13 | cat semver.js | \
14 | egrep -v '^ *\/\* nomin \*\/' | \
15 | perl -pi -e 's/debug\([^\)]+\)//g'; \
16 | cat foot.js ) > semver.browser.js
17 |
18 | semver.min.js: semver.browser.js
19 | uglifyjs -m semver.min.js
20 |
21 | %.gz: %
22 | gzip --stdout -9 <$< >$@
23 |
24 | .PHONY: all clean
25 |
--------------------------------------------------------------------------------
/node_modules/semver/foot.js:
--------------------------------------------------------------------------------
1 |
2 | })(
3 | typeof exports === 'object' ? exports :
4 | typeof define === 'function' && define.amd ? {} :
5 | semver = {}
6 | );
7 |
--------------------------------------------------------------------------------
/node_modules/semver/head.js:
--------------------------------------------------------------------------------
1 | ;(function(exports) {
2 |
3 |
--------------------------------------------------------------------------------
/node_modules/semver/semver.browser.js.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/node_modules/semver/semver.browser.js.gz
--------------------------------------------------------------------------------
/node_modules/semver/semver.min.js.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liyangready/multiple-host/1097e32f30b4f0ddc573ff4b2b4eae438d0e80d3/node_modules/semver/semver.min.js.gz
--------------------------------------------------------------------------------
/node_modules/semver/test/amd.js:
--------------------------------------------------------------------------------
1 | var tap = require('tap');
2 | var test = tap.test;
3 |
4 | test('amd', function(t) {
5 | global.define = define;
6 | define.amd = true;
7 | var defined = null;
8 | function define(stuff) {
9 | defined = stuff;
10 | }
11 | var fromRequire = require('../');
12 | t.ok(defined, 'amd function called');
13 | t.equal(fromRequire, defined, 'amd stuff same as require stuff');
14 | t.end();
15 | });
16 |
--------------------------------------------------------------------------------
/node_modules/semver/test/clean.js:
--------------------------------------------------------------------------------
1 | var tap = require('tap');
2 | var test = tap.test;
3 | var semver = require('../semver.js');
4 | var clean = semver.clean;
5 |
6 | test('\nclean tests', function(t) {
7 | // [range, version]
8 | // Version should be detectable despite extra characters
9 | [
10 | ['1.2.3', '1.2.3'],
11 | [' 1.2.3 ', '1.2.3'],
12 | [' 1.2.3-4 ', '1.2.3-4'],
13 | [' 1.2.3-pre ', '1.2.3-pre'],
14 | [' =v1.2.3 ', '1.2.3'],
15 | ['v1.2.3', '1.2.3'],
16 | [' v1.2.3 ', '1.2.3'],
17 | ['\t1.2.3', '1.2.3']
18 | ].forEach(function(tuple) {
19 | var range = tuple[0];
20 | var version = tuple[1];
21 | var msg = 'clean(' + range + ') = ' + version;
22 | t.equal(clean(range), version, msg);
23 | });
24 | t.end();
25 | });
26 |
--------------------------------------------------------------------------------
/node_modules/semver/test/no-module.js:
--------------------------------------------------------------------------------
1 | var tap = require('tap');
2 | var test = tap.test;
3 |
4 | test('no module system', function(t) {
5 | var fs = require('fs');
6 | var vm = require('vm');
7 | var head = fs.readFileSync(require.resolve('../head.js'), 'utf8');
8 | var src = fs.readFileSync(require.resolve('../'), 'utf8');
9 | var foot = fs.readFileSync(require.resolve('../foot.js'), 'utf8');
10 | vm.runInThisContext(head + src + foot, 'semver.js');
11 |
12 | // just some basic poking to see if it did some stuff
13 | t.type(global.semver, 'object');
14 | t.type(global.semver.SemVer, 'function');
15 | t.type(global.semver.Range, 'function');
16 | t.ok(global.semver.satisfies('1.2.3', '1.2'));
17 | t.end();
18 | });
19 |
20 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "multiple-host",
3 | "main": "main.html",
4 | "node-main": "nodemain.js",
5 | "author": "leon.li@qunar.com",
6 | "window": {
7 | "width": 760,
8 | "height": 600,
9 | "position": "center",
10 | "min_width": 760,
11 | "min_height": 600,
12 | "max_width": 760,
13 | "max_height": 600,
14 | "frame": false,
15 | "toolbar": false
16 | },
17 | "packages": {
18 | "win": {
19 | "url": ""
20 | },
21 | "mac": {
22 | "url": ""
23 | }
24 | },
25 | "manifestUrl": "https://raw.githubusercontent.com/liyangready/static_source/master/multiple-host/package.json",
26 | "node-remote": "*",
27 | "version": "1.0.6"
28 | }
--------------------------------------------------------------------------------