├── .gitignore ├── Chute.applescript ├── ChuteNoRead.app └── Contents │ ├── Info.plist │ ├── MacOS │ └── applet │ ├── PkgInfo │ └── Resources │ ├── Finder.icns │ ├── Scripts │ └── main.scpt │ ├── applet.icns │ ├── applet.rsrc │ ├── description.rtfd │ └── TXT.rtf │ ├── icon.icns │ └── pyld.app │ └── Contents │ ├── Info.plist │ ├── MacOS │ └── applet │ ├── PkgInfo │ └── Resources │ ├── Scripts │ └── main.scpt │ ├── applet.icns │ ├── applet.rsrc │ ├── description.rtfd │ └── TXT.rtf │ ├── icon.icns │ └── keychaindump ├── ChuteRead.app └── Contents │ ├── Info.plist │ ├── MacOS │ └── applet │ ├── PkgInfo │ └── Resources │ ├── Finder.icns │ ├── Scripts │ └── main.scpt │ ├── applet.icns │ ├── applet.rsrc │ ├── description.rtfd │ └── TXT.rtf │ ├── icon.icns │ └── pyld.app │ └── Contents │ ├── Info.plist │ ├── MacOS │ └── applet │ ├── PkgInfo │ └── Resources │ ├── Scripts │ └── main.scpt │ ├── applet.icns │ ├── applet.rsrc │ ├── description.rtfd │ └── TXT.rtf │ ├── icon.icns │ └── keychaindump ├── Finder.icns ├── Full App.zip ├── Payload.applescript ├── PayloadNoRead.app └── Contents │ ├── Info.plist │ ├── MacOS │ └── applet │ ├── PkgInfo │ └── Resources │ ├── Scripts │ └── main.scpt │ ├── applet.icns │ ├── applet.rsrc │ ├── description.rtfd │ └── TXT.rtf │ ├── icon.icns │ └── keychaindump ├── PayloadRead.app └── Contents │ ├── Info.plist │ ├── MacOS │ └── applet │ ├── PkgInfo │ └── Resources │ ├── Scripts │ └── main.scpt │ ├── applet.icns │ ├── applet.rsrc │ ├── description.rtfd │ └── TXT.rtf │ ├── icon.icns │ └── keychaindump ├── README.md ├── app.json ├── icon.icns ├── index.js ├── node_modules ├── .bin │ ├── rimraf │ └── semver ├── balanced-match │ ├── .npmignore │ ├── LICENSE.md │ ├── README.md │ ├── index.js │ └── package.json ├── body-parser │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── lib │ │ ├── read.js │ │ └── types │ │ │ ├── json.js │ │ │ ├── raw.js │ │ │ ├── text.js │ │ │ └── urlencoded.js │ ├── node_modules │ │ ├── bytes │ │ │ ├── History.md │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── content-type │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── debug │ │ │ ├── .jshintrc │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── bower.json │ │ │ ├── browser.js │ │ │ ├── component.json │ │ │ ├── debug.js │ │ │ ├── node.js │ │ │ ├── node_modules │ │ │ │ └── ms │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── History.md │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ └── package.json │ │ ├── depd │ │ │ ├── History.md │ │ │ ├── LICENSE │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ └── compat │ │ │ │ │ ├── buffer-concat.js │ │ │ │ │ ├── callsite-tostring.js │ │ │ │ │ └── index.js │ │ │ └── package.json │ │ ├── http-errors │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ │ ├── inherits │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── inherits.js │ │ │ │ │ ├── inherits_browser.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test.js │ │ │ │ └── statuses │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── codes.json │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ └── package.json │ │ ├── iconv-lite │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── Changelog.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── encodings │ │ │ │ ├── dbcs-codec.js │ │ │ │ ├── dbcs-data.js │ │ │ │ ├── index.js │ │ │ │ ├── internal.js │ │ │ │ ├── sbcs-codec.js │ │ │ │ ├── sbcs-data-generated.js │ │ │ │ ├── sbcs-data.js │ │ │ │ ├── tables │ │ │ │ │ ├── big5-added.json │ │ │ │ │ ├── cp936.json │ │ │ │ │ ├── cp949.json │ │ │ │ │ ├── cp950.json │ │ │ │ │ ├── eucjp.json │ │ │ │ │ ├── gb18030-ranges.json │ │ │ │ │ ├── gbk-added.json │ │ │ │ │ └── shiftjis.json │ │ │ │ ├── utf16.js │ │ │ │ └── utf7.js │ │ │ ├── lib │ │ │ │ ├── bom-handling.js │ │ │ │ ├── extend-node.js │ │ │ │ ├── index.js │ │ │ │ └── streams.js │ │ │ └── package.json │ │ ├── on-finished │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ │ └── ee-first │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ └── package.json │ │ ├── qs │ │ │ ├── .eslintignore │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── bower.json │ │ │ ├── lib │ │ │ │ ├── index.js │ │ │ │ ├── parse.js │ │ │ │ ├── stringify.js │ │ │ │ └── utils.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── parse.js │ │ │ │ ├── stringify.js │ │ │ │ └── utils.js │ │ ├── raw-body │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ │ └── unpipe │ │ │ │ │ ├── HISTORY.md │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ └── package.json │ │ └── type-is │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ ├── media-typer │ │ │ │ ├── HISTORY.md │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ └── 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 │ │ │ └── package.json │ └── package.json ├── brace-expansion │ ├── .npmignore │ ├── README.md │ ├── example.js │ ├── index.js │ └── package.json ├── bson │ ├── HISTORY │ ├── LICENSE │ ├── README.md │ ├── alternate_parsers │ │ ├── bson.js │ │ └── faster_bson.js │ ├── bower.json │ ├── browser_build │ │ ├── bson.js │ │ └── package.json │ ├── deserializer_bak.js │ ├── lib │ │ └── bson │ │ │ ├── binary.js │ │ │ ├── binary_parser.js │ │ │ ├── bson.js │ │ │ ├── code.js │ │ │ ├── db_ref.js │ │ │ ├── double.js │ │ │ ├── float_parser.js │ │ │ ├── index.js │ │ │ ├── long.js │ │ │ ├── map.js │ │ │ ├── max_key.js │ │ │ ├── min_key.js │ │ │ ├── objectid.js │ │ │ ├── parser │ │ │ ├── calculate_size.js │ │ │ ├── deserializer.js │ │ │ └── serializer.js │ │ │ ├── regexp.js │ │ │ ├── symbol.js │ │ │ └── timestamp.js │ ├── package.json │ └── tools │ │ └── gleak.js ├── busboy │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── deps │ │ └── encoding │ │ │ ├── encoding-indexes.js │ │ │ └── encoding.js │ ├── lib │ │ ├── main.js │ │ ├── types │ │ │ ├── multipart.js │ │ │ └── urlencoded.js │ │ └── utils.js │ ├── node_modules │ │ └── readable-stream │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── duplex.js │ │ │ ├── float.patch │ │ │ ├── lib │ │ │ ├── _stream_duplex.js │ │ │ ├── _stream_passthrough.js │ │ │ ├── _stream_readable.js │ │ │ ├── _stream_transform.js │ │ │ └── _stream_writable.js │ │ │ ├── package.json │ │ │ ├── passthrough.js │ │ │ ├── readable.js │ │ │ ├── transform.js │ │ │ └── writable.js │ ├── package.json │ └── test │ │ ├── test-types-multipart.js │ │ ├── test-types-urlencoded.js │ │ ├── test-utils-decoder.js │ │ ├── test-utils-parse-params.js │ │ └── test.js ├── concat-map │ ├── .travis.yml │ ├── LICENSE │ ├── README.markdown │ ├── example │ │ └── map.js │ ├── index.js │ ├── package.json │ └── test │ │ └── map.js ├── connect-busboy │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── core-util-is │ ├── LICENSE │ ├── README.md │ ├── float.patch │ ├── lib │ │ └── util.js │ ├── package.json │ └── test.js ├── dicer │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── bench │ │ ├── dicer-bench-multipart-parser.js │ │ ├── formidable-bench-multipart-parser.js │ │ ├── multipartser-bench-multipart-parser.js │ │ ├── multiparty-bench-multipart-parser.js │ │ ├── parted-bench-multipart-parser.js │ │ └── parted-multipart.js │ ├── lib │ │ ├── Dicer.js │ │ ├── HeaderParser.js │ │ └── PartStream.js │ ├── node_modules │ │ └── readable-stream │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── duplex.js │ │ │ ├── float.patch │ │ │ ├── lib │ │ │ ├── _stream_duplex.js │ │ │ ├── _stream_passthrough.js │ │ │ ├── _stream_readable.js │ │ │ ├── _stream_transform.js │ │ │ └── _stream_writable.js │ │ │ ├── package.json │ │ │ ├── passthrough.js │ │ │ ├── readable.js │ │ │ ├── transform.js │ │ │ └── writable.js │ ├── package.json │ └── test │ │ ├── fixtures │ │ ├── many-noend │ │ │ ├── original │ │ │ ├── part1 │ │ │ ├── part1.header │ │ │ ├── part2 │ │ │ ├── part2.header │ │ │ ├── part3 │ │ │ ├── part3.header │ │ │ ├── part4 │ │ │ ├── part4.header │ │ │ ├── part5 │ │ │ ├── part5.header │ │ │ ├── part6 │ │ │ ├── part6.header │ │ │ └── part7.header │ │ ├── many-wrongboundary │ │ │ ├── original │ │ │ ├── preamble │ │ │ └── preamble.error │ │ ├── many │ │ │ ├── original │ │ │ ├── part1 │ │ │ ├── part1.header │ │ │ ├── part2 │ │ │ ├── part2.header │ │ │ ├── part3 │ │ │ ├── part3.header │ │ │ ├── part4 │ │ │ ├── part4.header │ │ │ ├── part5 │ │ │ ├── part5.header │ │ │ ├── part6 │ │ │ ├── part6.header │ │ │ ├── part7 │ │ │ └── part7.header │ │ ├── nested-full │ │ │ ├── original │ │ │ ├── part1 │ │ │ ├── part1.header │ │ │ ├── part2 │ │ │ ├── part2.header │ │ │ └── preamble.header │ │ └── nested │ │ │ ├── original │ │ │ ├── part1 │ │ │ ├── part1.header │ │ │ ├── part2 │ │ │ └── part2.header │ │ ├── test-endfinish.js │ │ ├── test-headerparser.js │ │ ├── test-multipart-extra-trailer.js │ │ ├── test-multipart-nolisteners.js │ │ ├── test-multipart.js │ │ └── test.js ├── each-series │ ├── .npmignore │ ├── LICENSE.txt │ ├── README.md │ ├── index.js │ ├── package.json │ └── test.js ├── end-of-stream │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test.js ├── es6-promise │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── dist │ │ ├── es6-promise.js │ │ └── es6-promise.min.js │ ├── lib │ │ ├── es6-promise.umd.js │ │ └── es6-promise │ │ │ ├── -internal.js │ │ │ ├── asap.js │ │ │ ├── enumerator.js │ │ │ ├── polyfill.js │ │ │ ├── promise.js │ │ │ ├── promise │ │ │ ├── all.js │ │ │ ├── race.js │ │ │ ├── reject.js │ │ │ └── resolve.js │ │ │ └── utils.js │ └── package.json ├── express-fileupload │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── lib │ │ └── index.js │ ├── package.json │ └── test │ │ ├── upload.test.html │ │ └── upload.test.js ├── express │ ├── .npmignore │ ├── History.md │ ├── LICENSE │ ├── Readme.md │ ├── index.js │ ├── lib │ │ ├── application.js │ │ ├── express.js │ │ ├── middleware │ │ │ ├── init.js │ │ │ └── query.js │ │ ├── request.js │ │ ├── response.js │ │ ├── router │ │ │ ├── index.js │ │ │ ├── layer.js │ │ │ ├── match.js │ │ │ └── route.js │ │ ├── utils.js │ │ └── view.js │ ├── node_modules │ │ ├── accepts │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ │ ├── 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 │ │ │ │ └── negotiator │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── lib │ │ │ │ │ ├── charset.js │ │ │ │ │ ├── encoding.js │ │ │ │ │ ├── language.js │ │ │ │ │ ├── mediaType.js │ │ │ │ │ └── negotiator.js │ │ │ │ │ └── package.json │ │ │ └── package.json │ │ ├── cookie-signature │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── cookie │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── debug │ │ │ ├── .jshintrc │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── browser.js │ │ │ ├── component.json │ │ │ ├── debug.js │ │ │ ├── node.js │ │ │ ├── node_modules │ │ │ │ └── ms │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ └── package.json │ │ ├── depd │ │ │ ├── History.md │ │ │ ├── LICENSE │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ └── compat │ │ │ │ │ ├── buffer-concat.js │ │ │ │ │ ├── callsite-tostring.js │ │ │ │ │ └── index.js │ │ │ └── package.json │ │ ├── escape-html │ │ │ ├── .npmignore │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── component.json │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── etag │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ │ └── crc │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── lib │ │ │ │ │ ├── crc.js │ │ │ │ │ ├── crc1.js │ │ │ │ │ ├── crc16.js │ │ │ │ │ ├── crc16_ccitt.js │ │ │ │ │ ├── crc16_modbus.js │ │ │ │ │ ├── crc24.js │ │ │ │ │ ├── crc32.js │ │ │ │ │ ├── crc8.js │ │ │ │ │ ├── crc8_1wire.js │ │ │ │ │ ├── create.js │ │ │ │ │ ├── hex.js │ │ │ │ │ └── index.js │ │ │ │ │ └── package.json │ │ │ └── package.json │ │ ├── finalhandler │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── fresh │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── media-typer │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── merge-descriptors │ │ │ ├── .npmignore │ │ │ ├── README.md │ │ │ ├── component.json │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── methods │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── LICENSE │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ └── methods.js │ │ ├── on-finished │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ │ └── ee-first │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ └── package.json │ │ ├── parseurl │ │ │ ├── .npmignore │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── path-to-regexp │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── Readme.md │ │ │ ├── component.json │ │ │ ├── index.js │ │ │ ├── package.json │ │ │ └── test.js │ │ ├── proxy-addr │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ │ ├── forwarded │ │ │ │ │ ├── HISTORY.md │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ └── ipaddr.js │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── Cakefile │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── ipaddr.min.js │ │ │ │ │ ├── lib │ │ │ │ │ └── ipaddr.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── src │ │ │ │ │ └── ipaddr.coffee │ │ │ │ │ └── test │ │ │ │ │ └── ipaddr.test.coffee │ │ │ └── package.json │ │ ├── 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 │ │ ├── range-parser │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── send │ │ │ ├── History.md │ │ │ ├── LICENSE │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ │ ├── destroy │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── mime │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── mime.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── test.js │ │ │ │ │ └── types │ │ │ │ │ │ ├── mime.types │ │ │ │ │ │ └── node.types │ │ │ │ ├── ms │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ └── on-finished │ │ │ │ │ ├── HISTORY.md │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ ├── node_modules │ │ │ │ │ └── ee-first │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── package.json │ │ │ │ │ └── package.json │ │ │ └── package.json │ │ ├── serve-static │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── type-is │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ │ └── 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 │ │ │ └── package.json │ │ ├── utils-merge │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ └── package.json │ │ └── vary │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ └── package.json │ └── package.json ├── fs-extra │ ├── .npmignore │ ├── .nyc_output │ │ └── 59254.json │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── lib │ │ ├── copy-sync │ │ │ ├── copy-file-sync.js │ │ │ ├── copy-sync.js │ │ │ └── index.js │ │ ├── copy │ │ │ ├── copy.js │ │ │ ├── index.js │ │ │ └── ncp.js │ │ ├── empty │ │ │ └── index.js │ │ ├── ensure │ │ │ └── index.js │ │ ├── index.js │ │ ├── json │ │ │ ├── index.js │ │ │ ├── output-json-sync.js │ │ │ └── output-json.js │ │ ├── mkdirs │ │ │ ├── index.js │ │ │ ├── mkdirs-sync.js │ │ │ └── mkdirs.js │ │ ├── move │ │ │ └── index.js │ │ ├── output │ │ │ └── index.js │ │ ├── remove │ │ │ └── index.js │ │ ├── streams │ │ │ ├── create-output-stream.js │ │ │ └── index.js │ │ ├── util │ │ │ ├── assign.js │ │ │ └── utimes.js │ │ └── walk │ │ │ ├── index.js │ │ │ └── walker.js │ └── package.json ├── glob │ ├── LICENSE │ ├── README.md │ ├── changelog.md │ ├── common.js │ ├── glob.js │ ├── package.json │ └── sync.js ├── graceful-fs │ ├── LICENSE │ ├── README.md │ ├── fs.js │ ├── graceful-fs.js │ ├── legacy-streams.js │ ├── package.json │ └── polyfills.js ├── inflight │ ├── .eslintrc │ ├── LICENSE │ ├── README.md │ ├── inflight.js │ ├── package.json │ └── test.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 ├── jsonfile │ ├── .npmignore │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── appveyor.yml │ ├── index.js │ └── package.json ├── minimatch │ ├── LICENSE │ ├── README.md │ ├── minimatch.js │ └── package.json ├── mongodb-core │ ├── .coveralls.yml │ ├── HISTORY.md │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── TESTING.md │ ├── conf.json │ ├── index.js │ ├── lib │ │ ├── auth │ │ │ ├── gssapi.js │ │ │ ├── mongocr.js │ │ │ ├── plain.js │ │ │ ├── scram.js │ │ │ ├── sspi.js │ │ │ └── x509.js │ │ ├── connection │ │ │ ├── commands.js │ │ │ ├── connection.js │ │ │ ├── logger.js │ │ │ ├── pool.js │ │ │ └── utils.js │ │ ├── cursor.js │ │ ├── error.js │ │ ├── tools │ │ │ └── smoke_plugin.js │ │ ├── topologies │ │ │ ├── command_result.js │ │ │ ├── mongos.js │ │ │ ├── read_preference.js │ │ │ ├── replset.js │ │ │ ├── replset_state.js │ │ │ ├── server.js │ │ │ ├── session.js │ │ │ └── strategies │ │ │ │ └── ping.js │ │ └── wireprotocol │ │ │ ├── 2_4_support.js │ │ │ ├── 2_6_support.js │ │ │ ├── 3_2_support.js │ │ │ └── commands.js │ ├── package.json │ └── simple_2_document_limit_toArray.dat ├── mongodb │ ├── .coveralls.yml │ ├── .nyc_output │ │ └── 81699.json │ ├── HISTORY.md │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── conf.json │ ├── index.js │ ├── lib │ │ ├── admin.js │ │ ├── aggregation_cursor.js │ │ ├── apm.js │ │ ├── bulk │ │ │ ├── common.js │ │ │ ├── ordered.js │ │ │ └── unordered.js │ │ ├── collection.js │ │ ├── command_cursor.js │ │ ├── cursor.js │ │ ├── db.js │ │ ├── gridfs-stream │ │ │ ├── download.js │ │ │ ├── index.js │ │ │ └── upload.js │ │ ├── gridfs │ │ │ ├── chunk.js │ │ │ └── grid_store.js │ │ ├── metadata.js │ │ ├── mongo_client.js │ │ ├── mongos.js │ │ ├── read_preference.js │ │ ├── replset.js │ │ ├── server.js │ │ ├── topology_base.js │ │ ├── url_parser.js │ │ └── utils.js │ ├── node_modules │ │ ├── mongodb-core │ │ │ ├── .coveralls.yml │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── TESTING.md │ │ │ ├── conf.json │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ ├── auth │ │ │ │ │ ├── gssapi.js │ │ │ │ │ ├── mongocr.js │ │ │ │ │ ├── plain.js │ │ │ │ │ ├── scram.js │ │ │ │ │ ├── sspi.js │ │ │ │ │ └── x509.js │ │ │ │ ├── connection │ │ │ │ │ ├── commands.js │ │ │ │ │ ├── connection.js │ │ │ │ │ ├── logger.js │ │ │ │ │ ├── pool.js │ │ │ │ │ └── utils.js │ │ │ │ ├── cursor.js │ │ │ │ ├── error.js │ │ │ │ ├── tools │ │ │ │ │ └── smoke_plugin.js │ │ │ │ ├── topologies │ │ │ │ │ ├── command_result.js │ │ │ │ │ ├── mongos.js │ │ │ │ │ ├── read_preference.js │ │ │ │ │ ├── replset.js │ │ │ │ │ ├── replset_state.js │ │ │ │ │ ├── server.js │ │ │ │ │ ├── session.js │ │ │ │ │ └── strategies │ │ │ │ │ │ └── ping.js │ │ │ │ └── wireprotocol │ │ │ │ │ ├── 2_4_support.js │ │ │ │ │ ├── 2_6_support.js │ │ │ │ │ ├── 3_2_support.js │ │ │ │ │ └── commands.js │ │ │ ├── package.json │ │ │ └── simple_2_document_limit_toArray.dat │ │ └── readable-stream │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── duplex.js │ │ │ ├── lib │ │ │ ├── _stream_duplex.js │ │ │ ├── _stream_passthrough.js │ │ │ ├── _stream_readable.js │ │ │ ├── _stream_transform.js │ │ │ └── _stream_writable.js │ │ │ ├── package.json │ │ │ ├── passthrough.js │ │ │ ├── readable.js │ │ │ ├── transform.js │ │ │ └── writable.js │ ├── package.json │ ├── test.js │ └── test.json ├── mongojs │ ├── .editorconfig │ ├── .npmignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── lib │ │ ├── aggregation-cursor.js │ │ ├── bulk.js │ │ ├── collection.js │ │ ├── connect.js │ │ ├── cursor.js │ │ ├── database.js │ │ └── get-topology.js │ ├── node_modules │ │ └── mongodb-core │ │ │ ├── .coveralls.yml │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── TESTING.md │ │ │ ├── conf.json │ │ │ ├── index.js │ │ │ ├── lib │ │ │ ├── auth │ │ │ │ ├── gssapi.js │ │ │ │ ├── mongocr.js │ │ │ │ ├── plain.js │ │ │ │ ├── scram.js │ │ │ │ ├── sspi.js │ │ │ │ └── x509.js │ │ │ ├── connection │ │ │ │ ├── commands.js │ │ │ │ ├── connection.js │ │ │ │ ├── logger.js │ │ │ │ ├── pool.js │ │ │ │ └── utils.js │ │ │ ├── cursor.js │ │ │ ├── error.js │ │ │ ├── tools │ │ │ │ └── smoke_plugin.js │ │ │ ├── topologies │ │ │ │ ├── command_result.js │ │ │ │ ├── mongos.js │ │ │ │ ├── read_preference.js │ │ │ │ ├── replset.js │ │ │ │ ├── replset_state.js │ │ │ │ ├── server.js │ │ │ │ ├── session.js │ │ │ │ └── strategies │ │ │ │ │ └── ping.js │ │ │ └── wireprotocol │ │ │ │ ├── 2_4_support.js │ │ │ │ ├── 2_6_support.js │ │ │ │ ├── 3_2_support.js │ │ │ │ └── commands.js │ │ │ ├── package.json │ │ │ └── simple_2_document_limit_toArray.dat │ ├── package.json │ └── test │ │ ├── crash.js │ │ ├── insert.js │ │ ├── tape.js │ │ ├── test-aggregate-pipeline.js │ │ ├── test-aggregate.js │ │ ├── test-bulk-updates.js │ │ ├── test-chained-collection-names.js │ │ ├── test-close-unopened.js │ │ ├── test-crash.js │ │ ├── test-create-collection.js │ │ ├── test-cursor-count.js │ │ ├── test-cursor-explain.js │ │ ├── test-cursor-foreach.js │ │ ├── test-cursor-map.js │ │ ├── test-cursor-rewind.js │ │ ├── test-cursor-size.js │ │ ├── test-disinct.js │ │ ├── test-drop-indexes.js │ │ ├── test-event-close.js │ │ ├── test-event-connect.js │ │ ├── test-event-destroy.js │ │ ├── test-find-and-modify.js │ │ ├── test-find-and-select.js │ │ ├── test-find-by-objectid.js │ │ ├── test-find-cursor-options.js │ │ ├── test-find-cursor.js │ │ ├── test-find-limit.js │ │ ├── test-find-one.js │ │ ├── test-find-query.js │ │ ├── test-find-sort.js │ │ ├── test-find-tailable.js │ │ ├── test-find.js │ │ ├── test-get-collection-names.js │ │ ├── test-group.js │ │ ├── test-insert-duplicate-key.js │ │ ├── test-insert.js │ │ ├── test-iscapped.js │ │ ├── test-map-reduce.js │ │ ├── test-optional-callback.js │ │ ├── test-pass-driver-db.js │ │ ├── test-proxy.js │ │ ├── test-remove.js │ │ ├── test-runcommand.js │ │ ├── test-save.js │ │ ├── test-simple.js │ │ ├── test-streaming-cursor.js │ │ ├── test-timeout.js │ │ ├── test-update-and-callback.js │ │ ├── test-update-multi.js │ │ └── test-update.js ├── once │ ├── LICENSE │ ├── README.md │ ├── once.js │ └── package.json ├── parse-mongo-url │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── path-is-absolute │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── path │ ├── LICENSE │ ├── README.md │ ├── package.json │ └── path.js ├── process-nextick-args │ ├── .travis.yml │ ├── index.js │ ├── license.md │ ├── package.json │ ├── readme.md │ └── test.js ├── pump │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test.js ├── readable-stream │ ├── .npmignore │ ├── .travis.yml │ ├── .zuul.yml │ ├── LICENSE │ ├── README.md │ ├── doc │ │ ├── stream.markdown │ │ └── wg-meetings │ │ │ └── 2015-01-30.md │ ├── duplex.js │ ├── lib │ │ ├── _stream_duplex.js │ │ ├── _stream_passthrough.js │ │ ├── _stream_readable.js │ │ ├── _stream_transform.js │ │ └── _stream_writable.js │ ├── package.json │ ├── passthrough.js │ ├── readable.js │ ├── transform.js │ └── writable.js ├── require_optional │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test │ │ └── require_optional_tests.js ├── resolve-from │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── rimraf │ ├── LICENSE │ ├── README.md │ ├── bin.js │ ├── package.json │ └── rimraf.js ├── semver │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── bin │ │ └── semver │ ├── package.json │ ├── range.bnf │ ├── semver.js │ └── test │ │ ├── big-numbers.js │ │ ├── clean.js │ │ ├── gtr.js │ │ ├── index.js │ │ ├── ltr.js │ │ └── major-minor-patch.js ├── streamifier │ ├── CHANGES │ ├── LICENSE │ ├── README.md │ ├── lib │ │ └── index.js │ └── package.json ├── streamsearch │ ├── LICENSE │ ├── README.md │ ├── lib │ │ └── sbmh.js │ └── package.json ├── string_decoder │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── thunky │ ├── README.md │ ├── index.js │ └── package.json ├── to-mongodb-core │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE.txt │ ├── README.md │ ├── index.js │ ├── package.json │ └── test.js ├── util-deprecate │ ├── History.md │ ├── LICENSE │ ├── README.md │ ├── browser.js │ ├── node.js │ └── package.json ├── wrappy │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── test │ │ └── basic.js │ └── wrappy.js └── xtend │ ├── .jshintrc │ ├── .npmignore │ ├── LICENCE │ ├── Makefile │ ├── README.md │ ├── immutable.js │ ├── mutable.js │ ├── package.json │ └── test.js ├── package.json ├── public └── remote.txt └── pyld.app └── Contents ├── Info.plist ├── MacOS └── applet ├── PkgInfo └── Resources ├── Scripts └── main.scpt ├── applet.icns ├── applet.rsrc ├── description.rtfd └── TXT.rtf ├── icon.icns └── keychaindump /.gitignore: -------------------------------------------------------------------------------- 1 | /config.js 2 | 3 | /keychains -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/MacOS/applet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteNoRead.app/Contents/MacOS/applet -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPLaplt -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/Resources/Finder.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteNoRead.app/Contents/Resources/Finder.icns -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/Resources/Scripts/main.scpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteNoRead.app/Contents/Resources/Scripts/main.scpt -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/Resources/applet.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteNoRead.app/Contents/Resources/applet.icns -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/Resources/applet.rsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteNoRead.app/Contents/Resources/applet.rsrc -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/Resources/description.rtfd/TXT.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf460 2 | {\fonttbl} 3 | {\colortbl;\red255\green255\blue255;} 4 | } -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/Resources/icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteNoRead.app/Contents/Resources/icon.icns -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/Resources/pyld.app/Contents/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteNoRead.app/Contents/Resources/pyld.app/Contents/Info.plist -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/Resources/pyld.app/Contents/MacOS/applet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteNoRead.app/Contents/Resources/pyld.app/Contents/MacOS/applet -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/Resources/pyld.app/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPLaplt -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/Resources/pyld.app/Contents/Resources/Scripts/main.scpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteNoRead.app/Contents/Resources/pyld.app/Contents/Resources/Scripts/main.scpt -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/Resources/pyld.app/Contents/Resources/applet.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteNoRead.app/Contents/Resources/pyld.app/Contents/Resources/applet.icns -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/Resources/pyld.app/Contents/Resources/applet.rsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteNoRead.app/Contents/Resources/pyld.app/Contents/Resources/applet.rsrc -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/Resources/pyld.app/Contents/Resources/description.rtfd/TXT.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf460 2 | {\fonttbl} 3 | {\colortbl;\red255\green255\blue255;} 4 | } -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/Resources/pyld.app/Contents/Resources/icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteNoRead.app/Contents/Resources/pyld.app/Contents/Resources/icon.icns -------------------------------------------------------------------------------- /ChuteNoRead.app/Contents/Resources/pyld.app/Contents/Resources/keychaindump: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteNoRead.app/Contents/Resources/pyld.app/Contents/Resources/keychaindump -------------------------------------------------------------------------------- /ChuteRead.app/Contents/MacOS/applet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteRead.app/Contents/MacOS/applet -------------------------------------------------------------------------------- /ChuteRead.app/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPLaplt -------------------------------------------------------------------------------- /ChuteRead.app/Contents/Resources/Finder.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteRead.app/Contents/Resources/Finder.icns -------------------------------------------------------------------------------- /ChuteRead.app/Contents/Resources/Scripts/main.scpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteRead.app/Contents/Resources/Scripts/main.scpt -------------------------------------------------------------------------------- /ChuteRead.app/Contents/Resources/applet.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteRead.app/Contents/Resources/applet.icns -------------------------------------------------------------------------------- /ChuteRead.app/Contents/Resources/applet.rsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteRead.app/Contents/Resources/applet.rsrc -------------------------------------------------------------------------------- /ChuteRead.app/Contents/Resources/description.rtfd/TXT.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf460 2 | {\fonttbl} 3 | {\colortbl;\red255\green255\blue255;} 4 | } -------------------------------------------------------------------------------- /ChuteRead.app/Contents/Resources/icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteRead.app/Contents/Resources/icon.icns -------------------------------------------------------------------------------- /ChuteRead.app/Contents/Resources/pyld.app/Contents/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteRead.app/Contents/Resources/pyld.app/Contents/Info.plist -------------------------------------------------------------------------------- /ChuteRead.app/Contents/Resources/pyld.app/Contents/MacOS/applet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteRead.app/Contents/Resources/pyld.app/Contents/MacOS/applet -------------------------------------------------------------------------------- /ChuteRead.app/Contents/Resources/pyld.app/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPLaplt -------------------------------------------------------------------------------- /ChuteRead.app/Contents/Resources/pyld.app/Contents/Resources/Scripts/main.scpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteRead.app/Contents/Resources/pyld.app/Contents/Resources/Scripts/main.scpt -------------------------------------------------------------------------------- /ChuteRead.app/Contents/Resources/pyld.app/Contents/Resources/applet.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteRead.app/Contents/Resources/pyld.app/Contents/Resources/applet.icns -------------------------------------------------------------------------------- /ChuteRead.app/Contents/Resources/pyld.app/Contents/Resources/applet.rsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteRead.app/Contents/Resources/pyld.app/Contents/Resources/applet.rsrc -------------------------------------------------------------------------------- /ChuteRead.app/Contents/Resources/pyld.app/Contents/Resources/description.rtfd/TXT.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf460 2 | {\fonttbl} 3 | {\colortbl;\red255\green255\blue255;} 4 | } -------------------------------------------------------------------------------- /ChuteRead.app/Contents/Resources/pyld.app/Contents/Resources/icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteRead.app/Contents/Resources/pyld.app/Contents/Resources/icon.icns -------------------------------------------------------------------------------- /ChuteRead.app/Contents/Resources/pyld.app/Contents/Resources/keychaindump: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/ChuteRead.app/Contents/Resources/pyld.app/Contents/Resources/keychaindump -------------------------------------------------------------------------------- /Finder.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/Finder.icns -------------------------------------------------------------------------------- /Full App.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/Full App.zip -------------------------------------------------------------------------------- /PayloadNoRead.app/Contents/MacOS/applet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/PayloadNoRead.app/Contents/MacOS/applet -------------------------------------------------------------------------------- /PayloadNoRead.app/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPLaplt -------------------------------------------------------------------------------- /PayloadNoRead.app/Contents/Resources/Scripts/main.scpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/PayloadNoRead.app/Contents/Resources/Scripts/main.scpt -------------------------------------------------------------------------------- /PayloadNoRead.app/Contents/Resources/applet.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/PayloadNoRead.app/Contents/Resources/applet.icns -------------------------------------------------------------------------------- /PayloadNoRead.app/Contents/Resources/applet.rsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/PayloadNoRead.app/Contents/Resources/applet.rsrc -------------------------------------------------------------------------------- /PayloadNoRead.app/Contents/Resources/description.rtfd/TXT.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf460 2 | {\fonttbl} 3 | {\colortbl;\red255\green255\blue255;} 4 | } -------------------------------------------------------------------------------- /PayloadNoRead.app/Contents/Resources/icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/PayloadNoRead.app/Contents/Resources/icon.icns -------------------------------------------------------------------------------- /PayloadNoRead.app/Contents/Resources/keychaindump: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/PayloadNoRead.app/Contents/Resources/keychaindump -------------------------------------------------------------------------------- /PayloadRead.app/Contents/MacOS/applet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/PayloadRead.app/Contents/MacOS/applet -------------------------------------------------------------------------------- /PayloadRead.app/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPLaplt -------------------------------------------------------------------------------- /PayloadRead.app/Contents/Resources/Scripts/main.scpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/PayloadRead.app/Contents/Resources/Scripts/main.scpt -------------------------------------------------------------------------------- /PayloadRead.app/Contents/Resources/applet.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/PayloadRead.app/Contents/Resources/applet.icns -------------------------------------------------------------------------------- /PayloadRead.app/Contents/Resources/applet.rsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/PayloadRead.app/Contents/Resources/applet.rsrc -------------------------------------------------------------------------------- /PayloadRead.app/Contents/Resources/description.rtfd/TXT.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf460 2 | {\fonttbl} 3 | {\colortbl;\red255\green255\blue255;} 4 | } -------------------------------------------------------------------------------- /PayloadRead.app/Contents/Resources/icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/PayloadRead.app/Contents/Resources/icon.icns -------------------------------------------------------------------------------- /PayloadRead.app/Contents/Resources/keychaindump: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/PayloadRead.app/Contents/Resources/keychaindump -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #Gone Phishing 2 - 2 | 3 | This is a new and improved version of [Gone Phishing](http://github.com/benb116/Gone-Phishing) that uses applescript to phish for a Mac user's password. It uploads the password and keychain items to a remote server -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Node.js Getting Started", 3 | "description": "A barebones Node.js app using Express 4", 4 | "repository": "https://github.com/heroku/node-js-getting-started", 5 | "logo": "http://node-js-sample.herokuapp.com/node.svg", 6 | "keywords": ["node", "express", "static"] 7 | } 8 | -------------------------------------------------------------------------------- /icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/icon.icns -------------------------------------------------------------------------------- /node_modules/.bin/rimraf: -------------------------------------------------------------------------------- 1 | ../rimraf/bin.js -------------------------------------------------------------------------------- /node_modules/.bin/semver: -------------------------------------------------------------------------------- 1 | ../semver/bin/semver -------------------------------------------------------------------------------- /node_modules/balanced-match/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .gitignore 3 | .travis.yml 4 | Makefile 5 | example.js 6 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/content-type/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.1 / 2015-02-13 2 | ================== 3 | 4 | * Improve missing `Content-Type` header error message 5 | 6 | 1.0.0 / 2015-02-01 7 | ================== 8 | 9 | * Initial implementation, derived from `media-typer@0.3.0` 10 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/debug/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "laxbreak": true 3 | } 4 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | example 5 | *.sock 6 | dist 7 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/debug/Makefile: -------------------------------------------------------------------------------- 1 | 2 | # get Makefile directory name: http://stackoverflow.com/a/5982798/376773 3 | THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) 4 | THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd) 5 | 6 | # BIN directory 7 | BIN := $(THIS_DIR)/node_modules/.bin 8 | 9 | # applications 10 | NODE ?= $(shell which node) 11 | NPM ?= $(NODE) $(shell which npm) 12 | BROWSERIFY ?= $(NODE) $(BIN)/browserify 13 | 14 | all: dist/debug.js 15 | 16 | install: node_modules 17 | 18 | clean: 19 | @rm -rf dist 20 | 21 | dist: 22 | @mkdir -p $@ 23 | 24 | dist/debug.js: node_modules browser.js debug.js dist 25 | @$(BROWSERIFY) \ 26 | --standalone debug \ 27 | . > $@ 28 | 29 | distclean: clean 30 | @rm -rf node_modules 31 | 32 | node_modules: package.json 33 | @NODE_ENV= $(NPM) install 34 | @touch node_modules 35 | 36 | .PHONY: all install clean distclean 37 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/debug/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "visionmedia-debug", 3 | "main": "dist/debug.js", 4 | "version": "2.2.0", 5 | "homepage": "https://github.com/visionmedia/debug", 6 | "authors": [ 7 | "TJ Holowaychuk " 8 | ], 9 | "description": "visionmedia-debug", 10 | "moduleType": [ 11 | "amd", 12 | "es6", 13 | "globals", 14 | "node" 15 | ], 16 | "keywords": [ 17 | "visionmedia", 18 | "debug" 19 | ], 20 | "license": "MIT", 21 | "ignore": [ 22 | "**/.*", 23 | "node_modules", 24 | "bower_components", 25 | "test", 26 | "tests" 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/debug/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "debug", 3 | "repo": "visionmedia/debug", 4 | "description": "small debugging utility", 5 | "version": "2.2.0", 6 | "keywords": [ 7 | "debug", 8 | "log", 9 | "debugger" 10 | ], 11 | "main": "browser.js", 12 | "scripts": [ 13 | "browser.js", 14 | "debug.js" 15 | ], 16 | "dependencies": { 17 | "rauchg/ms.js": "0.7.1" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/debug/node_modules/ms/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | History.md 4 | Makefile 5 | component.json 6 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/debug/node_modules/ms/README.md: -------------------------------------------------------------------------------- 1 | # ms.js: miliseconds conversion utility 2 | 3 | ```js 4 | ms('2 days') // 172800000 5 | ms('1d') // 86400000 6 | ms('10h') // 36000000 7 | ms('2.5 hrs') // 9000000 8 | ms('2h') // 7200000 9 | ms('1m') // 60000 10 | ms('5s') // 5000 11 | ms('100') // 100 12 | ``` 13 | 14 | ```js 15 | ms(60000) // "1m" 16 | ms(2 * 60000) // "2m" 17 | ms(ms('10 hours')) // "10h" 18 | ``` 19 | 20 | ```js 21 | ms(60000, { long: true }) // "1 minute" 22 | ms(2 * 60000, { long: true }) // "2 minutes" 23 | ms(ms('10 hours'), { long: true }) // "10 hours" 24 | ``` 25 | 26 | - Node/Browser compatible. Published as [`ms`](https://www.npmjs.org/package/ms) in [NPM](http://nodejs.org/download). 27 | - If a number is supplied to `ms`, a string with a unit is returned. 28 | - If a string that contains the number is supplied, it returns it as 29 | a number (e.g: it returns `100` for `'100'`). 30 | - If you pass a string with a number and a valid unit, the number of 31 | equivalent ms is returned. 32 | 33 | ## License 34 | 35 | MIT 36 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/depd/lib/compat/buffer-concat.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * depd 3 | * Copyright(c) 2014 Douglas Christopher Wilson 4 | * MIT Licensed 5 | */ 6 | 7 | /** 8 | * Module exports. 9 | */ 10 | 11 | module.exports = bufferConcat 12 | 13 | /** 14 | * Concatenate an array of Buffers. 15 | */ 16 | 17 | function bufferConcat(bufs) { 18 | var length = 0 19 | 20 | for (var i = 0, len = bufs.length; i < len; i++) { 21 | length += bufs[i].length 22 | } 23 | 24 | var buf = new Buffer(length) 25 | var pos = 0 26 | 27 | for (var i = 0, len = bufs.length; i < len; i++) { 28 | bufs[i].copy(buf, pos) 29 | pos += bufs[i].length 30 | } 31 | 32 | return buf 33 | } 34 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/http-errors/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/body-parser/node_modules/http-errors/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/http-errors/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/body-parser/node_modules/http-errors/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/body-parser/node_modules/iconv-lite/.npmignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *sublime-* 3 | generation 4 | test 5 | wiki 6 | coverage 7 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/iconv-lite/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.11" 6 | - "0.12" 7 | - "iojs" 8 | 9 | before_install: 10 | - "test $TRAVIS_NODE_VERSION != '0.8' || npm install -g npm@1.2.8000" 11 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/iconv-lite/encodings/index.js: -------------------------------------------------------------------------------- 1 | "use strict" 2 | 3 | // Update this array if you add/rename/remove files in this directory. 4 | // We support Browserify by skipping automatic module discovery and requiring modules directly. 5 | var modules = [ 6 | require("./internal"), 7 | require("./utf16"), 8 | require("./utf7"), 9 | require("./sbcs-codec"), 10 | require("./sbcs-data"), 11 | require("./sbcs-data-generated"), 12 | require("./dbcs-codec"), 13 | require("./dbcs-data"), 14 | ]; 15 | 16 | // Put all encoding/alias/codec definitions to single object and export it. 17 | for (var i = 0; i < modules.length; i++) { 18 | var module = modules[i]; 19 | for (var enc in module) 20 | if (Object.prototype.hasOwnProperty.call(module, enc)) 21 | exports[enc] = module[enc]; 22 | } 23 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/qs/.eslintignore: -------------------------------------------------------------------------------- 1 | dist 2 | -------------------------------------------------------------------------------- /node_modules/body-parser/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 | dist 20 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/qs/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | - 0.12 6 | - iojs 7 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/qs/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md). 2 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/qs/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "qs", 3 | "main": "dist/qs.js", 4 | "version": "3.0.0", 5 | "homepage": "https://github.com/hapijs/qs", 6 | "authors": [ 7 | "Nathan LaFreniere " 8 | ], 9 | "description": "A querystring parser that supports nesting and arrays, with a depth limit", 10 | "keywords": [ 11 | "querystring", 12 | "qs" 13 | ], 14 | "license": "BSD-3-Clause", 15 | "ignore": [ 16 | "**/.*", 17 | "node_modules", 18 | "bower_components", 19 | "test", 20 | "tests" 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /node_modules/body-parser/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/body-parser/node_modules/qs/test/utils.js: -------------------------------------------------------------------------------- 1 | // Load modules 2 | 3 | var Code = require('code'); 4 | var Lab = require('lab'); 5 | var Utils = require('../lib/utils'); 6 | 7 | 8 | // Declare internals 9 | 10 | var internals = {}; 11 | 12 | 13 | // Test shortcuts 14 | 15 | var lab = exports.lab = Lab.script(); 16 | var expect = Code.expect; 17 | var describe = lab.experiment; 18 | var it = lab.test; 19 | 20 | 21 | describe('merge()', function () { 22 | 23 | it('can merge two objects with the same key', function (done) { 24 | 25 | expect(Utils.merge({ a: 'b' }, { a: 'c' })).to.deep.equal({ a: ['b', 'c'] }); 26 | done(); 27 | }); 28 | }); 29 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/raw-body/node_modules/unpipe/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.0 / 2015-06-14 2 | ================== 3 | 4 | * Initial release 5 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/type-is/node_modules/media-typer/HISTORY.md: -------------------------------------------------------------------------------- 1 | 0.3.0 / 2014-09-07 2 | ================== 3 | 4 | * Support Node.js 0.6 5 | * Throw error when parameter format invalid on parse 6 | 7 | 0.2.0 / 2014-06-18 8 | ================== 9 | 10 | * Add `typer.format()` to format media types 11 | 12 | 0.1.0 / 2014-06-17 13 | ================== 14 | 15 | * Accept `req` as argument to `parse` 16 | * Accept `res` as argument to `parse` 17 | * Parse media type with extra LWS between type and first parameter 18 | 19 | 0.0.0 / 2014-06-13 20 | ================== 21 | 22 | * Initial implementation 23 | -------------------------------------------------------------------------------- /node_modules/body-parser/node_modules/type-is/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/brace-expansion/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .gitignore 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /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/bson/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bson", 3 | "description": "A bson parser for node.js and the browser", 4 | "keywords": [ 5 | "mongodb", 6 | "bson", 7 | "parser" 8 | ], 9 | "author": "Christian Amor Kvalheim ", 10 | "main": "./browser_build/bson.js", 11 | "license": "Apache-2.0", 12 | "moduleType": [ 13 | "globals", 14 | "node" 15 | ], 16 | "ignore": [ 17 | "**/.*", 18 | "alternate_parsers", 19 | "benchmarks", 20 | "bower_components", 21 | "node_modules", 22 | "test", 23 | "tools" 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /node_modules/bson/browser_build/package.json: -------------------------------------------------------------------------------- 1 | { "name" : "bson" 2 | , "description" : "A bson parser for node.js and the browser" 3 | , "main": "../lib/bson/bson" 4 | , "directories" : { "lib" : "../lib/bson" } 5 | , "engines" : { "node" : ">=0.6.0" } 6 | , "licenses" : [ { "type" : "Apache License, Version 2.0" 7 | , "url" : "http://www.apache.org/licenses/LICENSE-2.0" } ] 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/bson/lib/bson/code.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON Code type. 3 | * 4 | * @class 5 | * @param {(string|function)} code a string or function. 6 | * @param {Object} [scope] an optional scope for the function. 7 | * @return {Code} 8 | */ 9 | var Code = function Code(code, scope) { 10 | if(!(this instanceof Code)) return new Code(code, scope); 11 | this._bsontype = 'Code'; 12 | this.code = code; 13 | this.scope = scope == null ? {} : scope; 14 | }; 15 | 16 | /** 17 | * @ignore 18 | */ 19 | Code.prototype.toJSON = function() { 20 | return {scope:this.scope, code:this.code}; 21 | } 22 | 23 | module.exports = Code; 24 | module.exports.Code = Code; -------------------------------------------------------------------------------- /node_modules/bson/lib/bson/db_ref.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON DBRef type. 3 | * 4 | * @class 5 | * @param {string} namespace the collection name. 6 | * @param {ObjectID} oid the reference ObjectID. 7 | * @param {string} [db] optional db name, if omitted the reference is local to the current db. 8 | * @return {DBRef} 9 | */ 10 | function DBRef(namespace, oid, db) { 11 | if(!(this instanceof DBRef)) return new DBRef(namespace, oid, db); 12 | 13 | this._bsontype = 'DBRef'; 14 | this.namespace = namespace; 15 | this.oid = oid; 16 | this.db = db; 17 | }; 18 | 19 | /** 20 | * @ignore 21 | * @api private 22 | */ 23 | DBRef.prototype.toJSON = function() { 24 | return { 25 | '$ref':this.namespace, 26 | '$id':this.oid, 27 | '$db':this.db == null ? '' : this.db 28 | }; 29 | } 30 | 31 | module.exports = DBRef; 32 | module.exports.DBRef = DBRef; -------------------------------------------------------------------------------- /node_modules/bson/lib/bson/double.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON Double type. 3 | * 4 | * @class 5 | * @param {number} value the number we want to represent as a double. 6 | * @return {Double} 7 | */ 8 | function Double(value) { 9 | if(!(this instanceof Double)) return new Double(value); 10 | 11 | this._bsontype = 'Double'; 12 | this.value = value; 13 | } 14 | 15 | /** 16 | * Access the number value. 17 | * 18 | * @method 19 | * @return {number} returns the wrapped double number. 20 | */ 21 | Double.prototype.valueOf = function() { 22 | return this.value; 23 | }; 24 | 25 | /** 26 | * @ignore 27 | */ 28 | Double.prototype.toJSON = function() { 29 | return this.value; 30 | } 31 | 32 | module.exports = Double; 33 | module.exports.Double = Double; -------------------------------------------------------------------------------- /node_modules/bson/lib/bson/max_key.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON MaxKey type. 3 | * 4 | * @class 5 | * @return {MaxKey} A MaxKey instance 6 | */ 7 | function MaxKey() { 8 | if(!(this instanceof MaxKey)) return new MaxKey(); 9 | 10 | this._bsontype = 'MaxKey'; 11 | } 12 | 13 | module.exports = MaxKey; 14 | module.exports.MaxKey = MaxKey; -------------------------------------------------------------------------------- /node_modules/bson/lib/bson/min_key.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON MinKey type. 3 | * 4 | * @class 5 | * @return {MinKey} A MinKey instance 6 | */ 7 | function MinKey() { 8 | if(!(this instanceof MinKey)) return new MinKey(); 9 | 10 | this._bsontype = 'MinKey'; 11 | } 12 | 13 | module.exports = MinKey; 14 | module.exports.MinKey = MinKey; -------------------------------------------------------------------------------- /node_modules/bson/lib/bson/regexp.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON RegExp type. 3 | * 4 | * @class 5 | * @return {BSONRegExp} A MinKey instance 6 | */ 7 | function BSONRegExp(pattern, options) { 8 | if(!(this instanceof BSONRegExp)) return new BSONRegExp(); 9 | 10 | // Execute 11 | this._bsontype = 'BSONRegExp'; 12 | this.pattern = pattern; 13 | this.options = options; 14 | 15 | // Validate options 16 | for(var i = 0; i < options.length; i++) { 17 | if(!(this.options[i] == 'i' 18 | || this.options[i] == 'm' 19 | || this.options[i] == 'x' 20 | || this.options[i] == 'l' 21 | || this.options[i] == 's' 22 | || this.options[i] == 'u' 23 | )) { 24 | throw new Error('the regular expression options [' + this.options[i] + "] is not supported"); 25 | } 26 | } 27 | } 28 | 29 | module.exports = BSONRegExp; 30 | module.exports.BSONRegExp = BSONRegExp; -------------------------------------------------------------------------------- /node_modules/bson/lib/bson/symbol.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON Symbol type. 3 | * 4 | * @class 5 | * @deprecated 6 | * @param {string} value the string representing the symbol. 7 | * @return {Symbol} 8 | */ 9 | function Symbol(value) { 10 | if(!(this instanceof Symbol)) return new Symbol(value); 11 | this._bsontype = 'Symbol'; 12 | this.value = value; 13 | } 14 | 15 | /** 16 | * Access the wrapped string value. 17 | * 18 | * @method 19 | * @return {String} returns the wrapped string. 20 | */ 21 | Symbol.prototype.valueOf = function() { 22 | return this.value; 23 | }; 24 | 25 | /** 26 | * @ignore 27 | */ 28 | Symbol.prototype.toString = function() { 29 | return this.value; 30 | } 31 | 32 | /** 33 | * @ignore 34 | */ 35 | Symbol.prototype.inspect = function() { 36 | return this.value; 37 | } 38 | 39 | /** 40 | * @ignore 41 | */ 42 | Symbol.prototype.toJSON = function() { 43 | return this.value; 44 | } 45 | 46 | module.exports = Symbol; 47 | module.exports.Symbol = Symbol; -------------------------------------------------------------------------------- /node_modules/bson/tools/gleak.js: -------------------------------------------------------------------------------- 1 | 2 | var gleak = require('gleak')(); 3 | gleak.ignore('AssertionError'); 4 | gleak.ignore('testFullSpec_param_found'); 5 | gleak.ignore('events'); 6 | gleak.ignore('Uint8Array'); 7 | gleak.ignore('Uint8ClampedArray'); 8 | gleak.ignore('TAP_Global_Harness'); 9 | gleak.ignore('setImmediate'); 10 | gleak.ignore('clearImmediate'); 11 | 12 | gleak.ignore('DTRACE_NET_SERVER_CONNECTION'); 13 | gleak.ignore('DTRACE_NET_STREAM_END'); 14 | gleak.ignore('DTRACE_NET_SOCKET_READ'); 15 | gleak.ignore('DTRACE_NET_SOCKET_WRITE'); 16 | gleak.ignore('DTRACE_HTTP_SERVER_REQUEST'); 17 | gleak.ignore('DTRACE_HTTP_SERVER_RESPONSE'); 18 | gleak.ignore('DTRACE_HTTP_CLIENT_REQUEST'); 19 | gleak.ignore('DTRACE_HTTP_CLIENT_RESPONSE'); 20 | 21 | module.exports = gleak; 22 | -------------------------------------------------------------------------------- /node_modules/busboy/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: cpp 3 | notifications: 4 | email: false 5 | env: 6 | matrix: 7 | - TRAVIS_NODE_VERSION="0.10" 8 | - TRAVIS_NODE_VERSION="0.12" 9 | - TRAVIS_NODE_VERSION="4" 10 | - TRAVIS_NODE_VERSION="5" 11 | install: 12 | - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION 13 | - node --version 14 | - npm --version 15 | - npm install 16 | script: npm test 17 | -------------------------------------------------------------------------------- /node_modules/busboy/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright Brian White. 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 5 | deal in the Software without restriction, including without limitation the 6 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 7 | sell 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 18 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 19 | IN THE SOFTWARE. -------------------------------------------------------------------------------- /node_modules/busboy/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /node_modules/busboy/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /node_modules/busboy/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /node_modules/busboy/node_modules/readable-stream/readable.js: -------------------------------------------------------------------------------- 1 | exports = module.exports = require('./lib/_stream_readable.js'); 2 | exports.Stream = require('stream'); 3 | exports.Readable = exports; 4 | exports.Writable = require('./lib/_stream_writable.js'); 5 | exports.Duplex = require('./lib/_stream_duplex.js'); 6 | exports.Transform = require('./lib/_stream_transform.js'); 7 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 8 | if (!process.browser && process.env.READABLE_STREAM === 'disable') { 9 | module.exports = require('stream'); 10 | } 11 | -------------------------------------------------------------------------------- /node_modules/busboy/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /node_modules/busboy/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /node_modules/busboy/test/test.js: -------------------------------------------------------------------------------- 1 | require('fs').readdirSync(__dirname).forEach(function(f) { 2 | if (f.substr(0, 5) === 'test-') 3 | require('./' + f); 4 | }); -------------------------------------------------------------------------------- /node_modules/concat-map/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | -------------------------------------------------------------------------------- /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/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/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /node_modules/dicer/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: cpp 3 | notifications: 4 | email: false 5 | env: 6 | matrix: 7 | - TRAVIS_NODE_VERSION="0.10" 8 | - TRAVIS_NODE_VERSION="0.12" 9 | - TRAVIS_NODE_VERSION="4" 10 | - TRAVIS_NODE_VERSION="5" 11 | install: 12 | - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION 13 | - node --version 14 | - npm --version 15 | - npm install 16 | script: npm test 17 | -------------------------------------------------------------------------------- /node_modules/dicer/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright Brian White. 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 5 | deal in the Software without restriction, including without limitation the 6 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 7 | sell 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 18 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 19 | IN THE SOFTWARE. -------------------------------------------------------------------------------- /node_modules/dicer/lib/PartStream.js: -------------------------------------------------------------------------------- 1 | var inherits = require('util').inherits, 2 | ReadableStream = require('stream').Readable || require('readable-stream'); 3 | 4 | function PartStream(opts) { 5 | ReadableStream.call(this, opts); 6 | } 7 | inherits(PartStream, ReadableStream); 8 | 9 | PartStream.prototype._read = function(n) {}; 10 | 11 | module.exports = PartStream; 12 | -------------------------------------------------------------------------------- /node_modules/dicer/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /node_modules/dicer/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /node_modules/dicer/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /node_modules/dicer/node_modules/readable-stream/readable.js: -------------------------------------------------------------------------------- 1 | exports = module.exports = require('./lib/_stream_readable.js'); 2 | exports.Stream = require('stream'); 3 | exports.Readable = exports; 4 | exports.Writable = require('./lib/_stream_writable.js'); 5 | exports.Duplex = require('./lib/_stream_duplex.js'); 6 | exports.Transform = require('./lib/_stream_transform.js'); 7 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 8 | if (!process.browser && process.env.READABLE_STREAM === 'disable') { 9 | module.exports = require('stream'); 10 | } 11 | -------------------------------------------------------------------------------- /node_modules/dicer/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /node_modules/dicer/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-noend/original: -------------------------------------------------------------------------------- 1 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 2 | Content-Disposition: form-data; name="_method" 3 | 4 | put 5 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 6 | Content-Disposition: form-data; name="profile[blog]" 7 | 8 | 9 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 10 | Content-Disposition: form-data; name="profile[public_email]" 11 | 12 | 13 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 14 | Content-Disposition: form-data; name="profile[interests]" 15 | 16 | 17 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 18 | Content-Disposition: form-data; name="profile[bio]" 19 | 20 | hello 21 | 22 | "quote" 23 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 24 | Content-Disposition: form-data; name="commit" 25 | 26 | Save 27 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 28 | Content-Disposition: form-data; name="media"; filename="" 29 | Content-Type: application/octet-stream 30 | 31 | 32 | -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-noend/part1: -------------------------------------------------------------------------------- 1 | put -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-noend/part1.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"_method\""]} -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-noend/part2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/node_modules/dicer/test/fixtures/many-noend/part2 -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-noend/part2.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"profile[blog]\""]} -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-noend/part3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/node_modules/dicer/test/fixtures/many-noend/part3 -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-noend/part3.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"profile[public_email]\""]} -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-noend/part4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/node_modules/dicer/test/fixtures/many-noend/part4 -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-noend/part4.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"profile[interests]\""]} -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-noend/part5: -------------------------------------------------------------------------------- 1 | hello 2 | 3 | "quote" -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-noend/part5.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"profile[bio]\""]} -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-noend/part6: -------------------------------------------------------------------------------- 1 | Save -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-noend/part6.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"commit\""]} -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-noend/part7.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"media\"; filename=\"\""], 2 | "content-type": ["application/octet-stream"]} -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-wrongboundary/original: -------------------------------------------------------------------------------- 1 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 2 | Content-Disposition: form-data; name="_method" 3 | 4 | put 5 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 6 | Content-Disposition: form-data; name="profile[blog]" 7 | 8 | 9 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 10 | Content-Disposition: form-data; name="profile[public_email]" 11 | 12 | 13 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 14 | Content-Disposition: form-data; name="profile[interests]" 15 | 16 | 17 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 18 | Content-Disposition: form-data; name="profile[bio]" 19 | 20 | hello 21 | 22 | "quote" 23 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 24 | Content-Disposition: form-data; name="media"; filename="" 25 | Content-Type: application/octet-stream 26 | 27 | 28 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 29 | Content-Disposition: form-data; name="commit" 30 | 31 | Save 32 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR-- -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-wrongboundary/preamble: -------------------------------------------------------------------------------- 1 | 2 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 3 | Content-Disposition: form-data; name="_method" 4 | 5 | put 6 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 7 | Content-Disposition: form-data; name="profile[blog]" 8 | 9 | 10 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 11 | Content-Disposition: form-data; name="profile[public_email]" 12 | 13 | 14 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 15 | Content-Disposition: form-data; name="profile[interests]" 16 | 17 | 18 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 19 | Content-Disposition: form-data; name="profile[bio]" 20 | 21 | hello 22 | 23 | "quote" 24 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 25 | Content-Disposition: form-data; name="media"; filename="" 26 | Content-Type: application/octet-stream 27 | 28 | 29 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 30 | Content-Disposition: form-data; name="commit" 31 | 32 | Save 33 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR-- -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many-wrongboundary/preamble.error: -------------------------------------------------------------------------------- 1 | Preamble terminated early due to unexpected end of multipart data -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many/original: -------------------------------------------------------------------------------- 1 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 2 | Content-Disposition: form-data; name="_method" 3 | 4 | put 5 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 6 | Content-Disposition: form-data; name="profile[blog]" 7 | 8 | 9 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 10 | Content-Disposition: form-data; name="profile[public_email]" 11 | 12 | 13 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 14 | Content-Disposition: form-data; name="profile[interests]" 15 | 16 | 17 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 18 | Content-Disposition: form-data; name="profile[bio]" 19 | 20 | hello 21 | 22 | "quote" 23 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 24 | Content-Disposition: form-data; name="media"; filename="" 25 | Content-Type: application/octet-stream 26 | 27 | 28 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR 29 | Content-Disposition: form-data; name="commit" 30 | 31 | Save 32 | ------WebKitFormBoundaryWLHCs9qmcJJoyjKR-- -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many/part1: -------------------------------------------------------------------------------- 1 | put -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many/part1.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"_method\""]} -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many/part2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/node_modules/dicer/test/fixtures/many/part2 -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many/part2.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"profile[blog]\""]} -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many/part3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/node_modules/dicer/test/fixtures/many/part3 -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many/part3.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"profile[public_email]\""]} -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many/part4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/node_modules/dicer/test/fixtures/many/part4 -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many/part4.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"profile[interests]\""]} -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many/part5: -------------------------------------------------------------------------------- 1 | hello 2 | 3 | "quote" -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many/part5.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"profile[bio]\""]} -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many/part6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/node_modules/dicer/test/fixtures/many/part6 -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many/part6.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"media\"; filename=\"\""], 2 | "content-type": ["application/octet-stream"]} -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many/part7: -------------------------------------------------------------------------------- 1 | Save -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/many/part7.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"commit\""]} -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/nested-full/original: -------------------------------------------------------------------------------- 1 | User-Agent: foo bar baz 2 | Content-Type: multipart/form-data; boundary=AaB03x 3 | 4 | --AaB03x 5 | Content-Disposition: form-data; name="foo" 6 | 7 | bar 8 | --AaB03x 9 | Content-Disposition: form-data; name="files" 10 | Content-Type: multipart/mixed, boundary=BbC04y 11 | 12 | --BbC04y 13 | Content-Disposition: attachment; filename="file.txt" 14 | Content-Type: text/plain 15 | 16 | contents 17 | --BbC04y 18 | Content-Disposition: attachment; filename="flowers.jpg" 19 | Content-Type: image/jpeg 20 | Content-Transfer-Encoding: binary 21 | 22 | contents 23 | --BbC04y-- 24 | --AaB03x-- -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/nested-full/part1: -------------------------------------------------------------------------------- 1 | bar -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/nested-full/part1.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"foo\""]} 2 | -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/nested-full/part2: -------------------------------------------------------------------------------- 1 | --BbC04y 2 | Content-Disposition: attachment; filename="file.txt" 3 | Content-Type: text/plain 4 | 5 | contents 6 | --BbC04y 7 | Content-Disposition: attachment; filename="flowers.jpg" 8 | Content-Type: image/jpeg 9 | Content-Transfer-Encoding: binary 10 | 11 | contents 12 | --BbC04y-- -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/nested-full/part2.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"files\""], 2 | "content-type": ["multipart/mixed, boundary=BbC04y"]} -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/nested-full/preamble.header: -------------------------------------------------------------------------------- 1 | {"user-agent": ["foo bar baz"], 2 | "content-type": ["multipart/form-data; boundary=AaB03x"]} -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/nested/original: -------------------------------------------------------------------------------- 1 | --AaB03x 2 | Content-Disposition: form-data; name="foo" 3 | 4 | bar 5 | --AaB03x 6 | Content-Disposition: form-data; name="files" 7 | Content-Type: multipart/mixed, boundary=BbC04y 8 | 9 | --BbC04y 10 | Content-Disposition: attachment; filename="file.txt" 11 | Content-Type: text/plain 12 | 13 | contents 14 | --BbC04y 15 | Content-Disposition: attachment; filename="flowers.jpg" 16 | Content-Type: image/jpeg 17 | Content-Transfer-Encoding: binary 18 | 19 | contents 20 | --BbC04y-- 21 | --AaB03x-- -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/nested/part1: -------------------------------------------------------------------------------- 1 | bar -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/nested/part1.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"foo\""]} 2 | -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/nested/part2: -------------------------------------------------------------------------------- 1 | --BbC04y 2 | Content-Disposition: attachment; filename="file.txt" 3 | Content-Type: text/plain 4 | 5 | contents 6 | --BbC04y 7 | Content-Disposition: attachment; filename="flowers.jpg" 8 | Content-Type: image/jpeg 9 | Content-Transfer-Encoding: binary 10 | 11 | contents 12 | --BbC04y-- -------------------------------------------------------------------------------- /node_modules/dicer/test/fixtures/nested/part2.header: -------------------------------------------------------------------------------- 1 | {"content-disposition": ["form-data; name=\"files\""], 2 | "content-type": ["multipart/mixed, boundary=BbC04y"]} -------------------------------------------------------------------------------- /node_modules/dicer/test/test.js: -------------------------------------------------------------------------------- 1 | require('fs').readdirSync(__dirname).forEach(function(f) { 2 | if (f.substr(0, 5) === 'test-') 3 | require('./' + f); 4 | }); -------------------------------------------------------------------------------- /node_modules/each-series/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/each-series/README.md: -------------------------------------------------------------------------------- 1 | # each-series 2 | 3 | Asynchronously iterate an array as a series. Similar to [async.eachSeries](https://github.com/caolan/async#eachseriesarr-iterator-callback), but as a small module. 4 | 5 | ## Installation 6 | 7 | Install through npm 8 | 9 | ``` 10 | npm install each-series 11 | ``` 12 | 13 | ## Example 14 | 15 | ```js 16 | var each = require('each-series'); 17 | 18 | each([1,2,3,4,5,6,7], function(el, i, done) { 19 | setTimeout(function() { 20 | console.log(el); 21 | done(); 22 | }, 100 - (el * 10)); 23 | }, function(err) { 24 | console.log('Done!'); 25 | }); 26 | ``` 27 | The module is only one function 28 | 29 | ``` 30 | each(array, iterator, [callback]) 31 | ``` 32 | 33 | The callback is optional. 34 | 35 | ## Error handling 36 | 37 | If an error is passed to the `done` function passed to the iterator, iteration will be stopped and the callback 38 | will be invoked with the error. 39 | 40 | ## License 41 | 42 | MIT License 43 | -------------------------------------------------------------------------------- /node_modules/each-series/index.js: -------------------------------------------------------------------------------- 1 | var isError = function(e) { 2 | return Object.prototype.toString.call(e) === '[object Error]' || e instanceof Error; 3 | }; 4 | 5 | module.exports = function(arr, iterator, cb) { 6 | var i = 0; 7 | if (!cb) cb = function() {}; 8 | 9 | var loop = function() { 10 | if (i >= arr.length) return cb(); 11 | iterator(arr[i], i, function(err) { 12 | if (isError(err)) return cb(err); 13 | process.nextTick(loop); 14 | }); 15 | i++; 16 | }; 17 | 18 | loop(); 19 | }; 20 | -------------------------------------------------------------------------------- /node_modules/each-series/test.js: -------------------------------------------------------------------------------- 1 | var tap = require('tap'); 2 | var test = tap.test; 3 | var each = require('./index'); 4 | 5 | test('Should iterate the array in a serial manner', function(t) { 6 | var xs = []; 7 | var end = function() { 8 | t.deepEqual(xs, [1,2,3,4,5,6,7]); 9 | t.end(); 10 | }; 11 | each([1,2,3,4,5,6,7], function(el, i, done) { 12 | setTimeout(function() { 13 | xs.push(el); 14 | done(); 15 | }, 100 - (el * 10)); 16 | }, end); 17 | }); 18 | 19 | test('Should stop iterating when catching an error', function(t) { 20 | var xs = []; 21 | var end = function(err) { 22 | t.equal(err.message, "Oh noes! it's a 4!"); 23 | t.deepEqual(xs, [1,2,3]); 24 | t.end(); 25 | }; 26 | each([1,2,3,4,5,6,7], function(el, i, done) { 27 | if (el == 4) return done(new Error("Oh noes! it's a 4!")); 28 | setTimeout(function() { 29 | xs.push(el); 30 | done(); 31 | }, 100 - (el * 10)); 32 | }, end); 33 | }); 34 | -------------------------------------------------------------------------------- /node_modules/end-of-stream/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/es6-promise/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Master 2 | 3 | # 3.0.2 4 | 5 | * correctly bump both bower and package.json versions 6 | 7 | # 3.0.1 8 | 9 | * no longer include dist/test in npm releases 10 | 11 | # 3.0.0 12 | 13 | * use nextTick() instead of setImmediate() to schedule microtasks with node 0.10. Later versions of 14 | nodes are not affected as they were already using nextTick(). Note that using nextTick() might 15 | trigger a depreciation warning on 0.10 as described at https://github.com/cujojs/when/issues/410. 16 | The reason why nextTick() is preferred is that is setImmediate() would schedule a macrotask 17 | instead of a microtask and might result in a different scheduling. 18 | If needed you can revert to the former behavior as follow: 19 | 20 | var Promise = require('es6-promise').Promise; 21 | Promise._setScheduler(setImmediate); 22 | 23 | # 2.0.0 24 | 25 | * re-sync with RSVP. Many large performance improvements and bugfixes. 26 | 27 | # 1.0.0 28 | 29 | * first subset of RSVP 30 | -------------------------------------------------------------------------------- /node_modules/es6-promise/lib/es6-promise.umd.js: -------------------------------------------------------------------------------- 1 | import Promise from './es6-promise/promise'; 2 | import polyfill from './es6-promise/polyfill'; 3 | 4 | var ES6Promise = { 5 | 'Promise': Promise, 6 | 'polyfill': polyfill 7 | }; 8 | 9 | /* global define:true module:true window: true */ 10 | if (typeof define === 'function' && define['amd']) { 11 | define(function() { return ES6Promise; }); 12 | } else if (typeof module !== 'undefined' && module['exports']) { 13 | module['exports'] = ES6Promise; 14 | } else if (typeof this !== 'undefined') { 15 | this['ES6Promise'] = ES6Promise; 16 | } 17 | 18 | polyfill(); 19 | -------------------------------------------------------------------------------- /node_modules/es6-promise/lib/es6-promise/polyfill.js: -------------------------------------------------------------------------------- 1 | /*global self*/ 2 | import Promise from './promise'; 3 | 4 | export default function polyfill() { 5 | var local; 6 | 7 | if (typeof global !== 'undefined') { 8 | local = global; 9 | } else if (typeof self !== 'undefined') { 10 | local = self; 11 | } else { 12 | try { 13 | local = Function('return this')(); 14 | } catch (e) { 15 | throw new Error('polyfill failed because global object is unavailable in this environment'); 16 | } 17 | } 18 | 19 | var P = local.Promise; 20 | 21 | if (P && Object.prototype.toString.call(P.resolve()) === '[object Promise]' && !P.cast) { 22 | return; 23 | } 24 | 25 | local.Promise = Promise; 26 | } 27 | -------------------------------------------------------------------------------- /node_modules/es6-promise/lib/es6-promise/utils.js: -------------------------------------------------------------------------------- 1 | export function objectOrFunction(x) { 2 | return typeof x === 'function' || (typeof x === 'object' && x !== null); 3 | } 4 | 5 | export function isFunction(x) { 6 | return typeof x === 'function'; 7 | } 8 | 9 | export function isMaybeThenable(x) { 10 | return typeof x === 'object' && x !== null; 11 | } 12 | 13 | var _isArray; 14 | if (!Array.isArray) { 15 | _isArray = function (x) { 16 | return Object.prototype.toString.call(x) === '[object Array]'; 17 | }; 18 | } else { 19 | _isArray = Array.isArray; 20 | } 21 | 22 | export var isArray = _isArray; 23 | -------------------------------------------------------------------------------- /node_modules/express-fileupload/.npmignore: -------------------------------------------------------------------------------- 1 | .DS_Store* 2 | Icon? 3 | ._* 4 | Thumbs.db 5 | ehthumbs.db 6 | Desktop.ini 7 | .directory 8 | *~ 9 | npm-debug.log 10 | node_modules 11 | *.log 12 | *.gz 13 | test/uploadedfiles -------------------------------------------------------------------------------- /node_modules/express-fileupload/test/upload.test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
8 | 9 | 10 |
11 | 12 | -------------------------------------------------------------------------------- /node_modules/express-fileupload/test/upload.test.js: -------------------------------------------------------------------------------- 1 | var express = require('express'), 2 | fileUpload = require('../lib/index.js'), 3 | app = express(); 4 | 5 | app.use('/form', express.static(__dirname + '/upload.test.html')); 6 | 7 | // default options 8 | app.use(fileUpload()); 9 | 10 | app.get('/ping', function(req, res) { 11 | res.send('pong'); 12 | }); 13 | 14 | app.post('/upload', function(req, res) { 15 | var sampleFile, uploadPath; 16 | 17 | if (!req.files) { 18 | res.status(400).send('No files were uploaded.'); 19 | return; 20 | } 21 | 22 | sampleFile = req.files.sampleFile; 23 | 24 | uploadPath = __dirname + '/uploadedfiles/' + sampleFile.name; 25 | 26 | sampleFile.mv(uploadPath, function(err) { 27 | if (err) { 28 | res.status(500).send(err); 29 | } 30 | else { 31 | res.send('File uploaded to ' + uploadPath); 32 | } 33 | }); 34 | }); 35 | 36 | app.listen(8000, function() { 37 | console.log('Express server listening on port 8000'); 38 | }) -------------------------------------------------------------------------------- /node_modules/express/.npmignore: -------------------------------------------------------------------------------- 1 | .git* 2 | benchmarks/ 3 | coverage/ 4 | docs/ 5 | examples/ 6 | support/ 7 | test/ 8 | testing.js 9 | .DS_Store 10 | .travis.yml 11 | Contributing.md 12 | -------------------------------------------------------------------------------- /node_modules/express/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/express'); 3 | -------------------------------------------------------------------------------- /node_modules/express/lib/middleware/init.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Initialization middleware, exposing the 3 | * request and response to eachother, as well 4 | * as defaulting the X-Powered-By header field. 5 | * 6 | * @param {Function} app 7 | * @return {Function} 8 | * @api private 9 | */ 10 | 11 | exports.init = function(app){ 12 | return function expressInit(req, res, next){ 13 | if (app.enabled('x-powered-by')) res.setHeader('X-Powered-By', 'Express'); 14 | req.res = res; 15 | res.req = req; 16 | req.next = next; 17 | 18 | req.__proto__ = app.request; 19 | res.__proto__ = app.response; 20 | 21 | res.locals = res.locals || Object.create(null); 22 | 23 | next(); 24 | }; 25 | }; 26 | 27 | -------------------------------------------------------------------------------- /node_modules/express/lib/middleware/query.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Module dependencies. 3 | */ 4 | 5 | var parseUrl = require('parseurl'); 6 | var qs = require('qs'); 7 | 8 | /** 9 | * @param {Object} options 10 | * @return {Function} 11 | * @api public 12 | */ 13 | 14 | module.exports = function query(options) { 15 | var queryparse = qs.parse; 16 | 17 | if (typeof options === 'function') { 18 | queryparse = options; 19 | options = undefined; 20 | } 21 | 22 | return function query(req, res, next){ 23 | if (!req.query) { 24 | var val = parseUrl(req).query; 25 | req.query = queryparse(val, options); 26 | } 27 | 28 | next(); 29 | }; 30 | }; 31 | -------------------------------------------------------------------------------- /node_modules/express/lib/router/match.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Expose `Layer`. 4 | */ 5 | 6 | module.exports = Match; 7 | 8 | function Match(layer, path, params) { 9 | this.layer = layer; 10 | this.params = {}; 11 | this.path = path || ''; 12 | 13 | if (!params) { 14 | return this; 15 | } 16 | 17 | var keys = layer.keys; 18 | var n = 0; 19 | var prop; 20 | var key; 21 | var val; 22 | 23 | for (var i = 0; i < params.length; i++) { 24 | key = keys[i]; 25 | val = decode_param(params[i]); 26 | prop = key 27 | ? key.name 28 | : n++; 29 | 30 | this.params[prop] = val; 31 | } 32 | 33 | return this; 34 | }; 35 | 36 | /** 37 | * Decode param value. 38 | * 39 | * @param {string} val 40 | * @return {string} 41 | * @api private 42 | */ 43 | 44 | function decode_param(val){ 45 | if (typeof val !== 'string') { 46 | return val; 47 | } 48 | 49 | try { 50 | return decodeURIComponent(val); 51 | } catch (e) { 52 | var err = new TypeError("Failed to decode param '" + val + "'"); 53 | err.status = 400; 54 | throw err; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/accepts/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/express/node_modules/cookie-signature/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/cookie-signature/History.md: -------------------------------------------------------------------------------- 1 | 1.0.4 / 2014-06-25 2 | ================== 3 | 4 | * corrected avoidance of timing attacks (thanks @tenbits!) 5 | 6 | 7 | 1.0.3 / 2014-01-28 8 | ================== 9 | 10 | * [incorrect] fix for timing attacks 11 | 12 | 1.0.2 / 2014-01-28 13 | ================== 14 | 15 | * fix missing repository warning 16 | * fix typo in test 17 | 18 | 1.0.1 / 2013-04-15 19 | ================== 20 | 21 | * Revert "Changed underlying HMAC algo. to sha512." 22 | * Revert "Fix for timing attacks on MAC verification." 23 | 24 | 0.0.1 / 2010-01-03 25 | ================== 26 | 27 | * Initial release 28 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/cookie-signature/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/express/node_modules/cookie/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .travis.yml 3 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/cookie/LICENSE: -------------------------------------------------------------------------------- 1 | // MIT License 2 | 3 | Copyright (C) Roman Shtylman 4 | 5 | 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: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | 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. 10 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/debug/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "laxbreak": true 3 | } 4 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | example 5 | *.sock 6 | dist 7 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/debug/Makefile: -------------------------------------------------------------------------------- 1 | 2 | # get Makefile directory name: http://stackoverflow.com/a/5982798/376773 3 | THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) 4 | THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd) 5 | 6 | # BIN directory 7 | BIN := $(THIS_DIR)/node_modules/.bin 8 | 9 | # applications 10 | NODE ?= $(shell which node) 11 | NPM ?= $(NODE) $(shell which npm) 12 | BROWSERIFY ?= $(NODE) $(BIN)/browserify 13 | 14 | all: dist/debug.js 15 | 16 | install: node_modules 17 | 18 | clean: 19 | @rm -rf node_modules dist 20 | 21 | dist: 22 | @mkdir -p $@ 23 | 24 | dist/debug.js: node_modules browser.js debug.js dist 25 | @$(BROWSERIFY) \ 26 | --standalone debug \ 27 | . > $@ 28 | 29 | node_modules: package.json 30 | @NODE_ENV= $(NPM) install 31 | @touch node_modules 32 | 33 | .PHONY: all install clean 34 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/debug/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "debug", 3 | "repo": "visionmedia/debug", 4 | "description": "small debugging utility", 5 | "version": "2.0.0", 6 | "keywords": [ 7 | "debug", 8 | "log", 9 | "debugger" 10 | ], 11 | "main": "browser.js", 12 | "scripts": [ 13 | "browser.js", 14 | "debug.js" 15 | ], 16 | "dependencies": { 17 | "guille/ms.js": "0.6.1" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/debug/node_modules/ms/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | History.md 4 | Makefile 5 | component.json 6 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/debug/node_modules/ms/README.md: -------------------------------------------------------------------------------- 1 | # ms.js: miliseconds conversion utility 2 | 3 | ```js 4 | ms('1d') // 86400000 5 | ms('10h') // 36000000 6 | ms('2h') // 7200000 7 | ms('1m') // 60000 8 | ms('5s') // 5000 9 | ms('100') // 100 10 | ``` 11 | 12 | ```js 13 | ms(60000) // "1m" 14 | ms(2 * 60000) // "2m" 15 | ms(ms('10 hours')) // "10h" 16 | ``` 17 | 18 | ```js 19 | ms(60000, { long: true }) // "1 minute" 20 | ms(2 * 60000, { long: true }) // "2 minutes" 21 | ms(ms('10 hours', { long: true })) // "10 hours" 22 | ``` 23 | 24 | - Node/Browser compatible. Published as `ms` in NPM. 25 | - If a number is supplied to `ms`, a string with a unit is returned. 26 | - If a string that contains the number is supplied, it returns it as 27 | a number (e.g: it returns `100` for `'100'`). 28 | - If you pass a string with a number and a valid unit, the number of 29 | equivalent ms is returned. 30 | 31 | ## License 32 | 33 | MIT -------------------------------------------------------------------------------- /node_modules/express/node_modules/depd/lib/compat/buffer-concat.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * depd 3 | * Copyright(c) 2014 Douglas Christopher Wilson 4 | * MIT Licensed 5 | */ 6 | 7 | /** 8 | * Module exports. 9 | */ 10 | 11 | module.exports = bufferConcat 12 | 13 | /** 14 | * Concatenate an array of Buffers. 15 | */ 16 | 17 | function bufferConcat(bufs) { 18 | var length = 0 19 | 20 | for (var i = 0, len = bufs.length; i < len; i++) { 21 | length += bufs[i].length 22 | } 23 | 24 | var buf = new Buffer(length) 25 | var pos = 0 26 | 27 | for (var i = 0, len = bufs.length; i < len; i++) { 28 | bufs[i].copy(buf, pos) 29 | pos += bufs[i].length 30 | } 31 | 32 | return buf 33 | } 34 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/escape-html/.npmignore: -------------------------------------------------------------------------------- 1 | components 2 | build 3 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/escape-html/Makefile: -------------------------------------------------------------------------------- 1 | 2 | build: components index.js 3 | @component build 4 | 5 | components: 6 | @Component install 7 | 8 | clean: 9 | rm -fr build components template.js 10 | 11 | .PHONY: clean 12 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/escape-html/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # escape-html 3 | 4 | Escape HTML entities 5 | 6 | ## Example 7 | 8 | ```js 9 | var escape = require('escape-html'); 10 | escape(str); 11 | ``` 12 | 13 | ## License 14 | 15 | MIT -------------------------------------------------------------------------------- /node_modules/express/node_modules/escape-html/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "escape-html", 3 | "description": "Escape HTML entities", 4 | "version": "1.0.1", 5 | "keywords": ["escape", "html", "utility"], 6 | "dependencies": {}, 7 | "scripts": [ 8 | "index.js" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/escape-html/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Escape special characters in the given string of html. 3 | * 4 | * @param {String} html 5 | * @return {String} 6 | * @api private 7 | */ 8 | 9 | module.exports = function(html) { 10 | return String(html) 11 | .replace(/&/g, '&') 12 | .replace(/"/g, '"') 13 | .replace(/'/g, ''') 14 | .replace(//g, '>'); 16 | } 17 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/etag/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.4.0 / 2014-09-21 2 | ================== 3 | 4 | * Support "fake" stats objects 5 | * Support Node.js 0.6 6 | 7 | 1.3.1 / 2014-09-14 8 | ================== 9 | 10 | * Use the (new and improved) `crc` for crc32 11 | 12 | 1.3.0 / 2014-08-29 13 | ================== 14 | 15 | * Default strings to strong ETags 16 | * Improve speed for weak ETags over 1KB 17 | 18 | 1.2.1 / 2014-08-29 19 | ================== 20 | 21 | * Use the (much faster) `buffer-crc32` for crc32 22 | 23 | 1.2.0 / 2014-08-24 24 | ================== 25 | 26 | * Add support for file stat objects 27 | 28 | 1.1.0 / 2014-08-24 29 | ================== 30 | 31 | * Add fast-path for empty entity 32 | * Add weak ETag generation 33 | * Shrink size of generated ETags 34 | 35 | 1.0.1 / 2014-08-24 36 | ================== 37 | 38 | * Fix behavior of string containing Unicode 39 | 40 | 1.0.0 / 2014-05-18 41 | ================== 42 | 43 | * Initial release 44 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/etag/node_modules/crc/.npmignore: -------------------------------------------------------------------------------- 1 | benchmark 2 | src 3 | test 4 | .travis.yml 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/etag/node_modules/crc/lib/crc1.js: -------------------------------------------------------------------------------- 1 | // Generated by CoffeeScript 1.7.1 2 | var Buffer, create; 3 | 4 | Buffer = require('buffer').Buffer; 5 | 6 | create = require('./create'); 7 | 8 | module.exports = create(function(buf, previous) { 9 | var accum, byte, crc, _i, _len; 10 | if (!Buffer.isBuffer(buf)) { 11 | buf = Buffer(buf); 12 | } 13 | crc = ~~previous; 14 | accum = 0; 15 | for (_i = 0, _len = buf.length; _i < _len; _i++) { 16 | byte = buf[_i]; 17 | accum += byte; 18 | } 19 | crc += accum % 256; 20 | return crc % 256; 21 | }); 22 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/etag/node_modules/crc/lib/create.js: -------------------------------------------------------------------------------- 1 | // Generated by CoffeeScript 1.7.1 2 | module.exports = function(calc) { 3 | var fn; 4 | fn = function(buf, previous) { 5 | return calc(buf, previous) >>> 0; 6 | }; 7 | fn.signed = calc; 8 | fn.unsigned = fn; 9 | return fn; 10 | }; 11 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/etag/node_modules/crc/lib/hex.js: -------------------------------------------------------------------------------- 1 | // Generated by CoffeeScript 1.7.1 2 | module.exports = function(number) { 3 | var result; 4 | result = number.toString(16); 5 | while (result.length % 2) { 6 | result = "0" + result; 7 | } 8 | return result; 9 | }; 10 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/etag/node_modules/crc/lib/index.js: -------------------------------------------------------------------------------- 1 | // Generated by CoffeeScript 1.7.1 2 | module.exports = { 3 | crc1: require('./crc1'), 4 | crc8: require('./crc8'), 5 | crc81wire: require('./crc8_1wire'), 6 | crc16: require('./crc16'), 7 | crc16ccitt: require('./crc16_ccitt'), 8 | crc16modbus: require('./crc16_modbus'), 9 | crc24: require('./crc24'), 10 | crc32: require('./crc32') 11 | }; 12 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/finalhandler/HISTORY.md: -------------------------------------------------------------------------------- 1 | 0.2.0 / 2014-09-03 2 | ================== 3 | 4 | * Set `X-Content-Type-Options: nosniff` header 5 | * deps: debug@~2.0.0 6 | 7 | 0.1.0 / 2014-07-16 8 | ================== 9 | 10 | * Respond after request fully read 11 | - prevents hung responses and socket hang ups 12 | * deps: debug@1.0.4 13 | 14 | 0.0.3 / 2014-07-11 15 | ================== 16 | 17 | * deps: debug@1.0.3 18 | - Add support for multiple wildcards in namespaces 19 | 20 | 0.0.2 / 2014-06-19 21 | ================== 22 | 23 | * Handle invalid status codes 24 | 25 | 0.0.1 / 2014-06-05 26 | ================== 27 | 28 | * deps: debug@1.0.2 29 | 30 | 0.0.0 / 2014-06-05 31 | ================== 32 | 33 | * Extracted from connect/express 34 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/fresh/HISTORY.md: -------------------------------------------------------------------------------- 1 | 0.2.4 / 2014-09-07 2 | ================== 3 | 4 | * Support Node.js 0.6 5 | 6 | 0.2.3 / 2014-09-07 7 | ================== 8 | 9 | * Move repository to jshttp 10 | 11 | 0.2.2 / 2014-02-19 12 | ================== 13 | 14 | * Revert "Fix for blank page on Safari reload" 15 | 16 | 0.2.1 / 2014-01-29 17 | ================== 18 | 19 | * fix: support max-age=0 for end-to-end revalidation 20 | 21 | 0.2.0 / 2013-08-11 22 | ================== 23 | 24 | * fix: return false for no-cache 25 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/media-typer/HISTORY.md: -------------------------------------------------------------------------------- 1 | 0.3.0 / 2014-09-07 2 | ================== 3 | 4 | * Support Node.js 0.6 5 | * Throw error when parameter format invalid on parse 6 | 7 | 0.2.0 / 2014-06-18 8 | ================== 9 | 10 | * Add `typer.format()` to format media types 11 | 12 | 0.1.0 / 2014-06-17 13 | ================== 14 | 15 | * Accept `req` as argument to `parse` 16 | * Accept `res` as argument to `parse` 17 | * Parse media type with extra LWS between type and first parameter 18 | 19 | 0.0.0 / 2014-06-13 20 | ================== 21 | 22 | * Initial implementation 23 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/merge-descriptors/.npmignore: -------------------------------------------------------------------------------- 1 | # Compiled source # 2 | ################### 3 | *.com 4 | *.class 5 | *.dll 6 | *.exe 7 | *.o 8 | *.so 9 | 10 | # Packages # 11 | ############ 12 | # it's better to unpack these files and commit the raw source 13 | # git has its own built in compression methods 14 | *.7z 15 | *.dmg 16 | *.gz 17 | *.iso 18 | *.jar 19 | *.rar 20 | *.tar 21 | *.zip 22 | 23 | # Logs and databases # 24 | ###################### 25 | *.log 26 | *.sql 27 | *.sqlite 28 | 29 | # OS generated files # 30 | ###################### 31 | .DS_Store* 32 | ehthumbs.db 33 | Icon? 34 | Thumbs.db 35 | 36 | # Node.js # 37 | ########### 38 | lib-cov 39 | *.seed 40 | *.log 41 | *.csv 42 | *.dat 43 | *.out 44 | *.pid 45 | *.gz 46 | 47 | pids 48 | logs 49 | results 50 | 51 | node_modules 52 | npm-debug.log 53 | 54 | # Components # 55 | ############## 56 | 57 | /build 58 | /components 59 | /vendors -------------------------------------------------------------------------------- /node_modules/express/node_modules/merge-descriptors/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "merge-descriptors", 3 | "description": "Merge objects using descriptors", 4 | "version": "0.0.2", 5 | "scripts": [ 6 | "index.js" 7 | ], 8 | "repo": "component/merge-descriptors", 9 | "license": "MIT" 10 | } -------------------------------------------------------------------------------- /node_modules/express/node_modules/merge-descriptors/index.js: -------------------------------------------------------------------------------- 1 | module.exports = function (dest, src) { 2 | Object.getOwnPropertyNames(src).forEach(function (name) { 3 | var descriptor = Object.getOwnPropertyDescriptor(src, name) 4 | Object.defineProperty(dest, name, descriptor) 5 | }) 6 | 7 | return dest 8 | } -------------------------------------------------------------------------------- /node_modules/express/node_modules/methods/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/methods/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.1.0 / 2014-07-05 3 | ================== 4 | 5 | * add CONNECT 6 | 7 | 1.0.1 / 2014-06-02 8 | ================== 9 | 10 | * fix index.js to work with harmony transform 11 | 12 | 1.0.0 / 2014-05-08 13 | ================== 14 | 15 | * add PURGE. Closes #9 16 | 17 | 0.1.0 / 2013-10-28 18 | ================== 19 | 20 | * add http.METHODS support 21 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/methods/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # Methods 3 | 4 | HTTP verbs that node core's parser supports. 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/methods/index.js: -------------------------------------------------------------------------------- 1 | 2 | var http = require('http'); 3 | 4 | if (http.METHODS) { 5 | 6 | module.exports = http.METHODS.map(function(method){ 7 | return method.toLowerCase(); 8 | }); 9 | 10 | } else { 11 | 12 | module.exports = [ 13 | 'get', 14 | 'post', 15 | 'put', 16 | 'head', 17 | 'delete', 18 | 'options', 19 | 'trace', 20 | 'copy', 21 | 'lock', 22 | 'mkcol', 23 | 'move', 24 | 'purge', 25 | 'propfind', 26 | 'proppatch', 27 | 'unlock', 28 | 'report', 29 | 'mkactivity', 30 | 'checkout', 31 | 'merge', 32 | 'm-search', 33 | 'notify', 34 | 'subscribe', 35 | 'unsubscribe', 36 | 'patch', 37 | 'search', 38 | 'connect' 39 | ]; 40 | 41 | } 42 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/methods/test/methods.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | var assert = require('assert'); 3 | var methods = require('..'); 4 | 5 | describe('methods', function() { 6 | 7 | if (http.METHODS) { 8 | 9 | it('is a lowercased http.METHODS', function() { 10 | var lowercased = http.METHODS.map(function(method) { 11 | return method.toLowerCase(); 12 | }); 13 | assert.deepEqual(lowercased, methods); 14 | }); 15 | 16 | } else { 17 | 18 | it('contains GET, POST, PUT, and DELETE', function() { 19 | assert.notEqual(methods.indexOf('get'), -1); 20 | assert.notEqual(methods.indexOf('post'), -1); 21 | assert.notEqual(methods.indexOf('put'), -1); 22 | assert.notEqual(methods.indexOf('delete'), -1); 23 | }); 24 | 25 | it('is all lowercase', function() { 26 | for (var i = 0; i < methods.length; i ++) { 27 | assert(methods[i], methods[i].toLowerCase(), methods[i] + " isn't all lowercase"); 28 | } 29 | }); 30 | 31 | } 32 | 33 | }); 34 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/parseurl/.npmignore: -------------------------------------------------------------------------------- 1 | benchmark/ 2 | coverage/ 3 | test/ 4 | .travis.yml 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/parseurl/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.3.0 / 2014-08-09 2 | ================== 3 | 4 | * Add `parseurl.original` for parsing `req.originalUrl` with fallback 5 | * Return `undefined` if `req.url` is `undefined` 6 | 7 | 1.2.0 / 2014-07-21 8 | ================== 9 | 10 | * Cache URLs based on original value 11 | * Remove no-longer-needed URL mis-parse work-around 12 | * Simplify the "fast-path" `RegExp` 13 | 14 | 1.1.3 / 2014-07-08 15 | ================== 16 | 17 | * Fix typo 18 | 19 | 1.1.2 / 2014-07-08 20 | ================== 21 | 22 | * Seriously fix Node.js 0.8 compatibility 23 | 24 | 1.1.1 / 2014-07-08 25 | ================== 26 | 27 | * Fix Node.js 0.8 compatibility 28 | 29 | 1.1.0 / 2014-07-08 30 | ================== 31 | 32 | * Incorporate URL href-only parse fast-path 33 | 34 | 1.0.1 / 2014-03-08 35 | ================== 36 | 37 | * Add missing `require` 38 | 39 | 1.0.0 / 2014-03-08 40 | ================== 41 | 42 | * Genesis from `connect` 43 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/path-to-regexp/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/path-to-regexp/History.md: -------------------------------------------------------------------------------- 1 | 0.1.3 / 2014-07-06 2 | ================== 3 | 4 | * Better array support 5 | * Improved support for trailing slash in non-ending mode 6 | 7 | 0.1.0 / 2014-03-06 8 | ================== 9 | 10 | * add options.end 11 | 12 | 0.0.2 / 2013-02-10 13 | ================== 14 | 15 | * Update to match current express 16 | * add .license property to component.json 17 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/path-to-regexp/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "path-to-regexp", 3 | "description": "Express style path to RegExp utility", 4 | "version": "0.1.3", 5 | "keywords": [ 6 | "express", 7 | "regexp", 8 | "route", 9 | "routing" 10 | ], 11 | "scripts": [ 12 | "index.js" 13 | ], 14 | "license": "MIT" 15 | } 16 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/proxy-addr/node_modules/forwarded/HISTORY.md: -------------------------------------------------------------------------------- 1 | 0.1.0 / 2014-09-21 2 | ================== 3 | 4 | * Initial release 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/proxy-addr/node_modules/forwarded/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * forwarded 3 | * Copyright(c) 2014 Douglas Christopher Wilson 4 | * MIT Licensed 5 | */ 6 | 7 | /** 8 | * Module exports. 9 | */ 10 | 11 | module.exports = forwarded 12 | 13 | /** 14 | * Get all addresses in the request, using the `X-Forwarded-For` header. 15 | * 16 | * @param {Object} req 17 | * @api public 18 | */ 19 | 20 | function forwarded(req) { 21 | if (!req) { 22 | throw new TypeError('argument req is required') 23 | } 24 | 25 | // simple header parsing 26 | var proxyAddrs = (req.headers['x-forwarded-for'] || '') 27 | .split(/ *, */) 28 | .filter(Boolean) 29 | .reverse() 30 | var socketAddr = req.connection.remoteAddress 31 | var addrs = [socketAddr].concat(proxyAddrs) 32 | 33 | // return all addresses 34 | return addrs 35 | } 36 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | node_modules 3 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile: -------------------------------------------------------------------------------- 1 | fs = require 'fs' 2 | CoffeeScript = require 'coffee-script' 3 | nodeunit = require 'nodeunit' 4 | UglifyJS = require 'uglify-js' 5 | 6 | task 'build', 'build the JavaScript files from CoffeeScript source', build = (cb) -> 7 | source = fs.readFileSync 'src/ipaddr.coffee' 8 | fs.writeFileSync 'lib/ipaddr.js', CoffeeScript.compile source.toString() 9 | 10 | invoke 'test' 11 | invoke 'compress' 12 | 13 | task 'test', 'run the bundled tests', (cb) -> 14 | nodeunit.reporters.default.run ['test'] 15 | 16 | task 'compress', 'uglify the resulting javascript', (cb) -> 17 | result = UglifyJS.minify('lib/ipaddr.js') 18 | fs.writeFileSync('ipaddr.min.js', result.code) 19 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/qs/.jshintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/express/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/express/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/express/node_modules/qs/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 -------------------------------------------------------------------------------- /node_modules/express/node_modules/qs/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md). 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/qs/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 -------------------------------------------------------------------------------- /node_modules/express/node_modules/qs/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib'); 2 | -------------------------------------------------------------------------------- /node_modules/express/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/express/node_modules/range-parser/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.2 / 2014-09-08 2 | ================== 3 | 4 | * Support Node.js 0.6 5 | 6 | 1.0.1 / 2014-09-07 7 | ================== 8 | 9 | * Move repository to jshttp 10 | 11 | 1.0.0 / 2013-12-11 12 | ================== 13 | 14 | * Add repository to package.json 15 | * Add MIT license 16 | 17 | 0.0.4 / 2012-06-17 18 | ================== 19 | 20 | * Change ret -1 for unsatisfiable and -2 when invalid 21 | 22 | 0.0.3 / 2012-06-17 23 | ================== 24 | 25 | * Fix last-byte-pos default to len - 1 26 | 27 | 0.0.2 / 2012-06-14 28 | ================== 29 | 30 | * Add `.type` 31 | 32 | 0.0.1 / 2012-06-11 33 | ================== 34 | 35 | * Initial release 36 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/send/node_modules/destroy/index.js: -------------------------------------------------------------------------------- 1 | var ReadStream = require('fs').ReadStream 2 | var Stream = require('stream') 3 | 4 | module.exports = function destroy(stream) { 5 | if (stream instanceof ReadStream) { 6 | return destroyReadStream(stream) 7 | } 8 | 9 | if (!(stream instanceof Stream)) { 10 | return stream 11 | } 12 | 13 | if (typeof stream.destroy === 'function') { 14 | stream.destroy() 15 | } 16 | 17 | return stream 18 | } 19 | 20 | function destroyReadStream(stream) { 21 | stream.destroy() 22 | 23 | if (typeof stream.close === 'function') { 24 | // node.js core bug work-around 25 | stream.on('open', onopenClose) 26 | } 27 | 28 | return stream 29 | } 30 | 31 | function onopenClose() { 32 | if (typeof this.fd === 'number') { 33 | // actually close down the fd 34 | this.close() 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/send/node_modules/ms/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | History.md 4 | Makefile 5 | component.json 6 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/send/node_modules/ms/README.md: -------------------------------------------------------------------------------- 1 | # ms.js: miliseconds conversion utility 2 | 3 | ```js 4 | ms('1d') // 86400000 5 | ms('10h') // 36000000 6 | ms('2h') // 7200000 7 | ms('1m') // 60000 8 | ms('5s') // 5000 9 | ms('100') // 100 10 | ``` 11 | 12 | ```js 13 | ms(60000) // "1m" 14 | ms(2 * 60000) // "2m" 15 | ms(ms('10 hours')) // "10h" 16 | ``` 17 | 18 | ```js 19 | ms(60000, { long: true }) // "1 minute" 20 | ms(2 * 60000, { long: true }) // "2 minutes" 21 | ms(ms('10 hours', { long: true })) // "10 hours" 22 | ``` 23 | 24 | - Node/Browser compatible. Published as `ms` in NPM. 25 | - If a number is supplied to `ms`, a string with a unit is returned. 26 | - If a string that contains the number is supplied, it returns it as 27 | a number (e.g: it returns `100` for `'100'`). 28 | - If you pass a string with a number and a valid unit, the number of 29 | equivalent ms is returned. 30 | 31 | ## License 32 | 33 | MIT -------------------------------------------------------------------------------- /node_modules/express/node_modules/type-is/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/express/node_modules/utils-merge/.travis.yml: -------------------------------------------------------------------------------- 1 | language: "node_js" 2 | node_js: 3 | - "0.4" 4 | - "0.6" 5 | - "0.8" 6 | - "0.10" 7 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/utils-merge/README.md: -------------------------------------------------------------------------------- 1 | # utils-merge 2 | 3 | Merges the properties from a source object into a destination object. 4 | 5 | ## Install 6 | 7 | $ npm install utils-merge 8 | 9 | ## Usage 10 | 11 | ```javascript 12 | var a = { foo: 'bar' } 13 | , b = { bar: 'baz' }; 14 | 15 | merge(a, b); 16 | // => { foo: 'bar', bar: 'baz' } 17 | ``` 18 | 19 | ## Tests 20 | 21 | $ npm install 22 | $ npm test 23 | 24 | [![Build Status](https://secure.travis-ci.org/jaredhanson/utils-merge.png)](http://travis-ci.org/jaredhanson/utils-merge) 25 | 26 | ## Credits 27 | 28 | - [Jared Hanson](http://github.com/jaredhanson) 29 | 30 | ## License 31 | 32 | [The MIT License](http://opensource.org/licenses/MIT) 33 | 34 | Copyright (c) 2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)> 35 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/utils-merge/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Merge object b with object a. 3 | * 4 | * var a = { foo: 'bar' } 5 | * , b = { bar: 'baz' }; 6 | * 7 | * merge(a, b); 8 | * // => { foo: 'bar', bar: 'baz' } 9 | * 10 | * @param {Object} a 11 | * @param {Object} b 12 | * @return {Object} 13 | * @api public 14 | */ 15 | 16 | exports = module.exports = function(a, b){ 17 | if (a && b) { 18 | for (var key in b) { 19 | a[key] = b[key]; 20 | } 21 | } 22 | return a; 23 | }; 24 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/vary/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | test/ 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/vary/History.md: -------------------------------------------------------------------------------- 1 | 1.0.0 / 2014-08-10 2 | ================== 3 | 4 | * Accept valid `Vary` header string as `field` 5 | * Add `vary.append` for low-level string manipulation 6 | * Move to `jshttp` orgainzation 7 | 8 | 0.1.0 / 2014-06-05 9 | ================== 10 | 11 | * Support array of fields to set 12 | 13 | 0.0.0 / 2014-06-04 14 | ================== 15 | 16 | * Initial release 17 | -------------------------------------------------------------------------------- /node_modules/fs-extra/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | test/ 3 | .travis.yml 4 | appveyor.yml 5 | lib/**/__tests__/ 6 | test/readme.md 7 | test.js 8 | -------------------------------------------------------------------------------- /node_modules/fs-extra/lib/copy-sync/copy-file-sync.js: -------------------------------------------------------------------------------- 1 | var fs = require('graceful-fs') 2 | 3 | var BUF_LENGTH = 64 * 1024 4 | var _buff = new Buffer(BUF_LENGTH) 5 | 6 | function copyFileSync (srcFile, destFile, options) { 7 | var clobber = options.clobber 8 | var preserveTimestamps = options.preserveTimestamps 9 | 10 | if (fs.existsSync(destFile) && !clobber) { 11 | throw Error('EEXIST') 12 | } 13 | 14 | var fdr = fs.openSync(srcFile, 'r') 15 | var stat = fs.fstatSync(fdr) 16 | var fdw = fs.openSync(destFile, 'w', stat.mode) 17 | var bytesRead = 1 18 | var pos = 0 19 | 20 | while (bytesRead > 0) { 21 | bytesRead = fs.readSync(fdr, _buff, 0, BUF_LENGTH, pos) 22 | fs.writeSync(fdw, _buff, 0, bytesRead) 23 | pos += bytesRead 24 | } 25 | 26 | if (preserveTimestamps) { 27 | fs.futimesSync(fdw, stat.atime, stat.mtime) 28 | } 29 | 30 | fs.closeSync(fdr) 31 | fs.closeSync(fdw) 32 | } 33 | 34 | module.exports = copyFileSync 35 | -------------------------------------------------------------------------------- /node_modules/fs-extra/lib/copy-sync/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | copySync: require('./copy-sync') 3 | } 4 | -------------------------------------------------------------------------------- /node_modules/fs-extra/lib/copy/copy.js: -------------------------------------------------------------------------------- 1 | var fs = require('graceful-fs') 2 | var path = require('path') 3 | var ncp = require('./ncp') 4 | var mkdir = require('../mkdirs') 5 | 6 | function copy (src, dest, options, callback) { 7 | if (typeof options === 'function' && !callback) { 8 | callback = options 9 | options = {} 10 | } else if (typeof options === 'function' || options instanceof RegExp) { 11 | options = {filter: options} 12 | } 13 | callback = callback || function () {} 14 | 15 | fs.lstat(src, function (err, stats) { 16 | if (err) return callback(err) 17 | 18 | var dir = null 19 | if (stats.isDirectory()) { 20 | var parts = dest.split(path.sep) 21 | parts.pop() 22 | dir = parts.join(path.sep) 23 | } else { 24 | dir = path.dirname(dest) 25 | } 26 | 27 | fs.exists(dir, function (dirExists) { 28 | if (dirExists) return ncp(src, dest, options, callback) 29 | mkdir.mkdirs(dir, function (err) { 30 | if (err) return callback(err) 31 | ncp(src, dest, options, callback) 32 | }) 33 | }) 34 | }) 35 | } 36 | 37 | module.exports = copy 38 | -------------------------------------------------------------------------------- /node_modules/fs-extra/lib/copy/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | copy: require('./copy') 3 | } 4 | -------------------------------------------------------------------------------- /node_modules/fs-extra/lib/ensure/index.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | var fs = require('graceful-fs') 3 | var mkdir = require('../mkdirs') 4 | 5 | function createFile (file, callback) { 6 | function makeFile () { 7 | fs.writeFile(file, '', function (err) { 8 | if (err) return callback(err) 9 | callback() 10 | }) 11 | } 12 | 13 | fs.exists(file, function (fileExists) { 14 | if (fileExists) return callback() 15 | var dir = path.dirname(file) 16 | fs.exists(dir, function (dirExists) { 17 | if (dirExists) return makeFile() 18 | mkdir.mkdirs(dir, function (err) { 19 | if (err) return callback(err) 20 | makeFile() 21 | }) 22 | }) 23 | }) 24 | } 25 | 26 | function createFileSync (file) { 27 | if (fs.existsSync(file)) return 28 | 29 | var dir = path.dirname(file) 30 | if (!fs.existsSync(dir)) { 31 | mkdir.mkdirsSync(dir) 32 | } 33 | 34 | fs.writeFileSync(file, '') 35 | } 36 | 37 | module.exports = { 38 | createFile: createFile, 39 | createFileSync: createFileSync, 40 | // alias 41 | ensureFile: createFile, 42 | ensureFileSync: createFileSync 43 | } 44 | -------------------------------------------------------------------------------- /node_modules/fs-extra/lib/index.js: -------------------------------------------------------------------------------- 1 | var assign = require('./util/assign') 2 | 3 | var fse = {} 4 | var gfs = require('graceful-fs') 5 | 6 | // attach fs methods to fse 7 | Object.keys(gfs).forEach(function (key) { 8 | fse[key] = gfs[key] 9 | }) 10 | 11 | var fs = fse 12 | 13 | assign(fs, require('./copy')) 14 | assign(fs, require('./copy-sync')) 15 | assign(fs, require('./mkdirs')) 16 | assign(fs, require('./remove')) 17 | assign(fs, require('./json')) 18 | assign(fs, require('./move')) 19 | assign(fs, require('./streams')) 20 | assign(fs, require('./empty')) 21 | assign(fs, require('./ensure')) 22 | assign(fs, require('./output')) 23 | 24 | module.exports = fs 25 | 26 | // maintain backwards compatibility for awhile 27 | var jsonfile = {} 28 | Object.defineProperty(jsonfile, 'spaces', { 29 | get: function () { 30 | return fs.spaces // found in ./json 31 | }, 32 | set: function (val) { 33 | fs.spaces = val 34 | } 35 | }) 36 | 37 | module.exports.jsonfile = jsonfile // so users of fs-extra can modify jsonFile.spaces 38 | -------------------------------------------------------------------------------- /node_modules/fs-extra/lib/json/index.js: -------------------------------------------------------------------------------- 1 | var jsonFile = require('jsonfile') 2 | 3 | module.exports = { 4 | outputJsonSync: require('./output-json-sync'), 5 | outputJson: require('./output-json'), 6 | // aliases 7 | outputJSONSync: require('./output-json-sync'), 8 | outputJSON: require('./output-json'), 9 | // jsonfile exports 10 | readJson: jsonFile.readFile, 11 | readJSON: jsonFile.readFile, 12 | readJsonSync: jsonFile.readFileSync, 13 | readJSONSync: jsonFile.readFileSync, 14 | writeJson: jsonFile.writeFile, 15 | writeJSON: jsonFile.writeFile, 16 | writeJsonSync: jsonFile.writeFileSync, 17 | writeJSONSync: jsonFile.writeFileSync, 18 | spaces: 2 // default in fs-extra 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/fs-extra/lib/json/output-json-sync.js: -------------------------------------------------------------------------------- 1 | var fs = require('graceful-fs') 2 | var path = require('path') 3 | var jsonFile = require('jsonfile') 4 | var mkdir = require('../mkdirs') 5 | 6 | function outputJsonSync (file, data, options) { 7 | var dir = path.dirname(file) 8 | 9 | if (!fs.existsSync(dir)) { 10 | mkdir.mkdirsSync(dir) 11 | } 12 | 13 | jsonFile.writeFileSync(file, data, options) 14 | } 15 | 16 | module.exports = outputJsonSync 17 | -------------------------------------------------------------------------------- /node_modules/fs-extra/lib/json/output-json.js: -------------------------------------------------------------------------------- 1 | var fs = require('graceful-fs') 2 | var path = require('path') 3 | var jsonFile = require('jsonfile') 4 | var mkdir = require('../mkdirs') 5 | 6 | function outputJson (file, data, options, callback) { 7 | if (typeof options === 'function') { 8 | callback = options 9 | options = {} 10 | } 11 | 12 | var dir = path.dirname(file) 13 | 14 | fs.exists(dir, function (itDoes) { 15 | if (itDoes) return jsonFile.writeFile(file, data, options, callback) 16 | 17 | mkdir.mkdirs(dir, function (err) { 18 | if (err) return callback(err) 19 | jsonFile.writeFile(file, data, options, callback) 20 | }) 21 | }) 22 | } 23 | 24 | module.exports = outputJson 25 | -------------------------------------------------------------------------------- /node_modules/fs-extra/lib/mkdirs/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | mkdirs: require('./mkdirs'), 3 | mkdirsSync: require('./mkdirs-sync'), 4 | // alias 5 | mkdirp: require('./mkdirs'), 6 | mkdirpSync: require('./mkdirs-sync'), 7 | ensureDir: require('./mkdirs'), 8 | ensureDirSync: require('./mkdirs-sync') 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/fs-extra/lib/output/index.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | var fs = require('graceful-fs') 3 | var mkdir = require('../mkdirs') 4 | 5 | function outputFile (file, data, encoding, callback) { 6 | if (typeof encoding === 'function') { 7 | callback = encoding 8 | encoding = 'utf8' 9 | } 10 | 11 | var dir = path.dirname(file) 12 | fs.exists(dir, function (itDoes) { 13 | if (itDoes) return fs.writeFile(file, data, encoding, callback) 14 | 15 | mkdir.mkdirs(dir, function (err) { 16 | if (err) return callback(err) 17 | 18 | fs.writeFile(file, data, encoding, callback) 19 | }) 20 | }) 21 | } 22 | 23 | function outputFileSync (file, data, encoding) { 24 | var dir = path.dirname(file) 25 | if (fs.existsSync(dir)) { 26 | return fs.writeFileSync.apply(fs, arguments) 27 | } 28 | mkdir.mkdirsSync(dir) 29 | fs.writeFileSync.apply(fs, arguments) 30 | } 31 | 32 | module.exports = { 33 | outputFile: outputFile, 34 | outputFileSync: outputFileSync 35 | } 36 | -------------------------------------------------------------------------------- /node_modules/fs-extra/lib/remove/index.js: -------------------------------------------------------------------------------- 1 | var rimraf = require('rimraf') 2 | 3 | function removeSync (dir) { 4 | return rimraf.sync(dir) 5 | } 6 | 7 | function remove (dir, callback) { 8 | return callback ? rimraf(dir, callback) : rimraf(dir, Function()) 9 | } 10 | 11 | module.exports = { 12 | remove: remove, 13 | removeSync: removeSync, 14 | // alias 15 | delete: remove, 16 | deleteSync: removeSync 17 | } 18 | -------------------------------------------------------------------------------- /node_modules/fs-extra/lib/streams/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | createOutputStream: require('./create-output-stream') 3 | } 4 | -------------------------------------------------------------------------------- /node_modules/fs-extra/lib/util/assign.js: -------------------------------------------------------------------------------- 1 | // simple mutable assign 2 | function assign () { 3 | var args = [].slice.call(arguments) 4 | var dest = args.shift() 5 | args.forEach(function (src) { 6 | Object.keys(src).forEach(function (key) { 7 | dest[key] = src[key] 8 | }) 9 | }) 10 | 11 | return dest 12 | } 13 | 14 | module.exports = assign 15 | -------------------------------------------------------------------------------- /node_modules/fs-extra/lib/walk/index.js: -------------------------------------------------------------------------------- 1 | var Walker = require('./walker') 2 | 3 | function walk (path, filter) { 4 | return new Walker(path, filter).start() 5 | } 6 | 7 | module.exports = walk 8 | -------------------------------------------------------------------------------- /node_modules/glob/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/graceful-fs/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter, Ben Noordhuis, 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/graceful-fs/fs.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | var fs = require('fs') 4 | 5 | module.exports = clone(fs) 6 | 7 | function clone (obj) { 8 | if (obj === null || typeof obj !== 'object') 9 | return obj 10 | 11 | if (obj instanceof Object) 12 | var copy = { __proto__: obj.__proto__ } 13 | else 14 | var copy = Object.create(null) 15 | 16 | Object.getOwnPropertyNames(obj).forEach(function (key) { 17 | Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)) 18 | }) 19 | 20 | return copy 21 | } 22 | -------------------------------------------------------------------------------- /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/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/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/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/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /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/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/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/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /node_modules/jsonfile/.npmignore: -------------------------------------------------------------------------------- 1 | test/ 2 | .travis.yml -------------------------------------------------------------------------------- /node_modules/jsonfile/appveyor.yml: -------------------------------------------------------------------------------- 1 | # Test against this version of Node.js 2 | environment: 3 | matrix: 4 | # node.js 5 | - nodejs_version: "0.10" 6 | - nodejs_version: "0.12" 7 | - nodejs_version: "4" 8 | - nodejs_version: "5" 9 | 10 | # Install scripts. (runs after repo cloning) 11 | install: 12 | # Get the latest stable version of Node.js or io.js 13 | - ps: Install-Product node $env:nodejs_version 14 | # install modules 15 | - npm config set loglevel warn 16 | - npm install --silent 17 | 18 | # Post-install test scripts. 19 | test_script: 20 | # Output useful info for debugging. 21 | - node --version 22 | - npm --version 23 | # run tests 24 | - npm test 25 | 26 | # Don't actually build. 27 | build: off 28 | -------------------------------------------------------------------------------- /node_modules/minimatch/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/mongodb-core/.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: 47iIZ0B3llo2Wc4dxWRltvgdImqcrVDTi 2 | -------------------------------------------------------------------------------- /node_modules/mongodb-core/Makefile: -------------------------------------------------------------------------------- 1 | NODE = node 2 | NPM = npm 3 | JSDOC = jsdoc 4 | name = all 5 | 6 | generate_docs: 7 | # cp -R ./HISTORY.md ./docs/content/meta/release-notes.md 8 | hugo -s docs/reference -d ../../public 9 | $(JSDOC) -c conf.json -t docs/jsdoc-template/ -d ./public/api 10 | cp -R ./public/api/scripts ./public/. 11 | cp -R ./public/api/styles ./public/. 12 | -------------------------------------------------------------------------------- /node_modules/mongodb-core/TESTING.md: -------------------------------------------------------------------------------- 1 | Testing setup 2 | ============= 3 | 4 | Single Server 5 | ------------- 6 | mongod --dbpath=./db 7 | 8 | Replicaset 9 | ---------- 10 | mongo --nodb 11 | var x = new ReplSetTest({"useHostName":"false", "nodes" : {node0 : {}, node1 : {}, node2 : {}}}) 12 | x.startSet(); 13 | var config = x.getReplSetConfig() 14 | x.initiate(config); 15 | 16 | Mongos 17 | ------ 18 | var s = new ShardingTest( "auth1", 1 , 0 , 2 , {rs: true, noChunkSize : true}); -------------------------------------------------------------------------------- /node_modules/mongodb-core/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | MongoError: require('./lib/error') 3 | , Server: require('./lib/topologies/server') 4 | , ReplSet: require('./lib/topologies/replset') 5 | , Mongos: require('./lib/topologies/mongos') 6 | , Logger: require('./lib/connection/logger') 7 | , Cursor: require('./lib/cursor') 8 | , ReadPreference: require('./lib/topologies/read_preference') 9 | , BSON: require('bson') 10 | // Raw operations 11 | , Query: require('./lib/connection/commands').Query 12 | // Auth mechanisms 13 | , MongoCR: require('./lib/auth/mongocr') 14 | , X509: require('./lib/auth/x509') 15 | , Plain: require('./lib/auth/plain') 16 | , GSSAPI: require('./lib/auth/gssapi') 17 | , ScramSHA1: require('./lib/auth/scram') 18 | } 19 | -------------------------------------------------------------------------------- /node_modules/mongodb-core/lib/topologies/command_result.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var setProperty = require('../connection/utils').setProperty 4 | , getProperty = require('../connection/utils').getProperty 5 | , getSingleProperty = require('../connection/utils').getSingleProperty; 6 | 7 | /** 8 | * Creates a new CommandResult instance 9 | * @class 10 | * @param {object} result CommandResult object 11 | * @param {Connection} connection A connection instance associated with this result 12 | * @return {CommandResult} A cursor instance 13 | */ 14 | var CommandResult = function(result, connection) { 15 | this.result = result; 16 | this.connection = connection; 17 | } 18 | 19 | /** 20 | * Convert CommandResult to JSON 21 | * @method 22 | * @return {object} 23 | */ 24 | CommandResult.prototype.toJSON = function() { 25 | return this.result; 26 | } 27 | 28 | /** 29 | * Convert CommandResult to String representation 30 | * @method 31 | * @return {string} 32 | */ 33 | CommandResult.prototype.toString = function() { 34 | return JSON.stringify(this.toJSON()); 35 | } 36 | 37 | module.exports = CommandResult; -------------------------------------------------------------------------------- /node_modules/mongodb/.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: GZFmqKPy7XEX0uOl9TDZFUoOQ5AHADMkU 2 | -------------------------------------------------------------------------------- /node_modules/mongodb/Makefile: -------------------------------------------------------------------------------- 1 | NODE = node 2 | NPM = npm 3 | JSDOC = jsdoc 4 | name = all 5 | 6 | generate_docs: 7 | # cp -R ./HISTORY.md ./docs/content/meta/release-notes.md 8 | hugo -s docs/reference -d ../../public 9 | $(JSDOC) -c conf.json -t docs/jsdoc-template/ -d ./public/api 10 | cp -R ./public/api/scripts ./public/. 11 | cp -R ./public/api/styles ./public/. 12 | -------------------------------------------------------------------------------- /node_modules/mongodb/node_modules/mongodb-core/.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: 47iIZ0B3llo2Wc4dxWRltvgdImqcrVDTi 2 | -------------------------------------------------------------------------------- /node_modules/mongodb/node_modules/mongodb-core/Makefile: -------------------------------------------------------------------------------- 1 | NODE = node 2 | NPM = npm 3 | JSDOC = jsdoc 4 | name = all 5 | 6 | generate_docs: 7 | # cp -R ./HISTORY.md ./docs/content/meta/release-notes.md 8 | hugo -s docs/reference -d ../../public 9 | $(JSDOC) -c conf.json -t docs/jsdoc-template/ -d ./public/api 10 | cp -R ./public/api/scripts ./public/. 11 | cp -R ./public/api/styles ./public/. 12 | -------------------------------------------------------------------------------- /node_modules/mongodb/node_modules/mongodb-core/TESTING.md: -------------------------------------------------------------------------------- 1 | Testing setup 2 | ============= 3 | 4 | Single Server 5 | ------------- 6 | mongod --dbpath=./db 7 | 8 | Replicaset 9 | ---------- 10 | mongo --nodb 11 | var x = new ReplSetTest({"useHostName":"false", "nodes" : {node0 : {}, node1 : {}, node2 : {}}}) 12 | x.startSet(); 13 | var config = x.getReplSetConfig() 14 | x.initiate(config); 15 | 16 | Mongos 17 | ------ 18 | var s = new ShardingTest( "auth1", 1 , 0 , 2 , {rs: true, noChunkSize : true}); -------------------------------------------------------------------------------- /node_modules/mongodb/node_modules/mongodb-core/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | MongoError: require('./lib/error') 3 | , Server: require('./lib/topologies/server') 4 | , ReplSet: require('./lib/topologies/replset') 5 | , Mongos: require('./lib/topologies/mongos') 6 | , Logger: require('./lib/connection/logger') 7 | , Cursor: require('./lib/cursor') 8 | , ReadPreference: require('./lib/topologies/read_preference') 9 | , BSON: require('bson') 10 | // Raw operations 11 | , Query: require('./lib/connection/commands').Query 12 | // Auth mechanisms 13 | , MongoCR: require('./lib/auth/mongocr') 14 | , X509: require('./lib/auth/x509') 15 | , Plain: require('./lib/auth/plain') 16 | , GSSAPI: require('./lib/auth/gssapi') 17 | , ScramSHA1: require('./lib/auth/scram') 18 | } 19 | -------------------------------------------------------------------------------- /node_modules/mongodb/node_modules/mongodb-core/lib/topologies/command_result.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var setProperty = require('../connection/utils').setProperty 4 | , getProperty = require('../connection/utils').getProperty 5 | , getSingleProperty = require('../connection/utils').getSingleProperty; 6 | 7 | /** 8 | * Creates a new CommandResult instance 9 | * @class 10 | * @param {object} result CommandResult object 11 | * @param {Connection} connection A connection instance associated with this result 12 | * @return {CommandResult} A cursor instance 13 | */ 14 | var CommandResult = function(result, connection) { 15 | this.result = result; 16 | this.connection = connection; 17 | } 18 | 19 | /** 20 | * Convert CommandResult to JSON 21 | * @method 22 | * @return {object} 23 | */ 24 | CommandResult.prototype.toJSON = function() { 25 | return this.result; 26 | } 27 | 28 | /** 29 | * Convert CommandResult to String representation 30 | * @method 31 | * @return {string} 32 | */ 33 | CommandResult.prototype.toString = function() { 34 | return JSON.stringify(this.toJSON()); 35 | } 36 | 37 | module.exports = CommandResult; -------------------------------------------------------------------------------- /node_modules/mongodb/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /node_modules/mongodb/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /node_modules/mongodb/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /node_modules/mongodb/node_modules/readable-stream/readable.js: -------------------------------------------------------------------------------- 1 | exports = module.exports = require('./lib/_stream_readable.js'); 2 | exports.Readable = exports; 3 | exports.Writable = require('./lib/_stream_writable.js'); 4 | exports.Duplex = require('./lib/_stream_duplex.js'); 5 | exports.Transform = require('./lib/_stream_transform.js'); 6 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 7 | -------------------------------------------------------------------------------- /node_modules/mongodb/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /node_modules/mongodb/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /node_modules/mongodb/test.js: -------------------------------------------------------------------------------- 1 | var MongoClient = require('./').MongoClient; 2 | 3 | MongoClient.connect('mongodb://localhost:27017/test', function(err, db) { 4 | console.dir(err) 5 | 6 | var json = require('./test.json'); 7 | 8 | db.collection('t').insertOne(json, function(err, r) { 9 | console.dir(err) 10 | console.dir(r) 11 | db.close(); 12 | 13 | }) 14 | }); 15 | -------------------------------------------------------------------------------- /node_modules/mongodb/test.json: -------------------------------------------------------------------------------- 1 | { 2 | "military_base": { 3 | "type": "military", 4 | "level": 0, 5 | "maxLevel": 25, 6 | "upgrade": true, 7 | "targetEnvironment": [], 8 | "timeUntilBuilt": 0, 9 | "costCoef": 0.4, 10 | "requiredResearches": ["foo#4", "bar#1"], 11 | "requiredResources" : ["cash", "metal", "palladium"], 12 | "inProgress": 0, 13 | "queue": [] 14 | }, 15 | "aqua_center": { 16 | "type": "industrial", 17 | "level": 0, 18 | "maxLevel": 25, 19 | "upgrade": true, 20 | "targetEnvironment": ["ocean", "snowy"], 21 | "timeUntilBuilt": 0, 22 | "costCoef": 0.7, 23 | "requiredResearches": ["lorem#10", "ipsum#3"], 24 | "requiredResources" : ["cash", "cristal"], 25 | "inProgress": 0, 26 | "queue": [] 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /node_modules/mongojs/.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | charset = utf-8 7 | indent_size = 2 8 | end_of_line = lf 9 | indent_style = space 10 | insert_final_newline = true 11 | trim_trailing_whitespace = true 12 | 13 | [*.md] 14 | indent_size = 4 15 | trim_trailing_whitespace = false 16 | -------------------------------------------------------------------------------- /node_modules/mongojs/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | coverage/ 4 | -------------------------------------------------------------------------------- /node_modules/mongojs/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2011-2015 by Mathias Buus Madsen 2 | 3 | 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: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | 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. 8 | -------------------------------------------------------------------------------- /node_modules/mongojs/index.js: -------------------------------------------------------------------------------- 1 | var Database = require('./lib/database') 2 | var bson = require('mongodb-core').BSON 3 | var xtend = require('xtend') 4 | 5 | module.exports = function (connString, cols, options) { 6 | var db = new Database(xtend({connString: connString, cols: cols}, options)) 7 | if (typeof Proxy !== 'undefined') { 8 | var p = Proxy.create({ 9 | get: function (obj, prop) { 10 | if (db[prop]) return db[prop] 11 | db[prop] = db.collection(prop) 12 | return db[prop] 13 | } 14 | }) 15 | 16 | return p 17 | } 18 | 19 | return db 20 | } 21 | 22 | // expose bson stuff visible in the shell 23 | module.exports.ObjectId = bson.ObjectId 24 | module.exports.DBRef = bson.DBRef 25 | module.exports.Timestamp = bson.Timestamp 26 | module.exports.MinKey = bson.MinKey 27 | module.exports.MaxKey = bson.MaxKey 28 | module.exports.NumberLong = bson.Long 29 | -------------------------------------------------------------------------------- /node_modules/mongojs/lib/aggregation-cursor.js: -------------------------------------------------------------------------------- 1 | var util = require('util') 2 | var thunky = require('thunky') 3 | var Cursor = require('./cursor') 4 | 5 | var AggregationCursor = function (opts) { 6 | Cursor.call(this, opts) 7 | var onserver = this._opts.onserver 8 | 9 | var self = this 10 | this._get = thunky(function (cb) { 11 | onserver(function (err, server) { 12 | if (err) return cb(err) 13 | cb(null, server.cursor(self._opts.fullCollectionName, { 14 | aggregate: self._opts.colName, 15 | pipeline: self._opts.pipeline, 16 | cursor: {batchSize: 1000} 17 | }, {cursor: {batchSize: 1000}})) 18 | }) 19 | }) 20 | } 21 | 22 | util.inherits(AggregationCursor, Cursor) 23 | 24 | module.exports = AggregationCursor 25 | -------------------------------------------------------------------------------- /node_modules/mongojs/lib/connect.js: -------------------------------------------------------------------------------- 1 | var mongodb = require('mongodb-core') 2 | 3 | var authMechanisms = { 4 | MongoCR: mongodb.MongoCR, 5 | ScramSHA1: mongodb.ScramSHA1 6 | } 7 | 8 | module.exports = function connect (srv, config, options, cb) { 9 | var authMechanism = 'MongoCR' 10 | if (options && options.authMechanism) { 11 | if (!authMechanisms[options.authMechanism]) { 12 | return cb(new Error(options.authMechanism + ' is not a supported authentication mechanism')) 13 | } 14 | 15 | authMechanism = options.authMechanism 16 | } 17 | 18 | if (config.auth) { 19 | srv.addAuthProvider(authMechanism, new authMechanisms[authMechanism]()) 20 | srv.on('connect', function (server) { 21 | server.auth(authMechanism, config.dbName, config.auth.user, config.auth.password, function (err, r) { 22 | if (err) return cb(err) 23 | cb(null, r) 24 | }) 25 | }) 26 | } else { 27 | srv.on('connect', function (server) { 28 | cb(null, server) 29 | }) 30 | } 31 | 32 | srv.on('error', function (err) { 33 | cb(err) 34 | }) 35 | 36 | srv.connect() 37 | } 38 | -------------------------------------------------------------------------------- /node_modules/mongojs/lib/get-topology.js: -------------------------------------------------------------------------------- 1 | var mongodb = require('mongodb-core') 2 | var xtend = require('xtend') 3 | 4 | var Server = mongodb.Server 5 | var ReplSet = mongodb.ReplSet 6 | 7 | module.exports = function (config, options) { 8 | if (config.servers.length === 1) { 9 | var opts = xtend(config.server_options, options) 10 | opts.host = config.servers[0].host || 'localhost' 11 | opts.port = config.servers[0].port || 27017 12 | opts.reconnect = true 13 | opts.reconnectInterval = 50 14 | return new Server(opts) 15 | } else { 16 | var rsopts = xtend(config.rs_options, options) 17 | rsopts.setName = rsopts.rs_name 18 | rsopts.reconnect = true 19 | rsopts.reconnectInterval = 50 20 | return new ReplSet(config.servers, rsopts) 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /node_modules/mongojs/node_modules/mongodb-core/.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: 47iIZ0B3llo2Wc4dxWRltvgdImqcrVDTi 2 | -------------------------------------------------------------------------------- /node_modules/mongojs/node_modules/mongodb-core/Makefile: -------------------------------------------------------------------------------- 1 | NODE = node 2 | NPM = npm 3 | JSDOC = jsdoc 4 | name = all 5 | 6 | generate_docs: 7 | # cp -R ./HISTORY.md ./docs/content/meta/release-notes.md 8 | hugo -s docs/reference -d ../../public 9 | $(JSDOC) -c conf.json -t docs/jsdoc-template/ -d ./public/api 10 | cp -R ./public/api/scripts ./public/. 11 | cp -R ./public/api/styles ./public/. 12 | -------------------------------------------------------------------------------- /node_modules/mongojs/node_modules/mongodb-core/TESTING.md: -------------------------------------------------------------------------------- 1 | Testing setup 2 | ============= 3 | 4 | Single Server 5 | ------------- 6 | mongod --dbpath=./db 7 | 8 | Replicaset 9 | ---------- 10 | mongo --nodb 11 | var x = new ReplSetTest({"useHostName":"false", "nodes" : {node0 : {}, node1 : {}, node2 : {}}}) 12 | x.startSet(); 13 | var config = x.getReplSetConfig() 14 | x.initiate(config); 15 | 16 | Mongos 17 | ------ 18 | var s = new ShardingTest( "auth1", 1 , 0 , 2 , {rs: true, noChunkSize : true}); -------------------------------------------------------------------------------- /node_modules/mongojs/node_modules/mongodb-core/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | MongoError: require('./lib/error') 3 | , Server: require('./lib/topologies/server') 4 | , ReplSet: require('./lib/topologies/replset') 5 | , Mongos: require('./lib/topologies/mongos') 6 | , Logger: require('./lib/connection/logger') 7 | , Cursor: require('./lib/cursor') 8 | , ReadPreference: require('./lib/topologies/read_preference') 9 | , BSON: require('bson') 10 | // Raw operations 11 | , Query: require('./lib/connection/commands').Query 12 | // Auth mechanisms 13 | , MongoCR: require('./lib/auth/mongocr') 14 | , X509: require('./lib/auth/x509') 15 | , Plain: require('./lib/auth/plain') 16 | , GSSAPI: require('./lib/auth/gssapi') 17 | , ScramSHA1: require('./lib/auth/scram') 18 | } 19 | -------------------------------------------------------------------------------- /node_modules/mongojs/node_modules/mongodb-core/lib/topologies/command_result.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var setProperty = require('../connection/utils').setProperty 4 | , getProperty = require('../connection/utils').getProperty 5 | , getSingleProperty = require('../connection/utils').getSingleProperty; 6 | 7 | /** 8 | * Creates a new CommandResult instance 9 | * @class 10 | * @param {object} result CommandResult object 11 | * @param {Connection} connection A connection instance associated with this result 12 | * @return {CommandResult} A cursor instance 13 | */ 14 | var CommandResult = function(result, connection) { 15 | this.result = result; 16 | this.connection = connection; 17 | } 18 | 19 | /** 20 | * Convert CommandResult to JSON 21 | * @method 22 | * @return {object} 23 | */ 24 | CommandResult.prototype.toJSON = function() { 25 | return this.result; 26 | } 27 | 28 | /** 29 | * Convert CommandResult to String representation 30 | * @method 31 | * @return {string} 32 | */ 33 | CommandResult.prototype.toString = function() { 34 | return JSON.stringify(this.toJSON()); 35 | } 36 | 37 | module.exports = CommandResult; -------------------------------------------------------------------------------- /node_modules/mongojs/test/crash.js: -------------------------------------------------------------------------------- 1 | var mongojs = require('../index') 2 | var db = mongojs('localhost', ['test']) 3 | 4 | db.test.findOne(function () { 5 | throw new Error('I should crash the program') 6 | }) 7 | 8 | setTimeout(function () { 9 | throw new Error('timeout') 10 | }, 5000) 11 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/insert.js: -------------------------------------------------------------------------------- 1 | var test = require('./tape') 2 | var mongojs = require('../index') 3 | var db = mongojs('test', ['a']) 4 | 5 | module.exports = function (testName, docs, testFn) { 6 | test(testName, function (t) { 7 | db.a.remove(function (err) { 8 | t.error(err) 9 | 10 | db.a.insert(docs, function (err) { 11 | t.error(err) 12 | testFn(db, t, function () { 13 | db.a.remove(function (err) { 14 | t.error(err) 15 | t.end() 16 | }) 17 | }) 18 | }) 19 | 20 | }) 21 | }) 22 | } 23 | 24 | module.exports.skip = function (testName) { 25 | test.skip(testName, function (t) { 26 | t.end() 27 | }) 28 | } 29 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/tape.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | 3 | var wait = global.setImmediate || process.nextTick 4 | 5 | wait(function () { 6 | test('end', function (t) { 7 | t.end() 8 | process.exit() 9 | }) 10 | }) 11 | 12 | module.exports = test 13 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-chained-collection-names.js: -------------------------------------------------------------------------------- 1 | var test = require('./tape') 2 | var mongojs = require('../index') 3 | var db = mongojs('test', ['b.c']) 4 | 5 | test('chained-collection-names', function (t) { 6 | db.b.c.remove(function () { 7 | db.b.c.save({hello: 'world'}, function (err, rs) { 8 | t.error(err) 9 | db.b.c.find(function (err, docs) { 10 | t.error(err) 11 | t.equal(docs[0].hello, 'world') 12 | db.b.c.remove(function () { 13 | t.end() 14 | }) 15 | }) 16 | }) 17 | }) 18 | }) 19 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-close-unopened.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | var mongojs = require('../') 3 | 4 | test('close unopened db', function (t) { 5 | var db = mongojs('test', ['a']) 6 | 7 | db.close(function (err) { 8 | t.error(err, 'should close without error') 9 | t.end() 10 | }) 11 | }) 12 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-crash.js: -------------------------------------------------------------------------------- 1 | var test = require('./tape') 2 | var cp = require('child_process') 3 | 4 | test('crash', function (t) { 5 | var proc = cp.spawn('node', ['./crash.js']) 6 | proc.on('exit', function (code) { 7 | t.notEqual(code, 0) 8 | t.end() 9 | }) 10 | }) 11 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-create-collection.js: -------------------------------------------------------------------------------- 1 | var test = require('./tape') 2 | var mongojs = require('../index') 3 | var db = mongojs('test', ['test123']) 4 | 5 | test('createCollection', function (t) { 6 | db.test123.drop(function () { 7 | db.createCollection('test123', function (err) { 8 | t.error(err) 9 | db.createCollection('test123', function (err) { 10 | t.ok(err) 11 | t.end() 12 | }) 13 | }) 14 | }) 15 | }) 16 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-cursor-count.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('remove', [{ 4 | name: 'Squirtle', type: 'water' 5 | }, { 6 | name: 'Charmander', type: 'fire' 7 | }, { 8 | name: 'Starmie', type: 'water' 9 | }, { 10 | name: 'Lapras', type: 'water' 11 | }], function (db, t, done) { 12 | db.a.find().count(function (err, cnt) { 13 | t.error(err) 14 | t.equal(cnt, 4) 15 | db.a.find({type: 'water'}).count(function (err, cnt2) { 16 | t.error(err) 17 | t.equal(cnt2, 3) 18 | done() 19 | }) 20 | }) 21 | }) 22 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-cursor-explain.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('cursor.explain', [{ 4 | hello: 'world1' 5 | }, { 6 | hello: 'world2' 7 | }], function (db, t, done) { 8 | var cursor = db.a.find() 9 | cursor.explain(function (err, result) { 10 | t.error(err) 11 | if (result.executionStats) { 12 | t.equal(result.executionStats.totalDocsExamined, 2) 13 | } else { 14 | t.equal(result.nscannedObjects, 2) 15 | } 16 | done() 17 | }) 18 | }) 19 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-cursor-foreach.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | var pokemons = [{ 4 | name: 'Squirtle', type: 'water' 5 | }, { 6 | name: 'Starmie', type: 'water' 7 | }, { 8 | name: 'Lapras', type: 'water' 9 | }] 10 | 11 | insert('cursor foreach', pokemons, function (db, t, done) { 12 | var i = 0 13 | db.a.find().forEach(function (err, pkm) { 14 | t.error(err) 15 | if (++i === 4) return t.end() 16 | t.equal(pkm.name, pokemons[i - 1].name) 17 | }) 18 | }) 19 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-cursor-map.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('cursor.map', [{ 4 | hello: 'world1' 5 | }, { 6 | hello: 'world2' 7 | }], function (db, t, done) { 8 | var cursor = db.a.find() 9 | cursor.map(function (x) { 10 | return x.hello 11 | }, function (err, res) { 12 | t.error(err) 13 | t.equal(res[0], 'world1') 14 | t.equal(res[1], 'world2') 15 | done() 16 | }) 17 | }) 18 | 19 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-cursor-rewind.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('remove', [{ 4 | name: 'Squirtle', type: 'water' 5 | }, { 6 | name: 'Starmie', type: 'water' 7 | }, { 8 | name: 'Lapras', type: 'water' 9 | }], function (db, t, done) { 10 | var cursor = db.a.find().sort({name: 1}) 11 | cursor.next(function (err, obj1) { 12 | t.error(err) 13 | t.equal(obj1.name, 'Lapras') 14 | cursor.next(function (err, obj2) { 15 | t.error(err) 16 | t.equal(obj2.name, 'Squirtle') 17 | cursor.rewind() 18 | cursor.next(function (err) { 19 | t.error(err) 20 | t.equal(obj1.name, 'Lapras') 21 | t.end() 22 | }) 23 | }) 24 | }) 25 | }) 26 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-cursor-size.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('cursor.size', [{ 4 | hello: 'world1' 5 | }, { 6 | hello: 'world2' 7 | }, { 8 | hello: 'world3' 9 | }, { 10 | hello: 'world4' 11 | }], function (db, t, done) { 12 | db.a.find().skip(1).size(function (err, thesize) { 13 | t.error(err) 14 | t.equal(thesize, 3) 15 | db.a.find().limit(2).size(function (err, theothersize) { 16 | t.error(err) 17 | t.equal(theothersize, 2) 18 | done() 19 | }) 20 | }) 21 | }) 22 | 23 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-disinct.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('distinct', [{ 4 | goodbye: 'world', 5 | hello: 'space' 6 | }, { 7 | goodbye: 'world', 8 | hello: 'space' 9 | }, { 10 | goodbye: 'earth', 11 | hello: 'space' 12 | }, { 13 | goodbye: 'world', 14 | hello: 'space' 15 | }], function (db, t, done) { 16 | db.a.distinct('goodbye', {hello: 'space'}, function (err, docs) { 17 | t.error(err) 18 | t.equal(docs.length, 2) 19 | t.equal(docs[0], 'world') 20 | done() 21 | }) 22 | }) 23 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-drop-indexes.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('drop indexes', [{ 4 | name: 'Squirtle', type: 'water' 5 | }, { 6 | name: 'Starmie', type: 'water' 7 | }, { 8 | name: 'Charmander', type: 'fire' 9 | }, { 10 | name: 'Lapras', type: 'water' 11 | }], function (db, t, done) { 12 | db.a.ensureIndex({type: 1}, function (err) { 13 | if (err && err.message === 'no such cmd: createIndexes') { 14 | // Index creation and deletion not supported for mongodb 2.4 and lower. 15 | t.ok(true) 16 | t.end() 17 | return 18 | } 19 | t.error(err) 20 | db.a.getIndexes(function (err, indexes) { 21 | t.error(err) 22 | t.equal(indexes.length, 2) 23 | db.a.dropIndexes(function (err) { 24 | t.error(err) 25 | 26 | db.a.getIndexes(function (err, indexes) { 27 | t.error(err) 28 | t.equal(indexes.length, 1) 29 | t.end() 30 | }) 31 | }) 32 | }) 33 | }) 34 | }) 35 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-event-close.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | var mongojs = require('../') 3 | 4 | test('events close', function (t) { 5 | var db = mongojs('test', ['a']) 6 | 7 | db.on('close', function () { 8 | t.pass('close event emitted') 9 | t.end() 10 | }) 11 | 12 | db.close(function (err) { 13 | t.error(err, 'should close without error') 14 | }) 15 | }) 16 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-event-connect.js: -------------------------------------------------------------------------------- 1 | var test = require('./tape') 2 | var mongojs = require('../index') 3 | 4 | test('events connect', function (t) { 5 | var db = mongojs('test', ['a']) 6 | 7 | db.on('connect', function () { 8 | t.pass('connect event emitted') 9 | t.end() 10 | }) 11 | 12 | db.a.find({}, function (err) { t.error(err, 'should find items without error') }) 13 | }) 14 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-event-destroy.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | var mongojs = require('../index') 3 | 4 | test('events destroy', function (t) { 5 | var db = mongojs('test', ['a']) 6 | 7 | db.on('destroy', function () { 8 | t.pass('destroy event emitted') 9 | t.end() 10 | }) 11 | 12 | db.close(function (err) { 13 | t.error(err, 'should close without error') 14 | }) 15 | }) 16 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-find-and-select.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('find and select', [{ 4 | hello: 'world', 5 | another: 'value' 6 | }], function (db, t, done) { 7 | db.a.find({}, {another: 1}, function (err, docs) { 8 | t.error(err) 9 | t.equal(docs.length, 1) 10 | t.equal(docs[0].hello, undefined) 11 | t.equal(docs[0].another, 'value') 12 | done() 13 | }) 14 | }) 15 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-find-by-objectid.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | var mongojs = require('../') 3 | 4 | insert('find by ObjectId', [{ 5 | hello: 'world' 6 | }], function (db, t, done) { 7 | db.a.find({_id: db.ObjectId('abeabeabeabeabeabeabeabe')}, {hello: 1}, function (err, docs) { 8 | t.error(err) 9 | t.equal(docs.length, 0) 10 | 11 | db.a.save({_id: mongojs.ObjectId('abeabeabeabeabeabeabeabe')}, function () { 12 | db.a.find({_id: db.ObjectId('abeabeabeabeabeabeabeabe')}, {hello: 1}, function (err, docs) { 13 | t.error(err) 14 | t.equal(docs.length, 1) 15 | done() 16 | }) 17 | }) 18 | }) 19 | }) 20 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-find-cursor-options.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('find cursor options', [{ 4 | hello: 'world1' 5 | }, { 6 | hello: 'world2' 7 | }], function (db, t, done) { 8 | var cursor = db.a.find().limit(1).skip(1) 9 | var runs = 0 10 | 11 | cursor.next(function loop (err, doc) { 12 | if (!doc) { 13 | t.equal(runs, 1) 14 | done() 15 | return 16 | } 17 | t.error(err) 18 | t.equal(doc.hello, 'world2') 19 | t.equal(typeof doc, 'object') 20 | runs++ 21 | cursor.next(loop) 22 | }) 23 | }) 24 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-find-cursor.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('find cursor', [{ 4 | hello: 'world1' 5 | }, { 6 | hello: 'world2' 7 | }], function (db, t, done) { 8 | var cursor = db.a.find() 9 | var runs = 0 10 | 11 | cursor.next(function loop (err, doc) { 12 | if (!doc) { 13 | t.equal(runs, 2) 14 | done() 15 | return 16 | } 17 | t.error(err) 18 | t.ok(doc.hello === 'world1' || doc.hello === 'world2') 19 | t.equal(typeof doc, 'object') 20 | runs++ 21 | cursor.next(loop) 22 | }) 23 | }) 24 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-find-limit.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('find().limit', [{ 4 | hello: 'world' 5 | }], function (db, t, done) { 6 | db.a.find().limit(1, function (err, docs) { 7 | t.error(err) 8 | t.equal(docs.length, 1) 9 | t.equal(docs[0].hello, 'world') 10 | done() 11 | }) 12 | }) 13 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-find-one.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('findOne', [{ 4 | hello: 'world1' 5 | }, { 6 | hello: 'world2' 7 | }], function (db, t, done) { 8 | db.a.findOne(function (err, doc) { 9 | t.error(err) 10 | t.equal(typeof doc, 'object') 11 | t.ok(doc.hello === 'world1' || doc.hello === 'world2') 12 | done() 13 | }) 14 | }) 15 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-find-query.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('find query', [{ 4 | hello: 'world1' 5 | }, { 6 | hello: 'world2' 7 | }], function (db, t, done) { 8 | db.a.find({hello: 'world2'}, function (err, docs) { 9 | t.error(err) 10 | t.equal(docs.length, 1) 11 | t.equal(docs[0].hello, 'world2') 12 | done() 13 | }) 14 | }) 15 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-find-sort.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('sort', [{ 4 | name: 'Squirtle', type: 'water' 5 | }, { 6 | name: 'Starmie', type: 'water' 7 | }, { 8 | name: 'Charmander', type: 'fire' 9 | }, { 10 | name: 'Lapras', type: 'water' 11 | }], function (db, t, done) { 12 | db.a.find().sort({name: 1}, function (err, docs) { 13 | t.error(err) 14 | t.equal(docs[0].name, 'Charmander') 15 | t.equal(docs[1].name, 'Lapras') 16 | t.equal(docs[2].name, 'Squirtle') 17 | t.equal(docs[3].name, 'Starmie') 18 | t.end() 19 | }) 20 | }) 21 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-find.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('find', [{ 4 | hello: 'world' 5 | }], function (db, t, done) { 6 | db.a.find(function (err, docs) { 7 | t.error(err) 8 | t.equal(docs.length, 1) 9 | t.equal(docs[0].hello, 'world') 10 | done() 11 | }) 12 | }) 13 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-get-collection-names.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('getCollectionNames', [{ 4 | hello: 'world' 5 | }], function (db, t, done) { 6 | db.collection('b').save({hello: 'world'}, function (err, b) { 7 | t.error(err) 8 | db.getCollectionNames(function (err, colNames) { 9 | t.error(err) 10 | t.notEqual(colNames.indexOf('a'), -1) 11 | t.notEqual(colNames.indexOf('b'), -1) 12 | done() 13 | }) 14 | }) 15 | }) 16 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-group.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('group', [{ 4 | t: 242424, 5 | online: 1 6 | }, { 7 | t: 4244, 8 | online: 0 9 | }], function (db, t, done) { 10 | db.a.group({ 11 | key: {}, 12 | cond: {t: {$gte: 86400}}, 13 | initial: {count: 0, online: 0}, 14 | reduce: function (doc, out) { 15 | out.count++ 16 | out.online += doc.online 17 | }, 18 | finalize: function (out) { 19 | out.avgOnline = out.online / out.count 20 | } 21 | }, function (err, curOnline) { 22 | t.error(err) 23 | t.equal(curOnline[0].count, 1) 24 | t.equal(curOnline[0].online, 1) 25 | done() 26 | }) 27 | }) 28 | 29 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-insert-duplicate-key.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | var mongojs = require('../') 3 | 4 | test('insert duplicate index key', function (t) { 5 | var db = mongojs('test', ['d']) 6 | 7 | db.d.drop(function () { 8 | // Ignore errors here 9 | db.d.ensureIndex({ type: 1 }, { unique: true }, function (err) { 10 | t.error(err) 11 | 12 | var now = new Date().toISOString() 13 | 14 | db.d.insert({ date: now }, function (err) { 15 | t.error(err) 16 | 17 | db.d.insert({ date: now }, function (err) { 18 | t.ok(err, 'should yield an error since we insert a index key for a unique index twice') 19 | 20 | t.end() 21 | }) 22 | }) 23 | }) 24 | }) 25 | }) 26 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-insert.js: -------------------------------------------------------------------------------- 1 | var test = require('./tape') 2 | var mongojs = require('../index') 3 | var db = mongojs('test', ['a', 'b']) 4 | 5 | test('insert', function (t) { 6 | db.a.insert([{name: 'Squirtle'}, {name: 'Charmander'}, {name: 'Bulbasaur'}], function (err, docs) { 7 | t.error(err) 8 | t.ok(docs[0]._id) 9 | t.ok(docs[1]._id) 10 | t.ok(docs[2]._id) 11 | 12 | // It should only return one document in the 13 | // callback when one document is passed instead of an array 14 | db.a.insert({name: 'Lapras'}, function (err, doc) { 15 | t.error(err) 16 | t.equal(doc.name, 'Lapras') 17 | 18 | // If you pass a one element array the callback should 19 | // have a one element array 20 | db.a.insert([{name: 'Pidgeotto'}], function (err, docs) { 21 | t.error(err) 22 | t.equal(docs[0].name, 'Pidgeotto') 23 | t.equal(docs.length, 1) 24 | db.a.remove(function () { 25 | db.close(t.end.bind(t)) 26 | }) 27 | }) 28 | }) 29 | }) 30 | }) 31 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-iscapped.js: -------------------------------------------------------------------------------- 1 | var test = require('./tape') 2 | var mongojs = require('../index') 3 | var db = mongojs('test', ['a', 'mycappedcol']) 4 | 5 | test('isCapped', function (t) { 6 | db.mycappedcol.drop(function () { 7 | db.createCollection('mycappedcol', {capped: true, size: 1024}, function (err) { 8 | t.error(err) 9 | db.mycappedcol.isCapped(function (err, ic) { 10 | t.error(err) 11 | t.ok(ic) 12 | db.a.insert({}, function (err) { 13 | t.error(err) 14 | db.a.isCapped(function (err, ic2) { 15 | t.error(err) 16 | t.notOk(ic2) 17 | db.mycappedcol.drop(t.end.bind(t)) 18 | }) 19 | }) 20 | }) 21 | }) 22 | }) 23 | }) 24 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-map-reduce.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('remove', [{ 4 | name: 'Squirtle', type: 'water', level: 10 5 | }, { 6 | name: 'Starmie', type: 'water', level: 8 7 | }, { 8 | name: 'Charmander', type: 'fire', level: 8 9 | }, { 10 | name: 'Lapras', type: 'water', level: 12 11 | }], function (db, t, done) { 12 | db.a.mapReduce(function () { 13 | /* eslint-disable no-undef */ 14 | emit(this.type, this.level) 15 | /* eslint-enable no-undef */ 16 | }, function (key, values) { 17 | return Array.sum(values) 18 | }, { 19 | query: {type: 'water'}, 20 | out: 'levelSum' 21 | }, function (err) { 22 | t.error(err) 23 | db.collection('levelSum').findOne(function (err, res) { 24 | t.error(err) 25 | t.equal(res._id, 'water') 26 | t.equal(res.value, 30) 27 | db.collection('levelSum').drop(done) 28 | }) 29 | }) 30 | }) 31 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-optional-callback.js: -------------------------------------------------------------------------------- 1 | var test = require('./tape') 2 | var mongojs = require('../index') 3 | var db = mongojs('test', ['a', 'b']) 4 | 5 | test('optional callback', function (t) { 6 | db.a.ensureIndex({hello: 'world'}) 7 | setTimeout(function () { 8 | db.a.count(function () { 9 | db.close(t.end.bind(t)) 10 | }) 11 | }, 100) 12 | }) 13 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-pass-driver-db.js: -------------------------------------------------------------------------------- 1 | var test = require('./tape') 2 | var mongojs = require('../') 3 | 4 | test('receive a driver db or mongojs instance', function (t) { 5 | 6 | var db = mongojs(mongojs('test', []), ['a']) 7 | var afterFind = function () { 8 | db.a.remove(function (err) { 9 | t.error(err) 10 | t.equal(db.toString(), 'test') 11 | 12 | db.close(function (err) { 13 | t.error(err) 14 | t.end() 15 | }) 16 | }) 17 | } 18 | 19 | var afterInsert = function (err) { 20 | t.error(err) 21 | 22 | db.a.findOne(function (err, data) { 23 | t.error(err) 24 | t.equal(data.name, 'Pidgey') 25 | afterFind() 26 | }) 27 | } 28 | 29 | var afterRemove = function (err) { 30 | t.error(err) 31 | db.a.insert({name: 'Pidgey'}, afterInsert) 32 | } 33 | db.a.remove(afterRemove) 34 | 35 | }) 36 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-proxy.js: -------------------------------------------------------------------------------- 1 | var test = require('./tape') 2 | var mongojs = require('../index') 3 | var db = mongojs('test') 4 | 5 | test('proxy', function (t) { 6 | if (typeof Proxy === 'undefined') return t.end() 7 | 8 | db.a.remove(function () { 9 | db.a.insert({hello: 'world'}, function () { 10 | db.a.findOne(function (err, doc) { 11 | t.error(err) 12 | t.equal(doc.hello, 'world') 13 | t.end() 14 | }) 15 | }) 16 | }) 17 | }) 18 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-remove.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | // Delete just one 4 | insert('remove', [{ 5 | name: 'Squirtle', type: 'water' 6 | }, { 7 | name: 'Starmie', type: 'water' 8 | }, { 9 | name: 'Lapras', type: 'water' 10 | }], function (db, t, done) { 11 | // Remove just one 12 | db.a.remove({type: 'water'}, true, function (err, lastErrorObject) { 13 | t.error(err) 14 | t.equal(lastErrorObject.n, 1) 15 | 16 | db.a.find({type: 'water'}, function (err, docs) { 17 | t.error(err) 18 | t.equal(docs.length, 2) 19 | t.equal(docs[0].name, 'Starmie') 20 | 21 | // Normal remove 22 | db.a.remove({type: 'water'}, function (err, lastErrorObject) { 23 | t.error(err) 24 | t.equal(lastErrorObject.n, 2) 25 | 26 | db.a.find({type: 'water'}, function (err, docs) { 27 | t.error(err) 28 | t.equal(docs.length, 0) 29 | done() 30 | }) 31 | }) 32 | }) 33 | }) 34 | }) 35 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-save.js: -------------------------------------------------------------------------------- 1 | var test = require('./tape') 2 | var mongojs = require('../index') 3 | var db = mongojs('test', ['a', 'b']) 4 | 5 | test('save', function (t) { 6 | db.a.save({hello: 'world'}, function (err, doc) { 7 | t.error(err) 8 | t.equal(doc.hello, 'world') 9 | t.ok(doc._id) 10 | 11 | doc.hello = 'verden' 12 | db.a.save(doc, function (err, doc) { 13 | t.error(err) 14 | t.ok(doc._id) 15 | t.equal(doc.hello, 'verden') 16 | db.a.remove(function () { 17 | db.close(t.end.bind(t)) 18 | }) 19 | }) 20 | }) 21 | }) 22 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-simple.js: -------------------------------------------------------------------------------- 1 | var test = require('./tape') 2 | var mongojs = require('../index') 3 | var db = mongojs('test', ['a', 'b']) 4 | 5 | test('simple', function (t) { 6 | db.a.find(function (err, docs) { 7 | t.error(err) 8 | t.equal(docs.length, 0) 9 | db.close(t.end.bind(t)) 10 | }) 11 | }) 12 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-streaming-cursor.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('streaming cursor', [{ 4 | hello: 'world1' 5 | }, { 6 | hello: 'world2' 7 | }], function (db, t, done) { 8 | var cursor = db.a.find() 9 | var runs = 0 10 | 11 | var loop = function () { 12 | var doc 13 | 14 | while ((doc = cursor.read()) !== null) { 15 | t.ok(doc.hello === 'world1' || doc.hello === 'world2') 16 | t.equal(typeof doc, 'object') 17 | runs++ 18 | } 19 | 20 | cursor.once('readable', loop) 21 | } 22 | 23 | cursor.on('end', function () { 24 | t.equal(runs, 2) 25 | done() 26 | }) 27 | 28 | loop() 29 | }) 30 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-timeout.js: -------------------------------------------------------------------------------- 1 | var test = require('./tape') 2 | var mongojs = require('../') 3 | 4 | test('timeout', function (t) { 5 | t.plan(1) 6 | var db = mongojs('example.com/invalid', [], {connectionTimeout: 500}) 7 | db.on('timeout', function () { 8 | t.ok(true, 'should time out') 9 | }) 10 | db.runCommand({ping: 1}, function () { 11 | t.ok(false, 'should not complete') 12 | }) 13 | }) 14 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-update-and-callback.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('update and callback', [{ 4 | hello: 'world' 5 | }], function (db, t, done) { 6 | var sync = true 7 | db.a.update({hello: 'world'}, {$set: {hello: 'verden'}}, function (err, lastErrorObject) { 8 | t.ok(!sync) 9 | t.error(err) 10 | t.equal(lastErrorObject.n, 1) 11 | 12 | done() 13 | }) 14 | sync = false 15 | }) 16 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-update-multi.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('update multi', [{ 4 | hello: 'world1' 5 | }, { 6 | hello: 'world2' 7 | }], function (db, t, done) { 8 | db.a.update({}, {$set: {updated: true}}, {multi: true}, function (err, lastErrorObject) { 9 | t.error(err) 10 | t.equal(lastErrorObject.n, 2) 11 | 12 | db.a.find(function (err, docs) { 13 | t.error(err) 14 | t.equal(docs.length, 2) 15 | t.ok(docs[0].updated) 16 | t.equal(docs[0].hello, 'world1') 17 | t.ok(docs[1].updated) 18 | t.equal(docs[1].hello, 'world2') 19 | done() 20 | }) 21 | }) 22 | }) 23 | -------------------------------------------------------------------------------- /node_modules/mongojs/test/test-update.js: -------------------------------------------------------------------------------- 1 | var insert = require('./insert') 2 | 3 | insert('update', [{ 4 | hello: 'world' 5 | }], function (db, t, done) { 6 | db.a.update({hello: 'world'}, {$set: {hello: 'verden'}}, function (err, lastErrorObject) { 7 | t.error(err) 8 | t.equal(lastErrorObject.n, 1) 9 | 10 | db.a.findOne(function (err, doc) { 11 | t.error(err) 12 | t.equal(doc.hello, 'verden') 13 | done() 14 | }) 15 | }) 16 | }) 17 | -------------------------------------------------------------------------------- /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/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/parse-mongo-url/README.md: -------------------------------------------------------------------------------- 1 | parse-mongo-url 2 | =============== 3 | 4 | Parse mongodb connection strings. This is based on the 5 | [connection string parser](https://github.com/mongodb/node-mongodb-native/blob/2.0/lib/url_parser.js) 6 | from the [mongodb driver](https://github.com/mongodb/node-mongodb-native). 7 | 8 | License 9 | ------- 10 | 11 | Apache 2.0 12 | -------------------------------------------------------------------------------- /node_modules/path-is-absolute/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | function posix(path) { 4 | return path.charAt(0) === '/'; 5 | }; 6 | 7 | function win32(path) { 8 | // https://github.com/joyent/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56 9 | var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; 10 | var result = splitDeviceRe.exec(path); 11 | var device = result[1] || ''; 12 | var isUnc = !!device && device.charAt(1) !== ':'; 13 | 14 | // UNC paths are always absolute 15 | return !!result[2] || isUnc; 16 | }; 17 | 18 | module.exports = process.platform === 'win32' ? win32 : posix; 19 | module.exports.posix = posix; 20 | module.exports.win32 = win32; 21 | -------------------------------------------------------------------------------- /node_modules/path/README.md: -------------------------------------------------------------------------------- 1 | # path 2 | 3 | This is an exact copy of the NodeJS ’path’ module published to the NPM registry. 4 | 5 | [Documentation](http://nodejs.org/docs/latest/api/path.html) 6 | 7 | ## Install 8 | 9 | ```sh 10 | $ npm install --save path 11 | ``` 12 | 13 | ## License 14 | 15 | MIT 16 | -------------------------------------------------------------------------------- /node_modules/process-nextick-args/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.11" 6 | - "0.12" 7 | - "1.7.1" 8 | - 1 9 | - 2 10 | - 3 11 | - 4 12 | - 5 13 | -------------------------------------------------------------------------------- /node_modules/process-nextick-args/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (!process.version || 4 | process.version.indexOf('v0.') === 0 || 5 | process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) { 6 | module.exports = nextTick; 7 | } else { 8 | module.exports = process.nextTick; 9 | } 10 | 11 | function nextTick(fn) { 12 | var args = new Array(arguments.length - 1); 13 | var i = 0; 14 | while (i < args.length) { 15 | args[i++] = arguments[i]; 16 | } 17 | process.nextTick(function afterTick() { 18 | fn.apply(null, args); 19 | }); 20 | } 21 | -------------------------------------------------------------------------------- /node_modules/process-nextick-args/readme.md: -------------------------------------------------------------------------------- 1 | process-nextick-args 2 | ===== 3 | 4 | [![Build Status](https://travis-ci.org/calvinmetcalf/process-nextick-args.svg?branch=master)](https://travis-ci.org/calvinmetcalf/process-nextick-args) 5 | 6 | ```bash 7 | npm install --save process-nextick-args 8 | ``` 9 | 10 | Always be able to pass arguments to process.nextTick, no matter the platform 11 | 12 | ```js 13 | var nextTick = require('process-nextick-args'); 14 | 15 | nextTick(function (a, b, c) { 16 | console.log(a, b, c); 17 | }, 'step', 3, 'profit'); 18 | ``` 19 | -------------------------------------------------------------------------------- /node_modules/process-nextick-args/test.js: -------------------------------------------------------------------------------- 1 | var test = require("tap").test; 2 | var nextTick = require('./'); 3 | 4 | test('should work', function (t) { 5 | t.plan(5); 6 | nextTick(function (a) { 7 | t.ok(a); 8 | nextTick(function (thing) { 9 | t.equals(thing, 7); 10 | }, 7); 11 | }, true); 12 | nextTick(function (a, b, c) { 13 | t.equals(a, 'step'); 14 | t.equals(b, 3); 15 | t.equals(c, 'profit'); 16 | }, 'step', 3, 'profit'); 17 | }); 18 | 19 | test('correct number of arguments', function (t) { 20 | t.plan(1); 21 | nextTick(function () { 22 | t.equals(2, arguments.length, 'correct number'); 23 | }, 1, 2); 24 | }); 25 | -------------------------------------------------------------------------------- /node_modules/pump/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/pump/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | 5 | script: "npm test" 6 | -------------------------------------------------------------------------------- /node_modules/pump/test.js: -------------------------------------------------------------------------------- 1 | var pump = require('./index') 2 | 3 | var rs = require('fs').createReadStream('/dev/random') 4 | var ws = require('fs').createWriteStream('/dev/null') 5 | 6 | var toHex = function () { 7 | var reverse = new (require('stream').Transform)() 8 | 9 | reverse._transform = function (chunk, enc, callback) { 10 | reverse.push(chunk.toString('hex')) 11 | callback() 12 | } 13 | 14 | return reverse 15 | } 16 | 17 | var wsClosed = false 18 | var rsClosed = false 19 | var callbackCalled = false 20 | 21 | var check = function () { 22 | if (wsClosed && rsClosed && callbackCalled) process.exit(0) 23 | } 24 | 25 | ws.on('close', function () { 26 | wsClosed = true 27 | check() 28 | }) 29 | 30 | rs.on('close', function () { 31 | rsClosed = true 32 | check() 33 | }) 34 | 35 | pump(rs, toHex(), toHex(), toHex(), ws, function () { 36 | callbackCalled = true 37 | check() 38 | }) 39 | 40 | setTimeout(function () { 41 | rs.destroy() 42 | }, 1000) 43 | 44 | setTimeout(function () { 45 | throw new Error('timeout') 46 | }, 5000) 47 | -------------------------------------------------------------------------------- /node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /node_modules/readable-stream/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: tape 2 | -------------------------------------------------------------------------------- /node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /node_modules/readable-stream/lib/_stream_passthrough.js: -------------------------------------------------------------------------------- 1 | // a passthrough stream. 2 | // basically just the most minimal sort of Transform stream. 3 | // Every written chunk gets output as-is. 4 | 5 | 'use strict'; 6 | 7 | module.exports = PassThrough; 8 | 9 | var Transform = require('./_stream_transform'); 10 | 11 | /**/ 12 | var util = require('core-util-is'); 13 | util.inherits = require('inherits'); 14 | /**/ 15 | 16 | util.inherits(PassThrough, Transform); 17 | 18 | function PassThrough(options) { 19 | if (!(this instanceof PassThrough)) 20 | return new PassThrough(options); 21 | 22 | Transform.call(this, options); 23 | } 24 | 25 | PassThrough.prototype._transform = function(chunk, encoding, cb) { 26 | cb(null, chunk); 27 | }; 28 | -------------------------------------------------------------------------------- /node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /node_modules/readable-stream/readable.js: -------------------------------------------------------------------------------- 1 | var Stream = (function (){ 2 | try { 3 | return require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify 4 | } catch(_){} 5 | }()); 6 | exports = module.exports = require('./lib/_stream_readable.js'); 7 | exports.Stream = Stream || exports; 8 | exports.Readable = exports; 9 | exports.Writable = require('./lib/_stream_writable.js'); 10 | exports.Duplex = require('./lib/_stream_duplex.js'); 11 | exports.Transform = require('./lib/_stream_transform.js'); 12 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 13 | -------------------------------------------------------------------------------- /node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /node_modules/require_optional/.npmignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | 6 | # Runtime data 7 | pids 8 | *.pid 9 | *.seed 10 | 11 | # Directory for instrumented libs generated by jscoverage/JSCover 12 | lib-cov 13 | 14 | # Coverage directory used by tools like istanbul 15 | coverage 16 | 17 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 18 | .grunt 19 | 20 | # node-waf configuration 21 | .lock-wscript 22 | 23 | # Compiled binary addons (http://nodejs.org/api/addons.html) 24 | build/Release 25 | 26 | # Dependency directory 27 | node_modules 28 | 29 | # Optional npm cache directory 30 | .npm 31 | 32 | # Optional REPL history 33 | .node_repl_history 34 | -------------------------------------------------------------------------------- /node_modules/require_optional/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.12" 5 | - "4.2.1" 6 | sudo: false 7 | -------------------------------------------------------------------------------- /node_modules/require_optional/README.md: -------------------------------------------------------------------------------- 1 | # require_optional 2 | Work around the problem that we do not have a optionalPeerDependencies concept in node.js making it a hassle to optionally include native modules 3 | -------------------------------------------------------------------------------- /node_modules/resolve-from/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var path = require('path'); 3 | var Module = require('module'); 4 | 5 | module.exports = function (fromDir, moduleId) { 6 | if (typeof fromDir !== 'string' || typeof moduleId !== 'string') { 7 | throw new TypeError('Expected `fromDir` and `moduleId` to be a string'); 8 | } 9 | 10 | fromDir = path.resolve(fromDir); 11 | 12 | var fromFile = path.join(fromDir, 'noop.js'); 13 | 14 | try { 15 | return Module._resolveFilename(moduleId, { 16 | id: fromFile, 17 | filename: fromFile, 18 | paths: Module._nodeModulePaths(fromDir) 19 | }); 20 | } catch (err) { 21 | return null; 22 | } 23 | }; 24 | -------------------------------------------------------------------------------- /node_modules/rimraf/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/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 | go(0) 31 | 32 | function go (n) { 33 | if (n >= args.length) 34 | return 35 | rimraf(args[n], function (er) { 36 | if (er) 37 | throw er 38 | go(n+1) 39 | }) 40 | } 41 | -------------------------------------------------------------------------------- /node_modules/semver/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | coverage/ 3 | .nyc_output/ 4 | nyc_output/ 5 | -------------------------------------------------------------------------------- /node_modules/semver/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '0.10' 4 | - '0.12' 5 | - 'iojs' 6 | -------------------------------------------------------------------------------- /node_modules/semver/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/semver/range.bnf: -------------------------------------------------------------------------------- 1 | range-set ::= range ( logical-or range ) * 2 | logical-or ::= ( ' ' ) * '||' ( ' ' ) * 3 | range ::= hyphen | simple ( ' ' simple ) * | '' 4 | hyphen ::= partial ' - ' partial 5 | simple ::= primitive | partial | tilde | caret 6 | primitive ::= ( '<' | '>' | '>=' | '<=' | '=' | ) partial 7 | partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? 8 | xr ::= 'x' | 'X' | '*' | nr 9 | nr ::= '0' | ['1'-'9']['0'-'9']+ 10 | tilde ::= '~' partial 11 | caret ::= '^' partial 12 | qualifier ::= ( '-' pre )? ( '+' build )? 13 | pre ::= parts 14 | build ::= parts 15 | parts ::= part ( '.' part ) * 16 | part ::= nr | [-0-9A-Za-z]+ 17 | -------------------------------------------------------------------------------- /node_modules/semver/test/big-numbers.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test 2 | var semver = require('../') 3 | 4 | test('long version is too long', function (t) { 5 | var v = '1.2.' + new Array(256).join('1') 6 | t.throws(function () { 7 | new semver.SemVer(v) 8 | }) 9 | t.equal(semver.valid(v, false), null) 10 | t.equal(semver.valid(v, true), null) 11 | t.equal(semver.inc(v, 'patch'), null) 12 | t.end() 13 | }) 14 | 15 | test('big number is like too long version', function (t) { 16 | var v = '1.2.' + new Array(100).join('1') 17 | t.throws(function () { 18 | new semver.SemVer(v) 19 | }) 20 | t.equal(semver.valid(v, false), null) 21 | t.equal(semver.valid(v, true), null) 22 | t.equal(semver.inc(v, 'patch'), null) 23 | t.end() 24 | }) 25 | 26 | test('parsing null does not throw', function (t) { 27 | t.equal(semver.parse(null), null) 28 | t.equal(semver.parse({}), null) 29 | t.equal(semver.parse(new semver.SemVer('1.2.3')).version, '1.2.3') 30 | t.end() 31 | }) 32 | -------------------------------------------------------------------------------- /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 | ['>1.2.3', null], 19 | ['~1.2.3', null], 20 | ['<=1.2.3', null], 21 | ['1.2.x', null] 22 | ].forEach(function(tuple) { 23 | var range = tuple[0]; 24 | var version = tuple[1]; 25 | var msg = 'clean(' + range + ') = ' + version; 26 | t.equal(clean(range), version, msg); 27 | }); 28 | t.end(); 29 | }); 30 | -------------------------------------------------------------------------------- /node_modules/streamifier/CHANGES: -------------------------------------------------------------------------------- 1 | v0.1.1 (03 Apr 2015) 2 | Clean up. 3 | 4 | v0.1.0 (21 Oct 2013) 5 | Performance slightly improved due to the simplification of the code. This is 6 | the most basic code that is needed. 7 | If you pass an object, the stream is converted automatically to the object 8 | mode. 9 | 10 | v0.0.2 (19 Jul 2013) 11 | Bump version. 12 | 13 | v0.0.1 (01 Apr 2013) 14 | First release. -------------------------------------------------------------------------------- /node_modules/streamifier/README.md: -------------------------------------------------------------------------------- 1 | streamifier 2 | =========== 3 | 4 | #### Converts a Buffer/String into a readable stream #### 5 | 6 | [![npm][npm-image]][npm-url] 7 | 8 | 9 | ___module_.createReadStream(object[, options]) : Readable__ 10 | 11 | Returns a Readable stream. 12 | 13 | The `object` can be of any data type. If it is a Buffer or a string, the available `options` are [`highWaterMark` and `encoding`](http://nodejs.org/api/stream.html#stream_new_stream_readable_options), otherwise the Readable stream is automatically set in [object mode](http://nodejs.org/api/stream.html#stream_object_mode) and the `options` parameter is ignored. 14 | 15 | [npm-image]: https://img.shields.io/npm/v/streamifier.svg?style=flat 16 | [npm-url]: https://npmjs.org/package/streamifier -------------------------------------------------------------------------------- /node_modules/streamifier/lib/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var util = require('util'); 4 | var stream = require('stream'); 5 | 6 | module.exports.createReadStream = function (object, options) { 7 | return new MultiStream (object, options); 8 | }; 9 | 10 | var MultiStream = function (object, options) { 11 | if (object instanceof Buffer || typeof object === 'string') { 12 | options = options || {}; 13 | stream.Readable.call(this, { 14 | highWaterMark: options.highWaterMark, 15 | encoding: options.encoding 16 | }); 17 | } else { 18 | stream.Readable.call(this, { objectMode: true }); 19 | } 20 | this._object = object; 21 | }; 22 | 23 | util.inherits(MultiStream, stream.Readable); 24 | 25 | MultiStream.prototype._read = function () { 26 | this.push(this._object); 27 | this._object = null; 28 | }; -------------------------------------------------------------------------------- /node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /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/thunky/index.js: -------------------------------------------------------------------------------- 1 | var isError = function(err) { // inlined from util so this works in the browser 2 | return Object.prototype.toString.call(err) === '[object Error]'; 3 | }; 4 | 5 | var thunky = function(fn) { 6 | var run = function(callback) { 7 | var stack = [callback]; 8 | 9 | state = function(callback) { 10 | stack.push(callback); 11 | }; 12 | 13 | fn(function(err) { 14 | var args = arguments; 15 | var apply = function(callback) { 16 | if (callback) callback.apply(null, args); 17 | }; 18 | 19 | state = isError(err) ? run : apply; 20 | while (stack.length) apply(stack.shift()); 21 | }); 22 | }; 23 | 24 | var state = run; 25 | 26 | return function(callback) { 27 | state(callback); 28 | }; 29 | }; 30 | 31 | module.exports = thunky; -------------------------------------------------------------------------------- /node_modules/to-mongodb-core/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/to-mongodb-core/.travis.yml: -------------------------------------------------------------------------------- 1 | services: 2 | - mongodb 3 | 4 | language: node_js 5 | node_js: 6 | - "0.10" 7 | 8 | script: "npm test" 9 | 10 | before_install: 11 | - npm install -g npm@~2.6.1 12 | -------------------------------------------------------------------------------- /node_modules/to-mongodb-core/README.md: -------------------------------------------------------------------------------- 1 | to-mongodb-core 2 | =============== 3 | 4 | [![build status](https://secure.travis-ci.org/sorribas/to-mongodb-core.png)](http://travis-ci.org/sorribas/to-mongodb-core) 5 | 6 | Gets the underlying mongodb-core instance in the mongojs instance. 7 | 8 | Usage 9 | ----- 10 | 11 | ```js 12 | var mongojs = require('mongojs'); 13 | var toMongodbCore = require('to-mongodb-core'); 14 | 15 | var db = mongojs('mydb'); 16 | 17 | toMongodbCore(db, function(err, mdbcore) { 18 | // mdbcore is the mongodb-core server instance used. 19 | }); 20 | ``` 21 | 22 | License 23 | ------- 24 | 25 | MIT 26 | -------------------------------------------------------------------------------- /node_modules/to-mongodb-core/index.js: -------------------------------------------------------------------------------- 1 | var isMongojsDb = function(db) { 2 | if (typeof db.close !== 'function') return false; 3 | if (typeof db.collection !== 'function') return false; 4 | if (typeof db.getCollectionNames !== 'function') return false; 5 | if (typeof db._getServer !== 'function') return false; 6 | 7 | return true; 8 | }; 9 | 10 | module.exports = function(db, cb) { 11 | if (isMongojsDb(db)) { 12 | db._getServer(function(err, srv) { 13 | if (err) return cb(err); 14 | cb(null, srv); 15 | }); 16 | return; 17 | } 18 | 19 | cb(new Error('Unrecognized mongojs instance. Only mongojs +1 supported.')); 20 | }; 21 | -------------------------------------------------------------------------------- /node_modules/to-mongodb-core/test.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var MongoClient = require('mongodb').MongoClient; 3 | var mongodbCore = require('mongodb-core'); 4 | var mongojs = require('mongojs'); 5 | var toMongodbCore = require('./index'); 6 | 7 | test('mongojs', function(t) { 8 | var db = mongojs('test'); 9 | 10 | toMongodbCore(db, function(err, srv) { 11 | t.notOk(err); 12 | srv.command('test.$cmd', {ping: 1}, function(err, ok) { 13 | t.notOk(err); 14 | t.equal(ok.result.ok, 1); 15 | t.end(); 16 | }); 17 | }); 18 | }); 19 | 20 | test('end', function(t) { 21 | t.end(); 22 | process.exit(); 23 | }); 24 | -------------------------------------------------------------------------------- /node_modules/util-deprecate/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.2 / 2015-10-07 3 | ================== 4 | 5 | * use try/catch when checking `localStorage` (#3, @kumavis) 6 | 7 | 1.0.1 / 2014-11-25 8 | ================== 9 | 10 | * browser: use `console.warn()` for deprecation calls 11 | * browser: more jsdocs 12 | 13 | 1.0.0 / 2014-04-30 14 | ================== 15 | 16 | * initial commit 17 | -------------------------------------------------------------------------------- /node_modules/util-deprecate/node.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * For Node.js, simply re-export the core `util.deprecate` function. 4 | */ 5 | 6 | module.exports = require('util').deprecate; 7 | -------------------------------------------------------------------------------- /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/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/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/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/xtend/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/xtend/LICENCE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012-2014 Raynos. 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/xtend/Makefile: -------------------------------------------------------------------------------- 1 | browser: 2 | node ./support/compile 3 | 4 | .PHONY: browser -------------------------------------------------------------------------------- /node_modules/xtend/README.md: -------------------------------------------------------------------------------- 1 | # xtend 2 | 3 | [![browser support][3]][4] 4 | 5 | [![locked](http://badges.github.io/stability-badges/dist/locked.svg)](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/xtend/immutable.js: -------------------------------------------------------------------------------- 1 | module.exports = extend 2 | 3 | var hasOwnProperty = Object.prototype.hasOwnProperty; 4 | 5 | function extend() { 6 | var target = {} 7 | 8 | for (var i = 0; i < arguments.length; i++) { 9 | var source = arguments[i] 10 | 11 | for (var key in source) { 12 | if (hasOwnProperty.call(source, key)) { 13 | target[key] = source[key] 14 | } 15 | } 16 | } 17 | 18 | return target 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/xtend/mutable.js: -------------------------------------------------------------------------------- 1 | module.exports = extend 2 | 3 | var hasOwnProperty = Object.prototype.hasOwnProperty; 4 | 5 | function extend(target) { 6 | for (var i = 1; i < arguments.length; i++) { 7 | var source = arguments[i] 8 | 9 | for (var key in source) { 10 | if (hasOwnProperty.call(source, key)) { 11 | target[key] = source[key] 12 | } 13 | } 14 | } 15 | 16 | return target 17 | } 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "node-js-getting-started", 3 | "version": "0.1.3", 4 | "description": "A sample Node.js app using Express 4", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "node index.js" 8 | }, 9 | "dependencies": { 10 | "body-parser": "^1.13.1", 11 | "express": "~4.9.x", 12 | "mongojs": "^1.0.1", 13 | "path": "^0.11.14" 14 | }, 15 | "engines": { 16 | "node": "0.12.2" 17 | }, 18 | "repository": { 19 | "type": "git", 20 | "url": "https://github.com/heroku/node-js-getting-started" 21 | }, 22 | "keywords": [ 23 | "node", 24 | "heroku", 25 | "express" 26 | ], 27 | "license": "MIT" 28 | } 29 | -------------------------------------------------------------------------------- /public/remote.txt: -------------------------------------------------------------------------------- 1 | Kill:false 2 | Hold:false -------------------------------------------------------------------------------- /pyld.app/Contents/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/pyld.app/Contents/Info.plist -------------------------------------------------------------------------------- /pyld.app/Contents/MacOS/applet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/pyld.app/Contents/MacOS/applet -------------------------------------------------------------------------------- /pyld.app/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPLaplt -------------------------------------------------------------------------------- /pyld.app/Contents/Resources/Scripts/main.scpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/pyld.app/Contents/Resources/Scripts/main.scpt -------------------------------------------------------------------------------- /pyld.app/Contents/Resources/applet.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/pyld.app/Contents/Resources/applet.icns -------------------------------------------------------------------------------- /pyld.app/Contents/Resources/applet.rsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/pyld.app/Contents/Resources/applet.rsrc -------------------------------------------------------------------------------- /pyld.app/Contents/Resources/description.rtfd/TXT.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf460 2 | {\fonttbl} 3 | {\colortbl;\red255\green255\blue255;} 4 | } -------------------------------------------------------------------------------- /pyld.app/Contents/Resources/icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/pyld.app/Contents/Resources/icon.icns -------------------------------------------------------------------------------- /pyld.app/Contents/Resources/keychaindump: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benb116/Gone-Phishing-2/18ef778d0ac79ed1dddc71b55d5db3b7d07ad12f/pyld.app/Contents/Resources/keychaindump --------------------------------------------------------------------------------