├── README.md ├── app.js ├── images ├── 2.1.1.jpg └── 2.8.1.jpg ├── models ├── mongodb.js └── redis.js ├── node_modules ├── .bin │ ├── express │ ├── express.cmd │ ├── needle │ └── needle.cmd ├── express │ ├── .npmignore │ ├── .travis.yml │ ├── History.md │ ├── LICENSE │ ├── Makefile │ ├── Readme.md │ ├── bin │ │ └── express │ ├── index.js │ ├── lib │ │ ├── application.js │ │ ├── express.js │ │ ├── middleware.js │ │ ├── request.js │ │ ├── response.js │ │ ├── router │ │ │ ├── index.js │ │ │ └── route.js │ │ ├── utils.js │ │ └── view.js │ ├── node_modules │ │ ├── buffer-crc32 │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── package.json │ │ │ └── tests │ │ │ │ └── crc.test.js │ │ ├── commander │ │ │ ├── History.md │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ │ └── keypress │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test.js │ │ │ └── package.json │ │ ├── connect │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ ├── cache.js │ │ │ │ ├── connect.js │ │ │ │ ├── index.js │ │ │ │ ├── middleware │ │ │ │ │ ├── basicAuth.js │ │ │ │ │ ├── bodyParser.js │ │ │ │ │ ├── compress.js │ │ │ │ │ ├── cookieParser.js │ │ │ │ │ ├── cookieSession.js │ │ │ │ │ ├── csrf.js │ │ │ │ │ ├── directory.js │ │ │ │ │ ├── errorHandler.js │ │ │ │ │ ├── favicon.js │ │ │ │ │ ├── json.js │ │ │ │ │ ├── limit.js │ │ │ │ │ ├── logger.js │ │ │ │ │ ├── methodOverride.js │ │ │ │ │ ├── multipart.js │ │ │ │ │ ├── query.js │ │ │ │ │ ├── responseTime.js │ │ │ │ │ ├── session.js │ │ │ │ │ ├── session │ │ │ │ │ │ ├── cookie.js │ │ │ │ │ │ ├── memory.js │ │ │ │ │ │ ├── session.js │ │ │ │ │ │ └── store.js │ │ │ │ │ ├── static.js │ │ │ │ │ ├── staticCache.js │ │ │ │ │ ├── timeout.js │ │ │ │ │ ├── urlencoded.js │ │ │ │ │ └── vhost.js │ │ │ │ ├── patch.js │ │ │ │ ├── proto.js │ │ │ │ ├── public │ │ │ │ │ ├── directory.html │ │ │ │ │ ├── error.html │ │ │ │ │ ├── favicon.ico │ │ │ │ │ ├── icons │ │ │ │ │ │ ├── page.png │ │ │ │ │ │ ├── page_add.png │ │ │ │ │ │ ├── page_attach.png │ │ │ │ │ │ ├── page_code.png │ │ │ │ │ │ ├── page_copy.png │ │ │ │ │ │ ├── page_delete.png │ │ │ │ │ │ ├── page_edit.png │ │ │ │ │ │ ├── page_error.png │ │ │ │ │ │ ├── page_excel.png │ │ │ │ │ │ ├── page_find.png │ │ │ │ │ │ ├── page_gear.png │ │ │ │ │ │ ├── page_go.png │ │ │ │ │ │ ├── page_green.png │ │ │ │ │ │ ├── page_key.png │ │ │ │ │ │ ├── page_lightning.png │ │ │ │ │ │ ├── page_link.png │ │ │ │ │ │ ├── page_paintbrush.png │ │ │ │ │ │ ├── page_paste.png │ │ │ │ │ │ ├── page_red.png │ │ │ │ │ │ ├── page_refresh.png │ │ │ │ │ │ ├── page_save.png │ │ │ │ │ │ ├── page_white.png │ │ │ │ │ │ ├── page_white_acrobat.png │ │ │ │ │ │ ├── page_white_actionscript.png │ │ │ │ │ │ ├── page_white_add.png │ │ │ │ │ │ ├── page_white_c.png │ │ │ │ │ │ ├── page_white_camera.png │ │ │ │ │ │ ├── page_white_cd.png │ │ │ │ │ │ ├── page_white_code.png │ │ │ │ │ │ ├── page_white_code_red.png │ │ │ │ │ │ ├── page_white_coldfusion.png │ │ │ │ │ │ ├── page_white_compressed.png │ │ │ │ │ │ ├── page_white_copy.png │ │ │ │ │ │ ├── page_white_cplusplus.png │ │ │ │ │ │ ├── page_white_csharp.png │ │ │ │ │ │ ├── page_white_cup.png │ │ │ │ │ │ ├── page_white_database.png │ │ │ │ │ │ ├── page_white_delete.png │ │ │ │ │ │ ├── page_white_dvd.png │ │ │ │ │ │ ├── page_white_edit.png │ │ │ │ │ │ ├── page_white_error.png │ │ │ │ │ │ ├── page_white_excel.png │ │ │ │ │ │ ├── page_white_find.png │ │ │ │ │ │ ├── page_white_flash.png │ │ │ │ │ │ ├── page_white_freehand.png │ │ │ │ │ │ ├── page_white_gear.png │ │ │ │ │ │ ├── page_white_get.png │ │ │ │ │ │ ├── page_white_go.png │ │ │ │ │ │ ├── page_white_h.png │ │ │ │ │ │ ├── page_white_horizontal.png │ │ │ │ │ │ ├── page_white_key.png │ │ │ │ │ │ ├── page_white_lightning.png │ │ │ │ │ │ ├── page_white_link.png │ │ │ │ │ │ ├── page_white_magnify.png │ │ │ │ │ │ ├── page_white_medal.png │ │ │ │ │ │ ├── page_white_office.png │ │ │ │ │ │ ├── page_white_paint.png │ │ │ │ │ │ ├── page_white_paintbrush.png │ │ │ │ │ │ ├── page_white_paste.png │ │ │ │ │ │ ├── page_white_php.png │ │ │ │ │ │ ├── page_white_picture.png │ │ │ │ │ │ ├── page_white_powerpoint.png │ │ │ │ │ │ ├── page_white_put.png │ │ │ │ │ │ ├── page_white_ruby.png │ │ │ │ │ │ ├── page_white_stack.png │ │ │ │ │ │ ├── page_white_star.png │ │ │ │ │ │ ├── page_white_swoosh.png │ │ │ │ │ │ ├── page_white_text.png │ │ │ │ │ │ ├── page_white_text_width.png │ │ │ │ │ │ ├── page_white_tux.png │ │ │ │ │ │ ├── page_white_vector.png │ │ │ │ │ │ ├── page_white_visualstudio.png │ │ │ │ │ │ ├── page_white_width.png │ │ │ │ │ │ ├── page_white_word.png │ │ │ │ │ │ ├── page_white_world.png │ │ │ │ │ │ ├── page_white_wrench.png │ │ │ │ │ │ ├── page_white_zip.png │ │ │ │ │ │ ├── page_word.png │ │ │ │ │ │ └── page_world.png │ │ │ │ │ └── style.css │ │ │ │ └── utils.js │ │ │ ├── node_modules │ │ │ │ ├── bytes │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── component.json │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── methods │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── multiparty │ │ │ │ │ ├── .jshintrc │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── CHANGELOG.md │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── examples │ │ │ │ │ │ ├── azureblobstorage.js │ │ │ │ │ │ ├── s3.js │ │ │ │ │ │ └── upload.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── readable-stream │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── duplex.js │ │ │ │ │ │ │ ├── examples │ │ │ │ │ │ │ │ ├── CAPSLOCKTYPER.JS │ │ │ │ │ │ │ │ ├── typer-fsr.js │ │ │ │ │ │ │ │ └── typer.js │ │ │ │ │ │ │ ├── float.patch │ │ │ │ │ │ │ ├── fs.js │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ ├── _stream_duplex.js │ │ │ │ │ │ │ │ ├── _stream_passthrough.js │ │ │ │ │ │ │ │ ├── _stream_readable.js │ │ │ │ │ │ │ │ ├── _stream_transform.js │ │ │ │ │ │ │ │ └── _stream_writable.js │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ ├── core-util-is │ │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ │ ├── float.patch │ │ │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ │ │ └── util.js │ │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ │ └── util.js │ │ │ │ │ │ │ │ └── debuglog │ │ │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ │ ├── debuglog.js │ │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ ├── passthrough.js │ │ │ │ │ │ │ ├── readable.js │ │ │ │ │ │ │ ├── test │ │ │ │ │ │ │ │ ├── common.js │ │ │ │ │ │ │ │ ├── fixtures │ │ │ │ │ │ │ │ │ └── x1024.txt │ │ │ │ │ │ │ │ └── simple │ │ │ │ │ │ │ │ │ ├── test-GH-64.js │ │ │ │ │ │ │ │ │ ├── test-GH-66.js │ │ │ │ │ │ │ │ │ ├── test-stream-big-push.js │ │ │ │ │ │ │ │ │ ├── test-stream-end-paused.js │ │ │ │ │ │ │ │ │ ├── test-stream-pipe-after-end.js │ │ │ │ │ │ │ │ │ ├── test-stream-pipe-error-handling.js │ │ │ │ │ │ │ │ │ ├── test-stream-pipe-event.js │ │ │ │ │ │ │ │ │ ├── test-stream-push-order.js │ │ │ │ │ │ │ │ │ ├── test-stream-push-strings.js │ │ │ │ │ │ │ │ │ ├── test-stream-readable-event.js │ │ │ │ │ │ │ │ │ ├── test-stream-readable-flow-recursion.js │ │ │ │ │ │ │ │ │ ├── test-stream-unshift-empty-chunk.js │ │ │ │ │ │ │ │ │ ├── test-stream-unshift-read-race.js │ │ │ │ │ │ │ │ │ ├── test-stream-writev.js │ │ │ │ │ │ │ │ │ ├── test-stream2-basic.js │ │ │ │ │ │ │ │ │ ├── test-stream2-compatibility.js │ │ │ │ │ │ │ │ │ ├── test-stream2-finish-pipe.js │ │ │ │ │ │ │ │ │ ├── test-stream2-large-read-stall.js │ │ │ │ │ │ │ │ │ ├── test-stream2-objects.js │ │ │ │ │ │ │ │ │ ├── test-stream2-pipe-error-handling.js │ │ │ │ │ │ │ │ │ ├── test-stream2-pipe-error-once-listener.js │ │ │ │ │ │ │ │ │ ├── test-stream2-push.js │ │ │ │ │ │ │ │ │ ├── test-stream2-read-sync-stack.js │ │ │ │ │ │ │ │ │ ├── test-stream2-readable-empty-buffer-no-eof.js │ │ │ │ │ │ │ │ │ ├── test-stream2-readable-from-list.js │ │ │ │ │ │ │ │ │ ├── test-stream2-readable-legacy-drain.js │ │ │ │ │ │ │ │ │ ├── test-stream2-readable-non-empty-end.js │ │ │ │ │ │ │ │ │ ├── test-stream2-readable-wrap-empty.js │ │ │ │ │ │ │ │ │ ├── test-stream2-readable-wrap.js │ │ │ │ │ │ │ │ │ ├── test-stream2-set-encoding.js │ │ │ │ │ │ │ │ │ ├── test-stream2-transform.js │ │ │ │ │ │ │ │ │ ├── test-stream2-unpipe-drain.js │ │ │ │ │ │ │ │ │ ├── test-stream2-unpipe-leak.js │ │ │ │ │ │ │ │ │ ├── test-stream2-writable.js │ │ │ │ │ │ │ │ │ └── test-stream3-pause-then-read.js │ │ │ │ │ │ │ ├── transform.js │ │ │ │ │ │ │ ├── writable.js │ │ │ │ │ │ │ └── zlib.js │ │ │ │ │ │ └── stream-counter │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ ├── test.js │ │ │ │ │ │ │ └── test.txt │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ │ ├── bench-multipart-parser.js │ │ │ │ │ │ ├── fixture │ │ │ │ │ │ ├── file │ │ │ │ │ │ │ ├── beta-sticker-1.png │ │ │ │ │ │ │ ├── binaryfile.tar.gz │ │ │ │ │ │ │ ├── blank.gif │ │ │ │ │ │ │ ├── funkyfilename.txt │ │ │ │ │ │ │ ├── menu_separator.png │ │ │ │ │ │ │ ├── pf1y5.png │ │ │ │ │ │ │ └── plain.txt │ │ │ │ │ │ ├── http │ │ │ │ │ │ │ ├── encoding │ │ │ │ │ │ │ │ ├── beta-sticker-1.png.http │ │ │ │ │ │ │ │ ├── binaryfile.tar.gz.http │ │ │ │ │ │ │ │ ├── blank.gif.http │ │ │ │ │ │ │ │ ├── menu_seperator.png.http │ │ │ │ │ │ │ │ ├── pf1y5.png.http │ │ │ │ │ │ │ │ └── plain.txt.http │ │ │ │ │ │ │ ├── no-filename │ │ │ │ │ │ │ │ ├── filename-name.http │ │ │ │ │ │ │ │ └── generic.http │ │ │ │ │ │ │ ├── preamble │ │ │ │ │ │ │ │ ├── crlf.http │ │ │ │ │ │ │ │ └── preamble.http │ │ │ │ │ │ │ ├── special-chars-in-filename │ │ │ │ │ │ │ │ ├── info.md │ │ │ │ │ │ │ │ ├── osx-chrome-13.http │ │ │ │ │ │ │ │ ├── osx-firefox-3.6.http │ │ │ │ │ │ │ │ ├── osx-safari-5.http │ │ │ │ │ │ │ │ ├── xp-chrome-12.http │ │ │ │ │ │ │ │ ├── xp-ie-7.http │ │ │ │ │ │ │ │ ├── xp-ie-8.http │ │ │ │ │ │ │ │ └── xp-safari-5.http │ │ │ │ │ │ │ └── workarounds │ │ │ │ │ │ │ │ ├── missing-hyphens1.http │ │ │ │ │ │ │ │ └── missing-hyphens2.http │ │ │ │ │ │ ├── js │ │ │ │ │ │ │ ├── encoding.js │ │ │ │ │ │ │ ├── no-filename.js │ │ │ │ │ │ │ ├── preamble.js │ │ │ │ │ │ │ ├── special-chars-in-filename.js │ │ │ │ │ │ │ └── workarounds.js │ │ │ │ │ │ ├── multi_video.upload │ │ │ │ │ │ └── multipart.js │ │ │ │ │ │ ├── record.js │ │ │ │ │ │ ├── standalone │ │ │ │ │ │ ├── test-connection-aborted.js │ │ │ │ │ │ ├── test-content-transfer-encoding.js │ │ │ │ │ │ ├── test-invalid.js │ │ │ │ │ │ ├── test-issue-15.js │ │ │ │ │ │ ├── test-issue-19.js │ │ │ │ │ │ ├── test-issue-21.js │ │ │ │ │ │ ├── test-issue-4.js │ │ │ │ │ │ ├── test-issue-46.js │ │ │ │ │ │ └── test-issue-5.js │ │ │ │ │ │ └── test.js │ │ │ │ ├── negotiator │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── examples │ │ │ │ │ │ ├── accept.js │ │ │ │ │ │ ├── charset.js │ │ │ │ │ │ ├── encoding.js │ │ │ │ │ │ └── language.js │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── charset.js │ │ │ │ │ │ ├── encoding.js │ │ │ │ │ │ ├── language.js │ │ │ │ │ │ ├── mediaType.js │ │ │ │ │ │ └── negotiator.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── readme.md │ │ │ │ │ └── test │ │ │ │ │ │ ├── charset.js │ │ │ │ │ │ ├── encoding.js │ │ │ │ │ │ ├── language.js │ │ │ │ │ │ └── mediaType.js │ │ │ │ ├── pause │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── qs │ │ │ │ │ ├── .gitmodules │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── raw-body │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ └── uid2 │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ └── package.json │ │ ├── cookie-signature │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── cookie │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── mocha.opts │ │ │ │ ├── parse.js │ │ │ │ └── serialize.js │ │ ├── debug │ │ │ ├── Readme.md │ │ │ ├── debug.js │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ └── debug.js │ │ │ └── package.json │ │ ├── fresh │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── methods │ │ │ ├── History.md │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── mkdirp │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── examples │ │ │ │ └── pow.js │ │ │ ├── index.js │ │ │ ├── package.json │ │ │ ├── readme.markdown │ │ │ └── test │ │ │ │ ├── chmod.js │ │ │ │ ├── clobber.js │ │ │ │ ├── mkdirp.js │ │ │ │ ├── perm.js │ │ │ │ ├── perm_sync.js │ │ │ │ ├── race.js │ │ │ │ ├── rel.js │ │ │ │ ├── return.js │ │ │ │ ├── return_sync.js │ │ │ │ ├── root.js │ │ │ │ ├── sync.js │ │ │ │ ├── umask.js │ │ │ │ └── umask_sync.js │ │ ├── range-parser │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ └── package.json │ │ └── send │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ ├── send.js │ │ │ └── utils.js │ │ │ ├── node_modules │ │ │ └── mime │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── mime.js │ │ │ │ ├── package.json │ │ │ │ ├── test.js │ │ │ │ └── types │ │ │ │ ├── mime.types │ │ │ │ └── node.types │ │ │ └── package.json │ └── package.json ├── generic-pool │ ├── .npmignore │ ├── .travis.yml │ ├── Makefile │ ├── README.md │ ├── fabfile.py │ ├── issue58.js │ ├── lib │ │ └── generic-pool.js │ ├── package.json │ └── test │ │ └── generic-pool.test.js ├── mongoose │ ├── .npmignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── History.md │ ├── README.md │ ├── contRun.sh │ ├── examples │ │ ├── README.md │ │ ├── aggregate │ │ │ ├── aggregate.js │ │ │ ├── package.json │ │ │ └── person.js │ │ ├── doc-methods.js │ │ ├── express │ │ │ ├── README.md │ │ │ └── connection-sharing │ │ │ │ ├── README.md │ │ │ │ ├── app.js │ │ │ │ ├── modelA.js │ │ │ │ ├── package.json │ │ │ │ └── routes.js │ │ ├── geospatial │ │ │ ├── geoJSONSchema.js │ │ │ ├── geoJSONexample.js │ │ │ ├── geospatial.js │ │ │ ├── package.json │ │ │ └── person.js │ │ ├── globalschemas │ │ │ ├── gs_example.js │ │ │ └── person.js │ │ ├── lean │ │ │ ├── lean.js │ │ │ ├── package.json │ │ │ └── person.js │ │ ├── mapreduce │ │ │ ├── mapreduce.js │ │ │ ├── package.json │ │ │ └── person.js │ │ ├── population │ │ │ ├── population-across-three-collections.js │ │ │ ├── population-basic.js │ │ │ ├── population-of-existing-doc.js │ │ │ ├── population-of-multiple-existing-docs.js │ │ │ ├── population-options.js │ │ │ └── population-plain-objects.js │ │ ├── promises │ │ │ ├── package.json │ │ │ ├── person.js │ │ │ └── promise.js │ │ ├── querybuilder │ │ │ ├── package.json │ │ │ ├── person.js │ │ │ └── querybuilder.js │ │ ├── replicasets │ │ │ ├── package.json │ │ │ ├── person.js │ │ │ └── replica-sets.js │ │ ├── schema │ │ │ ├── schema.js │ │ │ └── storing-schemas-as-json │ │ │ │ ├── index.js │ │ │ │ └── schema.json │ │ └── statics │ │ │ ├── person.js │ │ │ └── statics.js │ ├── index.js │ ├── lib │ │ ├── aggregate.js │ │ ├── collection.js │ │ ├── connection.js │ │ ├── connectionstate.js │ │ ├── document.js │ │ ├── drivers │ │ │ ├── SPEC.md │ │ │ └── node-mongodb-native │ │ │ │ ├── binary.js │ │ │ │ ├── collection.js │ │ │ │ ├── connection.js │ │ │ │ └── objectid.js │ │ ├── error.js │ │ ├── error │ │ │ ├── cast.js │ │ │ ├── divergentArray.js │ │ │ ├── messages.js │ │ │ ├── missingSchema.js │ │ │ ├── overwriteModel.js │ │ │ ├── validation.js │ │ │ ├── validator.js │ │ │ └── version.js │ │ ├── index.js │ │ ├── internal.js │ │ ├── model.js │ │ ├── promise.js │ │ ├── query.js │ │ ├── queryhelpers.js │ │ ├── querystream.js │ │ ├── schema.js │ │ ├── schema │ │ │ ├── array.js │ │ │ ├── boolean.js │ │ │ ├── buffer.js │ │ │ ├── date.js │ │ │ ├── documentarray.js │ │ │ ├── index.js │ │ │ ├── mixed.js │ │ │ ├── number.js │ │ │ ├── objectid.js │ │ │ └── string.js │ │ ├── schemadefault.js │ │ ├── schematype.js │ │ ├── statemachine.js │ │ ├── types │ │ │ ├── array.js │ │ │ ├── buffer.js │ │ │ ├── documentarray.js │ │ │ ├── embedded.js │ │ │ ├── index.js │ │ │ └── objectid.js │ │ ├── utils.js │ │ └── virtualtype.js │ ├── node_modules │ │ ├── hooks │ │ │ ├── .npmignore │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── hooks.alt.js │ │ │ ├── hooks.js │ │ │ ├── package.json │ │ │ └── test.js │ │ ├── mongodb │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ └── mongodb │ │ │ │ │ ├── admin.js │ │ │ │ │ ├── auth │ │ │ │ │ ├── mongodb_cr.js │ │ │ │ │ ├── mongodb_gssapi.js │ │ │ │ │ ├── mongodb_plain.js │ │ │ │ │ └── mongodb_sspi.js │ │ │ │ │ ├── collection.js │ │ │ │ │ ├── commands │ │ │ │ │ ├── base_command.js │ │ │ │ │ ├── db_command.js │ │ │ │ │ ├── delete_command.js │ │ │ │ │ ├── get_more_command.js │ │ │ │ │ ├── insert_command.js │ │ │ │ │ ├── kill_cursor_command.js │ │ │ │ │ ├── query_command.js │ │ │ │ │ └── update_command.js │ │ │ │ │ ├── connection │ │ │ │ │ ├── base.js │ │ │ │ │ ├── connection.js │ │ │ │ │ ├── connection_pool.js │ │ │ │ │ ├── connection_utils.js │ │ │ │ │ ├── mongos.js │ │ │ │ │ ├── read_preference.js │ │ │ │ │ ├── repl_set │ │ │ │ │ │ ├── ha.js │ │ │ │ │ │ ├── options.js │ │ │ │ │ │ ├── repl_set.js │ │ │ │ │ │ ├── repl_set_state.js │ │ │ │ │ │ └── strategies │ │ │ │ │ │ │ ├── ping_strategy.js │ │ │ │ │ │ │ └── statistics_strategy.js │ │ │ │ │ ├── server.js │ │ │ │ │ └── url_parser.js │ │ │ │ │ ├── cursor.js │ │ │ │ │ ├── cursorstream.js │ │ │ │ │ ├── db.js │ │ │ │ │ ├── gridfs │ │ │ │ │ ├── chunk.js │ │ │ │ │ ├── grid.js │ │ │ │ │ ├── gridstore.js │ │ │ │ │ └── readstream.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── mongo_client.js │ │ │ │ │ ├── responses │ │ │ │ │ └── mongo_reply.js │ │ │ │ │ └── utils.js │ │ │ ├── node_modules │ │ │ │ ├── bson │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── README.md │ │ │ │ │ ├── binding.gyp │ │ │ │ │ ├── browser_build │ │ │ │ │ │ ├── bson.js │ │ │ │ │ │ └── package.json │ │ │ │ │ ├── build_browser.js │ │ │ │ │ ├── builderror.log │ │ │ │ │ ├── ext │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── bson.cc │ │ │ │ │ │ ├── bson.h │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── win32 │ │ │ │ │ │ │ ├── ia32 │ │ │ │ │ │ │ │ └── bson.node │ │ │ │ │ │ │ └── x64 │ │ │ │ │ │ │ │ └── bson.node │ │ │ │ │ │ └── wscript │ │ │ │ │ ├── lib │ │ │ │ │ │ └── bson │ │ │ │ │ │ │ ├── binary.js │ │ │ │ │ │ │ ├── binary_parser.js │ │ │ │ │ │ │ ├── bson.js │ │ │ │ │ │ │ ├── code.js │ │ │ │ │ │ │ ├── db_ref.js │ │ │ │ │ │ │ ├── double.js │ │ │ │ │ │ │ ├── float_parser.js │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── long.js │ │ │ │ │ │ │ ├── max_key.js │ │ │ │ │ │ │ ├── min_key.js │ │ │ │ │ │ │ ├── objectid.js │ │ │ │ │ │ │ ├── symbol.js │ │ │ │ │ │ │ └── timestamp.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── tools │ │ │ │ │ │ ├── gleak.js │ │ │ │ │ │ └── jasmine-1.1.0 │ │ │ │ │ │ ├── MIT.LICENSE │ │ │ │ │ │ ├── jasmine-html.js │ │ │ │ │ │ ├── jasmine.css │ │ │ │ │ │ ├── jasmine.js │ │ │ │ │ │ └── jasmine_favicon.png │ │ │ │ └── kerberos │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── binding.gyp │ │ │ │ │ ├── builderror.log │ │ │ │ │ ├── index.js │ │ │ │ │ ├── lib │ │ │ │ │ ├── auth_processes │ │ │ │ │ │ └── mongodb.js │ │ │ │ │ ├── base64.c │ │ │ │ │ ├── base64.h │ │ │ │ │ ├── kerberos.cc │ │ │ │ │ ├── kerberos.h │ │ │ │ │ ├── kerberos.js │ │ │ │ │ ├── kerberos_context.cc │ │ │ │ │ ├── kerberos_context.h │ │ │ │ │ ├── kerberosgss.c │ │ │ │ │ ├── kerberosgss.h │ │ │ │ │ ├── sspi.js │ │ │ │ │ ├── win32 │ │ │ │ │ │ ├── base64.c │ │ │ │ │ │ ├── base64.h │ │ │ │ │ │ ├── kerberos.cc │ │ │ │ │ │ ├── kerberos.h │ │ │ │ │ │ ├── kerberos_sspi.c │ │ │ │ │ │ ├── kerberos_sspi.h │ │ │ │ │ │ ├── worker.cc │ │ │ │ │ │ ├── worker.h │ │ │ │ │ │ └── wrappers │ │ │ │ │ │ │ ├── security_buffer.cc │ │ │ │ │ │ │ ├── security_buffer.h │ │ │ │ │ │ │ ├── security_buffer.js │ │ │ │ │ │ │ ├── security_buffer_descriptor.cc │ │ │ │ │ │ │ ├── security_buffer_descriptor.h │ │ │ │ │ │ │ ├── security_buffer_descriptor.js │ │ │ │ │ │ │ ├── security_context.cc │ │ │ │ │ │ │ ├── security_context.h │ │ │ │ │ │ │ ├── security_context.js │ │ │ │ │ │ │ ├── security_credentials.cc │ │ │ │ │ │ │ ├── security_credentials.h │ │ │ │ │ │ │ └── security_credentials.js │ │ │ │ │ ├── worker.cc │ │ │ │ │ └── worker.h │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ ├── kerberos_tests.js │ │ │ │ │ ├── kerberos_win32_test.js │ │ │ │ │ └── win32 │ │ │ │ │ ├── security_buffer_descriptor_tests.js │ │ │ │ │ ├── security_buffer_tests.js │ │ │ │ │ └── security_credentials_tests.js │ │ │ ├── package.json │ │ │ └── t.js │ │ ├── mpath │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── History.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ └── index.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ └── index.js │ │ ├── mpromise │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── History.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ └── promise.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── promise.test.js │ │ │ │ └── promises-A.js │ │ ├── mquery │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── History.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ ├── collection │ │ │ │ │ ├── collection.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── node.js │ │ │ │ ├── env.js │ │ │ │ ├── mquery.js │ │ │ │ ├── permissions.js │ │ │ │ └── utils.js │ │ │ ├── node_modules │ │ │ │ └── debug │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── debug.component.js │ │ │ │ │ ├── debug.js │ │ │ │ │ ├── example │ │ │ │ │ ├── app.js │ │ │ │ │ ├── browser.html │ │ │ │ │ ├── wildcards.js │ │ │ │ │ └── worker.js │ │ │ │ │ ├── head.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── lib │ │ │ │ │ └── debug.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── tail.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── collection │ │ │ │ ├── browser.js │ │ │ │ ├── mongo.js │ │ │ │ └── node.js │ │ │ │ ├── env.js │ │ │ │ ├── index.js │ │ │ │ └── utils.js │ │ ├── ms │ │ │ ├── .npmignore │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── ms.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── index.html │ │ │ │ ├── support │ │ │ │ └── jquery.js │ │ │ │ └── test.js │ │ ├── muri │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── History.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ └── index.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ └── index.js │ │ ├── regexp-clone │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── History.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ └── index.js │ │ └── sliced │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── History.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── bench.js │ │ │ ├── component.json │ │ │ ├── index.js │ │ │ ├── lib │ │ │ └── sliced.js │ │ │ ├── package.json │ │ │ └── test │ │ │ └── index.js │ ├── package.json │ ├── release-items.md │ ├── static.js │ └── website.js ├── node-uuid │ ├── .npmignore │ ├── LICENSE.md │ ├── README.md │ ├── benchmark │ │ ├── README.md │ │ ├── bench.gnu │ │ ├── bench.sh │ │ ├── benchmark-native.c │ │ └── benchmark.js │ ├── component.json │ ├── package.json │ ├── test │ │ ├── compare_v1.js │ │ ├── test.html │ │ └── test.js │ └── uuid.js ├── redis │ ├── .npmignore │ ├── README.md │ ├── benches │ │ ├── buffer_bench.js │ │ ├── hiredis_parser.js │ │ ├── re_sub_test.js │ │ ├── reconnect_test.js │ │ ├── stress │ │ │ ├── codec.js │ │ │ ├── pubsub │ │ │ │ ├── pub.js │ │ │ │ ├── run │ │ │ │ └── server.js │ │ │ ├── rpushblpop │ │ │ │ ├── pub.js │ │ │ │ ├── run │ │ │ │ └── server.js │ │ │ └── speed │ │ │ │ ├── 00 │ │ │ │ ├── plot │ │ │ │ ├── size-rate.png │ │ │ │ └── speed.js │ │ └── sub_quit_test.js │ ├── changelog.md │ ├── diff_multi_bench_output.js │ ├── examples │ │ ├── auth.js │ │ ├── backpressure_drain.js │ │ ├── eval.js │ │ ├── extend.js │ │ ├── file.js │ │ ├── mget.js │ │ ├── monitor.js │ │ ├── multi.js │ │ ├── multi2.js │ │ ├── psubscribe.js │ │ ├── pub_sub.js │ │ ├── simple.js │ │ ├── sort.js │ │ ├── subqueries.js │ │ ├── subquery.js │ │ ├── unix_socket.js │ │ └── web_server.js │ ├── generate_commands.js │ ├── index.js │ ├── lib │ │ ├── commands.js │ │ ├── parser │ │ │ ├── hiredis.js │ │ │ └── javascript.js │ │ ├── queue.js │ │ ├── to_array.js │ │ └── util.js │ ├── multi_bench.js │ ├── package.json │ ├── test-unref.js │ └── test.js └── request │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── dns-request.js │ ├── index.js │ ├── lib │ ├── cookies.js │ ├── copy.js │ ├── debug.js │ ├── getSafe.js │ └── optional.js │ ├── node_modules │ ├── aws-sign │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── aws-sign2 │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── cookie-jar │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ ├── jar.js │ │ ├── package.json │ │ └── tests │ │ │ ├── run.js │ │ │ ├── test-cookie.js │ │ │ └── test-cookiejar.js │ ├── forever-agent │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── form-data │ │ ├── License │ │ ├── Readme.md │ │ ├── lib │ │ │ └── form_data.js │ │ ├── node_modules │ │ │ ├── async │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── component.json │ │ │ │ ├── lib │ │ │ │ │ └── async.js │ │ │ │ └── package.json │ │ │ └── combined-stream │ │ │ │ ├── .npmignore │ │ │ │ ├── License │ │ │ │ ├── Makefile │ │ │ │ ├── Readme.md │ │ │ │ ├── lib │ │ │ │ └── combined_stream.js │ │ │ │ ├── node_modules │ │ │ │ └── delayed-stream │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── License │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── lib │ │ │ │ │ └── delayed_stream.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ ├── common.js │ │ │ │ │ ├── integration │ │ │ │ │ ├── test-delayed-http-upload.js │ │ │ │ │ ├── test-delayed-stream-auto-pause.js │ │ │ │ │ ├── test-delayed-stream-pause.js │ │ │ │ │ ├── test-delayed-stream.js │ │ │ │ │ ├── test-handle-source-errors.js │ │ │ │ │ ├── test-max-data-size.js │ │ │ │ │ ├── test-pipe-resumes.js │ │ │ │ │ └── test-proxy-readable.js │ │ │ │ │ └── run.js │ │ │ │ ├── package.json │ │ │ │ └── test │ │ │ │ ├── common.js │ │ │ │ ├── fixture │ │ │ │ ├── file1.txt │ │ │ │ └── file2.txt │ │ │ │ ├── integration │ │ │ │ ├── test-callback-streams.js │ │ │ │ ├── test-data-size.js │ │ │ │ ├── test-delayed-streams-and-buffers-and-strings.js │ │ │ │ ├── test-delayed-streams.js │ │ │ │ ├── test-empty-string.js │ │ │ │ ├── test-is-stream-like.js │ │ │ │ ├── test-max-data-size.js │ │ │ │ └── test-unpaused-streams.js │ │ │ │ └── run.js │ │ └── package.json │ ├── hawk │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── example │ │ │ └── usage.js │ │ ├── images │ │ │ ├── hawk.png │ │ │ └── logo.png │ │ ├── index.js │ │ ├── lib │ │ │ ├── browser.js │ │ │ ├── client.js │ │ │ ├── crypto.js │ │ │ ├── index.js │ │ │ ├── server.js │ │ │ └── utils.js │ │ ├── node_modules │ │ │ ├── boom │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── LICENSE │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── images │ │ │ │ │ └── boom.png │ │ │ │ ├── index.js │ │ │ │ ├── lib │ │ │ │ │ └── index.js │ │ │ │ ├── package.json │ │ │ │ └── test │ │ │ │ │ └── index.js │ │ │ ├── cryptiles │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── LICENSE │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ ├── lib │ │ │ │ │ └── index.js │ │ │ │ ├── package.json │ │ │ │ └── test │ │ │ │ │ └── index.js │ │ │ ├── hoek │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── LICENSE │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── images │ │ │ │ │ └── hoek.png │ │ │ │ ├── index.js │ │ │ │ ├── lib │ │ │ │ │ ├── escape.js │ │ │ │ │ └── index.js │ │ │ │ ├── package.json │ │ │ │ └── test │ │ │ │ │ ├── escaper.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── modules │ │ │ │ │ ├── test1.js │ │ │ │ │ ├── test2.js │ │ │ │ │ └── test3.js │ │ │ └── sntp │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── LICENSE │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── examples │ │ │ │ ├── offset.js │ │ │ │ └── time.js │ │ │ │ ├── index.js │ │ │ │ ├── lib │ │ │ │ └── index.js │ │ │ │ ├── package.json │ │ │ │ └── test │ │ │ │ └── index.js │ │ ├── package.json │ │ └── test │ │ │ ├── browser.js │ │ │ ├── client.js │ │ │ ├── crypto.js │ │ │ ├── index.js │ │ │ ├── message.js │ │ │ ├── readme.js │ │ │ ├── server.js │ │ │ ├── uri.js │ │ │ └── utils.js │ ├── http-signature │ │ ├── .dir-locals.el │ │ ├── .npmignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── http_signing.md │ │ ├── lib │ │ │ ├── index.js │ │ │ ├── parser.js │ │ │ ├── signer.js │ │ │ ├── util.js │ │ │ └── verify.js │ │ ├── node_modules │ │ │ ├── asn1 │ │ │ │ ├── .npmignore │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── lib │ │ │ │ │ ├── ber │ │ │ │ │ │ ├── errors.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── reader.js │ │ │ │ │ │ ├── types.js │ │ │ │ │ │ └── writer.js │ │ │ │ │ └── index.js │ │ │ │ ├── package.json │ │ │ │ └── tst │ │ │ │ │ └── ber │ │ │ │ │ ├── reader.test.js │ │ │ │ │ └── writer.test.js │ │ │ ├── assert-plus │ │ │ │ ├── README.md │ │ │ │ ├── assert.js │ │ │ │ └── package.json │ │ │ └── ctype │ │ │ │ ├── CHANGELOG │ │ │ │ ├── LICENSE │ │ │ │ ├── README │ │ │ │ ├── README.old │ │ │ │ ├── ctf.js │ │ │ │ ├── ctio.js │ │ │ │ ├── ctype.js │ │ │ │ ├── man │ │ │ │ └── man3ctype │ │ │ │ │ └── ctio.3ctype │ │ │ │ ├── package.json │ │ │ │ ├── tools │ │ │ │ ├── jsl.conf │ │ │ │ └── jsstyle │ │ │ │ └── tst │ │ │ │ ├── ctf │ │ │ │ ├── float.json │ │ │ │ ├── int.json │ │ │ │ ├── psinfo.json │ │ │ │ ├── struct.json │ │ │ │ ├── tst.fail.js │ │ │ │ ├── tst.float.js │ │ │ │ ├── tst.int.js │ │ │ │ ├── tst.psinfo.js │ │ │ │ ├── tst.struct.js │ │ │ │ ├── tst.typedef.js │ │ │ │ └── typedef.json │ │ │ │ ├── ctio │ │ │ │ ├── float │ │ │ │ │ ├── tst.rfloat.js │ │ │ │ │ └── tst.wfloat.js │ │ │ │ ├── int │ │ │ │ │ ├── tst.64.js │ │ │ │ │ ├── tst.rint.js │ │ │ │ │ ├── tst.wbounds.js │ │ │ │ │ └── tst.wint.js │ │ │ │ └── uint │ │ │ │ │ ├── tst.64.js │ │ │ │ │ ├── tst.roundtrip.js │ │ │ │ │ ├── tst.ruint.js │ │ │ │ │ └── tst.wuint.js │ │ │ │ └── ctype │ │ │ │ ├── tst.basicr.js │ │ │ │ ├── tst.basicw.js │ │ │ │ ├── tst.char.js │ │ │ │ ├── tst.endian.js │ │ │ │ ├── tst.oldwrite.js │ │ │ │ ├── tst.readSize.js │ │ │ │ ├── tst.structw.js │ │ │ │ └── tst.writeStruct.js │ │ └── package.json │ ├── json-stringify-safe │ │ ├── LICENSE │ │ ├── README.md │ │ ├── package.json │ │ ├── stringify.js │ │ └── test.js │ ├── mime │ │ ├── LICENSE │ │ ├── README.md │ │ ├── mime.js │ │ ├── package.json │ │ ├── test.js │ │ └── types │ │ │ ├── mime.types │ │ │ └── node.types │ ├── node-uuid │ │ ├── .npmignore │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── benchmark │ │ │ ├── README.md │ │ │ ├── bench.gnu │ │ │ ├── bench.sh │ │ │ ├── benchmark-native.c │ │ │ └── benchmark.js │ │ ├── component.json │ │ ├── package.json │ │ ├── test │ │ │ ├── compare_v1.js │ │ │ ├── test.html │ │ │ └── test.js │ │ └── uuid.js │ ├── oauth-sign │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ ├── package.json │ │ └── test.js │ ├── qs │ │ ├── .gitmodules │ │ ├── .npmignore │ │ ├── Readme.md │ │ ├── index.js │ │ └── package.json │ ├── tough-cookie │ │ ├── .jshintrc │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── generate-pubsuffix.js │ │ ├── lib │ │ │ ├── cookie.js │ │ │ ├── memstore.js │ │ │ ├── pubsuffix.js │ │ │ └── store.js │ │ ├── node_modules │ │ │ └── punycode │ │ │ │ ├── LICENSE-GPL.txt │ │ │ │ ├── LICENSE-MIT.txt │ │ │ │ ├── README.md │ │ │ │ ├── package.json │ │ │ │ ├── punycode.js │ │ │ │ └── punycode.min.js │ │ ├── package.json │ │ ├── public-suffix.txt │ │ └── test.js │ └── tunnel-agent │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── package.json │ ├── request.js │ └── tests │ ├── googledoodle.jpg │ ├── run.js │ ├── server.js │ ├── squid.conf │ ├── ssl │ ├── ca │ │ ├── ca.cnf │ │ ├── ca.crl │ │ ├── ca.crt │ │ ├── ca.csr │ │ ├── ca.key │ │ ├── ca.srl │ │ ├── server.cnf │ │ ├── server.crt │ │ ├── server.csr │ │ ├── server.js │ │ └── server.key │ ├── npm-ca.crt │ ├── test.crt │ └── test.key │ ├── test-agentOptions.js │ ├── test-basic-auth.js │ ├── test-body.js │ ├── test-defaults.js │ ├── test-digest-auth.js │ ├── test-emptyBody.js │ ├── test-errors.js │ ├── test-follow-all-303.js │ ├── test-follow-all.js │ ├── test-form.js │ ├── test-hawk.js │ ├── test-headers.js │ ├── test-http-signature.js │ ├── test-httpModule.js │ ├── test-https-strict.js │ ├── test-https.js │ ├── test-isUrl.js │ ├── test-localAddress.js │ ├── test-oauth.js │ ├── test-onelineproxy.js │ ├── test-params.js │ ├── test-piped-redirect.js │ ├── test-pipes.js │ ├── test-pool.js │ ├── test-protocol-changing-redirect.js │ ├── test-proxy.js │ ├── test-qs.js │ ├── test-redirect.js │ ├── test-s3.js │ ├── test-timeout.js │ ├── test-toJSON.js │ ├── test-tunnel.js │ └── unicycle.jpg ├── package.json └── test └── init_redis.js /README.md: -------------------------------------------------------------------------------- 1 | N-drifter 2 | ====== 3 | 4 | 使用 Express + Redis + MongoDB 搭建漂流瓶服务器 5 | 6 | 教程见 [wiki](https://github.com/nswbmw/N-drifter/wiki/_pages) -------------------------------------------------------------------------------- /images/2.1.1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/images/2.1.1.jpg -------------------------------------------------------------------------------- /images/2.8.1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/images/2.8.1.jpg -------------------------------------------------------------------------------- /node_modules/.bin/express: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=`dirname "$0"` 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../express/bin/express" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../express/bin/express" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /node_modules/.bin/express.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\express\bin\express" %* 3 | ) ELSE ( 4 | node "%~dp0\..\express\bin\express" %* 5 | ) -------------------------------------------------------------------------------- /node_modules/.bin/needle: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=`dirname "$0"` 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../needle/bin/needle" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../needle/bin/needle" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /node_modules/.bin/needle.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\needle\bin\needle" %* 3 | ) ELSE ( 4 | node "%~dp0\..\needle\bin\needle" %* 5 | ) -------------------------------------------------------------------------------- /node_modules/express/.npmignore: -------------------------------------------------------------------------------- 1 | .git* 2 | docs/ 3 | examples/ 4 | support/ 5 | test/ 6 | testing.js 7 | .DS_Store 8 | coverage.html 9 | lib-cov 10 | -------------------------------------------------------------------------------- /node_modules/express/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /node_modules/express/Makefile: -------------------------------------------------------------------------------- 1 | 2 | MOCHA_OPTS= --check-leaks 3 | REPORTER = dot 4 | 5 | check: test 6 | 7 | test: test-unit test-acceptance 8 | 9 | test-unit: 10 | @NODE_ENV=test ./node_modules/.bin/mocha \ 11 | --reporter $(REPORTER) \ 12 | --globals setImmediate,clearImmediate \ 13 | $(MOCHA_OPTS) 14 | 15 | test-acceptance: 16 | @NODE_ENV=test ./node_modules/.bin/mocha \ 17 | --reporter $(REPORTER) \ 18 | --bail \ 19 | test/acceptance/*.js 20 | 21 | test-cov: lib-cov 22 | @EXPRESS_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html 23 | 24 | lib-cov: 25 | @jscoverage lib lib-cov 26 | 27 | benchmark: 28 | @./support/bench 29 | 30 | clean: 31 | rm -f coverage.html 32 | rm -fr lib-cov 33 | 34 | .PHONY: test test-unit test-acceptance benchmark clean 35 | -------------------------------------------------------------------------------- /node_modules/express/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = process.env.EXPRESS_COV 3 | ? require('./lib-cov/express') 4 | : require('./lib/express'); -------------------------------------------------------------------------------- /node_modules/express/lib/middleware.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var utils = require('./utils'); 7 | 8 | /** 9 | * Initialization middleware, exposing the 10 | * request and response to eachother, as well 11 | * as defaulting the X-Powered-By header field. 12 | * 13 | * @param {Function} app 14 | * @return {Function} 15 | * @api private 16 | */ 17 | 18 | exports.init = function(app){ 19 | return function expressInit(req, res, next){ 20 | if (app.enabled('x-powered-by')) res.setHeader('X-Powered-By', 'Express'); 21 | req.res = res; 22 | res.req = req; 23 | req.next = next; 24 | 25 | req.__proto__ = app.request; 26 | res.__proto__ = app.response; 27 | 28 | res.locals = res.locals || utils.locals(res); 29 | 30 | next(); 31 | } 32 | }; 33 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/buffer-crc32/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /node_modules/express/node_modules/buffer-crc32/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | notifications: 6 | email: 7 | recipients: 8 | - brianloveswords@gmail.com -------------------------------------------------------------------------------- /node_modules/express/node_modules/commander/node_modules/keypress/test.js: -------------------------------------------------------------------------------- 1 | 2 | var keypress = require('./') 3 | keypress(process.stdin) 4 | 5 | if (process.stdin.setRawMode) 6 | process.stdin.setRawMode(true) 7 | else 8 | require('tty').setRawMode(true) 9 | 10 | process.stdin.on('keypress', function (c, key) { 11 | console.log(0, c, key) 12 | if (key && key.ctrl && key.name == 'c') { 13 | process.stdin.pause() 14 | } 15 | }) 16 | process.stdin.on('mousepress', function (mouse) { 17 | console.log(mouse) 18 | }) 19 | 20 | keypress.enableMouse(process.stdout) 21 | process.on('exit', function () { 22 | //disable mouse on exit, so that the state is back to normal 23 | //for the terminal. 24 | keypress.disableMouse(process.stdout) 25 | }) 26 | 27 | process.stdin.resume() 28 | 29 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/.npmignore: -------------------------------------------------------------------------------- 1 | *.markdown 2 | *.md 3 | .git* 4 | Makefile 5 | benchmarks/ 6 | docs/ 7 | examples/ 8 | install.sh 9 | support/ 10 | test/ 11 | .DS_Store 12 | coverage.html 13 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = process.env.CONNECT_COV 3 | ? require('./lib-cov/connect') 4 | : require('./lib/connect'); -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/middleware/responseTime.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Connect - responseTime 4 | * Copyright(c) 2011 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Reponse time: 10 | * 11 | * Adds the `X-Response-Time` header displaying the response 12 | * duration in milliseconds. 13 | * 14 | * @return {Function} 15 | * @api public 16 | */ 17 | 18 | module.exports = function responseTime(){ 19 | return function(req, res, next){ 20 | var start = new Date; 21 | 22 | if (res._responseTime) return next(); 23 | res._responseTime = true; 24 | 25 | res.on('header', function(){ 26 | var duration = new Date - start; 27 | res.setHeader('X-Response-Time', duration + 'ms'); 28 | }); 29 | 30 | next(); 31 | }; 32 | }; 33 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {error} 5 | 6 | 7 | 8 |
9 |

{title}

10 |

{statusCode} {error}

11 | 12 |
13 | 14 | 15 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/favicon.ico -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_add.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_attach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_attach.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_code.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_copy.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_delete.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_edit.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_error.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_excel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_excel.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_find.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_find.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_gear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_gear.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_go.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_go.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_green.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_key.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_lightning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_lightning.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_link.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_paintbrush.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_paintbrush.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_paste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_paste.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_red.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_refresh.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_save.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_acrobat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_acrobat.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_actionscript.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_actionscript.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_add.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_c.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_camera.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_cd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_cd.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_code.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_code_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_code_red.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_coldfusion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_coldfusion.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_compressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_compressed.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_copy.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_cplusplus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_cplusplus.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_csharp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_csharp.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_cup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_cup.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_database.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_database.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_delete.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_dvd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_dvd.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_edit.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_error.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_excel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_excel.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_find.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_find.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_flash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_flash.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_freehand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_freehand.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_gear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_gear.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_get.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_get.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_go.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_go.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_h.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_horizontal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_horizontal.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_key.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_lightning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_lightning.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_link.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_magnify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_magnify.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_medal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_medal.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_office.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_office.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_paint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_paint.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_paintbrush.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_paintbrush.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_paste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_paste.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_php.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_php.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_picture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_picture.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_powerpoint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_powerpoint.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_put.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_put.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_ruby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_ruby.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_stack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_stack.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_star.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_swoosh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_swoosh.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_text.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_text_width.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_text_width.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_tux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_tux.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_vector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_vector.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_visualstudio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_visualstudio.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_width.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_width.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_word.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_word.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_world.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_wrench.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_wrench.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_zip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_white_zip.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_word.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_word.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/lib/public/icons/page_world.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/bytes/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/bytes/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.2.1 / 2013-04-01 3 | ================== 4 | 5 | * add .component 6 | 7 | 0.2.0 / 2012-10-28 8 | ================== 9 | 10 | * bytes(200).should.eql('200b') 11 | 12 | 0.1.0 / 2012-07-04 13 | ================== 14 | 15 | * add bytes to string conversion [yields] 16 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/bytes/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --reporter spec \ 5 | --require should 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/bytes/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bytes", 3 | "description": "byte size string parser / serializer", 4 | "keywords": ["bytes", "utility"], 5 | "version": "0.2.1", 6 | "scripts": ["index.js"] 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/methods/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = [ 3 | 'get' 4 | , 'post' 5 | , 'put' 6 | , 'head' 7 | , 'delete' 8 | , 'options' 9 | , 'trace' 10 | , 'copy' 11 | , 'lock' 12 | , 'mkcol' 13 | , 'move' 14 | , 'propfind' 15 | , 'proppatch' 16 | , 'unlock' 17 | , 'report' 18 | , 'mkactivity' 19 | , 'checkout' 20 | , 'merge' 21 | , 'm-search' 22 | , 'notify' 23 | , 'subscribe' 24 | , 'unsubscribe' 25 | , 'patch' 26 | ]; -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/methods/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "methods", 3 | "version": "0.0.1", 4 | "description": "HTTP methods that node supports", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [ 10 | "http", 11 | "methods" 12 | ], 13 | "author": { 14 | "name": "TJ Holowaychuk" 15 | }, 16 | "license": "MIT", 17 | "readme": "ERROR: No README data found!", 18 | "_id": "methods@0.0.1", 19 | "_from": "methods@0.0.1" 20 | } 21 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | before_script: 6 | - ulimit -n 500 7 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/examples/typer-fsr.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | var FSReadable = require('../fs.js'); 3 | var rst = new FSReadable(__filename); 4 | 5 | rst.on('end', function() { 6 | process.stdin.pause(); 7 | }); 8 | 9 | process.stdin.setRawMode(true); 10 | process.stdin.on('data', function() { 11 | var c = rst.read(3); 12 | if (!c) return; 13 | process.stdout.write(c); 14 | }); 15 | process.stdin.resume(); 16 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/examples/typer.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | var fst = fs.createReadStream(__filename); 3 | var Readable = require('../readable.js'); 4 | var rst = new Readable(); 5 | rst.wrap(fst); 6 | 7 | rst.on('end', function() { 8 | process.stdin.pause(); 9 | }); 10 | 11 | process.stdin.setRawMode(true); 12 | process.stdin.on('data', function() { 13 | var c = rst.read(3); 14 | if (!c) return setTimeout(process.exit, 500) 15 | process.stdout.write(c); 16 | }); 17 | process.stdin.resume(); 18 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/node_modules/debuglog/debuglog.js: -------------------------------------------------------------------------------- 1 | var util = require('util'); 2 | 3 | module.exports = util.debuglog || debuglog; 4 | 5 | var debugs = {}; 6 | var debugEnviron = process.env.NODE_DEBUG || ''; 7 | 8 | function debuglog(set) { 9 | set = set.toUpperCase(); 10 | if (!debugs[set]) { 11 | if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) { 12 | var pid = process.pid; 13 | debugs[set] = function() { 14 | var msg = util.format.apply(exports, arguments); 15 | console.error('%s %d: %s', set, pid, msg); 16 | }; 17 | } else { 18 | debugs[set] = function() {}; 19 | } 20 | } 21 | return debugs[set]; 22 | }; 23 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/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 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/test/simple/test-GH-64.js: -------------------------------------------------------------------------------- 1 | var assert = require('assert'); 2 | var http = require('http'); 3 | var net = require('net'); 4 | var stream = require('readable-stream'); 5 | var PORT = require('../common.js').PORT; 6 | 7 | var server = http.createServer(function (req, res) { 8 | res.end('ok'); 9 | server.close(function() { 10 | console.log('ok'); 11 | }); 12 | }).listen(PORT, 'localhost', function () { 13 | var client = net.connect(PORT); 14 | client.write( 15 | "GET / HTTP/1.1\r\n" + 16 | "Host: localhost\r\n\r\n") 17 | client.end(); 18 | }); 19 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/test/simple/test-GH-66.js: -------------------------------------------------------------------------------- 1 | var assert = require('assert'); 2 | var http = require('http'); 3 | var net = require('net'); 4 | var stream = require('readable-stream'); 5 | var PORT = require('../common.js').PORT; 6 | 7 | var server = http.createServer(function (req, res) { 8 | res.end('ok'); 9 | server.close(function() { 10 | console.log('ok'); 11 | }); 12 | }).listen(PORT, 'localhost', function () { 13 | var client = net.connect(PORT); 14 | client.write( 15 | "GET / HTTP/1.1\r\n" + 16 | "Host: localhost\r\n\r\n") 17 | client.end(); 18 | }); 19 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/stream-counter/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/stream-counter/README.md: -------------------------------------------------------------------------------- 1 | # stream-counter 2 | 3 | Keep track of how many bytes have been written to a stream. 4 | 5 | ## Usage 6 | 7 | ```js 8 | var StreamCounter = require('stream-counter'); 9 | var counter = new StreamCounter(); 10 | counter.on('progress', function() { 11 | console.log("progress", counter.bytes); 12 | }); 13 | fs.createReadStream('foo.txt').pipe(counter); 14 | ``` 15 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/stream-counter/index.js: -------------------------------------------------------------------------------- 1 | module.exports = ByteCounter; 2 | 3 | var Writable = require('readable-stream').Writable; 4 | var util = require('util'); 5 | 6 | util.inherits(ByteCounter, Writable); 7 | function ByteCounter(options) { 8 | Writable.call(this, options); 9 | this.bytes = 0; 10 | } 11 | 12 | ByteCounter.prototype._write = function(chunk, encoding, cb) { 13 | this.bytes += chunk.length; 14 | this.emit('progress'); 15 | cb(); 16 | }; 17 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/stream-counter/test/test.js: -------------------------------------------------------------------------------- 1 | var ByteCounter = require('../'); 2 | var fs = require('fs'); 3 | var path = require('path'); 4 | var assert = require('assert'); 5 | 6 | var counter = new ByteCounter(); 7 | var remainingTests = 2; 8 | counter.once('progress', function() { 9 | assert.strictEqual(counter.bytes, 5); 10 | remainingTests -= 1; 11 | }); 12 | var is = fs.createReadStream(path.join(__dirname, 'test.txt')); 13 | is.pipe(counter); 14 | is.on('end', function() { 15 | remainingTests -= 1; 16 | assert.strictEqual(counter.bytes, 5); 17 | }); 18 | process.on('exit', function() { 19 | assert.strictEqual(remainingTests, 0); 20 | }); 21 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/stream-counter/test/test.txt: -------------------------------------------------------------------------------- 1 | 1234 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/file/beta-sticker-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/file/beta-sticker-1.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/file/binaryfile.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/file/binaryfile.tar.gz -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/file/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/file/blank.gif -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/file/funkyfilename.txt: -------------------------------------------------------------------------------- 1 | I am a text file with a funky name! 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/file/menu_separator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/file/menu_separator.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/file/pf1y5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/file/pf1y5.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/file/plain.txt: -------------------------------------------------------------------------------- 1 | I am a plain text file 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/http/encoding/blank.gif.http: -------------------------------------------------------------------------------- 1 | POST /upload HTTP/1.1 2 | Host: localhost:8080 3 | Content-Type: multipart/form-data; boundary=\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ 4 | Content-Length: 323 5 | 6 | --\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ 7 | Content-Disposition: form-data; name="file"; filename="blank.gif" 8 | Content-Type: image/gif 9 | Content-Transfer-Encoding: base64 10 | 11 | R0lGODlhAQABAJH/AP///wAAAMDAwAAAACH5BAEAAAIALAAAAAABAAEAAAICVAEAOw== 12 | --\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/-- 13 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/http/encoding/pf1y5.png.http: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/http/encoding/pf1y5.png.http -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/http/encoding/plain.txt.http: -------------------------------------------------------------------------------- 1 | POST /upload HTTP/1.1 2 | Host: localhost:8080 3 | Content-Type: multipart/form-data; boundary=----TLV0SrKD4z1TRxRhAPUvZ 4 | Content-Length: 221 5 | 6 | ------TLV0SrKD4z1TRxRhAPUvZ 7 | Content-Disposition: form-data; name="file"; filename="plain.txt" 8 | Content-Type: text/plain 9 | Content-Transfer-Encoding: 7bit 10 | 11 | I am a plain text file 12 | 13 | ------TLV0SrKD4z1TRxRhAPUvZ-- 14 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/http/no-filename/filename-name.http: -------------------------------------------------------------------------------- 1 | POST /upload HTTP/1.1 2 | Host: localhost:8080 3 | Content-Type: multipart/form-data; boundary=----WebKitFormBoundarytyE4wkKlZ5CQJVTG 4 | Content-Length: 1000 5 | 6 | ------WebKitFormBoundarytyE4wkKlZ5CQJVTG 7 | Content-Disposition: form-data; filename="plain.txt"; name="upload" 8 | Content-Type: text/plain 9 | 10 | I am a plain text file 11 | 12 | ------WebKitFormBoundarytyE4wkKlZ5CQJVTG-- 13 | 14 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/http/no-filename/generic.http: -------------------------------------------------------------------------------- 1 | POST /upload HTTP/1.1 2 | Host: localhost:8080 3 | Content-Type: multipart/form-data; boundary=----WebKitFormBoundarytyE4wkKlZ5CQJVTG 4 | Content-Length: 1000 5 | 6 | ------WebKitFormBoundarytyE4wkKlZ5CQJVTG 7 | Content-Disposition: form-data; name="upload"; filename="" 8 | Content-Type: text/plain 9 | 10 | I am a plain text file 11 | 12 | ------WebKitFormBoundarytyE4wkKlZ5CQJVTG-- 13 | 14 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/http/preamble/crlf.http: -------------------------------------------------------------------------------- 1 | POST /upload HTTP/1.1 2 | Host: localhost:8080 3 | Content-Type: multipart/form-data; boundary=----TLV0SrKD4z1TRxRhAPUvZ 4 | Content-Length: 184 5 | 6 | 7 | ------TLV0SrKD4z1TRxRhAPUvZ 8 | Content-Disposition: form-data; name="upload"; filename="plain.txt" 9 | Content-Type: text/plain 10 | 11 | I am a plain text file 12 | 13 | ------TLV0SrKD4z1TRxRhAPUvZ-- 14 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/http/preamble/preamble.http: -------------------------------------------------------------------------------- 1 | POST /upload HTTP/1.1 2 | Host: localhost:8080 3 | Content-Type: multipart/form-data; boundary=----TLV0SrKD4z1TRxRhAPUvZ 4 | Content-Length: 226 5 | 6 | This is a preamble which should be ignored 7 | ------TLV0SrKD4z1TRxRhAPUvZ 8 | Content-Disposition: form-data; name="upload"; filename="plain.txt" 9 | Content-Type: text/plain 10 | 11 | I am a plain text file 12 | 13 | ------TLV0SrKD4z1TRxRhAPUvZ-- 14 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/http/special-chars-in-filename/info.md: -------------------------------------------------------------------------------- 1 | * Opera does not allow submitting this file, it shows a warning to the 2 | user that the file could not be found instead. Tested in 9.8, 11.51 on OSX. 3 | Reported to Opera on 08.09.2011 (tracking email DSK-346009@bugs.opera.com). 4 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/http/workarounds/missing-hyphens1.http: -------------------------------------------------------------------------------- 1 | POST /upload HTTP/1.1 2 | Host: localhost:8080 3 | Content-Type: multipart/form-data; boundary=----TLV0SrKD4z1TRxRhAPUvZ 4 | Content-Length: 178 5 | 6 | ------TLV0SrKD4z1TRxRhAPUvZ 7 | Content-Disposition: form-data; name="upload"; filename="plain.txt" 8 | Content-Type: text/plain 9 | 10 | I am a plain text file 11 | 12 | ------TLV0SrKD4z1TRxRhAPUvZ 13 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/http/workarounds/missing-hyphens2.http: -------------------------------------------------------------------------------- 1 | POST /upload HTTP/1.1 2 | Host: localhost:8080 3 | Content-Type: multipart/form-data; boundary=----TLV0SrKD4z1TRxRhAPUvZ 4 | Content-Length: 180 5 | 6 | ------TLV0SrKD4z1TRxRhAPUvZ 7 | Content-Disposition: form-data; name="upload"; filename="plain.txt" 8 | Content-Type: text/plain 9 | 10 | I am a plain text file 11 | 12 | ------TLV0SrKD4z1TRxRhAPUvZ 13 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/js/no-filename.js: -------------------------------------------------------------------------------- 1 | module.exports['generic.http'] = [ 2 | {type: 'file', name: 'upload', filename: '', fixture: 'plain.txt', 3 | sha1: 'b31d07bac24ac32734de88b3687dddb10e976872'}, 4 | ]; 5 | 6 | module.exports['filename-name.http'] = [ 7 | {type: 'file', name: 'upload', filename: 'plain.txt', fixture: 'plain.txt', 8 | sha1: 'b31d07bac24ac32734de88b3687dddb10e976872'}, 9 | ]; 10 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/js/preamble.js: -------------------------------------------------------------------------------- 1 | module.exports['crlf.http'] = [ 2 | {type: 'file', name: 'upload', filename: 'plain.txt', fixture: 'plain.txt', 3 | sha1: 'b31d07bac24ac32734de88b3687dddb10e976872'}, 4 | ]; 5 | 6 | module.exports['preamble.http'] = [ 7 | {type: 'file', name: 'upload', filename: 'plain.txt', fixture: 'plain.txt', 8 | sha1: 'b31d07bac24ac32734de88b3687dddb10e976872'}, 9 | ]; 10 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/js/workarounds.js: -------------------------------------------------------------------------------- 1 | module.exports['missing-hyphens1.http'] = [ 2 | {type: 'file', name: 'upload', filename: 'plain.txt', fixture: 'plain.txt', 3 | sha1: 'b31d07bac24ac32734de88b3687dddb10e976872'}, 4 | ]; 5 | module.exports['missing-hyphens2.http'] = [ 6 | {type: 'file', name: 'upload', filename: 'plain.txt', fixture: 'plain.txt', 7 | sha1: 'b31d07bac24ac32734de88b3687dddb10e976872'}, 8 | ]; 9 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/multi_video.upload: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/express/node_modules/connect/node_modules/multiparty/test/fixture/multi_video.upload -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/pause/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/pause/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.1 / 2010-01-03 3 | ================== 4 | 5 | * Initial release 6 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/pause/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/pause/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = function(obj){ 3 | var onData 4 | , onEnd 5 | , events = []; 6 | 7 | // buffer data 8 | obj.on('data', onData = function(data, encoding){ 9 | events.push(['data', data, encoding]); 10 | }); 11 | 12 | // buffer end 13 | obj.on('end', onEnd = function(data, encoding){ 14 | events.push(['end', data, encoding]); 15 | }); 16 | 17 | return { 18 | end: function(){ 19 | obj.removeListener('data', onData); 20 | obj.removeListener('end', onEnd); 21 | }, 22 | resume: function(){ 23 | this.end(); 24 | for (var i = 0, len = events.length; i < len; ++i) { 25 | obj.emit.apply(obj, events[i]); 26 | } 27 | } 28 | }; 29 | }; -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/qs/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "support/expresso"] 2 | path = support/expresso 3 | url = git://github.com/visionmedia/expresso.git 4 | [submodule "support/should"] 5 | path = support/should 6 | url = git://github.com/visionmedia/should.js.git 7 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/qs/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .travis.yml 3 | benchmark.js 4 | component.json 5 | examples.js 6 | History.md 7 | Makefile 8 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/raw-body/.npmignore: -------------------------------------------------------------------------------- 1 | test.js -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/raw-body/.travis.yml: -------------------------------------------------------------------------------- 1 | node_js: 2 | - "0.10" 3 | - "0.8" 4 | language: node_js -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/raw-body/Makefile: -------------------------------------------------------------------------------- 1 | BIN = ./node_modules/.bin/ 2 | 3 | test: 4 | @${BIN}mocha \ 5 | --reporter spec \ 6 | --bail 7 | 8 | clean: 9 | @rm -rf node_modules 10 | 11 | .PHONY: test clean -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/uid2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "uid2", 3 | "description": "strong uid", 4 | "tags": [ 5 | "uid" 6 | ], 7 | "version": "0.0.3", 8 | "dependencies": {}, 9 | "readme": "ERROR: No README data found!", 10 | "_id": "uid2@0.0.3", 11 | "_from": "uid2@0.0.3" 12 | } 13 | -------------------------------------------------------------------------------- /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 | 2 | 1.0.1 / 2013-04-15 3 | ================== 4 | 5 | * Revert "Changed underlying HMAC algo. to sha512." 6 | * Revert "Fix for timing attacks on MAC verification." 7 | 8 | 0.0.1 / 2010-01-03 9 | ================== 10 | 11 | * Initial release 12 | -------------------------------------------------------------------------------- /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 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/cookie/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.6" 4 | - "0.8" 5 | - "0.10" 6 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/cookie/test/mocha.opts: -------------------------------------------------------------------------------- 1 | --ui qunit 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/debug/index.js: -------------------------------------------------------------------------------- 1 | if ('undefined' == typeof window) { 2 | module.exports = require('./lib/debug'); 3 | } else { 4 | module.exports = require('./debug'); 5 | } 6 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/fresh/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/fresh/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.2.0 / 2013-08-11 3 | ================== 4 | 5 | * fix: return false for no-cache 6 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/fresh/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --reporter spec \ 5 | --require should 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/express/node_modules/methods/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.1.0 / 2013-10-28 3 | ================== 4 | 5 | * add http.METHODS support 6 | -------------------------------------------------------------------------------- /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 | module.exports = http.METHODS.map(function(method){ 6 | return method.toLowerCase(); 7 | }); 8 | 9 | return; 10 | } 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 | 'propfind', 25 | 'proppatch', 26 | 'unlock', 27 | 'report', 28 | 'mkactivity', 29 | 'checkout', 30 | 'merge', 31 | 'm-search', 32 | 'notify', 33 | 'subscribe', 34 | 'unsubscribe', 35 | 'patch', 36 | 'search' 37 | ]; 38 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/methods/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "methods", 3 | "version": "0.1.0", 4 | "description": "HTTP methods that node supports", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [ 10 | "http", 11 | "methods" 12 | ], 13 | "author": { 14 | "name": "TJ Holowaychuk" 15 | }, 16 | "license": "MIT", 17 | "repository": { 18 | "type": "git", 19 | "url": "git://github.com/visionmedia/node-methods.git" 20 | }, 21 | "readme": "\n# Methods\n\n HTTP verbs that node core's parser supports.\n", 22 | "readmeFilename": "Readme.md", 23 | "bugs": { 24 | "url": "https://github.com/visionmedia/node-methods/issues" 25 | }, 26 | "_id": "methods@0.1.0", 27 | "_from": "methods@0.1.0" 28 | } 29 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | - 0.9 6 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/examples/pow.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('mkdirp'); 2 | 3 | mkdirp('/tmp/foo/bar/baz', function (err) { 4 | if (err) console.error(err) 5 | else console.log('pow!') 6 | }); 7 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/test/root.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('root', function (t) { 7 | // '/' on unix, 'c:/' on windows. 8 | var file = path.resolve('/'); 9 | 10 | mkdirp(file, 0755, function (err) { 11 | if (err) throw err 12 | fs.stat(file, function (er, stat) { 13 | if (er) throw er 14 | t.ok(stat.isDirectory(), 'target is a directory'); 15 | t.end(); 16 | }) 17 | }); 18 | }); 19 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/range-parser/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/range-parser/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.4 / 2012-06-17 3 | ================== 4 | 5 | * changed: ret -1 for unsatisfiable and -2 when invalid 6 | 7 | 0.0.3 / 2012-06-17 8 | ================== 9 | 10 | * fix last-byte-pos default to len - 1 11 | 12 | 0.0.2 / 2012-06-14 13 | ================== 14 | 15 | * add `.type` 16 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/range-parser/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --reporter spec \ 5 | --require should 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/express/node_modules/send/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/send/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.1.4 / 2013-08-11 3 | ================== 4 | 5 | * update fresh 6 | 7 | 0.1.3 / 2013-07-08 8 | ================== 9 | 10 | * Revert "Fix fd leak" 11 | 12 | 0.1.2 / 2013-07-03 13 | ================== 14 | 15 | * Fix fd leak 16 | 17 | 0.1.0 / 2012-08-25 18 | ================== 19 | 20 | * add options parameter to send() that is passed to fs.createReadStream() [kanongil] 21 | 22 | 0.0.4 / 2012-08-16 23 | ================== 24 | 25 | * allow custom "Accept-Ranges" definition 26 | 27 | 0.0.3 / 2012-07-16 28 | ================== 29 | 30 | * fix normalization of the root directory. Closes #3 31 | 32 | 0.0.2 / 2012-07-09 33 | ================== 34 | 35 | * add passing of req explicitly for now (YUCK) 36 | 37 | 0.0.1 / 2010-01-03 38 | ================== 39 | 40 | * Initial release 41 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/send/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec \ 6 | --bail 7 | 8 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/express/node_modules/send/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/send'); -------------------------------------------------------------------------------- /node_modules/generic-pool/.npmignore: -------------------------------------------------------------------------------- 1 | fabfile.pyc 2 | node-pool.iml 3 | node-pool.tmproj 4 | node_modules 5 | -------------------------------------------------------------------------------- /node_modules/generic-pool/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 -------------------------------------------------------------------------------- /node_modules/generic-pool/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | 3 | check: 4 | npm test 5 | -------------------------------------------------------------------------------- /node_modules/generic-pool/fabfile.py: -------------------------------------------------------------------------------- 1 | # 2 | # dependencies: 3 | # fabric (apt-get install fabric) 4 | # node-jslint (http://github.com/reid/node-jslint) 5 | # expresso (or replace with whatever node.js test tool you're using) 6 | # 7 | 8 | from fabric.api import local 9 | import os, os.path 10 | 11 | def test(): 12 | local('expresso -I lib test/*', capture=False) 13 | 14 | def jslint(): 15 | ignore = [ "/lib-cov/" ] 16 | for root, subFolders, files in os.walk("."): 17 | for file in files: 18 | if file.endswith(".js"): 19 | filename = os.path.join(root,file) 20 | processFile = True 21 | for i in ignore: 22 | if filename.find(i) != -1: 23 | processFile = False 24 | if processFile: 25 | print filename 26 | local('jslint %s' % filename, capture=False) 27 | 28 | -------------------------------------------------------------------------------- /node_modules/mongoose/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | **.swp 3 | *.sw* 4 | *.orig 5 | .DS_Store 6 | node_modules/ 7 | benchmarks/ 8 | docs/ 9 | test/ 10 | Makefile 11 | CNAME 12 | index.html 13 | index.jade 14 | -------------------------------------------------------------------------------- /node_modules/mongoose/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.8 4 | - 0.10 5 | services: 6 | - mongodb 7 | -------------------------------------------------------------------------------- /node_modules/mongoose/contRun.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | make test 4 | 5 | ret=$? 6 | 7 | while [ $ret == 0 ]; do 8 | make test 9 | ret=$? 10 | done 11 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/aggregate/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "aggregate-example", 3 | "private": "true", 4 | "version": "0.0.0", 5 | "description": "deps for aggregate example", 6 | "main": "aggregate.js", 7 | "scripts": { 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "dependencies": { "async": "*" }, 11 | "repository": "", 12 | "author": "", 13 | "license": "BSD" 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/aggregate/person.js: -------------------------------------------------------------------------------- 1 | 2 | // import the necessary modules 3 | var mongoose = require('../../lib'); 4 | var Schema = mongoose.Schema; 5 | 6 | // create an export function to encapsulate the model creation 7 | module.exports = function() { 8 | // define schema 9 | var PersonSchema = new Schema({ 10 | name : String, 11 | age : Number, 12 | birthday : Date, 13 | gender: String, 14 | likes: [String] 15 | }); 16 | mongoose.model('Person', PersonSchema); 17 | }; 18 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/express/README.md: -------------------------------------------------------------------------------- 1 | Mongoose + Express examples 2 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/express/connection-sharing/README.md: -------------------------------------------------------------------------------- 1 | 2 | To run: 3 | 4 | - Execute `npm install` from this directory 5 | - Execute `node app.js` 6 | - Navigate to `localhost:8000` 7 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/express/connection-sharing/app.js: -------------------------------------------------------------------------------- 1 | 2 | var express = require('express') 3 | var mongoose = require('../../../lib') 4 | 5 | var uri = 'mongodb://localhost/mongoose-shared-connection'; 6 | global.db = mongoose.createConnection(uri); 7 | 8 | var routes = require('./routes') 9 | 10 | var app = express(); 11 | app.get('/', routes.home); 12 | app.get('/insert', routes.insert); 13 | app.get('/name', routes.modelName); 14 | 15 | app.listen(8000, function () { 16 | console.log('listening on http://localhost:8000'); 17 | }) 18 | 19 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/express/connection-sharing/modelA.js: -------------------------------------------------------------------------------- 1 | 2 | var Schema = require('../../../lib').Schema; 3 | var mySchema = Schema({ name: String }); 4 | 5 | // db is global 6 | module.exports = db.model('MyModel', mySchema); 7 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/express/connection-sharing/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "connection-sharing", 3 | "private": "true", 4 | "version": "0.0.0", 5 | "description": "ERROR: No README.md file found!", 6 | "main": "app.js", 7 | "scripts": { 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "dependencies": { "express": "3.1.1" }, 11 | "repository": "", 12 | "author": "", 13 | "license": "BSD" 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/express/connection-sharing/routes.js: -------------------------------------------------------------------------------- 1 | 2 | var model = require('./modelA') 3 | 4 | exports.home = function (req, res, next) { 5 | model.find(function (err, docs) { 6 | if (err) return next(err); 7 | res.send(docs); 8 | }) 9 | } 10 | 11 | exports.modelName = function (req, res) { 12 | res.send('my model name is ' + model.modelName); 13 | } 14 | 15 | exports.insert = function (req, res, next) { 16 | model.create({ name: 'inserting ' + Date.now() }, function (err, doc) { 17 | if (err) return next(err); 18 | res.send(doc); 19 | }) 20 | } 21 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/geospatial/geoJSONSchema.js: -------------------------------------------------------------------------------- 1 | 2 | // import the necessary modules 3 | var mongoose = require('../../lib'); 4 | var Schema = mongoose.Schema; 5 | 6 | // create an export function to encapsulate the model creation 7 | module.exports = function() { 8 | // define schema 9 | // NOTE : This object must conform *precisely* to the geoJSON specification 10 | // you cannot embed a geoJSON doc inside a model or anything like that- IT 11 | // MUST BE VANILLA 12 | var LocationObject = new Schema({ 13 | loc: { 14 | type: { type: String }, 15 | coordinates: [] 16 | } 17 | }); 18 | // define the index 19 | LocationObject.index({ loc : '2dsphere' }); 20 | 21 | mongoose.model('Location', LocationObject); 22 | }; 23 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/geospatial/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "geospatial-example", 3 | "private": "true", 4 | "version": "0.0.0", 5 | "description": "deps for geospatial example", 6 | "main": "geospatial.js", 7 | "scripts": { 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "dependencies": { "async": "*" }, 11 | "repository": "", 12 | "author": "", 13 | "license": "BSD" 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/geospatial/person.js: -------------------------------------------------------------------------------- 1 | 2 | // import the necessary modules 3 | var mongoose = require('../../lib'); 4 | var Schema = mongoose.Schema; 5 | 6 | // create an export function to encapsulate the model creation 7 | module.exports = function() { 8 | // define schema 9 | var PersonSchema = new Schema({ 10 | name : String, 11 | age : Number, 12 | birthday : Date, 13 | gender: String, 14 | likes: [String], 15 | // define the geospatial field 16 | loc: { type : [Number], index: '2d' } 17 | }); 18 | 19 | // define a method to find the closest person 20 | PersonSchema.methods.findClosest = function(cb) { 21 | return this.model('Person').find({ 22 | loc : { $nearSphere : this.loc }, 23 | name : { $ne : this.name } 24 | }).limit(1).exec(cb); 25 | }; 26 | 27 | mongoose.model('Person', PersonSchema); 28 | }; 29 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/globalschemas/person.js: -------------------------------------------------------------------------------- 1 | 2 | // import the necessary modules 3 | var mongoose = require('../../lib'); 4 | var Schema = mongoose.Schema; 5 | 6 | // create an export function to encapsulate the model creation 7 | module.exports = function() { 8 | // define schema 9 | var PersonSchema = new Schema({ 10 | name : String, 11 | age : Number, 12 | birthday : Date 13 | }); 14 | mongoose.model('Person', PersonSchema); 15 | }; 16 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/lean/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "lean-example", 3 | "private": "true", 4 | "version": "0.0.0", 5 | "description": "deps for lean example", 6 | "main": "lean.js", 7 | "scripts": { 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "dependencies": { "async": "*" }, 11 | "repository": "", 12 | "author": "", 13 | "license": "BSD" 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/lean/person.js: -------------------------------------------------------------------------------- 1 | 2 | // import the necessary modules 3 | var mongoose = require('../../lib'); 4 | var Schema = mongoose.Schema; 5 | 6 | // create an export function to encapsulate the model creation 7 | module.exports = function() { 8 | // define schema 9 | var PersonSchema = new Schema({ 10 | name : String, 11 | age : Number, 12 | birthday : Date, 13 | gender: String, 14 | likes: [String] 15 | }); 16 | mongoose.model('Person', PersonSchema); 17 | }; 18 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/mapreduce/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "map-reduce-example", 3 | "private": "true", 4 | "version": "0.0.0", 5 | "description": "deps for map reduce example", 6 | "main": "mapreduce.js", 7 | "scripts": { 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "dependencies": { "async": "*" }, 11 | "repository": "", 12 | "author": "", 13 | "license": "BSD" 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/mapreduce/person.js: -------------------------------------------------------------------------------- 1 | 2 | // import the necessary modules 3 | var mongoose = require('../../lib'); 4 | var Schema = mongoose.Schema; 5 | 6 | // create an export function to encapsulate the model creation 7 | module.exports = function() { 8 | // define schema 9 | var PersonSchema = new Schema({ 10 | name : String, 11 | age : Number, 12 | birthday : Date, 13 | gender: String 14 | }); 15 | mongoose.model('Person', PersonSchema); 16 | }; 17 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/promises/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "promise-example", 3 | "private": "true", 4 | "version": "0.0.0", 5 | "description": "deps for promise example", 6 | "main": "promise.js", 7 | "scripts": { 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "dependencies": { "async": "*" }, 11 | "repository": "", 12 | "author": "", 13 | "license": "BSD" 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/promises/person.js: -------------------------------------------------------------------------------- 1 | 2 | // import the necessary modules 3 | var mongoose = require('../../lib'); 4 | var Schema = mongoose.Schema; 5 | 6 | // create an export function to encapsulate the model creation 7 | module.exports = function() { 8 | // define schema 9 | var PersonSchema = new Schema({ 10 | name : String, 11 | age : Number, 12 | birthday : Date 13 | }); 14 | mongoose.model('Person', PersonSchema); 15 | }; 16 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/querybuilder/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "query-builder-example", 3 | "private": "true", 4 | "version": "0.0.0", 5 | "description": "deps for query builder example", 6 | "main": "querybuilder.js", 7 | "scripts": { 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "dependencies": { "async": "*" }, 11 | "repository": "", 12 | "author": "", 13 | "license": "BSD" 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/querybuilder/person.js: -------------------------------------------------------------------------------- 1 | 2 | // import the necessary modules 3 | var mongoose = require('../../lib'); 4 | var Schema = mongoose.Schema; 5 | 6 | // create an export function to encapsulate the model creation 7 | module.exports = function() { 8 | // define schema 9 | var PersonSchema = new Schema({ 10 | name : String, 11 | age : Number, 12 | birthday : Date 13 | }); 14 | mongoose.model('Person', PersonSchema); 15 | }; 16 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/replicasets/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "replica-set-example", 3 | "private": "true", 4 | "version": "0.0.0", 5 | "description": "deps for replica set example", 6 | "main": "querybuilder.js", 7 | "scripts": { 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "dependencies": { "async": "*" }, 11 | "repository": "", 12 | "author": "", 13 | "license": "BSD" 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/replicasets/person.js: -------------------------------------------------------------------------------- 1 | 2 | // import the necessary modules 3 | var mongoose = require('../../lib'); 4 | var Schema = mongoose.Schema; 5 | 6 | // create an export function to encapsulate the model creation 7 | module.exports = function() { 8 | // define schema 9 | var PersonSchema = new Schema({ 10 | name : String, 11 | age : Number, 12 | birthday : Date 13 | }); 14 | mongoose.model('Person', PersonSchema); 15 | }; 16 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/schema/storing-schemas-as-json/index.js: -------------------------------------------------------------------------------- 1 | 2 | // modules 3 | var mongoose = require('../../../lib') 4 | var Schema = mongoose.Schema; 5 | 6 | // parse json 7 | var raw = require('./schema.json'); 8 | 9 | // create a schema 10 | var timeSignatureSchema = Schema(raw); 11 | 12 | // compile the model 13 | var TimeSignature = mongoose.model('TimeSignatures', timeSignatureSchema); 14 | 15 | // create a TimeSignature document 16 | var threeFour = new TimeSignature({ 17 | count: 3 18 | , unit: 4 19 | , description: "3/4" 20 | , additive: false 21 | , created: new Date 22 | , links: ["http://en.wikipedia.org/wiki/Time_signature"] 23 | , user_id: "518d31a0ef32bbfa853a9814" 24 | }); 25 | 26 | // print its description 27 | console.log(threeFour) 28 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/schema/storing-schemas-as-json/schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "count": "number", 3 | "unit": "number", 4 | "description": "string", 5 | "links": ["string"], 6 | "created": "date", 7 | "additive": "boolean", 8 | "user_id": "ObjectId" 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/mongoose/examples/statics/person.js: -------------------------------------------------------------------------------- 1 | 2 | // import the necessary modules 3 | var mongoose = require('../../lib'); 4 | var Schema = mongoose.Schema; 5 | 6 | // create an export function to encapsulate the model creation 7 | module.exports = function() { 8 | // define schema 9 | var PersonSchema = new Schema({ 10 | name : String, 11 | age : Number, 12 | birthday : Date 13 | }); 14 | 15 | // define a static 16 | PersonSchema.statics.findPersonByName = function (name, cb) { 17 | this.find({ name : new RegExp(name, 'i') }, cb); 18 | }; 19 | 20 | mongoose.model('Person', PersonSchema); 21 | }; 22 | -------------------------------------------------------------------------------- /node_modules/mongoose/index.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Export lib/mongoose 4 | * 5 | */ 6 | 7 | module.exports = require('./lib/'); 8 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/connectionstate.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Connection states 4 | */ 5 | 6 | var STATES = module.exports = exports = Object.create(null); 7 | 8 | var disconnected = 'disconnected'; 9 | var connected = 'connected'; 10 | var connecting = 'connecting'; 11 | var disconnecting = 'disconnecting'; 12 | var uninitialized = 'uninitialized'; 13 | 14 | STATES[0] = disconnected; 15 | STATES[1] = connected; 16 | STATES[2] = connecting; 17 | STATES[3] = disconnecting; 18 | STATES[99] = uninitialized; 19 | 20 | STATES[disconnected] = 0; 21 | STATES[connected] = 1; 22 | STATES[connecting] = 2; 23 | STATES[disconnecting] = 3; 24 | STATES[uninitialized] = 99; 25 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/drivers/SPEC.md: -------------------------------------------------------------------------------- 1 | 2 | # Driver Spec 3 | 4 | TODO 5 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/drivers/node-mongodb-native/binary.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | var Binary = require('mongodb').BSONPure.Binary; 7 | 8 | module.exports = exports = Binary; 9 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/drivers/node-mongodb-native/objectid.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * [node-mongodb-native](https://github.com/mongodb/node-mongodb-native) ObjectId 4 | * @constructor NodeMongoDbObjectId 5 | * @see ObjectId 6 | */ 7 | 8 | var ObjectId = require('mongodb').BSONPure.ObjectID; 9 | 10 | /*! 11 | * ignore 12 | */ 13 | 14 | module.exports = exports = ObjectId; 15 | 16 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/error/cast.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Module dependencies. 3 | */ 4 | 5 | var MongooseError = require('../error.js'); 6 | 7 | /** 8 | * Casting Error constructor. 9 | * 10 | * @param {String} type 11 | * @param {String} value 12 | * @inherits MongooseError 13 | * @api private 14 | */ 15 | 16 | function CastError (type, value, path) { 17 | MongooseError.call(this, 'Cast to ' + type + ' failed for value "' + value + '" at path "' + path + '"'); 18 | Error.captureStackTrace(this, arguments.callee); 19 | this.name = 'CastError'; 20 | this.type = type; 21 | this.value = value; 22 | this.path = path; 23 | }; 24 | 25 | /*! 26 | * Inherits from MongooseError. 27 | */ 28 | 29 | CastError.prototype.__proto__ = MongooseError.prototype; 30 | 31 | /*! 32 | * exports 33 | */ 34 | 35 | module.exports = CastError; 36 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/error/missingSchema.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | var MongooseError = require('../error.js'); 7 | 8 | /*! 9 | * MissingSchema Error constructor. 10 | * 11 | * @inherits MongooseError 12 | */ 13 | 14 | function MissingSchemaError (name) { 15 | var msg = 'Schema hasn\'t been registered for model "' + name + '".\n' 16 | + 'Use mongoose.model(name, schema)'; 17 | MongooseError.call(this, msg); 18 | Error.captureStackTrace(this, arguments.callee); 19 | this.name = 'MissingSchemaError'; 20 | }; 21 | 22 | /*! 23 | * Inherits from MongooseError. 24 | */ 25 | 26 | MissingSchemaError.prototype.__proto__ = MongooseError.prototype; 27 | 28 | /*! 29 | * exports 30 | */ 31 | 32 | module.exports = MissingSchemaError; 33 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/error/overwriteModel.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | var MongooseError = require('../error.js'); 7 | 8 | /*! 9 | * OverwriteModel Error constructor. 10 | * 11 | * @inherits MongooseError 12 | */ 13 | 14 | function OverwriteModelError (name) { 15 | MongooseError.call(this, 'Cannot overwrite `' + name + '` model once compiled.'); 16 | Error.captureStackTrace(this, arguments.callee); 17 | this.name = 'OverwriteModelError'; 18 | }; 19 | 20 | /*! 21 | * Inherits from MongooseError. 22 | */ 23 | 24 | OverwriteModelError.prototype.__proto__ = MongooseError.prototype; 25 | 26 | /*! 27 | * exports 28 | */ 29 | 30 | module.exports = OverwriteModelError; 31 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/error/version.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | var MongooseError = require('../error.js'); 7 | 8 | /** 9 | * Version Error constructor. 10 | * 11 | * @inherits MongooseError 12 | * @api private 13 | */ 14 | 15 | function VersionError () { 16 | MongooseError.call(this, 'No matching document found.'); 17 | Error.captureStackTrace(this, arguments.callee); 18 | this.name = 'VersionError'; 19 | }; 20 | 21 | /*! 22 | * Inherits from MongooseError. 23 | */ 24 | 25 | VersionError.prototype.__proto__ = MongooseError.prototype; 26 | 27 | /*! 28 | * exports 29 | */ 30 | 31 | module.exports = VersionError; 32 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/schema/index.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module exports. 4 | */ 5 | 6 | exports.String = require('./string'); 7 | 8 | exports.Number = require('./number'); 9 | 10 | exports.Boolean = require('./boolean'); 11 | 12 | exports.DocumentArray = require('./documentarray'); 13 | 14 | exports.Array = require('./array'); 15 | 16 | exports.Buffer = require('./buffer'); 17 | 18 | exports.Date = require('./date'); 19 | 20 | exports.ObjectId = require('./objectid'); 21 | 22 | exports.Mixed = require('./mixed'); 23 | 24 | // alias 25 | 26 | exports.Oid = exports.ObjectId; 27 | exports.Object = exports.Mixed; 28 | exports.Bool = exports.Boolean; 29 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/schemadefault.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | var Schema = require('./schema') 7 | 8 | /** 9 | * Default model for querying the system.profiles collection. 10 | * 11 | * @property system.profile 12 | * @receiver exports 13 | * @api private 14 | */ 15 | 16 | exports['system.profile'] = new Schema({ 17 | ts: Date 18 | , info: String // deprecated 19 | , millis: Number 20 | , op: String 21 | , ns: String 22 | , query: Schema.Types.Mixed 23 | , updateobj: Schema.Types.Mixed 24 | , ntoreturn: Number 25 | , nreturned: Number 26 | , nscanned: Number 27 | , responseLength: Number 28 | , client: String 29 | , user: String 30 | , idhack: Boolean 31 | , scanAndOrder: Boolean 32 | , keyUpdates: Number 33 | , cursorid: Number 34 | }, { noVirtualId: true, noId: true }); 35 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/types/index.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module exports. 4 | */ 5 | 6 | exports.Array = require('./array'); 7 | exports.Buffer = require('./buffer'); 8 | 9 | exports.Document = // @deprecate 10 | exports.Embedded = require('./embedded'); 11 | 12 | exports.DocumentArray = require('./documentarray'); 13 | exports.ObjectId = require('./objectid'); 14 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/types/objectid.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Access driver. 4 | */ 5 | 6 | var driver = global.MONGOOSE_DRIVER_PATH || '../drivers/node-mongodb-native'; 7 | 8 | /** 9 | * ObjectId type constructor 10 | * 11 | * ####Example 12 | * 13 | * var id = new mongoose.Types.ObjectId; 14 | * 15 | * @constructor ObjectId 16 | */ 17 | 18 | var ObjectId = require(driver + '/objectid'); 19 | module.exports = ObjectId; 20 | 21 | /** 22 | * Creates an ObjectId from `str` 23 | * 24 | * @param {ObjectId|HexString} str 25 | * @static fromString 26 | * @receiver ObjectId 27 | * @return {ObjectId} 28 | * @api private 29 | */ 30 | 31 | ObjectId.fromString; 32 | 33 | /** 34 | * Converts `oid` to a string. 35 | * 36 | * @param {ObjectId} oid ObjectId instance 37 | * @static toString 38 | * @receiver ObjectId 39 | * @return {String} 40 | * @api private 41 | */ 42 | 43 | ObjectId.toString; 44 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/hooks/.npmignore: -------------------------------------------------------------------------------- 1 | **.swp 2 | node_modules 3 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/hooks/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @NODE_ENV=test ./node_modules/expresso/bin/expresso \ 3 | $(TESTFLAGS) \ 4 | ./test.js 5 | 6 | test-cov: 7 | @TESTFLAGS=--cov $(MAKE) test 8 | 9 | .PHONY: test test-cov 10 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | - 0.10 # development version of 0.8, may be unstable -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/Makefile: -------------------------------------------------------------------------------- 1 | NODE = node 2 | NPM = npm 3 | NODEUNIT = node_modules/nodeunit/bin/nodeunit 4 | DOX = node_modules/dox/bin/dox 5 | name = all 6 | 7 | total: build_native 8 | 9 | test_functional: 10 | node test/runner.js -t functional 11 | 12 | test_ssl: 13 | node test/runner.js -t ssl 14 | 15 | test_replicaset: 16 | node test/runner.js -t replicaset 17 | 18 | test_sharded: 19 | node test/runner.js -t sharded 20 | 21 | test_auth: 22 | node test/runner.js -t auth 23 | 24 | generate_docs: 25 | $(NODE) dev/tools/build-docs.js 26 | make --directory=./docs/sphinx-docs --file=Makefile html 27 | 28 | .PHONY: total 29 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/mongodb'); 2 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/lib/mongodb/commands/base_command.js: -------------------------------------------------------------------------------- 1 | /** 2 | Base object used for common functionality 3 | **/ 4 | var BaseCommand = exports.BaseCommand = function BaseCommand() { 5 | }; 6 | 7 | var id = 1; 8 | BaseCommand.prototype.getRequestId = function getRequestId() { 9 | if (!this.requestId) this.requestId = id++; 10 | return this.requestId; 11 | }; 12 | 13 | BaseCommand.prototype.setMongosReadPreference = function setMongosReadPreference(readPreference, tags) {} 14 | 15 | BaseCommand.prototype.updateRequestId = function() { 16 | this.requestId = id++; 17 | return this.requestId; 18 | }; 19 | 20 | // OpCodes 21 | BaseCommand.OP_REPLY = 1; 22 | BaseCommand.OP_MSG = 1000; 23 | BaseCommand.OP_UPDATE = 2001; 24 | BaseCommand.OP_INSERT = 2002; 25 | BaseCommand.OP_GET_BY_OID = 2003; 26 | BaseCommand.OP_QUERY = 2004; 27 | BaseCommand.OP_GET_MORE = 2005; 28 | BaseCommand.OP_DELETE = 2006; 29 | BaseCommand.OP_KILL_CURSORS = 2007; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | - 0.9 # development version of 0.8, may be unstable -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/Makefile: -------------------------------------------------------------------------------- 1 | NODE = node 2 | NPM = npm 3 | NODEUNIT = node_modules/nodeunit/bin/nodeunit 4 | 5 | all: clean node_gyp 6 | 7 | test: clean node_gyp 8 | npm test 9 | 10 | node_gyp: clean 11 | node-gyp configure build 12 | 13 | clean: 14 | node-gyp clean 15 | 16 | browserify: 17 | node_modules/.bin/onejs build browser_build/package.json browser_build/bson.js 18 | 19 | .PHONY: all 20 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/binding.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'targets': [ 3 | { 4 | 'target_name': 'bson', 5 | 'sources': [ 'ext/bson.cc' ], 6 | 'cflags!': [ '-fno-exceptions' ], 7 | 'cflags_cc!': [ '-fno-exceptions' ], 8 | 'conditions': [ 9 | ['OS=="mac"', { 10 | 'xcode_settings': { 11 | 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES' 12 | } 13 | }] 14 | ] 15 | } 16 | ] 17 | } -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/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/mongoose/node_modules/mongodb/node_modules/bson/build_browser.js: -------------------------------------------------------------------------------- 1 | require('one'); 2 | 3 | one('./package.json') 4 | .tie('bson', BSON) 5 | // .exclude('buffer') 6 | .tie('buffer', {}) 7 | .save('./browser_build/bson.js') -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/builderror.log: -------------------------------------------------------------------------------- 1 | gyp ERR! configure error 2 | gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. 3 | gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:118:14) 4 | gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:81:11 5 | gyp ERR! stack at Object.oncomplete (fs.js:107:15) 6 | gyp ERR! System Windows_NT 6.1.7601 7 | gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" 8 | gyp ERR! cwd D:\N-drift-bottle\node_modules\mongoose\node_modules\mongodb\node_modules\bson 9 | gyp ERR! node -v v0.10.21 10 | gyp ERR! node-gyp -v v0.10.10 11 | gyp ERR! not ok 12 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/Makefile: -------------------------------------------------------------------------------- 1 | NODE = node 2 | name = all 3 | JOBS = 1 4 | 5 | all: 6 | rm -rf build .lock-wscript bson.node 7 | node-waf configure build 8 | cp -R ./build/Release/bson.node . || true 9 | 10 | all_debug: 11 | rm -rf build .lock-wscript bson.node 12 | node-waf --debug configure build 13 | cp -R ./build/Release/bson.node . || true 14 | 15 | clang: 16 | rm -rf build .lock-wscript bson.node 17 | CXX=clang node-waf configure build 18 | cp -R ./build/Release/bson.node . || true 19 | 20 | clang_debug: 21 | rm -rf build .lock-wscript bson.node 22 | CXX=clang node-waf --debug configure build 23 | cp -R ./build/Release/bson.node . || true 24 | 25 | clean: 26 | rm -rf build .lock-wscript bson.node 27 | 28 | .PHONY: all -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/win32/ia32/bson.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/win32/ia32/bson.node -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/win32/x64/bson.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/win32/x64/bson.node -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/lib/bson/code.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON Code type. 3 | * 4 | * @class Represents the BSON Code type. 5 | * @param {String|Function} code a string or function. 6 | * @param {Object} [scope] an optional scope for the function. 7 | * @return {Code} 8 | */ 9 | function Code(code, scope) { 10 | if(!(this instanceof Code)) return new Code(code, scope); 11 | 12 | this._bsontype = 'Code'; 13 | this.code = code; 14 | this.scope = scope == null ? {} : scope; 15 | }; 16 | 17 | /** 18 | * @ignore 19 | * @api private 20 | */ 21 | Code.prototype.toJSON = function() { 22 | return {scope:this.scope, code:this.code}; 23 | } 24 | 25 | exports.Code = Code; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/lib/bson/db_ref.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON DBRef type. 3 | * 4 | * @class Represents the BSON DBRef type. 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 | exports.DBRef = DBRef; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/lib/bson/double.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON Double type. 3 | * 4 | * @class Represents the BSON Double type. 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 | * @return {Number} returns the wrapped double number. 19 | * @api public 20 | */ 21 | Double.prototype.valueOf = function() { 22 | return this.value; 23 | }; 24 | 25 | /** 26 | * @ignore 27 | * @api private 28 | */ 29 | Double.prototype.toJSON = function() { 30 | return this.value; 31 | } 32 | 33 | exports.Double = Double; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/lib/bson/max_key.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON MaxKey type. 3 | * 4 | * @class Represents the BSON MaxKey type. 5 | * @return {MaxKey} 6 | */ 7 | function MaxKey() { 8 | if(!(this instanceof MaxKey)) return new MaxKey(); 9 | 10 | this._bsontype = 'MaxKey'; 11 | } 12 | 13 | exports.MaxKey = MaxKey; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/lib/bson/min_key.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON MinKey type. 3 | * 4 | * @class Represents the BSON MinKey type. 5 | * @return {MinKey} 6 | */ 7 | function MinKey() { 8 | if(!(this instanceof MinKey)) return new MinKey(); 9 | 10 | this._bsontype = 'MinKey'; 11 | } 12 | 13 | exports.MinKey = MinKey; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/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/mongoose/node_modules/mongodb/node_modules/bson/tools/jasmine-1.1.0/jasmine_favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/mongoose/node_modules/mongodb/node_modules/bson/tools/jasmine-1.1.0/jasmine_favicon.png -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/README.md: -------------------------------------------------------------------------------- 1 | kerberos 2 | ======== 3 | 4 | Kerberos library for node.js -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/builderror.log: -------------------------------------------------------------------------------- 1 | gyp ERR! configure error 2 | gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. 3 | gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:118:14) 4 | gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:81:11 5 | gyp ERR! stack at Object.oncomplete (fs.js:107:15) 6 | gyp ERR! System Windows_NT 6.1.7601 7 | gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" 8 | gyp ERR! cwd D:\N-drift-bottle\node_modules\mongoose\node_modules\mongodb\node_modules\kerberos 9 | gyp ERR! node -v v0.10.21 10 | gyp ERR! node-gyp -v v0.10.10 11 | gyp ERR! not ok 12 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/index.js: -------------------------------------------------------------------------------- 1 | // Get the Kerberos library 2 | module.exports = require('./lib/kerberos'); 3 | // Set up the auth processes 4 | module.exports['processes'] = { 5 | MongoAuthProcess: require('./lib/auth_processes/mongodb').MongoAuthProcess 6 | } -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/lib/base64.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2006-2008 Apple Inc. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | **/ 16 | 17 | char *base64_encode(const unsigned char *value, int vlen); 18 | unsigned char *base64_decode(const char *value, int *rlen); 19 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/lib/sspi.js: -------------------------------------------------------------------------------- 1 | // Load the native SSPI classes 2 | var kerberos = require('../build/Release/kerberos') 3 | , Kerberos = kerberos.Kerberos 4 | , SecurityBuffer = require('./win32/wrappers/security_buffer').SecurityBuffer 5 | , SecurityBufferDescriptor = require('./win32/wrappers/security_buffer_descriptor').SecurityBufferDescriptor 6 | , SecurityCredentials = require('./win32/wrappers/security_credentials').SecurityCredentials 7 | , SecurityContext = require('./win32/wrappers/security_context').SecurityContext; 8 | var SSPI = function() { 9 | } 10 | 11 | exports.SSPI = SSPI; 12 | exports.SecurityBuffer = SecurityBuffer; 13 | exports.SecurityBufferDescriptor = SecurityBufferDescriptor; 14 | exports.SecurityCredentials = SecurityCredentials; 15 | exports.SecurityContext = SecurityContext; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/lib/win32/base64.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2006-2008 Apple Inc. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | **/ 16 | 17 | char *base64_encode(const unsigned char *value, int vlen); 18 | unsigned char *base64_decode(const char *value, int *rlen); 19 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/lib/win32/worker.cc: -------------------------------------------------------------------------------- 1 | #include "worker.h" 2 | 3 | Worker::Worker() { 4 | } 5 | 6 | Worker::~Worker() { 7 | } -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/lib/win32/wrappers/security_buffer.js: -------------------------------------------------------------------------------- 1 | var SecurityBufferNative = require('../../../build/Release/kerberos').SecurityBuffer; 2 | 3 | // Add some attributes 4 | SecurityBufferNative.VERSION = 0; 5 | SecurityBufferNative.EMPTY = 0; 6 | SecurityBufferNative.DATA = 1; 7 | SecurityBufferNative.TOKEN = 2; 8 | SecurityBufferNative.PADDING = 9; 9 | SecurityBufferNative.STREAM = 10; 10 | 11 | // Export the modified class 12 | exports.SecurityBuffer = SecurityBufferNative; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/lib/win32/wrappers/security_buffer_descriptor.js: -------------------------------------------------------------------------------- 1 | var SecurityBufferDescriptorNative = require('../../../build/Release/kerberos').SecurityBufferDescriptor; 2 | // Export the modified class 3 | exports.SecurityBufferDescriptor = SecurityBufferDescriptorNative; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/lib/win32/wrappers/security_context.js: -------------------------------------------------------------------------------- 1 | var SecurityContextNative = require('../../../build/Release/kerberos').SecurityContext; 2 | // Export the modified class 3 | exports.SecurityContext = SecurityContextNative; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/lib/win32/wrappers/security_credentials.js: -------------------------------------------------------------------------------- 1 | var SecurityCredentialsNative = require('../../../build/Release/kerberos').SecurityCredentials; 2 | 3 | // Add simple kebros helper 4 | SecurityCredentialsNative.aquire_kerberos = function(username, password, domain, callback) { 5 | if(typeof password == 'function') { 6 | callback = password; 7 | password = null; 8 | } else if(typeof domain == 'function') { 9 | callback = domain; 10 | domain = null; 11 | } 12 | 13 | // We are going to use the async version 14 | if(typeof callback == 'function') { 15 | return SecurityCredentialsNative.aquire('Kerberos', username, password, domain, callback); 16 | } else { 17 | return SecurityCredentialsNative.aquireSync('Kerberos', username, password, domain); 18 | } 19 | } 20 | 21 | // Export the modified class 22 | exports.SecurityCredentials = SecurityCredentialsNative; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/lib/worker.cc: -------------------------------------------------------------------------------- 1 | #include "worker.h" 2 | 3 | Worker::Worker() { 4 | } 5 | 6 | Worker::~Worker() { 7 | } -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/test/kerberos_win32_test.js: -------------------------------------------------------------------------------- 1 | exports.setUp = function(callback) { 2 | callback(); 3 | } 4 | 5 | exports.tearDown = function(callback) { 6 | callback(); 7 | } 8 | 9 | exports['Simple initialize of Kerberos win32 object'] = function(test) { 10 | var KerberosNative = require('../build/Release/kerberos').Kerberos; 11 | // console.dir(KerberosNative) 12 | var kerberos = new KerberosNative(); 13 | console.log("=========================================== 0") 14 | console.dir(kerberos.acquireAlternateCredentials("dev1@10GEN.ME", "a")); 15 | console.log("=========================================== 1") 16 | console.dir(kerberos.prepareOutboundPackage("mongodb/kdc.10gen.com")); 17 | console.log("=========================================== 2") 18 | test.done(); 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/test/win32/security_buffer_tests.js: -------------------------------------------------------------------------------- 1 | exports.setUp = function(callback) { 2 | callback(); 3 | } 4 | 5 | exports.tearDown = function(callback) { 6 | callback(); 7 | } 8 | 9 | exports['Initialize a security Buffer'] = function(test) { 10 | var SecurityBuffer = require('../../lib/sspi.js').SecurityBuffer; 11 | // Create empty buffer 12 | var securityBuffer = new SecurityBuffer(SecurityBuffer.DATA, 100); 13 | var buffer = securityBuffer.toBuffer(); 14 | test.equal(100, buffer.length); 15 | 16 | // Access data passed in 17 | var allocated_buffer = new Buffer(256); 18 | securityBuffer = new SecurityBuffer(SecurityBuffer.DATA, allocated_buffer); 19 | buffer = securityBuffer.toBuffer(); 20 | test.deepEqual(allocated_buffer, buffer); 21 | test.done(); 22 | } -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mpath/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mpath/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mpath/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.1.1 / 2012-12-21 3 | ================== 4 | 5 | * added; map support 6 | 7 | 0.1.0 / 2012-12-13 8 | ================== 9 | 10 | * added; set('array.property', val, object) support 11 | * added; get('array.property', object) support 12 | 13 | 0.0.1 / 2012-11-03 14 | ================== 15 | 16 | * initial release 17 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mpath/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @node_modules/mocha/bin/mocha -A $(T) 4 | 5 | .PHONY: test 6 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mpath/index.js: -------------------------------------------------------------------------------- 1 | module.exports = exports = require('./lib'); 2 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mpromise/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mpromise/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mpromise/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.3.0 / 2013-07-25 3 | ================== 4 | 5 | * updated; sliced to 0.0.5 6 | * fixed; then is passed all fulfillment values 7 | * use setImmediate if available 8 | * conform to Promises A+ 1.1 9 | 10 | 0.2.1 / 2013-02-09 11 | ================== 12 | 13 | * fixed; conformancy with A+ 1.2 14 | 15 | 0.2.0 / 2013-01-09 16 | ================== 17 | 18 | * added; .end() 19 | * fixed; only catch handler executions 20 | 21 | 0.1.0 / 2013-01-08 22 | ================== 23 | 24 | * cleaned up API 25 | * customizable event names 26 | * docs 27 | 28 | 0.0.1 / 2013-01-07 29 | ================== 30 | 31 | * original release 32 | 33 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mpromise/Makefile: -------------------------------------------------------------------------------- 1 | TESTS = $(shell find test/ -name '*.test.js') 2 | 3 | test: 4 | @make test-unit && echo "testing promises-A+ implementation ..." && make test-promises-A 5 | 6 | test-unit: 7 | @./node_modules/.bin/mocha $(T) --async-only $(TESTS) 8 | 9 | test-promises-A: 10 | @node test/promises-A.js 11 | 12 | .PHONY: test test-unit test-promises-A 13 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mpromise/index.js: -------------------------------------------------------------------------------- 1 | module.exports = exports = require('./lib/promise'); 2 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mpromise/test/promises-A.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var assert = require('assert') 7 | var Promise = require('../lib/promise'); 8 | var aplus = require('promises-aplus-tests'); 9 | 10 | // tests 11 | 12 | var adapter = {}; 13 | adapter.fulfilled = function (value) { 14 | var p = new Promise; 15 | p.fulfill(value); 16 | return p; 17 | }; 18 | adapter.rejected = function (reason) { 19 | var p = new Promise; 20 | p.reject(reason); 21 | return p; 22 | } 23 | adapter.pending = function () { 24 | var p = new Promise; 25 | return { 26 | promise: p 27 | , fulfill: p.fulfill.bind(p) 28 | , reject: p.reject.bind(p) 29 | } 30 | } 31 | 32 | aplus(adapter, function (err) { 33 | assert.ifError(err); 34 | }); 35 | 36 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | services: 6 | - mongodb 7 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha $(T) $(TESTS) 4 | 5 | .PHONY: test 6 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/index.js: -------------------------------------------------------------------------------- 1 | module.exports = exports = require('./lib/mquery'); 2 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/lib/collection/collection.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * methods a collection must implement 5 | */ 6 | 7 | var names = 'find findOne update remove count distict findAndModify aggregate'; 8 | var methods = names.split(' '); 9 | 10 | /** 11 | * Collection base class from which implementations inherit 12 | */ 13 | 14 | function Collection () {} 15 | 16 | for (var i = 0, len = methods.length; i < len; ++i) { 17 | var method = methods[i]; 18 | Collection.prototype[method] = notImplemented(method); 19 | } 20 | 21 | module.exports = exports = Collection; 22 | Collection.methods = methods; 23 | 24 | /** 25 | * creates a function which throws an implementation error 26 | */ 27 | 28 | function notImplemented (method) { 29 | return function () { 30 | throw new Error('collection.' + method + ' not implemented'); 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/lib/collection/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var env = require('../env') 4 | 5 | if ('unknown' == env.type) { 6 | throw new Error('Unknown environment') 7 | } 8 | 9 | module.exports = 10 | env.isNode ? require('./node') : 11 | env.isMongo ? require('./mongo') : 12 | require('./browser'); 13 | 14 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/lib/env.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.isNode = 'undefined' != typeof process 4 | && 'object' == typeof module 5 | && 'object' == typeof global 6 | && 'function' == typeof Buffer 7 | && process.argv 8 | 9 | exports.isMongo = !exports.isNode 10 | && 'function' == typeof printjson 11 | && 'function' == typeof ObjectId 12 | && 'function' == typeof rs 13 | && 'function' == typeof sh; 14 | 15 | exports.isBrowser = !exports.isNode 16 | && !exports.isMongo 17 | && 'undefined' != typeof window; 18 | 19 | exports.type = exports.isNode ? 'node' 20 | : exports.isMongo ? 'mongo' 21 | : exports.isBrowser ? 'browser' 22 | : 'unknown' 23 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/node_modules/debug/Makefile: -------------------------------------------------------------------------------- 1 | 2 | debug.component.js: head.js debug.js tail.js 3 | cat $^ > $@ 4 | 5 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/node_modules/debug/example/app.js: -------------------------------------------------------------------------------- 1 | 2 | var debug = require('../')('http') 3 | , http = require('http') 4 | , name = 'My App'; 5 | 6 | // fake app 7 | 8 | debug('booting %s', name); 9 | 10 | http.createServer(function(req, res){ 11 | debug(req.method + ' ' + req.url); 12 | res.end('hello\n'); 13 | }).listen(3000, function(){ 14 | debug('listening'); 15 | }); 16 | 17 | // fake worker of some kind 18 | 19 | require('./worker'); -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/node_modules/debug/example/browser.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | debug() 4 | 5 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/node_modules/debug/example/wildcards.js: -------------------------------------------------------------------------------- 1 | 2 | var debug = { 3 | foo: require('../')('test:foo'), 4 | bar: require('../')('test:bar'), 5 | baz: require('../')('test:baz') 6 | }; 7 | 8 | debug.foo('foo') 9 | debug.bar('bar') 10 | debug.baz('baz') -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/node_modules/debug/example/worker.js: -------------------------------------------------------------------------------- 1 | 2 | // DEBUG=* node example/worker 3 | // DEBUG=worker:* node example/worker 4 | // DEBUG=worker:a node example/worker 5 | // DEBUG=worker:b node example/worker 6 | 7 | var a = require('../')('worker:a') 8 | , b = require('../')('worker:b'); 9 | 10 | function work() { 11 | a('doing lots of uninteresting work'); 12 | setTimeout(work, Math.random() * 1000); 13 | } 14 | 15 | work(); 16 | 17 | function workb() { 18 | b('doing some work'); 19 | setTimeout(workb, Math.random() * 2000); 20 | } 21 | 22 | workb(); -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/node_modules/debug/head.js: -------------------------------------------------------------------------------- 1 | ;(function(){ 2 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/node_modules/debug/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/debug'); -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/node_modules/debug/tail.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = debug; 3 | 4 | })(); -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/test/collection/browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/mongoose/node_modules/mquery/test/collection/browser.js -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/test/collection/mongo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/mongoose/node_modules/mquery/test/collection/mongo.js -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/test/collection/node.js: -------------------------------------------------------------------------------- 1 | 2 | var assert = require('assert') 3 | var slice = require('sliced') 4 | var mongo = require('mongodb') 5 | var utils = require('../../').utils; 6 | 7 | var uri = process.env.MQUERY_URI || 'mongodb://localhost/mquery'; 8 | var db; 9 | 10 | exports.getCollection = function (cb) { 11 | mongo.Db.connect(uri, function (err, db_) { 12 | assert.ifError(err); 13 | db = db_; 14 | 15 | var collection = db.collection('stuff'); 16 | collection.opts.safe = true; 17 | 18 | // clean test db before starting 19 | db.dropDatabase(function () { 20 | cb(null, collection); 21 | }); 22 | }) 23 | } 24 | 25 | exports.dropCollection = function (cb) { 26 | db.dropDatabase(function () { 27 | db.close(cb); 28 | }) 29 | } 30 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/test/env.js: -------------------------------------------------------------------------------- 1 | 2 | var assert = require('assert') 3 | var env = require('../').env; 4 | 5 | console.log('environment: %s', env.type); 6 | 7 | var col; 8 | switch (env.type) { 9 | case 'node': 10 | col = require('./collection/node'); 11 | break; 12 | case 'mongo': 13 | col = require('./collection/mongo'); 14 | case 'browser': 15 | col = require('./collection/browser'); 16 | default: 17 | throw new Error('missing collection implementation for environment: ' + env.type); 18 | } 19 | 20 | module.exports = exports = col; 21 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mquery/test/utils.js: -------------------------------------------------------------------------------- 1 | 2 | var utils = require('../lib/utils'); 3 | 4 | describe('utils', function(){ 5 | // TODO 6 | }) 7 | 8 | 9 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/ms/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/ms/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | ./node_modules/.bin/mocha test/test.js 4 | 5 | test-browser: 6 | ./node_modules/.bin/serve test/ 7 | 8 | .PHONY: test 9 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/ms/ms.js: -------------------------------------------------------------------------------- 1 | /** 2 | 3 | # ms.js 4 | 5 | No more painful `setTimeout(fn, 60 * 4 * 3 * 2 * 1 * Infinity * NaN * '☃')`. 6 | 7 | ms('2d') // 172800000 8 | ms('1.5h') // 5400000 9 | ms('1h') // 3600000 10 | ms('1m') // 60000 11 | ms('5s') // 5000 12 | ms('500ms') // 500 13 | ms('100') // '100' 14 | ms(100) // 100 15 | 16 | **/ 17 | 18 | (function (g) { 19 | var r = /(\d*.?\d+)([mshd]+)/ 20 | , _ = {} 21 | 22 | _.ms = 1; 23 | _.s = 1000; 24 | _.m = _.s * 60; 25 | _.h = _.m * 60; 26 | _.d = _.h * 24; 27 | 28 | function ms (s) { 29 | if (s == Number(s)) return Number(s); 30 | r.exec(s.toLowerCase()); 31 | return RegExp.$1 * _[RegExp.$2]; 32 | } 33 | 34 | g.top ? g.ms = ms : module.exports = ms; 35 | })(this); 36 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/ms/test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ms.js tests 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/muri/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/muri/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/muri/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @node_modules/mocha/bin/mocha $(T) 4 | 5 | .PHONY: test 6 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/muri/index.js: -------------------------------------------------------------------------------- 1 | module.exports = exports = require('./lib'); 2 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/regexp-clone/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/regexp-clone/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | - 0.10 6 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/regexp-clone/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.1 / 2013-04-17 3 | ================== 4 | 5 | * initial commit 6 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/regexp-clone/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha $(T) --async-only $(TESTS) 4 | 5 | .PHONY: test 6 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/regexp-clone/README.md: -------------------------------------------------------------------------------- 1 | #regexp-clone 2 | ============== 3 | 4 | Clones RegExps with flag preservation 5 | 6 | ```js 7 | var regexpClone = require('regexp-clone'); 8 | 9 | var a = /somethin/g; 10 | console.log(a.global); // true 11 | 12 | var b = regexpClone(a); 13 | console.log(b.global); // true 14 | ``` 15 | 16 | ## License 17 | 18 | [MIT](https://github.com/aheckmann/regexp-clone/blob/master/LICENSE) 19 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/regexp-clone/index.js: -------------------------------------------------------------------------------- 1 | 2 | var toString = Object.prototype.toString; 3 | 4 | function isRegExp (o) { 5 | return 'object' == typeof o 6 | && '[object RegExp]' == toString.call(o); 7 | } 8 | 9 | module.exports = exports = function (regexp) { 10 | if (!isRegExp(regexp)) { 11 | throw new TypeError('Not a RegExp'); 12 | } 13 | 14 | var flags = []; 15 | if (regexp.global) flags.push('g'); 16 | if (regexp.multiline) flags.push('m'); 17 | if (regexp.ignoreCase) flags.push('i'); 18 | return new RegExp(regexp.source, flags.join('')); 19 | } 20 | 21 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/sliced/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/sliced/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/sliced/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.5 / 2013-02-05 3 | ================== 4 | 5 | * optimization: remove use of arguments [jkroso](https://github.com/jkroso) 6 | * add scripts to component.json [jkroso](https://github.com/jkroso) 7 | * tests; remove time for travis 8 | 9 | 0.0.4 / 2013-01-07 10 | ================== 11 | 12 | * added component.json #1 [jkroso](https://github.com/jkroso) 13 | * reversed array loop #1 [jkroso](https://github.com/jkroso) 14 | * remove fn params 15 | 16 | 0.0.3 / 2012-09-29 17 | ================== 18 | 19 | * faster with negative start args 20 | 21 | 0.0.2 / 2012-09-29 22 | ================== 23 | 24 | * support full [].slice semantics 25 | 26 | 0.0.1 / 2012-09-29 27 | =================== 28 | 29 | * initial release 30 | 31 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/sliced/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha $(T) $(TESTS) 4 | 5 | .PHONY: test 6 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/sliced/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sliced", 3 | "version": "0.0.5", 4 | "description": "A faster Node.js alternative to Array.prototype.slice.call(arguments)", 5 | "repo" : "aheckmann/sliced", 6 | "keywords": [ 7 | "arguments", 8 | "slice", 9 | "array" 10 | ], 11 | "scripts": ["lib/sliced.js", "index.js"], 12 | "author": "Aaron Heckmann ", 13 | "license": "MIT" 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/sliced/index.js: -------------------------------------------------------------------------------- 1 | module.exports = exports = require('./lib/sliced'); 2 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/sliced/lib/sliced.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * An Array.prototype.slice.call(arguments) alternative 4 | * 5 | * @param {Object} args something with a length 6 | * @param {Number} slice 7 | * @param {Number} sliceEnd 8 | * @api public 9 | */ 10 | 11 | module.exports = function (args, slice, sliceEnd) { 12 | var ret = []; 13 | var len = args.length; 14 | 15 | if (0 === len) return ret; 16 | 17 | var start = slice < 0 18 | ? Math.max(0, slice + len) 19 | : slice || 0; 20 | 21 | if (sliceEnd !== undefined) { 22 | len = sliceEnd < 0 23 | ? sliceEnd + len 24 | : sliceEnd 25 | } 26 | 27 | while (len-- > start) { 28 | ret[len - start] = args[len]; 29 | } 30 | 31 | return ret; 32 | } 33 | 34 | -------------------------------------------------------------------------------- /node_modules/mongoose/static.js: -------------------------------------------------------------------------------- 1 | 2 | var static = require('node-static'); 3 | var server = new static.Server('.', { cache: 0 }); 4 | var open = require('open') 5 | 6 | require('http').createServer(function (req, res) { 7 | if ('/favicon.ico' == req.url) { 8 | req.destroy(); 9 | res.statusCode = 204 10 | return res.end(); 11 | } 12 | 13 | req.on('end', function () { 14 | server.serve(req, res, function (err) { 15 | if (err) { 16 | console.error(err, req.url); 17 | res.writeHead(err.status, err.headers); 18 | res.end(); 19 | } 20 | }); 21 | }); 22 | req.resume(); 23 | }).listen(8088); 24 | 25 | console.error('now listening on http://localhost:8088'); 26 | open('http://localhost:8088'); 27 | -------------------------------------------------------------------------------- /node_modules/node-uuid/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /node_modules/node-uuid/LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010-2012 Robert Kieffer 2 | MIT License - http://opensource.org/licenses/mit-license.php 3 | -------------------------------------------------------------------------------- /node_modules/node-uuid/benchmark/benchmark-native.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test performance of native C UUID generation 3 | 4 | To Compile: cc -luuid benchmark-native.c -o benchmark-native 5 | */ 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | int main() { 13 | uuid_t myid; 14 | char buf[36+1]; 15 | int i; 16 | struct timeval t; 17 | double start, finish; 18 | 19 | gettimeofday(&t, NULL); 20 | start = t.tv_sec + t.tv_usec/1e6; 21 | 22 | int n = 2e5; 23 | for (i = 0; i < n; i++) { 24 | uuid_generate(myid); 25 | uuid_unparse(myid, buf); 26 | } 27 | 28 | gettimeofday(&t, NULL); 29 | finish = t.tv_sec + t.tv_usec/1e6; 30 | double dur = finish - start; 31 | 32 | printf("%d uuids/sec", (int)(n/dur)); 33 | return 0; 34 | } 35 | -------------------------------------------------------------------------------- /node_modules/node-uuid/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "node-uuid", 3 | "repo": "broofa/node-uuid", 4 | "description": "Rigorous implementation of RFC4122 (v1 and v4) UUIDs.", 5 | "version": "1.4.0", 6 | "author": "Robert Kieffer ", 7 | "contributors": [ 8 | {"name": "Christoph Tavan ", "github": "https://github.com/ctavan"} 9 | ], 10 | "keywords": ["uuid", "guid", "rfc4122"], 11 | "dependencies": {}, 12 | "development": {}, 13 | "main": "uuid.js", 14 | "scripts": [ 15 | "uuid.js" 16 | ], 17 | "license": "MIT" 18 | } -------------------------------------------------------------------------------- /node_modules/node-uuid/test/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /node_modules/redis/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .tern-port 3 | -------------------------------------------------------------------------------- /node_modules/redis/benches/re_sub_test.js: -------------------------------------------------------------------------------- 1 | var client = require('../index').createClient() 2 | , client2 = require('../index').createClient() 3 | , assert = require('assert'); 4 | 5 | client.once('subscribe', function (channel, count) { 6 | client.unsubscribe('x'); 7 | client.subscribe('x', function () { 8 | client.quit(); 9 | client2.quit(); 10 | }); 11 | client2.publish('x', 'hi'); 12 | }); 13 | 14 | client.subscribe('x'); 15 | -------------------------------------------------------------------------------- /node_modules/redis/benches/reconnect_test.js: -------------------------------------------------------------------------------- 1 | var redis = require("../index").createClient(null, null, { 2 | // max_attempts: 4 3 | }); 4 | 5 | redis.on("error", function (err) { 6 | console.log("Redis says: " + err); 7 | }); 8 | 9 | redis.on("ready", function () { 10 | console.log("Redis ready."); 11 | }); 12 | 13 | redis.on("reconnecting", function (arg) { 14 | console.log("Redis reconnecting: " + JSON.stringify(arg)); 15 | }); 16 | redis.on("connect", function () { 17 | console.log("Redis connected."); 18 | }); 19 | 20 | setInterval(function () { 21 | var now = Date.now(); 22 | redis.set("now", now, function (err, res) { 23 | if (err) { 24 | console.log(now + " Redis reply error: " + err); 25 | } else { 26 | console.log(now + " Redis reply: " + res); 27 | } 28 | }); 29 | }, 100); 30 | -------------------------------------------------------------------------------- /node_modules/redis/benches/stress/codec.js: -------------------------------------------------------------------------------- 1 | var json = { 2 | encode: JSON.stringify, 3 | decode: JSON.parse 4 | }; 5 | 6 | var MsgPack = require('node-msgpack'); 7 | msgpack = { 8 | encode: MsgPack.pack, 9 | decode: function(str) { return MsgPack.unpack(new Buffer(str)); } 10 | }; 11 | 12 | bison = require('bison'); 13 | 14 | module.exports = json; 15 | //module.exports = msgpack; 16 | //module.exports = bison; 17 | -------------------------------------------------------------------------------- /node_modules/redis/benches/stress/pubsub/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | node server.js & 3 | node server.js & 4 | node server.js & 5 | node server.js & 6 | node server.js & 7 | node server.js & 8 | node server.js & 9 | node server.js & 10 | node --debug pub.js 11 | -------------------------------------------------------------------------------- /node_modules/redis/benches/stress/pubsub/server.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var freemem = require('os').freemem; 4 | var codec = require('../codec'); 5 | 6 | var id = Math.random(); 7 | var recv = 0; 8 | 9 | var sub = require('redis').createClient() 10 | .on('ready', function() { 11 | this.subscribe('timeline'); 12 | }) 13 | .on('message', function(channel, message) { 14 | var self = this; 15 | if (message) { 16 | message = codec.decode(message); 17 | ++recv; 18 | } 19 | }); 20 | 21 | setInterval(function() { 22 | console.error('id', id, 'received', recv, 'free', freemem()); 23 | }, 2000); 24 | -------------------------------------------------------------------------------- /node_modules/redis/benches/stress/rpushblpop/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | node server.js & 3 | #node server.js & 4 | #node server.js & 5 | #node server.js & 6 | node --debug pub.js 7 | -------------------------------------------------------------------------------- /node_modules/redis/benches/stress/rpushblpop/server.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var freemem = require('os').freemem; 4 | var codec = require('../codec'); 5 | 6 | var id = Math.random(); 7 | var recv = 0; 8 | 9 | var cmd = require('redis').createClient(); 10 | var sub = require('redis').createClient() 11 | .on('ready', function() { 12 | this.emit('timeline'); 13 | }) 14 | .on('timeline', function() { 15 | var self = this; 16 | this.blpop('timeline', 0, function(err, result) { 17 | var message = result[1]; 18 | if (message) { 19 | message = codec.decode(message); 20 | ++recv; 21 | } 22 | self.emit('timeline'); 23 | }); 24 | }); 25 | 26 | setInterval(function() { 27 | cmd.llen('timeline', function(err, result) { 28 | console.error('id', id, 'received', recv, 'free', freemem(), 'llen', result); 29 | }); 30 | }, 2000); 31 | -------------------------------------------------------------------------------- /node_modules/redis/benches/stress/speed/00: -------------------------------------------------------------------------------- 1 | # size JSON msgpack bison 2 | 26602 2151.0170848180414 3 | 25542 ? 2842.589272665782 4 | 24835 ? ? 7280.4538397469805 5 | 6104 6985.234528557929 6 | 5045 ? 7217.461392841478 7 | 4341 ? ? 14261.406335354604 8 | 4180 15864.633685636572 9 | 4143 ? 12954.806235781925 10 | 4141 ? ? 44650.70733912719 11 | 75 114227.07313350472 12 | 40 ? 30162.440062810834 13 | 39 ? ? 119815.66013519121 14 | -------------------------------------------------------------------------------- /node_modules/redis/benches/stress/speed/plot: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | gnuplot >size-rate.jpg << _EOF_ 4 | 5 | set terminal png nocrop enhanced font verdana 12 size 640,480 6 | set logscale x 7 | set logscale y 8 | set grid 9 | set xlabel 'Serialized object size, octets' 10 | set ylabel 'decode(encode(obj)) rate, 1/sec' 11 | plot '00' using 1:2 title 'json' smooth bezier, '00' using 1:3 title 'msgpack' smooth bezier, '00' using 1:4 title 'bison' smooth bezier 12 | 13 | _EOF_ 14 | -------------------------------------------------------------------------------- /node_modules/redis/benches/stress/speed/size-rate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/redis/benches/stress/speed/size-rate.png -------------------------------------------------------------------------------- /node_modules/redis/benches/sub_quit_test.js: -------------------------------------------------------------------------------- 1 | var client = require("redis").createClient(), 2 | client2 = require("redis").createClient(); 3 | 4 | client.subscribe("something"); 5 | client.on("subscribe", function (channel, count) { 6 | console.log("Got sub: " + channel); 7 | client.unsubscribe("something"); 8 | }); 9 | 10 | client.on("unsubscribe", function (channel, count) { 11 | console.log("Got unsub: " + channel + ", quitting"); 12 | client.quit(); 13 | }); 14 | 15 | // exercise unsub before sub 16 | client2.unsubscribe("something"); 17 | client2.subscribe("another thing"); 18 | client2.quit(); 19 | -------------------------------------------------------------------------------- /node_modules/redis/examples/auth.js: -------------------------------------------------------------------------------- 1 | var redis = require("redis"), 2 | client = redis.createClient(); 3 | 4 | // This command is magical. Client stashes the password and will issue on every connect. 5 | client.auth("somepass"); 6 | -------------------------------------------------------------------------------- /node_modules/redis/examples/eval.js: -------------------------------------------------------------------------------- 1 | var redis = require("../index"), 2 | client = redis.createClient(); 3 | 4 | redis.debug_mode = true; 5 | 6 | client.eval("return 100.5", 0, function (err, res) { 7 | console.dir(err); 8 | console.dir(res); 9 | }); 10 | 11 | client.eval([ "return 100.5", 0 ], function (err, res) { 12 | console.dir(err); 13 | console.dir(res); 14 | }); 15 | -------------------------------------------------------------------------------- /node_modules/redis/examples/extend.js: -------------------------------------------------------------------------------- 1 | var redis = require("redis"), 2 | client = redis.createClient(); 3 | 4 | // Extend the RedisClient prototype to add a custom method 5 | // This one converts the results from "INFO" into a JavaScript Object 6 | 7 | redis.RedisClient.prototype.parse_info = function (callback) { 8 | this.info(function (err, res) { 9 | var lines = res.toString().split("\r\n").sort(); 10 | var obj = {}; 11 | lines.forEach(function (line) { 12 | var parts = line.split(':'); 13 | if (parts[1]) { 14 | obj[parts[0]] = parts[1]; 15 | } 16 | }); 17 | callback(obj) 18 | }); 19 | }; 20 | 21 | client.parse_info(function (info) { 22 | console.dir(info); 23 | client.quit(); 24 | }); 25 | -------------------------------------------------------------------------------- /node_modules/redis/examples/mget.js: -------------------------------------------------------------------------------- 1 | var client = require("redis").createClient(); 2 | 3 | client.mget(["sessions started", "sessions started", "foo"], function (err, res) { 4 | console.dir(res); 5 | }); -------------------------------------------------------------------------------- /node_modules/redis/examples/monitor.js: -------------------------------------------------------------------------------- 1 | var client = require("../index").createClient(), 2 | util = require("util"); 3 | 4 | client.monitor(function (err, res) { 5 | console.log("Entering monitoring mode."); 6 | }); 7 | 8 | client.on("monitor", function (time, args) { 9 | console.log(time + ": " + util.inspect(args)); 10 | }); 11 | -------------------------------------------------------------------------------- /node_modules/redis/examples/multi2.js: -------------------------------------------------------------------------------- 1 | var redis = require("redis"), 2 | client = redis.createClient(), multi; 3 | 4 | // start a separate command queue for multi 5 | multi = client.multi(); 6 | multi.incr("incr thing", redis.print); 7 | multi.incr("incr other thing", redis.print); 8 | 9 | // runs immediately 10 | client.mset("incr thing", 100, "incr other thing", 1, redis.print); 11 | 12 | // drains multi queue and runs atomically 13 | multi.exec(function (err, replies) { 14 | console.log(replies); // 101, 2 15 | }); 16 | 17 | // you can re-run the same transaction if you like 18 | multi.exec(function (err, replies) { 19 | console.log(replies); // 102, 3 20 | client.quit(); 21 | }); 22 | 23 | client.multi([ 24 | ["mget", "multifoo", "multibar", redis.print], 25 | ["incr", "multifoo"], 26 | ["incr", "multibar"] 27 | ]).exec(function (err, replies) { 28 | console.log(replies.toString()); 29 | }); 30 | -------------------------------------------------------------------------------- /node_modules/redis/examples/simple.js: -------------------------------------------------------------------------------- 1 | var redis = require("redis"), 2 | client = redis.createClient(); 3 | 4 | client.on("error", function (err) { 5 | console.log("error event - " + client.host + ":" + client.port + " - " + err); 6 | }); 7 | 8 | client.set("string key", "string val", redis.print); 9 | client.hset("hash key", "hashtest 1", "some value", redis.print); 10 | client.hset(["hash key", "hashtest 2", "some other value"], redis.print); 11 | client.hkeys("hash key", function (err, replies) { 12 | if (err) { 13 | return console.error("error response - " + err); 14 | } 15 | 16 | console.log(replies.length + " replies:"); 17 | replies.forEach(function (reply, i) { 18 | console.log(" " + i + ": " + reply); 19 | }); 20 | }); 21 | 22 | client.quit(function (err, res) { 23 | console.log("Exiting from quit command."); 24 | }); 25 | -------------------------------------------------------------------------------- /node_modules/redis/examples/sort.js: -------------------------------------------------------------------------------- 1 | var redis = require("redis"), 2 | client = redis.createClient(); 3 | 4 | client.sadd("mylist", 1); 5 | client.sadd("mylist", 2); 6 | client.sadd("mylist", 3); 7 | 8 | client.set("weight_1", 5); 9 | client.set("weight_2", 500); 10 | client.set("weight_3", 1); 11 | 12 | client.set("object_1", "foo"); 13 | client.set("object_2", "bar"); 14 | client.set("object_3", "qux"); 15 | 16 | client.sort("mylist", "by", "weight_*", "get", "object_*", redis.print); 17 | // Prints Reply: qux,foo,bar -------------------------------------------------------------------------------- /node_modules/redis/examples/subqueries.js: -------------------------------------------------------------------------------- 1 | // Sending commands in response to other commands. 2 | // This example runs "type" against every key in the database 3 | // 4 | var client = require("redis").createClient(); 5 | 6 | client.keys("*", function (err, keys) { 7 | keys.forEach(function (key, pos) { 8 | client.type(key, function (err, keytype) { 9 | console.log(key + " is " + keytype); 10 | if (pos === (keys.length - 1)) { 11 | client.quit(); 12 | } 13 | }); 14 | }); 15 | }); 16 | -------------------------------------------------------------------------------- /node_modules/redis/examples/subquery.js: -------------------------------------------------------------------------------- 1 | var client = require("redis").createClient(); 2 | 3 | function print_results(obj) { 4 | console.dir(obj); 5 | } 6 | 7 | // build a map of all keys and their types 8 | client.keys("*", function (err, all_keys) { 9 | var key_types = {}; 10 | 11 | all_keys.forEach(function (key, pos) { // use second arg of forEach to get pos 12 | client.type(key, function (err, type) { 13 | key_types[key] = type; 14 | if (pos === all_keys.length - 1) { // callbacks all run in order 15 | print_results(key_types); 16 | } 17 | }); 18 | }); 19 | }); 20 | -------------------------------------------------------------------------------- /node_modules/redis/examples/unix_socket.js: -------------------------------------------------------------------------------- 1 | var redis = require("redis"), 2 | client = redis.createClient("/tmp/redis.sock"), 3 | profiler = require("v8-profiler"); 4 | 5 | client.on("connect", function () { 6 | console.log("Got Unix socket connection.") 7 | }); 8 | 9 | client.on("error", function (err) { 10 | console.log(err.message); 11 | }); 12 | 13 | client.set("space chars", "space value"); 14 | 15 | setInterval(function () { 16 | client.get("space chars"); 17 | }, 100); 18 | 19 | function done() { 20 | client.info(function (err, reply) { 21 | console.log(reply.toString()); 22 | client.quit(); 23 | }); 24 | } 25 | 26 | setTimeout(function () { 27 | console.log("Taking snapshot."); 28 | var snap = profiler.takeSnapshot(); 29 | }, 5000); 30 | -------------------------------------------------------------------------------- /node_modules/redis/lib/to_array.js: -------------------------------------------------------------------------------- 1 | function to_array(args) { 2 | var len = args.length, 3 | arr = new Array(len), i; 4 | 5 | for (i = 0; i < len; i += 1) { 6 | arr[i] = args[i]; 7 | } 8 | 9 | return arr; 10 | } 11 | 12 | module.exports = to_array; 13 | -------------------------------------------------------------------------------- /node_modules/redis/lib/util.js: -------------------------------------------------------------------------------- 1 | // Support for very old versions of node where the module was called "sys". At some point, we should abandon this. 2 | 3 | var util; 4 | 5 | try { 6 | util = require("util"); 7 | } catch (err) { 8 | util = require("sys"); 9 | } 10 | 11 | module.exports = util; 12 | -------------------------------------------------------------------------------- /node_modules/redis/test-unref.js: -------------------------------------------------------------------------------- 1 | var redis = require("./") 2 | //redis.debug_mode = true 3 | var PORT = process.argv[2] || 6379; 4 | var HOST = process.argv[3] || '127.0.0.1'; 5 | 6 | var c = redis.createClient(PORT, HOST) 7 | c.unref() 8 | c.info(function (err, reply) { 9 | if (err) process.exit(-1) 10 | if (!reply.length) process.exit(-1) 11 | process.stdout.write(reply.length.toString()) 12 | }) -------------------------------------------------------------------------------- /node_modules/request/.npmignore: -------------------------------------------------------------------------------- 1 | tests 2 | node_modules 3 | -------------------------------------------------------------------------------- /node_modules/request/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.8 4 | - 0.10 5 | 6 | env: 7 | - OPTIONALS=Y 8 | - OPTIONALS=N 9 | 10 | install: 11 | - if [[ "$OPTIONALS" == "Y" ]]; then npm install; fi 12 | - if [[ "$OPTIONALS" == "N" ]]; then npm install --no-optional; fi 13 | -------------------------------------------------------------------------------- /node_modules/request/dns-request.js: -------------------------------------------------------------------------------- 1 | var request = require('request') 2 | , dns = require('dns') 3 | ; 4 | 5 | function wrap (fn) { 6 | var 7 | } -------------------------------------------------------------------------------- /node_modules/request/lib/copy.js: -------------------------------------------------------------------------------- 1 | module.exports = 2 | function copy (obj) { 3 | var o = {} 4 | Object.keys(obj).forEach(function (i) { 5 | o[i] = obj[i] 6 | }) 7 | return o 8 | } -------------------------------------------------------------------------------- /node_modules/request/lib/debug.js: -------------------------------------------------------------------------------- 1 | var util = require('util') 2 | 3 | module.exports = 4 | function debug () { 5 | if (/\brequest\b/.test(process.env.NODE_DEBUG)) 6 | console.error('REQUEST %s', util.format.apply(util, arguments)) 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/request/lib/optional.js: -------------------------------------------------------------------------------- 1 | module.exports = function(module) { 2 | try { 3 | return require(module); 4 | } catch (e) {} 5 | }; 6 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/aws-sign/README.md: -------------------------------------------------------------------------------- 1 | aws-sign 2 | ======== 3 | 4 | AWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module. 5 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/aws-sign2/README.md: -------------------------------------------------------------------------------- 1 | aws-sign 2 | ======== 3 | 4 | AWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module. 5 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/cookie-jar/README.md: -------------------------------------------------------------------------------- 1 | cookie-jar 2 | ========== 3 | 4 | Cookie Jar. Originally pulled from LearnBoost/tobi, maintained as vendor in request, now a standalone module. 5 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/cookie-jar/tests/test-cookie.js: -------------------------------------------------------------------------------- 1 | var Cookie = require('../index') 2 | , assert = require('assert'); 3 | 4 | var str = 'Sid="s543qactge.wKE61E01Bs%2BKhzmxrwrnug="; Path=/; httpOnly; Expires=Sat, 04 Dec 2010 23:27:28 GMT'; 5 | var cookie = new Cookie(str); 6 | 7 | // test .toString() 8 | assert.equal(cookie.toString(), str); 9 | 10 | // test .path 11 | assert.equal(cookie.path, '/'); 12 | 13 | // test .httpOnly 14 | assert.equal(cookie.httpOnly, true); 15 | 16 | // test .name 17 | assert.equal(cookie.name, 'Sid'); 18 | 19 | // test .value 20 | assert.equal(cookie.value, '"s543qactge.wKE61E01Bs%2BKhzmxrwrnug="'); 21 | 22 | // test .expires 23 | assert.equal(cookie.expires instanceof Date, true); 24 | 25 | // test .path default 26 | var cookie = new Cookie('foo=bar', { url: 'http://foo.com/bar' }); 27 | assert.equal(cookie.path, '/bar'); 28 | 29 | console.log('All tests passed'); 30 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/forever-agent/README.md: -------------------------------------------------------------------------------- 1 | forever-agent 2 | ============= 3 | 4 | HTTP Agent that keeps socket connections alive between keep-alive requests. Formerly part of mikeal/request, now a standalone module. 5 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/async/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "async", 3 | "repo": "caolan/async", 4 | "description": "Higher-order functions and common patterns for asynchronous code", 5 | "version": "0.1.23", 6 | "keywords": [], 7 | "dependencies": {}, 8 | "development": {}, 9 | "main": "lib/async.js", 10 | "scripts": [ "lib/async.js" ] 11 | } 12 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/combined-stream/.npmignore: -------------------------------------------------------------------------------- 1 | *.un~ 2 | /node_modules 3 | /test/tmp 4 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/combined-stream/Makefile: -------------------------------------------------------------------------------- 1 | SHELL := /bin/bash 2 | 3 | test: 4 | @./test/run.js 5 | 6 | .PHONY: test 7 | 8 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/.npmignore: -------------------------------------------------------------------------------- 1 | *.un~ 2 | /node_modules/* 3 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Makefile: -------------------------------------------------------------------------------- 1 | SHELL := /bin/bash 2 | 3 | test: 4 | @./test/run.js 5 | 6 | .PHONY: test 7 | 8 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/common.js: -------------------------------------------------------------------------------- 1 | var common = module.exports; 2 | 3 | common.DelayedStream = require('..'); 4 | common.assert = require('assert'); 5 | common.fake = require('fake'); 6 | common.PORT = 49252; 7 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream-auto-pause.js: -------------------------------------------------------------------------------- 1 | var common = require('../common'); 2 | var assert = common.assert; 3 | var fake = common.fake.create(); 4 | var DelayedStream = common.DelayedStream; 5 | var Stream = require('stream').Stream; 6 | 7 | (function testAutoPause() { 8 | var source = new Stream(); 9 | 10 | fake.expect(source, 'pause', 1); 11 | var delayedStream = DelayedStream.create(source); 12 | fake.verify(); 13 | })(); 14 | 15 | (function testDisableAutoPause() { 16 | var source = new Stream(); 17 | fake.expect(source, 'pause', 0); 18 | 19 | var delayedStream = DelayedStream.create(source, {pauseStream: false}); 20 | fake.verify(); 21 | })(); 22 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream-pause.js: -------------------------------------------------------------------------------- 1 | var common = require('../common'); 2 | var assert = common.assert; 3 | var fake = common.fake.create(); 4 | var DelayedStream = common.DelayedStream; 5 | var Stream = require('stream').Stream; 6 | 7 | (function testDelayEventsUntilResume() { 8 | var source = new Stream(); 9 | var delayedStream = DelayedStream.create(source, {pauseStream: false}); 10 | 11 | fake.expect(source, 'pause'); 12 | delayedStream.pause(); 13 | fake.verify(); 14 | })(); 15 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js: -------------------------------------------------------------------------------- 1 | var common = require('../common'); 2 | var assert = common.assert; 3 | var fake = common.fake.create(); 4 | var DelayedStream = common.DelayedStream; 5 | var Stream = require('stream').Stream; 6 | 7 | (function testHandleSourceErrors() { 8 | var source = new Stream(); 9 | var delayedStream = DelayedStream.create(source, {pauseStream: false}); 10 | 11 | // We deal with this by attaching a no-op listener to 'error' on the source 12 | // when creating a new DelayedStream. This way error events on the source 13 | // won't throw. 14 | source.emit('error', new Error('something went wrong')); 15 | })(); 16 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-max-data-size.js: -------------------------------------------------------------------------------- 1 | var common = require('../common'); 2 | var assert = common.assert; 3 | var fake = common.fake.create(); 4 | var DelayedStream = common.DelayedStream; 5 | var Stream = require('stream').Stream; 6 | 7 | (function testMaxDataSize() { 8 | var source = new Stream(); 9 | var delayedStream = DelayedStream.create(source, {maxDataSize: 1024, pauseStream: false}); 10 | 11 | source.emit('data', new Buffer(1024)); 12 | 13 | fake 14 | .expect(delayedStream, 'emit') 15 | .withArg(1, 'error'); 16 | source.emit('data', new Buffer(1)); 17 | fake.verify(); 18 | })(); 19 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-pipe-resumes.js: -------------------------------------------------------------------------------- 1 | var common = require('../common'); 2 | var assert = common.assert; 3 | var fake = common.fake.create(); 4 | var DelayedStream = common.DelayedStream; 5 | var Stream = require('stream').Stream; 6 | 7 | (function testPipeReleases() { 8 | var source = new Stream(); 9 | var delayedStream = DelayedStream.create(source, {pauseStream: false}); 10 | 11 | fake.expect(delayedStream, 'resume'); 12 | delayedStream.pipe(new Stream()); 13 | })(); 14 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-proxy-readable.js: -------------------------------------------------------------------------------- 1 | var common = require('../common'); 2 | var assert = common.assert; 3 | var fake = common.fake.create(); 4 | var DelayedStream = common.DelayedStream; 5 | var Stream = require('stream').Stream; 6 | 7 | (function testProxyReadableProperty() { 8 | var source = new Stream(); 9 | var delayedStream = DelayedStream.create(source, {pauseStream: false}); 10 | 11 | source.readable = fake.value('source.readable'); 12 | assert.strictEqual(delayedStream.readable, source.readable); 13 | })(); 14 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/run.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var far = require('far').create(); 3 | 4 | far.add(__dirname); 5 | far.include(/test-.*\.js$/); 6 | 7 | far.execute(); 8 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/combined-stream/test/common.js: -------------------------------------------------------------------------------- 1 | var common = module.exports; 2 | 3 | var path = require('path'); 4 | var fs = require('fs'); 5 | var root = path.join(__dirname, '..'); 6 | 7 | common.dir = { 8 | fixture: root + '/test/fixture', 9 | tmp: root + '/test/tmp', 10 | }; 11 | 12 | // Create tmp directory if it does not exist 13 | // Not using fs.exists so as to be node 0.6.x compatible 14 | try { 15 | fs.statSync(common.dir.tmp); 16 | } 17 | catch (e) { 18 | // Dir does not exist 19 | fs.mkdirSync(common.dir.tmp); 20 | } 21 | 22 | common.CombinedStream = require(root); 23 | common.assert = require('assert'); 24 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/combined-stream/test/integration/test-is-stream-like.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | var common = require('../common'); 3 | var assert = common.assert; 4 | var CombinedStream = common.CombinedStream; 5 | var FILE1 = common.dir.fixture + '/file1.txt'; 6 | var fileStream = fs.createReadStream(FILE1); 7 | 8 | var foo = function(){}; 9 | 10 | (function testIsStreamLike() { 11 | assert(! CombinedStream.isStreamLike(true)); 12 | assert(! CombinedStream.isStreamLike("I am a string")); 13 | assert(! CombinedStream.isStreamLike(7)); 14 | assert(! CombinedStream.isStreamLike(foo)); 15 | 16 | assert(CombinedStream.isStreamLike(fileStream)); 17 | })(); -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/combined-stream/test/integration/test-max-data-size.js: -------------------------------------------------------------------------------- 1 | var common = require('../common'); 2 | var assert = common.assert; 3 | var CombinedStream = common.CombinedStream; 4 | var fs = require('fs'); 5 | 6 | var FILE1 = common.dir.fixture + '/file1.txt'; 7 | var FILE2 = common.dir.fixture + '/file2.txt'; 8 | var EXPECTED = fs.readFileSync(FILE1) + fs.readFileSync(FILE2); 9 | 10 | (function testDelayedStreams() { 11 | var combinedStream = CombinedStream.create({pauseStreams: false, maxDataSize: 20736}); 12 | combinedStream.append(fs.createReadStream(FILE1)); 13 | combinedStream.append(fs.createReadStream(FILE2)); 14 | 15 | var gotErr = null; 16 | combinedStream.on('error', function(err) { 17 | gotErr = err; 18 | }); 19 | 20 | process.on('exit', function() { 21 | assert.ok(gotErr); 22 | assert.ok(gotErr.message.match(/bytes/)); 23 | }); 24 | })(); 25 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/form-data/node_modules/combined-stream/test/run.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var far = require('far').create(); 3 | 4 | far.add(__dirname); 5 | far.include(/test-.*\.js$/); 6 | 7 | far.execute(); 8 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | 19 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | 6 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @node node_modules/lab/bin/lab 3 | test-cov: 4 | @node node_modules/lab/bin/lab -r threshold -t 100 5 | test-cov-html: 6 | @node node_modules/lab/bin/lab -r html -o coverage.html 7 | complexity: 8 | @node node_modules/complexity-report/src/cli.js -o complexity.md -f markdown lib 9 | 10 | .PHONY: test test-cov test-cov-html complexity 11 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/images/hawk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/request/node_modules/hawk/images/hawk.png -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/request/node_modules/hawk/images/logo.png -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib'); -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/lib/index.js: -------------------------------------------------------------------------------- 1 | // Export sub-modules 2 | 3 | exports.error = exports.Error = require('boom'); 4 | exports.sntp = require('sntp'); 5 | exports.server = require('./server'); 6 | exports.client = require('./client'); 7 | exports.crypto = require('./crypto'); 8 | exports.utils = require('./utils'); 9 | 10 | exports.uri = { 11 | authenticate: exports.server.authenticateBewit, 12 | getBewit: exports.client.getBewit 13 | }; 14 | 15 | 16 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/boom/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | 19 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/boom/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | 6 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/boom/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @node node_modules/lab/bin/lab 3 | test-cov: 4 | @node node_modules/lab/bin/lab -r threshold -t 100 5 | test-cov-html: 6 | @node node_modules/lab/bin/lab -r html -o coverage.html 7 | complexity: 8 | @node node_modules/complexity-report/src/cli.js -o complexity.md -f markdown lib 9 | 10 | .PHONY: test test-cov test-cov-html complexity 11 | 12 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/boom/README.md: -------------------------------------------------------------------------------- 1 | 2 | ![boom Logo](https://raw.github.com/spumko/boom/master/images/boom.png) 3 | 4 | HTTP-friendly error objects 5 | 6 | [![Build Status](https://secure.travis-ci.org/spumko/boom.png)](http://travis-ci.org/spumko/boom) 7 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/boom/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib'); -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/cryptiles/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | 19 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/cryptiles/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | 6 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/cryptiles/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @./node_modules/.bin/lab 3 | test-cov: 4 | @./node_modules/.bin/lab -r threshold -t 100 5 | test-cov-html: 6 | @./node_modules/.bin/lab -r html -o coverage.html 7 | complexity: 8 | @./node_modules/.bin/cr -o complexity.md -f markdown lib 9 | 10 | .PHONY: test test-cov test-cov-html complexity 11 | 12 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/cryptiles/README.md: -------------------------------------------------------------------------------- 1 | cryptiles 2 | ========= 3 | 4 | General purpose crypto utilities 5 | 6 | [![Build Status](https://secure.travis-ci.org/hueniverse/cryptiles.png)](http://travis-ci.org/hueniverse/cryptiles) 7 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/cryptiles/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib'); -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/hoek/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | complexity.md 19 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/hoek/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | 6 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/hoek/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @node node_modules/lab/bin/lab 3 | test-cov: 4 | @node node_modules/lab/bin/lab -r threshold -t 100 5 | test-cov-html: 6 | @node node_modules/lab/bin/lab -r html -o coverage.html 7 | complexity: 8 | @node node_modules/complexity-report/src/cli.js -o complexity.md -f markdown lib 9 | 10 | .PHONY: test test-cov test-cov-html complexity 11 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/hoek/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib'); -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test1.js: -------------------------------------------------------------------------------- 1 | exports.x = 1; 2 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test2.js: -------------------------------------------------------------------------------- 1 | exports.y = 2; 2 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test3.js: -------------------------------------------------------------------------------- 1 | exports.z = 3; 2 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/sntp/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | 19 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/sntp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | 6 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/sntp/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @./node_modules/.bin/lab 3 | test-cov: 4 | @./node_modules/.bin/lab -r threshold -t 100 5 | test-cov-html: 6 | @./node_modules/.bin/lab -r html -o coverage.html 7 | complexity: 8 | @./node_modules/.bin/cr -o complexity.md -f markdown lib 9 | 10 | .PHONY: test test-cov test-cov-html complexity 11 | 12 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/sntp/examples/offset.js: -------------------------------------------------------------------------------- 1 | var Sntp = require('../lib'); 2 | 3 | // Request offset once 4 | 5 | Sntp.offset(function (err, offset) { 6 | 7 | console.log(offset); // New (served fresh) 8 | 9 | // Request offset again 10 | 11 | Sntp.offset(function (err, offset) { 12 | 13 | console.log(offset); // Identical (served from cache) 14 | }); 15 | }); 16 | 17 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/sntp/examples/time.js: -------------------------------------------------------------------------------- 1 | var Sntp = require('../lib'); 2 | 3 | // All options are optional 4 | 5 | var options = { 6 | host: 'nist1-sj.ustiming.org', // Defaults to pool.ntp.org 7 | port: 123, // Defaults to 123 (NTP) 8 | resolveReference: true, // Default to false (not resolving) 9 | timeout: 1000 // Defaults to zero (no timeout) 10 | }; 11 | 12 | // Request server time 13 | 14 | Sntp.time(options, function (err, time) { 15 | 16 | if (err) { 17 | console.log('Failed: ' + err.message); 18 | process.exit(1); 19 | } 20 | 21 | console.log(time); 22 | console.log('Local clock is off by: ' + time.t + ' milliseconds'); 23 | process.exit(0); 24 | }); 25 | 26 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/hawk/node_modules/sntp/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib'); -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/.dir-locals.el: -------------------------------------------------------------------------------- 1 | ((nil . ((indent-tabs-mode . nil) 2 | (tab-width . 8) 3 | (fill-column . 80))) 4 | (js-mode . ((js-indent-level . 2) 5 | (indent-tabs-mode . nil) 6 | ))) -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/.npmignore: -------------------------------------------------------------------------------- 1 | .gitmodules 2 | deps 3 | docs 4 | Makefile 5 | node_modules 6 | test 7 | tools -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/lib/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Joyent, Inc. All rights reserved. 2 | 3 | var parser = require('./parser'); 4 | var signer = require('./signer'); 5 | var verify = require('./verify'); 6 | var util = require('./util'); 7 | 8 | 9 | 10 | ///--- API 11 | 12 | module.exports = { 13 | 14 | parse: parser.parseRequest, 15 | parseRequest: parser.parseRequest, 16 | 17 | sign: signer.signRequest, 18 | signRequest: signer.signRequest, 19 | 20 | sshKeyToPEM: util.sshKeyToPEM, 21 | sshKeyFingerprint: util.fingerprint, 22 | 23 | verify: verify.verifySignature, 24 | verifySignature: verify.verifySignature 25 | }; 26 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/asn1/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/errors.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | 4 | module.exports = { 5 | 6 | newInvalidAsn1Error: function(msg) { 7 | var e = new Error(); 8 | e.name = 'InvalidAsn1Error'; 9 | e.message = msg || ''; 10 | return e; 11 | } 12 | 13 | }; 14 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | var errors = require('./errors'); 4 | var types = require('./types'); 5 | 6 | var Reader = require('./reader'); 7 | var Writer = require('./writer'); 8 | 9 | 10 | ///--- Exports 11 | 12 | module.exports = { 13 | 14 | Reader: Reader, 15 | 16 | Writer: Writer 17 | 18 | }; 19 | 20 | for (var t in types) { 21 | if (types.hasOwnProperty(t)) 22 | module.exports[t] = types[t]; 23 | } 24 | for (var e in errors) { 25 | if (errors.hasOwnProperty(e)) 26 | module.exports[e] = errors[e]; 27 | } 28 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/types.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | 4 | module.exports = { 5 | EOC: 0, 6 | Boolean: 1, 7 | Integer: 2, 8 | BitString: 3, 9 | OctetString: 4, 10 | Null: 5, 11 | OID: 6, 12 | ObjectDescriptor: 7, 13 | External: 8, 14 | Real: 9, // float 15 | Enumeration: 10, 16 | PDV: 11, 17 | Utf8String: 12, 18 | RelativeOID: 13, 19 | Sequence: 16, 20 | Set: 17, 21 | NumericString: 18, 22 | PrintableString: 19, 23 | T61String: 20, 24 | VideotexString: 21, 25 | IA5String: 22, 26 | UTCTime: 23, 27 | GeneralizedTime: 24, 28 | GraphicString: 25, 29 | VisibleString: 26, 30 | GeneralString: 28, 31 | UniversalString: 29, 32 | CharacterString: 30, 33 | BMPString: 31, 34 | Constructor: 32, 35 | Context: 128 36 | }; 37 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/asn1/lib/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | // If you have no idea what ASN.1 or BER is, see this: 4 | // ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc 5 | 6 | var Ber = require('./ber/index'); 7 | 8 | 9 | 10 | ///--- Exported API 11 | 12 | module.exports = { 13 | 14 | Ber: Ber, 15 | 16 | BerReader: Ber.Reader, 17 | 18 | BerWriter: Ber.Writer 19 | 20 | }; 21 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/float.json: -------------------------------------------------------------------------------- 1 | { "metadata": 2 | { 3 | "ctf2json_version": "1.0", 4 | "created_at": 1316563626, 5 | "derived_from": "/lib/libc.so", 6 | "ctf_version": 2, 7 | "requested_types": [ "float" ] 8 | }, 9 | "data": 10 | [ 11 | { "name": "float", "float": { "length": 4 } } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/int.json: -------------------------------------------------------------------------------- 1 | { "metadata": 2 | { 3 | "ctf2json_version": "1.0", 4 | "created_at": 1316563631, 5 | "derived_from": "/lib/libc.so", 6 | "ctf_version": 2, 7 | "requested_types": [ "int" ] 8 | }, 9 | "data": 10 | [ 11 | { "name": "int", "integer": { "length": 4, "signed": true } } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/struct.json: -------------------------------------------------------------------------------- 1 | { "metadata": 2 | { 3 | "ctf2json_version": "1.0", 4 | "created_at": 1316563648, 5 | "derived_from": "/lib/libc.so", 6 | "ctf_version": 2, 7 | "requested_types": [ "timestruc_t" ] 8 | }, 9 | "data": 10 | [ 11 | { "name": "long", "integer": { "length": 4, "signed": true } }, 12 | { "name": "time_t", "typedef": "long" }, 13 | { "name": "struct timespec", "struct": [ 14 | { "name": "tv_sec", "type": "time_t" }, 15 | { "name": "tv_nsec", "type": "long" } 16 | ] }, 17 | { "name": "timestruc_t", "typedef": "struct timespec" } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.float.js: -------------------------------------------------------------------------------- 1 | var mod_fs = require('fs'); 2 | var mod_ctype = require('../../ctype.js'); 3 | var mod_assert = require('assert'); 4 | 5 | function test() 6 | { 7 | var data, parser; 8 | 9 | data = JSON.parse(mod_fs.readFileSync('./float.json').toString()); 10 | parser = mod_ctype.parseCTF(data, { endian: 'big' }); 11 | mod_assert.deepEqual(parser.lstypes(), {}); 12 | } 13 | 14 | test(); 15 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.int.js: -------------------------------------------------------------------------------- 1 | var mod_fs = require('fs'); 2 | var mod_ctype = require('../../ctype.js'); 3 | var mod_assert = require('assert'); 4 | 5 | function test() 6 | { 7 | var data, parser; 8 | 9 | data = JSON.parse(mod_fs.readFileSync('./int.json').toString()); 10 | parser = mod_ctype.parseCTF(data, { endian: 'big' }); 11 | mod_assert.deepEqual(parser.lstypes(), { 'int': 'int32_t' }); 12 | } 13 | 14 | test(); 15 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.psinfo.js: -------------------------------------------------------------------------------- 1 | var mod_fs = require('fs'); 2 | var mod_ctype = require('../../ctype.js'); 3 | var mod_assert = require('assert'); 4 | 5 | /* 6 | * This is too unwieldly to actually write out. Just make sure we can parse it 7 | * without errrors. 8 | */ 9 | function test() 10 | { 11 | var data; 12 | 13 | data = JSON.parse(mod_fs.readFileSync('./psinfo.json').toString()); 14 | mod_ctype.parseCTF(data, { endian: 'big' }); 15 | } 16 | 17 | test(); 18 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.struct.js: -------------------------------------------------------------------------------- 1 | var mod_fs = require('fs'); 2 | var mod_ctype = require('../../ctype.js'); 3 | var mod_assert = require('assert'); 4 | 5 | function test() 6 | { 7 | var data, parser; 8 | 9 | data = JSON.parse(mod_fs.readFileSync('./struct.json').toString()); 10 | parser = mod_ctype.parseCTF(data, { endian: 'big' }); 11 | mod_assert.deepEqual(parser.lstypes(), { 'long': 'int32_t', 12 | 'time_t': 'long', 13 | 'timestruc_t': 'struct timespec', 14 | 'struct timespec': [ { 'tv_sec': { 'type': 'time_t' } }, 15 | { 'tv_nsec': { 'type': 'long' } } ] }); 16 | } 17 | 18 | test(); 19 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.typedef.js: -------------------------------------------------------------------------------- 1 | var mod_fs = require('fs'); 2 | var mod_ctype = require('../../ctype.js'); 3 | var mod_assert = require('assert'); 4 | 5 | function test() 6 | { 7 | var data, parser; 8 | 9 | data = JSON.parse(mod_fs.readFileSync('./typedef.json').toString()); 10 | parser = mod_ctype.parseCTF(data, { endian: 'big' }); 11 | mod_assert.deepEqual(parser.lstypes(), { 'bar_t': 'int', 12 | 'int': 'int32_t' }); 13 | } 14 | 15 | test(); 16 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/typedef.json: -------------------------------------------------------------------------------- 1 | { "metadata": 2 | { 3 | "ctf2json_version": "1.0", 4 | "created_at": 1316302348, 5 | "derived_from": "/lib/libc.so", 6 | "ctf_version": 2, 7 | "requested_types": [ "bar_t" ] 8 | }, 9 | "data": 10 | [ 11 | { "name": "int", "integer": { "length": 4, "signed": true } }, 12 | { "name": "bar_t", "typedef": "int" } 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.oldwrite.js: -------------------------------------------------------------------------------- 1 | /* 2 | * A long overdue test to go through and verify that we can read and write 3 | * structures as well as nested structures. 4 | */ 5 | 6 | var mod_ctype = require('../../ctype.js'); 7 | var mod_assert = require('assert'); 8 | 9 | function test() 10 | { 11 | var parser, buf, data; 12 | parser = new mod_ctype.Parser({ 13 | endian: 'little' 14 | }); 15 | parser.typedef('point_t', [ 16 | { x: { type: 'uint8_t' } }, 17 | { y: { type: 'uint8_t' } } 18 | ]); 19 | buf = new Buffer(2); 20 | data = [ 21 | { point: { type: 'point_t', value: [ 23, 42 ] } } 22 | ]; 23 | parser.writeData(data, buf, 0); 24 | mod_assert.ok(buf[0] == 23); 25 | mod_assert.ok(buf[1] == 42); 26 | } 27 | 28 | test(); 29 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.structw.js: -------------------------------------------------------------------------------- 1 | /* 2 | * A long overdue test to go through and verify that we can read and write 3 | * structures as well as nested structures. 4 | */ 5 | 6 | var mod_ctype = require('../../ctype.js'); 7 | var mod_assert = require('assert'); 8 | 9 | function test() 10 | { 11 | var parser, buf, data; 12 | parser = new mod_ctype.Parser({ 13 | endian: 'little' 14 | }); 15 | parser.typedef('point_t', [ 16 | { x: { type: 'uint8_t' } }, 17 | { y: { type: 'uint8_t' } } 18 | ]); 19 | buf = new Buffer(2); 20 | data = [ 21 | { point: { type: 'point_t' } } 22 | ]; 23 | parser.writeData(data, buf, 0, [ [ 23, 42 ] ]); 24 | mod_assert.ok(buf[0] == 23); 25 | mod_assert.ok(buf[1] == 42); 26 | } 27 | 28 | test(); 29 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.writeStruct.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Test to verify that the offset is incremented when structures are written to. 3 | * Hopefully we will not regress issue #41 4 | */ 5 | 6 | var mod_ctype = require('../../ctype.js'); 7 | var mod_assert = require('assert'); 8 | 9 | function test() 10 | { 11 | var parser, buf, data; 12 | parser = new mod_ctype.Parser({ 13 | endian: 'little' 14 | }); 15 | parser.typedef('point_t', [ 16 | { x: { type: 'uint8_t' } }, 17 | { y: { type: 'uint8_t' } } 18 | ]); 19 | buf = new Buffer(4); 20 | data = [ 21 | { point1: { type: 'point_t' } }, 22 | { point2: { type: 'point_t' } } 23 | ]; 24 | parser.writeData(data, buf, 0, [ [ 23, 42 ], [ 91, 18 ] ]); 25 | mod_assert.ok(buf[0] == 23); 26 | mod_assert.ok(buf[1] == 42); 27 | mod_assert.ok(buf[2] == 91); 28 | mod_assert.ok(buf[3] == 18); 29 | } 30 | 31 | test(); 32 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/node-uuid/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/node-uuid/LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010-2012 Robert Kieffer 2 | MIT License - http://opensource.org/licenses/mit-license.php 3 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/node-uuid/benchmark/benchmark-native.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test performance of native C UUID generation 3 | 4 | To Compile: cc -luuid benchmark-native.c -o benchmark-native 5 | */ 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | int main() { 13 | uuid_t myid; 14 | char buf[36+1]; 15 | int i; 16 | struct timeval t; 17 | double start, finish; 18 | 19 | gettimeofday(&t, NULL); 20 | start = t.tv_sec + t.tv_usec/1e6; 21 | 22 | int n = 2e5; 23 | for (i = 0; i < n; i++) { 24 | uuid_generate(myid); 25 | uuid_unparse(myid, buf); 26 | } 27 | 28 | gettimeofday(&t, NULL); 29 | finish = t.tv_sec + t.tv_usec/1e6; 30 | double dur = finish - start; 31 | 32 | printf("%d uuids/sec", (int)(n/dur)); 33 | return 0; 34 | } 35 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/node-uuid/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "node-uuid", 3 | "repo": "broofa/node-uuid", 4 | "description": "Rigorous implementation of RFC4122 (v1 and v4) UUIDs.", 5 | "version": "1.4.0", 6 | "author": "Robert Kieffer ", 7 | "contributors": [ 8 | {"name": "Christoph Tavan ", "github": "https://github.com/ctavan"} 9 | ], 10 | "keywords": ["uuid", "guid", "rfc4122"], 11 | "dependencies": {}, 12 | "development": {}, 13 | "main": "uuid.js", 14 | "scripts": [ 15 | "uuid.js" 16 | ], 17 | "license": "MIT" 18 | } -------------------------------------------------------------------------------- /node_modules/request/node_modules/node-uuid/test/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/oauth-sign/README.md: -------------------------------------------------------------------------------- 1 | oauth-sign 2 | ========== 3 | 4 | OAuth 1 signing. Formerly a vendor lib in mikeal/request, now a standalone module. 5 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/qs/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "support/expresso"] 2 | path = support/expresso 3 | url = git://github.com/visionmedia/expresso.git 4 | [submodule "support/should"] 5 | path = support/should 6 | url = git://github.com/visionmedia/should.js.git 7 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/qs/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .travis.yml 3 | benchmark.js 4 | component.json 5 | examples.js 6 | History.md 7 | Makefile 8 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/tough-cookie/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .*.sw[nmop] 3 | npm-debug.log 4 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/tough-cookie/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.11" 5 | matrix: 6 | fast_finish: true 7 | allow_failures: 8 | - node_js: 0.11 9 | -------------------------------------------------------------------------------- /node_modules/request/node_modules/tunnel-agent/README.md: -------------------------------------------------------------------------------- 1 | tunnel-agent 2 | ============ 3 | 4 | HTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module. 5 | -------------------------------------------------------------------------------- /node_modules/request/tests/googledoodle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/request/tests/googledoodle.jpg -------------------------------------------------------------------------------- /node_modules/request/tests/ssl/ca/ca.cnf: -------------------------------------------------------------------------------- 1 | [ req ] 2 | default_bits = 1024 3 | days = 3650 4 | distinguished_name = req_distinguished_name 5 | attributes = req_attributes 6 | prompt = no 7 | output_password = password 8 | 9 | [ req_distinguished_name ] 10 | C = US 11 | ST = CA 12 | L = Oakland 13 | O = request 14 | OU = request Certificate Authority 15 | CN = requestCA 16 | emailAddress = mikeal@mikealrogers.com 17 | 18 | [ req_attributes ] 19 | challengePassword = password challenge 20 | 21 | -------------------------------------------------------------------------------- /node_modules/request/tests/ssl/ca/ca.crl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/request/tests/ssl/ca/ca.crl -------------------------------------------------------------------------------- /node_modules/request/tests/ssl/ca/ca.csr: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIICBjCCAW8CAQAwgaIxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEQMA4GA1UE 3 | BxMHT2FrbGFuZDEQMA4GA1UEChMHcmVxdWVzdDEmMCQGA1UECxMdcmVxdWVzdCBD 4 | ZXJ0aWZpY2F0ZSBBdXRob3JpdHkxEjAQBgNVBAMTCXJlcXVlc3RDQTEmMCQGCSqG 5 | SIb3DQEJARYXbWlrZWFsQG1pa2VhbHJvZ2Vycy5jb20wgZ8wDQYJKoZIhvcNAQEB 6 | BQADgY0AMIGJAoGBALu32lBQArjlclhMjo2sXSfcbYdmx836s9hJXPMvxK5XJvW0 7 | deiz69s+bc0ojgTxfXJUBdTwKMnlKpeengMDKkCFqx6GjzVxuGTstdSEXPvw68Br 8 | 44P7FMAQCc1Dy0ZSvhUbKmUSN8PGwFW6pXaPwY81N+2v52s4IWWp8CAysGfjAgMB 9 | AAGgIzAhBgkqhkiG9w0BCQcxFBMScGFzc3dvcmQgY2hhbGxlbmdlMA0GCSqGSIb3 10 | DQEBBQUAA4GBAGJO7grHeVHXetjHEK8urIxdnvfB2qeZeObz4GPKIkqUurjr0rfj 11 | bA3EK1kDMR5aeQWR8RunixdM16Q6Ry0lEdLVWkdSwRN9dmirIHT9cypqnD/FYOia 12 | SdezZ0lUzXgmJIwRYRwB1KSMMocIf52ll/xC2bEGg7/ZAEuAyAgcZV3X 13 | -----END CERTIFICATE REQUEST----- 14 | -------------------------------------------------------------------------------- /node_modules/request/tests/ssl/ca/ca.srl: -------------------------------------------------------------------------------- 1 | ADF62016AA40C9C3 2 | -------------------------------------------------------------------------------- /node_modules/request/tests/ssl/ca/server.cnf: -------------------------------------------------------------------------------- 1 | [ req ] 2 | default_bits = 1024 3 | days = 3650 4 | distinguished_name = req_distinguished_name 5 | attributes = req_attributes 6 | prompt = no 7 | 8 | [ req_distinguished_name ] 9 | C = US 10 | ST = CA 11 | L = Oakland 12 | O = request 13 | OU = testing 14 | CN = testing.request.mikealrogers.com 15 | emailAddress = mikeal@mikealrogers.com 16 | 17 | [ req_attributes ] 18 | challengePassword = password challenge 19 | 20 | -------------------------------------------------------------------------------- /node_modules/request/tests/ssl/ca/server.csr: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIIBgjCCASwCAQAwgaMxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEQMA4GA1UE 3 | BxMHT2FrbGFuZDEQMA4GA1UEChMHcmVxdWVzdDEQMA4GA1UECxMHdGVzdGluZzEp 4 | MCcGA1UEAxMgdGVzdGluZy5yZXF1ZXN0Lm1pa2VhbHJvZ2Vycy5jb20xJjAkBgkq 5 | hkiG9w0BCQEWF21pa2VhbEBtaWtlYWxyb2dlcnMuY29tMFwwDQYJKoZIhvcNAQEB 6 | BQADSwAwSAJBAOBWXSMy6a86mYzbRbm/3KEaBmPyE+ERAX83vIIFUGf+tYZibvQg 7 | cLxP+lHlzQuRZzmB2cIkS8pZCOEMErFkPwUCAwEAAaAjMCEGCSqGSIb3DQEJBzEU 8 | ExJwYXNzd29yZCBjaGFsbGVuZ2UwDQYJKoZIhvcNAQEFBQADQQBD3E5WekQzCEJw 9 | 7yOcqvtPYIxGaX8gRKkYfLPoj3pm3GF5SGqtJKhylKfi89szHXgktnQgzff9FN+A 10 | HidVJ/3u 11 | -----END CERTIFICATE REQUEST----- 12 | -------------------------------------------------------------------------------- /node_modules/request/tests/ssl/ca/server.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIBOwIBAAJBAOBWXSMy6a86mYzbRbm/3KEaBmPyE+ERAX83vIIFUGf+tYZibvQg 3 | cLxP+lHlzQuRZzmB2cIkS8pZCOEMErFkPwUCAwEAAQJAK+r8ZM2sze8s7FRo/ApB 4 | iRBtO9fCaIdJwbwJnXKo4RKwZDt1l2mm+fzZ+/QaQNjY1oTROkIIXmnwRvZWfYlW 5 | gQIhAPKYsG+YSBN9o8Sdp1DMyZ/rUifKX3OE6q9tINkgajDVAiEA7Ltqh01+cnt0 6 | JEnud/8HHcuehUBLMofeg0G+gCnSbXECIQCqDvkXsWNNLnS/3lgsnvH0Baz4sbeJ 7 | rjIpuVEeg8eM5QIgbu0+9JmOV6ybdmmiMV4yAncoF35R/iKGVHDZCAsQzDECIQDZ 8 | 0jGz22tlo5YMcYSqrdD3U4sds1pwiAaWFRbCunoUJw== 9 | -----END RSA PRIVATE KEY----- 10 | -------------------------------------------------------------------------------- /node_modules/request/tests/ssl/test.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIICQzCCAawCCQCO/XWtRFck1jANBgkqhkiG9w0BAQUFADBmMQswCQYDVQQGEwJU 3 | SDEQMA4GA1UECBMHQmFuZ2tvazEOMAwGA1UEBxMFU2lsb20xGzAZBgNVBAoTElRo 4 | ZSBSZXF1ZXN0IE1vZHVsZTEYMBYGA1UEAxMPcmVxdWVzdC5leGFtcGxlMB4XDTEx 5 | MTIwMzAyMjkyM1oXDTIxMTEzMDAyMjkyM1owZjELMAkGA1UEBhMCVEgxEDAOBgNV 6 | BAgTB0Jhbmdrb2sxDjAMBgNVBAcTBVNpbG9tMRswGQYDVQQKExJUaGUgUmVxdWVz 7 | dCBNb2R1bGUxGDAWBgNVBAMTD3JlcXVlc3QuZXhhbXBsZTCBnzANBgkqhkiG9w0B 8 | AQEFAAOBjQAwgYkCgYEAwmctddZqlA48+NXs0yOy92DijcQV1jf87zMiYAIlNUto 9 | wghVbTWgJU5r0pdKrD16AptnWJTzKanhItEX8XCCPgsNkq1afgTtJP7rNkwu3xcj 10 | eIMkhJg/ay4ZnkbnhYdsii5VTU5prix6AqWRAhbkBgoA+iVyHyof8wvZyKBoFTMC 11 | AwEAATANBgkqhkiG9w0BAQUFAAOBgQB6BybMJbpeiABgihDfEVBcAjDoQ8gUMgwV 12 | l4NulugfKTDmArqnR9aPd4ET5jX5dkMP4bwCHYsvrcYDeWEQy7x5WWuylOdKhua4 13 | L4cEi2uDCjqEErIG3cc1MCOk6Cl6Ld6tkIzQSf953qfdEACRytOeUqLNQcrXrqeE 14 | c7U8F6MWLQ== 15 | -----END CERTIFICATE----- 16 | -------------------------------------------------------------------------------- /node_modules/request/tests/test-agentOptions.js: -------------------------------------------------------------------------------- 1 | var request = require('../index') 2 | , http = require('http') 3 | , server = require('./server') 4 | , assert = require('assert') 5 | ; 6 | 7 | var s = http.createServer(function (req, resp) { 8 | resp.statusCode = 200 9 | resp.end('') 10 | }).listen(6767, function () { 11 | // requests without agentOptions should use global agent 12 | var r = request('http://localhost:6767', function (e, resp, body) { 13 | assert.deepEqual(r.agent, http.globalAgent); 14 | assert.equal(Object.keys(r.pool).length, 0); 15 | 16 | // requests with agentOptions should apply agentOptions to new agent in pool 17 | var r2 = request('http://localhost:6767', { agentOptions: { foo: 'bar' } }, function (e, resp, body) { 18 | assert.deepEqual(r2.agent.options, { foo: 'bar' }); 19 | assert.equal(Object.keys(r2.pool).length, 1); 20 | s.close() 21 | }); 22 | }) 23 | }) 24 | -------------------------------------------------------------------------------- /node_modules/request/tests/test-emptyBody.js: -------------------------------------------------------------------------------- 1 | var request = require('../index') 2 | , http = require('http') 3 | , assert = require('assert') 4 | ; 5 | 6 | var s = http.createServer(function (req, resp) { 7 | resp.statusCode = 200 8 | resp.end('') 9 | }).listen(8080, function () { 10 | var r = request('http://localhost:8080', function (e, resp, body) { 11 | assert.equal(resp.statusCode, 200) 12 | assert.equal(body, "") 13 | 14 | var r2 = request({ url: 'http://localhost:8080', json: {} }, function (e, resp, body) { 15 | assert.equal(resp.statusCode, 200) 16 | assert.equal(body, undefined) 17 | s.close() 18 | }); 19 | }) 20 | }) 21 | -------------------------------------------------------------------------------- /node_modules/request/tests/test-follow-all-303.js: -------------------------------------------------------------------------------- 1 | var request = require('../index'); 2 | var http = require('http'); 3 | var requests = 0; 4 | var assert = require('assert'); 5 | 6 | var server = http.createServer(function (req, res) { 7 | console.error(req.method, req.url); 8 | requests ++; 9 | 10 | if (req.method === 'POST') { 11 | console.error('send 303'); 12 | res.setHeader('location', req.url); 13 | res.statusCode = 303; 14 | res.end('try again, i guess\n'); 15 | } else { 16 | console.error('send 200') 17 | res.end('ok: ' + requests); 18 | } 19 | }); 20 | server.listen(6767); 21 | 22 | request.post({ url: 'http://localhost:6767/foo', 23 | followAllRedirects: true, 24 | form: { foo: 'bar' } }, function (er, req, body) { 25 | if (er) throw er; 26 | assert.equal(body, 'ok: 2'); 27 | assert.equal(requests, 2); 28 | console.error('ok - ' + process.version); 29 | server.close(); 30 | }); 31 | -------------------------------------------------------------------------------- /node_modules/request/tests/test-isUrl.js: -------------------------------------------------------------------------------- 1 | var assert = require('assert') 2 | , request = require('../index') 3 | , http = require('http') 4 | ; 5 | 6 | var s = http.createServer(function(req, res) { 7 | res.statusCode = 200; 8 | res.end(''); 9 | }).listen(6767, function () { 10 | 11 | // Test lowercase 12 | request('http://localhost:6767', function (err, resp, body) { 13 | // just need to get here without throwing an error 14 | assert.equal(true, true); 15 | }) 16 | 17 | // Test uppercase 18 | request('HTTP://localhost:6767', function (err, resp, body) { 19 | assert.equal(true, true); 20 | }) 21 | 22 | // Test mixedcase 23 | request('HtTp://localhost:6767', function (err, resp, body) { 24 | assert.equal(true, true); 25 | // clean up 26 | s.close(); 27 | }) 28 | }) -------------------------------------------------------------------------------- /node_modules/request/tests/test-localAddress.js: -------------------------------------------------------------------------------- 1 | var request = require('../index') 2 | , assert = require('assert') 3 | ; 4 | 5 | request.get({ 6 | uri: 'http://www.google.com', localAddress: '1.2.3.4' // some invalid address 7 | }, function(err, res) { 8 | assert(!res) // asserting that no response received 9 | }) 10 | 11 | request.get({ 12 | uri: 'http://www.google.com', localAddress: '127.0.0.1' 13 | }, function(err, res) { 14 | assert(!res) // asserting that no response received 15 | }) 16 | -------------------------------------------------------------------------------- /node_modules/request/tests/test-pool.js: -------------------------------------------------------------------------------- 1 | var request = require('../index') 2 | , http = require('http') 3 | , assert = require('assert') 4 | ; 5 | 6 | var s = http.createServer(function (req, resp) { 7 | resp.statusCode = 200; 8 | resp.end('asdf'); 9 | }).listen(8080, function () { 10 | request({'url': 'http://localhost:8080', 'pool': false}, function (e, resp) { 11 | var agent = resp.request.agent; 12 | assert.strictEqual(typeof agent, 'boolean'); 13 | assert.strictEqual(agent, false); 14 | s.close(); 15 | }); 16 | }); -------------------------------------------------------------------------------- /node_modules/request/tests/test-s3.js: -------------------------------------------------------------------------------- 1 | var request = require('../index') 2 | 3 | var r = request.get('https://log.curlybracecast.com.s3.amazonaws.com/', 4 | { aws: 5 | { key: 'AKIAI6KIQRRVMGK3WK5Q' 6 | , secret: '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' 7 | , bucket: 'log.curlybracecast.com' 8 | } 9 | }, function (e, resp, body) { 10 | console.log(r.headers) 11 | console.log(body) 12 | } 13 | ) -------------------------------------------------------------------------------- /node_modules/request/tests/test-toJSON.js: -------------------------------------------------------------------------------- 1 | var request = require('../index') 2 | , http = require('http') 3 | , assert = require('assert') 4 | ; 5 | 6 | var s = http.createServer(function (req, resp) { 7 | resp.statusCode = 200 8 | resp.end('asdf') 9 | }).listen(8080, function () { 10 | var r = request('http://localhost:8080', function (e, resp) { 11 | assert.equal(JSON.parse(JSON.stringify(r)).response.statusCode, 200) 12 | s.close() 13 | }) 14 | }) -------------------------------------------------------------------------------- /node_modules/request/tests/unicycle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nswbmw/N-drifter/c1ff16f0d98fe1e115004a97c5102e4c8354d795/node_modules/request/tests/unicycle.jpg -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "drifter", 3 | "version": "0.0.1", 4 | "dependencies": { 5 | "express": "^3", 6 | "redis": "*", 7 | "node-uuid": "*", 8 | "generic-pool": "*", 9 | "mongoose": "*" 10 | }, 11 | "devDependencies": { 12 | "request": "*" 13 | } 14 | } -------------------------------------------------------------------------------- /test/init_redis.js: -------------------------------------------------------------------------------- 1 | var request = require('request'); 2 | 3 | for (var i = 1; i <= 5; i++) { 4 | (function(i) { 5 | request.post({ 6 | url: "http://127.0.0.1:3000", 7 | json: {"owner": "bottle" + i, "type": "male", "content": "content" + i} 8 | }); 9 | })(i); 10 | } 11 | 12 | for (var i = 6; i <= 10; i++) { 13 | (function(i) { 14 | request.post({ 15 | url: "http://127.0.0.1:3000", 16 | json: {"owner": "bottle" + i, "type": "female", "content": "content" + i} 17 | }); 18 | })(i); 19 | } --------------------------------------------------------------------------------