├── README.md ├── api ├── api.md ├── app │ └── models │ │ └── link.js ├── node_modules │ ├── body-parser │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── HISTORY.md │ │ ├── Makefile │ │ ├── README.md │ │ ├── index.js │ │ ├── node_modules │ │ │ ├── qs │ │ │ │ ├── .gitmodules │ │ │ │ ├── .npmignore │ │ │ │ ├── Readme.md │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── raw-body │ │ │ │ ├── .npmignore │ │ │ │ ├── HISTORY.md │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ ├── node_modules │ │ │ │ │ ├── bytes │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── package.json │ │ │ │ │ └── string_decoder │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── package.json │ │ │ │ └── package.json │ │ │ └── type-is │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── HISTORY.md │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ ├── node_modules │ │ │ │ └── mime │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── mime.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── test.js │ │ │ │ │ └── types │ │ │ │ │ ├── mime.types │ │ │ │ │ └── node.types │ │ │ │ └── package.json │ │ └── package.json │ ├── express │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── History.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── Readme.md │ │ ├── benchmarks │ │ │ ├── Makefile │ │ │ ├── middleware.js │ │ │ └── run │ │ ├── index.js │ │ ├── lib │ │ │ ├── application.js │ │ │ ├── express.js │ │ │ ├── middleware │ │ │ │ ├── init.js │ │ │ │ └── query.js │ │ │ ├── request.js │ │ │ ├── response.js │ │ │ ├── router │ │ │ │ ├── index.js │ │ │ │ ├── layer.js │ │ │ │ └── route.js │ │ │ ├── utils.js │ │ │ └── view.js │ │ ├── node_modules │ │ │ ├── accepts │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ ├── node_modules │ │ │ │ │ ├── mime │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── mime.js │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ ├── test.js │ │ │ │ │ │ └── types │ │ │ │ │ │ │ ├── mime.types │ │ │ │ │ │ │ └── node.types │ │ │ │ │ └── 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 │ │ │ │ ├── package.json │ │ │ │ └── test │ │ │ │ │ ├── charset.js │ │ │ │ │ ├── encoding.js │ │ │ │ │ ├── language.js │ │ │ │ │ └── type.js │ │ │ ├── buffer-crc32 │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ ├── package.json │ │ │ │ └── tests │ │ │ │ │ └── crc.test.js │ │ │ ├── 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 │ │ │ │ ├── lib │ │ │ │ │ └── debug.js │ │ │ │ └── package.json │ │ │ ├── escape-html │ │ │ │ ├── .npmignore │ │ │ │ ├── Makefile │ │ │ │ ├── Readme.md │ │ │ │ ├── component.json │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── fresh │ │ │ │ ├── .npmignore │ │ │ │ ├── History.md │ │ │ │ ├── Makefile │ │ │ │ ├── Readme.md │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── merge-descriptors │ │ │ │ ├── .npmignore │ │ │ │ ├── README.md │ │ │ │ ├── component.json │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── methods │ │ │ │ ├── History.md │ │ │ │ ├── Readme.md │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── parseurl │ │ │ │ ├── .npmignore │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── path-to-regexp │ │ │ │ ├── .npmignore │ │ │ │ ├── History.md │ │ │ │ ├── Readme.md │ │ │ │ ├── component.json │ │ │ │ ├── index.js │ │ │ │ ├── package.json │ │ │ │ └── test.js │ │ │ ├── qs │ │ │ │ ├── .gitmodules │ │ │ │ ├── .npmignore │ │ │ │ ├── Readme.md │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── 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 │ │ │ ├── serve-static │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── LICENSE │ │ │ │ ├── Readme.md │ │ │ │ ├── index.js │ │ │ │ ├── node_modules │ │ │ │ │ └── send │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── send.js │ │ │ │ │ │ └── utils.js │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── fresh │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ ├── mime │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── mime.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ ├── test.js │ │ │ │ │ │ │ └── types │ │ │ │ │ │ │ │ ├── mime.types │ │ │ │ │ │ │ │ └── node.types │ │ │ │ │ │ └── range-parser │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ └── package.json │ │ │ │ └── package.json │ │ │ ├── type-is │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ ├── node_modules │ │ │ │ │ └── mime │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── mime.js │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ ├── test.js │ │ │ │ │ │ └── types │ │ │ │ │ │ ├── mime.types │ │ │ │ │ │ └── node.types │ │ │ │ └── package.json │ │ │ └── utils-merge │ │ │ │ ├── .travis.yml │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ └── package.json │ └── mongoose │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── CONTRIBUTING.md │ │ ├── History.md │ │ ├── README.md │ │ ├── examples │ │ ├── README.md │ │ ├── doc-methods.js │ │ ├── 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 │ │ └── schema.js │ │ ├── index.js │ │ ├── lib │ │ ├── collection.js │ │ ├── connection.js │ │ ├── connectionstate.js │ │ ├── document.js │ │ ├── drivers │ │ │ ├── SPEC.md │ │ │ └── node-mongodb-native │ │ │ │ ├── binary.js │ │ │ │ ├── collection.js │ │ │ │ ├── connection.js │ │ │ │ └── objectid.js │ │ ├── error.js │ │ ├── errors │ │ │ ├── cast.js │ │ │ ├── divergentArray.js │ │ │ ├── document.js │ │ │ ├── missingSchema.js │ │ │ ├── overwriteModel.js │ │ │ ├── validation.js │ │ │ ├── validator.js │ │ │ └── version.js │ │ ├── index.js │ │ ├── internal.js │ │ ├── model.js │ │ ├── namedscope.js │ │ ├── promise.js │ │ ├── query.js │ │ ├── queryhelpers.js │ │ ├── querystream.js │ │ ├── schema.js │ │ ├── schema │ │ │ ├── array.js │ │ │ ├── boolean.js │ │ │ ├── buffer.js │ │ │ ├── date.js │ │ │ ├── documentarray.js │ │ │ ├── embedded.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 │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── Release │ │ │ │ │ │ │ ├── .deps │ │ │ │ │ │ │ │ └── Release │ │ │ │ │ │ │ │ │ ├── bson.node.d │ │ │ │ │ │ │ │ │ └── obj.target │ │ │ │ │ │ │ │ │ └── bson │ │ │ │ │ │ │ │ │ └── ext │ │ │ │ │ │ │ │ │ └── bson.o.d │ │ │ │ │ │ │ ├── bson.node │ │ │ │ │ │ │ ├── linker.lock │ │ │ │ │ │ │ └── obj.target │ │ │ │ │ │ │ │ └── bson │ │ │ │ │ │ │ │ └── ext │ │ │ │ │ │ │ │ └── bson.o │ │ │ │ │ │ ├── binding.Makefile │ │ │ │ │ │ ├── bson.target.mk │ │ │ │ │ │ ├── config.gypi │ │ │ │ │ │ └── gyp-mac-tool │ │ │ │ │ ├── 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 │ │ │ │ │ ├── build │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Release │ │ │ │ │ │ ├── .deps │ │ │ │ │ │ │ └── Release │ │ │ │ │ │ │ │ ├── kerberos.node.d │ │ │ │ │ │ │ │ └── obj.target │ │ │ │ │ │ │ │ └── kerberos │ │ │ │ │ │ │ │ └── lib │ │ │ │ │ │ │ │ ├── base64.o.d │ │ │ │ │ │ │ │ ├── kerberos.o.d │ │ │ │ │ │ │ │ ├── kerberos_context.o.d │ │ │ │ │ │ │ │ ├── kerberosgss.o.d │ │ │ │ │ │ │ │ └── worker.o.d │ │ │ │ │ │ ├── kerberos.node │ │ │ │ │ │ ├── linker.lock │ │ │ │ │ │ └── obj.target │ │ │ │ │ │ │ └── kerberos │ │ │ │ │ │ │ └── lib │ │ │ │ │ │ │ ├── base64.o │ │ │ │ │ │ │ ├── kerberos.o │ │ │ │ │ │ │ ├── kerberos_context.o │ │ │ │ │ │ │ ├── kerberosgss.o │ │ │ │ │ │ │ └── worker.o │ │ │ │ │ ├── binding.Makefile │ │ │ │ │ ├── config.gypi │ │ │ │ │ ├── gyp-mac-tool │ │ │ │ │ └── kerberos.target.mk │ │ │ │ │ ├── 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 │ │ │ ├── node_modules │ │ │ │ └── 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 │ │ │ └── test │ │ │ │ ├── promise.test.js │ │ │ │ └── promises-A.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 │ │ ├── static.js │ │ └── website.js ├── package.json └── server.js ├── deployment ├── app │ └── models │ │ └── link.js ├── config │ └── db.js ├── deployment.md ├── node_modules │ ├── body-parser │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── HISTORY.md │ │ ├── Makefile │ │ ├── README.md │ │ ├── index.js │ │ ├── node_modules │ │ │ ├── qs │ │ │ │ ├── .gitmodules │ │ │ │ ├── .npmignore │ │ │ │ ├── Readme.md │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── raw-body │ │ │ │ ├── .npmignore │ │ │ │ ├── HISTORY.md │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ ├── node_modules │ │ │ │ │ ├── bytes │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── package.json │ │ │ │ │ └── string_decoder │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── package.json │ │ │ │ └── package.json │ │ │ └── type-is │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── HISTORY.md │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ ├── node_modules │ │ │ │ └── mime │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── mime.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── test.js │ │ │ │ │ └── types │ │ │ │ │ ├── mime.types │ │ │ │ │ └── node.types │ │ │ │ └── package.json │ │ └── package.json │ ├── express │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── History.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── Readme.md │ │ ├── benchmarks │ │ │ ├── Makefile │ │ │ ├── middleware.js │ │ │ └── run │ │ ├── index.js │ │ ├── lib │ │ │ ├── application.js │ │ │ ├── express.js │ │ │ ├── middleware │ │ │ │ ├── init.js │ │ │ │ └── query.js │ │ │ ├── request.js │ │ │ ├── response.js │ │ │ ├── router │ │ │ │ ├── index.js │ │ │ │ ├── layer.js │ │ │ │ └── route.js │ │ │ ├── utils.js │ │ │ └── view.js │ │ ├── node_modules │ │ │ ├── accepts │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ ├── node_modules │ │ │ │ │ ├── mime │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── mime.js │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ ├── test.js │ │ │ │ │ │ └── types │ │ │ │ │ │ │ ├── mime.types │ │ │ │ │ │ │ └── node.types │ │ │ │ │ └── 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 │ │ │ │ ├── package.json │ │ │ │ └── test │ │ │ │ │ ├── charset.js │ │ │ │ │ ├── encoding.js │ │ │ │ │ ├── language.js │ │ │ │ │ └── type.js │ │ │ ├── buffer-crc32 │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ ├── package.json │ │ │ │ └── tests │ │ │ │ │ └── crc.test.js │ │ │ ├── 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 │ │ │ │ ├── lib │ │ │ │ │ └── debug.js │ │ │ │ └── package.json │ │ │ ├── escape-html │ │ │ │ ├── .npmignore │ │ │ │ ├── Makefile │ │ │ │ ├── Readme.md │ │ │ │ ├── component.json │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── fresh │ │ │ │ ├── .npmignore │ │ │ │ ├── History.md │ │ │ │ ├── Makefile │ │ │ │ ├── Readme.md │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── merge-descriptors │ │ │ │ ├── .npmignore │ │ │ │ ├── README.md │ │ │ │ ├── component.json │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── methods │ │ │ │ ├── History.md │ │ │ │ ├── Readme.md │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── parseurl │ │ │ │ ├── .npmignore │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── path-to-regexp │ │ │ │ ├── .npmignore │ │ │ │ ├── History.md │ │ │ │ ├── Readme.md │ │ │ │ ├── component.json │ │ │ │ ├── index.js │ │ │ │ ├── package.json │ │ │ │ └── test.js │ │ │ ├── qs │ │ │ │ ├── .gitmodules │ │ │ │ ├── .npmignore │ │ │ │ ├── Readme.md │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── 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 │ │ │ ├── serve-static │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── LICENSE │ │ │ │ ├── Readme.md │ │ │ │ ├── index.js │ │ │ │ ├── node_modules │ │ │ │ │ └── send │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── send.js │ │ │ │ │ │ └── utils.js │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── fresh │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ ├── mime │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── mime.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ ├── test.js │ │ │ │ │ │ │ └── types │ │ │ │ │ │ │ │ ├── mime.types │ │ │ │ │ │ │ │ └── node.types │ │ │ │ │ │ └── range-parser │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ └── package.json │ │ │ │ └── package.json │ │ │ ├── type-is │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ ├── node_modules │ │ │ │ │ └── mime │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── mime.js │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ ├── test.js │ │ │ │ │ │ └── types │ │ │ │ │ │ ├── mime.types │ │ │ │ │ │ └── node.types │ │ │ │ └── package.json │ │ │ └── utils-merge │ │ │ │ ├── .travis.yml │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ └── package.json │ └── mongoose │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── CONTRIBUTING.md │ │ ├── History.md │ │ ├── README.md │ │ ├── examples │ │ ├── README.md │ │ ├── doc-methods.js │ │ ├── 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 │ │ └── schema.js │ │ ├── index.js │ │ ├── lib │ │ ├── collection.js │ │ ├── connection.js │ │ ├── connectionstate.js │ │ ├── document.js │ │ ├── drivers │ │ │ ├── SPEC.md │ │ │ └── node-mongodb-native │ │ │ │ ├── binary.js │ │ │ │ ├── collection.js │ │ │ │ ├── connection.js │ │ │ │ └── objectid.js │ │ ├── error.js │ │ ├── errors │ │ │ ├── cast.js │ │ │ ├── divergentArray.js │ │ │ ├── document.js │ │ │ ├── missingSchema.js │ │ │ ├── overwriteModel.js │ │ │ ├── validation.js │ │ │ ├── validator.js │ │ │ └── version.js │ │ ├── index.js │ │ ├── internal.js │ │ ├── model.js │ │ ├── namedscope.js │ │ ├── promise.js │ │ ├── query.js │ │ ├── queryhelpers.js │ │ ├── querystream.js │ │ ├── schema.js │ │ ├── schema │ │ │ ├── array.js │ │ │ ├── boolean.js │ │ │ ├── buffer.js │ │ │ ├── date.js │ │ │ ├── documentarray.js │ │ │ ├── embedded.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 │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── Release │ │ │ │ │ │ │ ├── .deps │ │ │ │ │ │ │ │ └── Release │ │ │ │ │ │ │ │ │ ├── bson.node.d │ │ │ │ │ │ │ │ │ └── obj.target │ │ │ │ │ │ │ │ │ └── bson │ │ │ │ │ │ │ │ │ └── ext │ │ │ │ │ │ │ │ │ └── bson.o.d │ │ │ │ │ │ │ ├── bson.node │ │ │ │ │ │ │ ├── linker.lock │ │ │ │ │ │ │ └── obj.target │ │ │ │ │ │ │ │ └── bson │ │ │ │ │ │ │ │ └── ext │ │ │ │ │ │ │ │ └── bson.o │ │ │ │ │ │ ├── binding.Makefile │ │ │ │ │ │ ├── bson.target.mk │ │ │ │ │ │ ├── config.gypi │ │ │ │ │ │ └── gyp-mac-tool │ │ │ │ │ ├── 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 │ │ │ │ │ ├── build │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Release │ │ │ │ │ │ ├── .deps │ │ │ │ │ │ │ └── Release │ │ │ │ │ │ │ │ ├── kerberos.node.d │ │ │ │ │ │ │ │ └── obj.target │ │ │ │ │ │ │ │ └── kerberos │ │ │ │ │ │ │ │ └── lib │ │ │ │ │ │ │ │ ├── base64.o.d │ │ │ │ │ │ │ │ ├── kerberos.o.d │ │ │ │ │ │ │ │ ├── kerberos_context.o.d │ │ │ │ │ │ │ │ ├── kerberosgss.o.d │ │ │ │ │ │ │ │ └── worker.o.d │ │ │ │ │ │ ├── kerberos.node │ │ │ │ │ │ ├── linker.lock │ │ │ │ │ │ └── obj.target │ │ │ │ │ │ │ └── kerberos │ │ │ │ │ │ │ └── lib │ │ │ │ │ │ │ ├── base64.o │ │ │ │ │ │ │ ├── kerberos.o │ │ │ │ │ │ │ ├── kerberos_context.o │ │ │ │ │ │ │ ├── kerberosgss.o │ │ │ │ │ │ │ └── worker.o │ │ │ │ │ ├── binding.Makefile │ │ │ │ │ ├── config.gypi │ │ │ │ │ ├── gyp-mac-tool │ │ │ │ │ └── kerberos.target.mk │ │ │ │ │ ├── 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 │ │ │ ├── node_modules │ │ │ │ └── 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 │ │ │ └── test │ │ │ │ ├── promise.test.js │ │ │ │ └── promises-A.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 │ │ ├── static.js │ │ └── website.js ├── package.json ├── public │ ├── client.js │ └── index.html └── server.js └── fundamentals └── fundamentals.md /api/app/models/link.js: -------------------------------------------------------------------------------- 1 | var mongoose = require('mongoose'); 2 | var Schema = mongoose.Schema; 3 | 4 | var LinkSchema = new Schema({ 5 | url: String, 6 | description: String 7 | }); 8 | 9 | module.exports = mongoose.model('Link', LinkSchema); -------------------------------------------------------------------------------- /api/node_modules/body-parser/.npmignore: -------------------------------------------------------------------------------- 1 | test/ -------------------------------------------------------------------------------- /api/node_modules/body-parser/.travis.yml: -------------------------------------------------------------------------------- 1 | node_js: 2 | - "0.10" 3 | language: node_js -------------------------------------------------------------------------------- /api/node_modules/body-parser/HISTORY.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.1 / 2014-04-14 3 | ================== 4 | 5 | * use `type-is` module 6 | 7 | 1.0.1 / 2014-03-20 8 | ================== 9 | 10 | * lower default limits to 100kb 11 | -------------------------------------------------------------------------------- /api/node_modules/body-parser/Makefile: -------------------------------------------------------------------------------- 1 | BIN = ./node_modules/.bin/ 2 | 3 | test: 4 | @$(BIN)mocha \ 5 | --require should \ 6 | --reporter spec \ 7 | --bail 8 | 9 | .PHONY: test -------------------------------------------------------------------------------- /api/node_modules/body-parser/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 | -------------------------------------------------------------------------------- /api/node_modules/body-parser/node_modules/qs/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .travis.yml 3 | benchmark.js 4 | component.json 5 | examples.js 6 | History.md 7 | Makefile 8 | -------------------------------------------------------------------------------- /api/node_modules/body-parser/node_modules/raw-body/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | test/ 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /api/node_modules/body-parser/node_modules/raw-body/node_modules/bytes/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /api/node_modules/body-parser/node_modules/raw-body/node_modules/bytes/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.0 / 2014-05-05 3 | ================== 4 | 5 | * add negative support. fixes #6 6 | 7 | 0.3.0 / 2014-03-19 8 | ================== 9 | 10 | * added terabyte support 11 | 12 | 0.2.1 / 2013-04-01 13 | ================== 14 | 15 | * add .component 16 | 17 | 0.2.0 / 2012-10-28 18 | ================== 19 | 20 | * bytes(200).should.eql('200b') 21 | 22 | 0.1.0 / 2012-07-04 23 | ================== 24 | 25 | * add bytes to string conversion [yields] 26 | -------------------------------------------------------------------------------- /api/node_modules/body-parser/node_modules/raw-body/node_modules/bytes/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --reporter spec \ 5 | --require should 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /api/node_modules/body-parser/node_modules/raw-body/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 | -------------------------------------------------------------------------------- /api/node_modules/body-parser/node_modules/raw-body/node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /api/node_modules/body-parser/node_modules/raw-body/node_modules/string_decoder/README.md: -------------------------------------------------------------------------------- 1 | **string_decoder.js** (`require('string_decoder')`) from Node.js core 2 | 3 | Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details. 4 | 5 | Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.** 6 | 7 | The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version. -------------------------------------------------------------------------------- /api/node_modules/body-parser/node_modules/type-is/.npmignore: -------------------------------------------------------------------------------- 1 | test.js -------------------------------------------------------------------------------- /api/node_modules/body-parser/node_modules/type-is/.travis.yml: -------------------------------------------------------------------------------- 1 | node_js: 2 | - "0.10" 3 | - "0.11" 4 | language: node_js -------------------------------------------------------------------------------- /api/node_modules/body-parser/node_modules/type-is/HISTORY.md: -------------------------------------------------------------------------------- 1 | 2 | 1.1.0 / 2014-04-12 3 | ================== 4 | 5 | * add non-array values support 6 | * expose internal utilities: 7 | 8 | - `.is()` 9 | - `.hasBody()` 10 | - `.normalize()` 11 | - `.match()` 12 | 13 | 1.0.1 / 2014-03-30 14 | ================== 15 | 16 | * add `multipart` as a shorthand 17 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/node_modules/express/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | -------------------------------------------------------------------------------- /api/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 | bench: 28 | @$(MAKE) -C benchmarks 29 | 30 | clean: 31 | rm -f coverage.html 32 | rm -fr lib-cov 33 | 34 | .PHONY: test test-unit test-acceptance bench clean 35 | -------------------------------------------------------------------------------- /api/node_modules/express/benchmarks/Makefile: -------------------------------------------------------------------------------- 1 | 2 | all: 3 | @./run 1 middleware 4 | @./run 5 middleware 5 | @./run 10 middleware 6 | @./run 15 middleware 7 | @./run 20 middleware 8 | @./run 30 middleware 9 | @./run 50 middleware 10 | @./run 100 middleware 11 | @echo 12 | 13 | .PHONY: all 14 | -------------------------------------------------------------------------------- /api/node_modules/express/benchmarks/middleware.js: -------------------------------------------------------------------------------- 1 | 2 | var http = require('http'); 3 | var express = require('..'); 4 | var app = express(); 5 | 6 | // number of middleware 7 | 8 | var n = parseInt(process.env.MW || '1', 10); 9 | console.log(' %s middleware', n); 10 | 11 | while (n--) { 12 | app.use(function(req, res, next){ 13 | next(); 14 | }); 15 | } 16 | 17 | var body = new Buffer('Hello World'); 18 | 19 | app.use(function(req, res, next){ 20 | res.send(body); 21 | }); 22 | 23 | app.listen(3333); 24 | -------------------------------------------------------------------------------- /api/node_modules/express/benchmarks/run: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo 4 | MW=$1 node $2 & 5 | pid=$! 6 | 7 | sleep 2 8 | 9 | wrk 'http://localhost:3333/?foo[bar]=baz' \ 10 | -d 3 \ 11 | -c 50 \ 12 | -t 8 \ 13 | | grep 'Requests/sec' \ 14 | | awk '{ print " " $2 }' 15 | 16 | kill $pid 17 | -------------------------------------------------------------------------------- /api/node_modules/express/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = process.env.EXPRESS_COV 3 | ? require('./lib-cov/express') 4 | : require('./lib/express'); -------------------------------------------------------------------------------- /api/node_modules/express/lib/middleware/init.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Initialization middleware, exposing the 3 | * request and response to eachother, as well 4 | * as defaulting the X-Powered-By header field. 5 | * 6 | * @param {Function} app 7 | * @return {Function} 8 | * @api private 9 | */ 10 | 11 | exports.init = function(app){ 12 | return function expressInit(req, res, next){ 13 | if (app.enabled('x-powered-by')) res.setHeader('X-Powered-By', 'Express'); 14 | req.res = res; 15 | res.req = req; 16 | req.next = next; 17 | 18 | req.__proto__ = app.request; 19 | res.__proto__ = app.response; 20 | 21 | res.locals = res.locals || Object.create(null); 22 | 23 | next(); 24 | }; 25 | }; 26 | 27 | -------------------------------------------------------------------------------- /api/node_modules/express/lib/middleware/query.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Module dependencies. 3 | */ 4 | 5 | var qs = require('qs'); 6 | var parseUrl = require('parseurl'); 7 | 8 | /** 9 | * Query: 10 | * 11 | * Automatically parse the query-string when available, 12 | * populating the `req.query` object using 13 | * [qs](https://github.com/visionmedia/node-querystring). 14 | * 15 | * Examples: 16 | * 17 | * .use(connect.query()) 18 | * .use(function(req, res){ 19 | * res.end(JSON.stringify(req.query)); 20 | * }); 21 | * 22 | * The `options` passed are provided to qs.parse function. 23 | * 24 | * @param {Object} options 25 | * @return {Function} 26 | * @api public 27 | */ 28 | 29 | module.exports = function query(options){ 30 | return function query(req, res, next){ 31 | if (!req.query) { 32 | req.query = ~req.url.indexOf('?') 33 | ? qs.parse(parseUrl(req).query, options) 34 | : {}; 35 | } 36 | 37 | next(); 38 | }; 39 | }; 40 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/accepts/.npmignore: -------------------------------------------------------------------------------- 1 | # Compiled source # 2 | ################### 3 | *.com 4 | *.class 5 | *.dll 6 | *.exe 7 | *.o 8 | *.so 9 | 10 | # Packages # 11 | ############ 12 | # it's better to unpack these files and commit the raw source 13 | # git has its own built in compression methods 14 | *.7z 15 | *.dmg 16 | *.gz 17 | *.iso 18 | *.jar 19 | *.rar 20 | *.tar 21 | *.zip 22 | 23 | # Logs and databases # 24 | ###################### 25 | *.log 26 | *.sql 27 | *.sqlite 28 | 29 | # OS generated files # 30 | ###################### 31 | .DS_Store* 32 | ehthumbs.db 33 | Icon? 34 | Thumbs.db 35 | 36 | # Node.js # 37 | ########### 38 | lib-cov 39 | *.seed 40 | *.log 41 | *.csv 42 | *.dat 43 | *.out 44 | *.pid 45 | *.gz 46 | 47 | pids 48 | logs 49 | results 50 | 51 | node_modules 52 | npm-debug.log 53 | 54 | # Components # 55 | ############## 56 | 57 | /build 58 | /components 59 | 60 | # ImageMagick # 61 | ############### 62 | 63 | *.cache 64 | *.mpc 65 | 66 | # Other # 67 | ######### 68 | test/*.2 69 | test/*/*.2 70 | test/*.mp4 71 | test/images/originalSideways.jpg.2 -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/accepts/.travis.yml: -------------------------------------------------------------------------------- 1 | node_js: 2 | - "0.10" 3 | - "0.11" 4 | language: node_js -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/accepts/Makefile: -------------------------------------------------------------------------------- 1 | BIN = ./node_modules/.bin/ 2 | 3 | test: 4 | @${BIN}mocha \ 5 | --require should \ 6 | --reporter spec 7 | 8 | .PHONY: test -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/accepts/node_modules/negotiator/lib/negotiator.js: -------------------------------------------------------------------------------- 1 | module.exports = Negotiator; 2 | Negotiator.Negotiator = Negotiator; 3 | 4 | function Negotiator(request) { 5 | if (!(this instanceof Negotiator)) return new Negotiator(request); 6 | this.request = request; 7 | } 8 | 9 | var set = { preferredCharset: [require('./charset.js'), 'accept-charset'], 10 | preferredEncoding: [require('./encoding.js'), 'accept-encoding'], 11 | preferredLanguage: [require('./language.js'), 'accept-language'], 12 | preferredMediaType: [require('./mediaType.js'), 'accept'] }; 13 | 14 | Object.keys(set).forEach(function (k) { 15 | var mh = set[k], 16 | method = mh[0], 17 | header = mh[1], 18 | singular = k, 19 | plural = k + 's'; 20 | 21 | Negotiator.prototype[plural] = function (available) { 22 | return method(this.request.headers[header], available); 23 | }; 24 | 25 | Negotiator.prototype[singular] = function(available) { 26 | var set = this[plural](available); 27 | if (set) return set[0]; 28 | }; 29 | }) 30 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/buffer-crc32/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /api/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 -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/cookie-signature/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/cookie-signature/History.md: -------------------------------------------------------------------------------- 1 | 1.0.3 / 2014-01-28 2 | ================== 3 | 4 | * fix for timing attacks 5 | 6 | 1.0.2 / 2014-01-28 7 | ================== 8 | 9 | * fix missing repository warning 10 | * fix typo in test 11 | 12 | 1.0.1 / 2013-04-15 13 | ================== 14 | 15 | * Revert "Changed underlying HMAC algo. to sha512." 16 | * Revert "Fix for timing attacks on MAC verification." 17 | 18 | 0.0.1 / 2010-01-03 19 | ================== 20 | 21 | * Initial release 22 | -------------------------------------------------------------------------------- /api/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 -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/cookie/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/cookie/LICENSE: -------------------------------------------------------------------------------- 1 | // MIT License 2 | 3 | Copyright (C) Roman Shtylman 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/cookie/test/mocha.opts: -------------------------------------------------------------------------------- 1 | --ui qunit 2 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/escape-html/.npmignore: -------------------------------------------------------------------------------- 1 | components 2 | build 3 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/escape-html/Makefile: -------------------------------------------------------------------------------- 1 | 2 | build: components index.js 3 | @component build 4 | 5 | components: 6 | @Component install 7 | 8 | clean: 9 | rm -fr build components template.js 10 | 11 | .PHONY: clean 12 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/escape-html/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # escape-html 3 | 4 | Escape HTML entities 5 | 6 | ## Example 7 | 8 | ```js 9 | var escape = require('escape-html'); 10 | escape(str); 11 | ``` 12 | 13 | ## License 14 | 15 | MIT -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/escape-html/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "escape-html", 3 | "description": "Escape HTML entities", 4 | "version": "1.0.1", 5 | "keywords": ["escape", "html", "utility"], 6 | "dependencies": {}, 7 | "scripts": [ 8 | "index.js" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/escape-html/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Escape special characters in the given string of html. 3 | * 4 | * @param {String} html 5 | * @return {String} 6 | * @api private 7 | */ 8 | 9 | module.exports = function(html) { 10 | return String(html) 11 | .replace(/&/g, '&') 12 | .replace(/"/g, '"') 13 | .replace(/'/g, ''') 14 | .replace(//g, '>'); 16 | } 17 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/escape-html/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "escape-html", 3 | "description": "Escape HTML entities", 4 | "version": "1.0.1", 5 | "keywords": [ 6 | "escape", 7 | "html", 8 | "utility" 9 | ], 10 | "dependencies": {}, 11 | "main": "index.js", 12 | "component": { 13 | "scripts": { 14 | "escape-html/index.js": "index.js" 15 | } 16 | }, 17 | "repository": { 18 | "type": "git", 19 | "url": "https://github.com/component/escape-html.git" 20 | }, 21 | "readme": "\n# escape-html\n\n Escape HTML entities\n\n## Example\n\n```js\nvar escape = require('escape-html');\nescape(str);\n```\n\n## License\n\n MIT", 22 | "readmeFilename": "Readme.md", 23 | "bugs": { 24 | "url": "https://github.com/component/escape-html/issues" 25 | }, 26 | "_id": "escape-html@1.0.1", 27 | "dist": { 28 | "shasum": "181a286ead397a39a92857cfb1d43052e356bff0" 29 | }, 30 | "_from": "escape-html@1.0.1", 31 | "_resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.1.tgz" 32 | } 33 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/fresh/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/fresh/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.2.1 / 2014-01-29 3 | ================== 4 | 5 | * fix: support max-age=0 for end-to-end revalidation 6 | 7 | 0.2.0 / 2013-08-11 8 | ================== 9 | 10 | * fix: return false for no-cache 11 | -------------------------------------------------------------------------------- /api/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 -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/merge-descriptors/.npmignore: -------------------------------------------------------------------------------- 1 | # Compiled source # 2 | ################### 3 | *.com 4 | *.class 5 | *.dll 6 | *.exe 7 | *.o 8 | *.so 9 | 10 | # Packages # 11 | ############ 12 | # it's better to unpack these files and commit the raw source 13 | # git has its own built in compression methods 14 | *.7z 15 | *.dmg 16 | *.gz 17 | *.iso 18 | *.jar 19 | *.rar 20 | *.tar 21 | *.zip 22 | 23 | # Logs and databases # 24 | ###################### 25 | *.log 26 | *.sql 27 | *.sqlite 28 | 29 | # OS generated files # 30 | ###################### 31 | .DS_Store* 32 | ehthumbs.db 33 | Icon? 34 | Thumbs.db 35 | 36 | # Node.js # 37 | ########### 38 | lib-cov 39 | *.seed 40 | *.log 41 | *.csv 42 | *.dat 43 | *.out 44 | *.pid 45 | *.gz 46 | 47 | pids 48 | logs 49 | results 50 | 51 | node_modules 52 | npm-debug.log 53 | 54 | # Components # 55 | ############## 56 | 57 | /build 58 | /components 59 | /vendors -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/merge-descriptors/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "merge-descriptors", 3 | "description": "Merge objects using descriptors", 4 | "version": "0.0.2", 5 | "scripts": [ 6 | "index.js" 7 | ], 8 | "repo": "component/merge-descriptors", 9 | "license": "MIT" 10 | } -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/merge-descriptors/index.js: -------------------------------------------------------------------------------- 1 | module.exports = function (dest, src) { 2 | Object.getOwnPropertyNames(src).forEach(function (name) { 3 | var descriptor = Object.getOwnPropertyDescriptor(src, name) 4 | Object.defineProperty(dest, name, descriptor) 5 | }) 6 | 7 | return dest 8 | } -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/methods/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.1.0 / 2013-10-28 3 | ================== 4 | 5 | * add http.METHODS support 6 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/methods/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # Methods 3 | 4 | HTTP verbs that node core's parser supports. 5 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/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 | "dist": { 28 | "shasum": "335d429eefd21b7bacf2e9c922a8d2bd14a30e4f" 29 | }, 30 | "_from": "methods@0.1.0", 31 | "_resolved": "https://registry.npmjs.org/methods/-/methods-0.1.0.tgz" 32 | } 33 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/parseurl/.npmignore: -------------------------------------------------------------------------------- 1 | # Compiled source # 2 | ################### 3 | *.com 4 | *.class 5 | *.dll 6 | *.exe 7 | *.o 8 | *.so 9 | 10 | # Packages # 11 | ############ 12 | # it's better to unpack these files and commit the raw source 13 | # git has its own built in compression methods 14 | *.7z 15 | *.dmg 16 | *.gz 17 | *.iso 18 | *.jar 19 | *.rar 20 | *.tar 21 | *.zip 22 | 23 | # Logs and databases # 24 | ###################### 25 | *.log 26 | *.sql 27 | *.sqlite 28 | 29 | # OS generated files # 30 | ###################### 31 | .DS_Store* 32 | # Icon? 33 | ehthumbs.db 34 | Thumbs.db 35 | 36 | # Node.js # 37 | ########### 38 | lib-cov 39 | *.seed 40 | *.log 41 | *.csv 42 | *.dat 43 | *.out 44 | *.pid 45 | *.gz 46 | 47 | pids 48 | logs 49 | results 50 | 51 | node_modules 52 | npm-debug.log 53 | 54 | # Components # 55 | ############## 56 | 57 | /build 58 | /components 59 | /public -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/parseurl/index.js: -------------------------------------------------------------------------------- 1 | 2 | var parse = require('url').parse; 3 | 4 | /** 5 | * Parse the `req` url with memoization. 6 | * 7 | * @param {ServerRequest} req 8 | * @return {Object} 9 | * @api private 10 | */ 11 | 12 | module.exports = function parseUrl(req){ 13 | var parsed = req._parsedUrl; 14 | if (parsed && parsed.href == req.url) { 15 | return parsed; 16 | } else { 17 | parsed = parse(req.url); 18 | 19 | if (parsed.auth && !parsed.protocol && ~parsed.href.indexOf('//')) { 20 | // This parses pathnames, and a strange pathname like //r@e should work 21 | parsed = parse(req.url.replace(/@/g, '%40')); 22 | } 23 | 24 | return req._parsedUrl = parsed; 25 | } 26 | }; 27 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/path-to-regexp/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/path-to-regexp/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.1.0 / 2014-03-06 3 | ================== 4 | 5 | * add options.end 6 | 7 | 0.0.2 / 2013-02-10 8 | ================== 9 | 10 | * Update to match current express 11 | * add .license property to component.json 12 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/path-to-regexp/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "path-to-regexp", 3 | "description": "Express style path to RegExp utility", 4 | "version": "0.1.0", 5 | "keywords": [ 6 | "express", 7 | "regexp", 8 | "route", 9 | "routing" 10 | ], 11 | "scripts": [ 12 | "index.js" 13 | ], 14 | "license": "MIT" 15 | } 16 | -------------------------------------------------------------------------------- /api/node_modules/express/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 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/qs/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .travis.yml 3 | benchmark.js 4 | component.json 5 | examples.js 6 | History.md 7 | Makefile 8 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/range-parser/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/range-parser/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.0 / 2013-12-11 3 | ================== 4 | 5 | * add repository to package.json 6 | * add MIT license 7 | 8 | 0.0.4 / 2012-06-17 9 | ================== 10 | 11 | * changed: ret -1 for unsatisfiable and -2 when invalid 12 | 13 | 0.0.3 / 2012-06-17 14 | ================== 15 | 16 | * fix last-byte-pos default to len - 1 17 | 18 | 0.0.2 / 2012-06-14 19 | ================== 20 | 21 | * add `.type` 22 | -------------------------------------------------------------------------------- /api/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 -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/range-parser/index.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Parse "Range" header `str` relative to the given file `size`. 4 | * 5 | * @param {Number} size 6 | * @param {String} str 7 | * @return {Array} 8 | * @api public 9 | */ 10 | 11 | module.exports = function(size, str){ 12 | var valid = true; 13 | var i = str.indexOf('='); 14 | 15 | if (-1 == i) return -2; 16 | 17 | var arr = str.slice(i + 1).split(',').map(function(range){ 18 | var range = range.split('-') 19 | , start = parseInt(range[0], 10) 20 | , end = parseInt(range[1], 10); 21 | 22 | // -nnn 23 | if (isNaN(start)) { 24 | start = size - end; 25 | end = size - 1; 26 | // nnn- 27 | } else if (isNaN(end)) { 28 | end = size - 1; 29 | } 30 | 31 | // limit last-byte-pos to current length 32 | if (end > size - 1) end = size - 1; 33 | 34 | // invalid 35 | if (isNaN(start) 36 | || isNaN(end) 37 | || start > end 38 | || start < 0) valid = false; 39 | 40 | return { 41 | start: start, 42 | end: end 43 | }; 44 | }); 45 | 46 | arr.type = str.slice(0, i); 47 | 48 | return valid ? arr : -1; 49 | }; -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/send/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/send/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.2.0 / 2014-01-29 3 | ================== 4 | 5 | * update range-parser and fresh 6 | 7 | 0.1.4 / 2013-08-11 8 | ================== 9 | 10 | * update fresh 11 | 12 | 0.1.3 / 2013-07-08 13 | ================== 14 | 15 | * Revert "Fix fd leak" 16 | 17 | 0.1.2 / 2013-07-03 18 | ================== 19 | 20 | * Fix fd leak 21 | 22 | 0.1.0 / 2012-08-25 23 | ================== 24 | 25 | * add options parameter to send() that is passed to fs.createReadStream() [kanongil] 26 | 27 | 0.0.4 / 2012-08-16 28 | ================== 29 | 30 | * allow custom "Accept-Ranges" definition 31 | 32 | 0.0.3 / 2012-07-16 33 | ================== 34 | 35 | * fix normalization of the root directory. Closes #3 36 | 37 | 0.0.2 / 2012-07-09 38 | ================== 39 | 40 | * add passing of req explicitly for now (YUCK) 41 | 42 | 0.0.1 / 2010-01-03 43 | ================== 44 | 45 | * Initial release 46 | -------------------------------------------------------------------------------- /api/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 -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/send/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/send'); -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/send/lib/utils.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Return an ETag in the form of `"-"` 4 | * from the given `stat`. 5 | * 6 | * @param {Object} stat 7 | * @return {String} 8 | * @api private 9 | */ 10 | 11 | exports.etag = function(stat) { 12 | return '"' + stat.size + '-' + Number(stat.mtime) + '"'; 13 | }; 14 | 15 | /** 16 | * decodeURIComponent. 17 | * 18 | * Allows V8 to only deoptimize this fn instead of all 19 | * of send(). 20 | * 21 | * @param {String} path 22 | * @api private 23 | */ 24 | 25 | exports.decode = function(path){ 26 | try { 27 | return decodeURIComponent(path); 28 | } catch (err) { 29 | return -1; 30 | } 31 | }; 32 | 33 | /** 34 | * Escape the given string of `html`. 35 | * 36 | * @param {String} html 37 | * @return {String} 38 | * @api private 39 | */ 40 | 41 | exports.escape = function(html){ 42 | return String(html) 43 | .replace(/&(?!\w+;)/g, '&') 44 | .replace(//g, '>') 46 | .replace(/"/g, '"'); 47 | }; -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/serve-static/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/serve-static/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/serve-static/node_modules/send/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/serve-static/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 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/serve-static/node_modules/send/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec \ 6 | --bail 7 | 8 | .PHONY: test -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/serve-static/node_modules/send/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/send'); -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/serve-static/node_modules/send/lib/utils.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Return an ETag in the form of `"-"` 4 | * from the given `stat`. 5 | * 6 | * @param {Object} stat 7 | * @return {String} 8 | * @api private 9 | */ 10 | 11 | exports.etag = function(stat) { 12 | return '"' + stat.size + '-' + Number(stat.mtime) + '"'; 13 | }; 14 | 15 | /** 16 | * decodeURIComponent. 17 | * 18 | * Allows V8 to only deoptimize this fn instead of all 19 | * of send(). 20 | * 21 | * @param {String} path 22 | * @api private 23 | */ 24 | 25 | exports.decode = function(path){ 26 | try { 27 | return decodeURIComponent(path); 28 | } catch (err) { 29 | return -1; 30 | } 31 | }; 32 | 33 | /** 34 | * Escape the given string of `html`. 35 | * 36 | * @param {String} html 37 | * @return {String} 38 | * @api private 39 | */ 40 | 41 | exports.escape = function(html){ 42 | return String(html) 43 | .replace(/&(?!\w+;)/g, '&') 44 | .replace(//g, '>') 46 | .replace(/"/g, '"'); 47 | }; -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/serve-static/node_modules/send/node_modules/fresh/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/serve-static/node_modules/send/node_modules/fresh/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.2.0 / 2013-08-11 3 | ================== 4 | 5 | * fix: return false for no-cache 6 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/serve-static/node_modules/send/node_modules/fresh/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --reporter spec \ 5 | --require should 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/serve-static/node_modules/send/node_modules/range-parser/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/serve-static/node_modules/send/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 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/serve-static/node_modules/send/node_modules/range-parser/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --reporter spec \ 5 | --require should 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/type-is/.npmignore: -------------------------------------------------------------------------------- 1 | test.js -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/type-is/.travis.yml: -------------------------------------------------------------------------------- 1 | node_js: 2 | - "0.10" 3 | - "0.11" 4 | language: node_js -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/type-is/Makefile: -------------------------------------------------------------------------------- 1 | BIN = ./node_modules/.bin/ 2 | 3 | test: 4 | @${BIN}mocha \ 5 | --require should \ 6 | --reporter spec 7 | 8 | .PHONY: test -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/utils-merge/.travis.yml: -------------------------------------------------------------------------------- 1 | language: "node_js" 2 | node_js: 3 | - "0.4" 4 | - "0.6" 5 | - "0.8" 6 | - "0.10" 7 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/utils-merge/README.md: -------------------------------------------------------------------------------- 1 | # utils-merge 2 | 3 | Merges the properties from a source object into a destination object. 4 | 5 | ## Install 6 | 7 | $ npm install utils-merge 8 | 9 | ## Usage 10 | 11 | ```javascript 12 | var a = { foo: 'bar' } 13 | , b = { bar: 'baz' }; 14 | 15 | merge(a, b); 16 | // => { foo: 'bar', bar: 'baz' } 17 | ``` 18 | 19 | ## Tests 20 | 21 | $ npm install 22 | $ npm test 23 | 24 | [![Build Status](https://secure.travis-ci.org/jaredhanson/utils-merge.png)](http://travis-ci.org/jaredhanson/utils-merge) 25 | 26 | ## Credits 27 | 28 | - [Jared Hanson](http://github.com/jaredhanson) 29 | 30 | ## License 31 | 32 | [The MIT License](http://opensource.org/licenses/MIT) 33 | 34 | Copyright (c) 2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)> 35 | -------------------------------------------------------------------------------- /api/node_modules/express/node_modules/utils-merge/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Merge object b with object a. 3 | * 4 | * var a = { foo: 'bar' } 5 | * , b = { bar: 'baz' }; 6 | * 7 | * merge(a, b); 8 | * // => { foo: 'bar', bar: 'baz' } 9 | * 10 | * @param {Object} a 11 | * @param {Object} b 12 | * @return {Object} 13 | * @api public 14 | */ 15 | 16 | exports = module.exports = function(a, b){ 17 | if (a && b) { 18 | for (var key in b) { 19 | a[key] = b[key]; 20 | } 21 | } 22 | return a; 23 | }; 24 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | - 0.10 6 | services: 7 | - mongodb 8 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/examples/README.md: -------------------------------------------------------------------------------- 1 | 2 | This directory contains runnable sample mongoose programs. 3 | 4 | To run: 5 | 6 | - first install [Node.js](http://nodejs.org/) 7 | - from the command line, execute: `node example.js`, replacing "example.js" with the name of a program. 8 | 9 | 10 | Goal is to show: 11 | 12 | - global schemas 13 | - GeoJSON schemas / use (with crs) 14 | - text search 15 | - storing schemas as json 16 | - lean querires 17 | - statics 18 | - methods and statics on subdocs 19 | - custom types 20 | - querybuilder 21 | - promises 22 | - express + mongoose 23 | - accessing driver collection, db 24 | - connecting to replica sets 25 | - connecting to sharded clusters 26 | - enabling a fail fast mode 27 | - on the fly schemas 28 | - storing files 29 | - map reduce 30 | - aggregation 31 | - advanced hooks 32 | - using $elemMatch to return a subset of an array 33 | - query casting 34 | - upserts 35 | - pagination 36 | - express + mongoose session handling 37 | - group by (use aggregation) 38 | - authentication 39 | - schema migration techniques 40 | - converting documents to plain objects (show transforms) 41 | - how to $unset 42 | 43 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/index.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Export lib/mongoose 4 | * 5 | */ 6 | 7 | module.exports = require('./lib/'); 8 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/lib/drivers/SPEC.md: -------------------------------------------------------------------------------- 1 | 2 | # Driver Spec 3 | 4 | TODO 5 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/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 | var ObjectIdToString = ObjectId.toString.bind(ObjectId); 15 | module.exports = exports = ObjectId; 16 | 17 | ObjectId.fromString = function(str){ 18 | // patch native driver bug in V0.9.6.4 19 | if (!('string' === typeof str && 24 === str.length)) { 20 | throw new Error("Invalid ObjectId"); 21 | } 22 | 23 | return ObjectId.createFromHexString(str); 24 | }; 25 | 26 | ObjectId.toString = function(oid){ 27 | if (!arguments.length) return ObjectIdToString(); 28 | return oid.toHexString(); 29 | }; 30 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/lib/errors/cast.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Module dependencies. 3 | */ 4 | 5 | var MongooseError = require('../error'); 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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/lib/errors/document.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module requirements 4 | */ 5 | 6 | var MongooseError = require('../error') 7 | 8 | /** 9 | * Document Error 10 | * 11 | * @param {String} msg 12 | * @inherits MongooseError 13 | * @api private 14 | */ 15 | 16 | function DocumentError (msg) { 17 | MongooseError.call(this, msg); 18 | Error.captureStackTrace(this, arguments.callee); 19 | this.name = 'DocumentError'; 20 | }; 21 | 22 | /*! 23 | * Inherits from MongooseError. 24 | */ 25 | 26 | DocumentError.prototype.__proto__ = MongooseError.prototype; 27 | 28 | /*! 29 | * Module exports. 30 | */ 31 | 32 | module.exports = exports = DocumentError; 33 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/lib/errors/missingSchema.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | var MongooseError = require('../error'); 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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/lib/errors/overwriteModel.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | var MongooseError = require('../error'); 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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/lib/errors/validation.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module requirements 4 | */ 5 | 6 | var MongooseError = require('../error') 7 | 8 | /** 9 | * Document Validation Error 10 | * 11 | * @api private 12 | * @param {Document} instance 13 | * @inherits MongooseError 14 | */ 15 | 16 | function ValidationError (instance) { 17 | MongooseError.call(this, "Validation failed"); 18 | Error.captureStackTrace(this, arguments.callee); 19 | this.name = 'ValidationError'; 20 | this.errors = instance.errors = {}; 21 | }; 22 | 23 | /** 24 | * Console.log helper 25 | */ 26 | 27 | ValidationError.prototype.toString = function () { 28 | var ret = this.name + ': '; 29 | var msgs = []; 30 | 31 | Object.keys(this.errors).forEach(function (key) { 32 | if (this == this.errors[key]) return; 33 | msgs.push(String(this.errors[key])); 34 | }, this) 35 | 36 | return ret + msgs.join(', '); 37 | }; 38 | 39 | /*! 40 | * Inherits from MongooseError. 41 | */ 42 | 43 | ValidationError.prototype.__proto__ = MongooseError.prototype; 44 | 45 | /*! 46 | * Module exports 47 | */ 48 | 49 | module.exports = exports = ValidationError; 50 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/lib/errors/version.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | var MongooseError = require('../error'); 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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/lib/internal.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Dependencies 3 | */ 4 | 5 | var StateMachine = require('./statemachine') 6 | var ActiveRoster = StateMachine.ctor('require', 'modify', 'init', 'default') 7 | 8 | module.exports = exports = InternalCache; 9 | 10 | function InternalCache () { 11 | this.strictMode = undefined; 12 | this.selected = undefined; 13 | this.shardval = undefined; 14 | this.saveError = undefined; 15 | this.validationError = undefined; 16 | this.adhocPaths = undefined; 17 | this.removing = undefined; 18 | this.inserting = undefined; 19 | this.version = undefined; 20 | this.getters = {}; 21 | this._id = undefined; 22 | this.populate = undefined; // what we want to populate in this doc 23 | this.populated = undefined;// the _ids that have been populated 24 | this.wasPopulated = false; // if this doc was the result of a population 25 | this.scope = undefined; 26 | this.activePaths = new ActiveRoster; 27 | 28 | // embedded docs 29 | this.ownerDocument = undefined; 30 | this.fullPath = undefined; 31 | } 32 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/lib/queryhelpers.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies 4 | */ 5 | 6 | var utils = require('./utils') 7 | 8 | /*! 9 | * Prepare a set of path options for query population. 10 | * 11 | * @param {Query} query 12 | * @param {Object} options 13 | * @return {Array} 14 | */ 15 | 16 | exports.preparePopulationOptions = function preparePopulationOptions (query, options) { 17 | var pop = utils.object.vals(query.options.populate); 18 | 19 | // lean options should trickle through all queries 20 | if (options.lean) pop.forEach(makeLean); 21 | 22 | return pop; 23 | } 24 | 25 | /*! 26 | * Set each path query option to lean 27 | * 28 | * @param {Object} option 29 | */ 30 | 31 | function makeLean (option) { 32 | option.options || (option.options = {}); 33 | option.options.lean = true; 34 | } 35 | 36 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/lib/schema/embedded.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | var SchemaType = require('../schematype') 7 | , CastError = SchemaType.CastError 8 | , errorMessages = require('../error').messages 9 | , utils = require('../utils') 10 | , Document 11 | 12 | /** 13 | * EmbeddedDocument SchemaType constructor. 14 | * 15 | * @param {String} key 16 | * @param {Object} options 17 | * @inherits SchemaType 18 | * @api private 19 | */ 20 | 21 | function SchemaEmbedded (key, options, EmbeddedDoc, parentArray) { 22 | SchemaType.call(this, key, options, 'EmbeddedDocument'); 23 | this.EmbeddedDoc = EmbeddedDoc; 24 | this.parentArray = parentArray; 25 | }; 26 | 27 | /*! 28 | * Inherits from SchemaType. 29 | */ 30 | 31 | SchemaEmbedded.prototype.__proto__ = SchemaType.prototype; 32 | 33 | SchemaEmbedded.prototype.cast = function (value, doc, init) { 34 | return new this.EmbeddedDoc(value, this.parentArray); 35 | } 36 | 37 | /*! 38 | * Module exports. 39 | */ 40 | 41 | module.exports = SchemaEmbedded; 42 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/hooks/.npmignore: -------------------------------------------------------------------------------- 1 | **.swp 2 | node_modules 3 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/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 -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/mongodb'); 2 | -------------------------------------------------------------------------------- /api/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; -------------------------------------------------------------------------------- /api/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 -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/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 | } -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/.deps/Release/bson.node.d: -------------------------------------------------------------------------------- 1 | cmd_Release/bson.node := ./gyp-mac-tool flock ./Release/linker.lock c++ -shared -Wl,-search_paths_first -mmacosx-version-min=10.5 -arch x86_64 -L./Release -install_name @rpath/bson.node -o Release/bson.node Release/obj.target/bson/ext/bson.o -undefined dynamic_lookup 2 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/bson.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/bson.node -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/linker.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/linker.lock -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/obj.target/bson/ext/bson.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/obj.target/bson/ext/bson.o -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/binding.Makefile: -------------------------------------------------------------------------------- 1 | # This file is generated by gyp; do not edit. 2 | 3 | export builddir_name ?= build/./. 4 | .PHONY: all 5 | all: 6 | $(MAKE) bson 7 | -------------------------------------------------------------------------------- /api/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') -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/builderror.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/builderror.log -------------------------------------------------------------------------------- /api/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 -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/win32/ia32/bson.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/win32/ia32/bson.node -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/win32/x64/bson.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/win32/x64/bson.node -------------------------------------------------------------------------------- /api/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; -------------------------------------------------------------------------------- /api/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; -------------------------------------------------------------------------------- /api/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; -------------------------------------------------------------------------------- /api/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; -------------------------------------------------------------------------------- /api/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; -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/lib/bson/symbol.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON Symbol type. 3 | * 4 | * @class Represents the BSON Symbol type. 5 | * @param {String} value the string representing the symbol. 6 | * @return {Symbol} 7 | */ 8 | function Symbol(value) { 9 | if(!(this instanceof Symbol)) return new Symbol(value); 10 | this._bsontype = 'Symbol'; 11 | this.value = value; 12 | } 13 | 14 | /** 15 | * Access the wrapped string value. 16 | * 17 | * @return {String} returns the wrapped string. 18 | * @api public 19 | */ 20 | Symbol.prototype.valueOf = function() { 21 | return this.value; 22 | }; 23 | 24 | /** 25 | * @ignore 26 | * @api private 27 | */ 28 | Symbol.prototype.toString = function() { 29 | return this.value; 30 | } 31 | 32 | /** 33 | * @ignore 34 | * @api private 35 | */ 36 | Symbol.prototype.inspect = function() { 37 | return this.value; 38 | } 39 | 40 | /** 41 | * @ignore 42 | * @api private 43 | */ 44 | Symbol.prototype.toJSON = function() { 45 | return this.value; 46 | } 47 | 48 | exports.Symbol = Symbol; -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/tools/jasmine-1.1.0/jasmine_favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/api/node_modules/mongoose/node_modules/mongodb/node_modules/bson/tools/jasmine-1.1.0/jasmine_favicon.png -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/README.md: -------------------------------------------------------------------------------- 1 | kerberos 2 | ======== 3 | 4 | Kerberos library for node.js -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/.deps/Release/kerberos.node.d: -------------------------------------------------------------------------------- 1 | cmd_Release/kerberos.node := ./gyp-mac-tool flock ./Release/linker.lock c++ -shared -Wl,-search_paths_first -mmacosx-version-min=10.5 -arch x86_64 -L./Release -install_name @rpath/kerberos.node -o Release/kerberos.node Release/obj.target/kerberos/lib/kerberos.o Release/obj.target/kerberos/lib/worker.o Release/obj.target/kerberos/lib/kerberosgss.o Release/obj.target/kerberos/lib/base64.o Release/obj.target/kerberos/lib/kerberos_context.o -undefined dynamic_lookup -lkrb5 2 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/.deps/Release/obj.target/kerberos/lib/base64.o.d: -------------------------------------------------------------------------------- 1 | cmd_Release/obj.target/kerberos/lib/base64.o := cc '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__MACOSX_CORE__' '-DBUILDING_NODE_EXTENSION' -I/Users/david/.node-gyp/0.10.21/src -I/Users/david/.node-gyp/0.10.21/deps/uv/include -I/Users/david/.node-gyp/0.10.21/deps/v8/include -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/kerberos/lib/base64.o.d.raw -c -o Release/obj.target/kerberos/lib/base64.o ../lib/base64.c 2 | Release/obj.target/kerberos/lib/base64.o: ../lib/base64.c ../lib/base64.h 3 | ../lib/base64.c: 4 | ../lib/base64.h: 5 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/.deps/Release/obj.target/kerberos/lib/kerberosgss.o.d: -------------------------------------------------------------------------------- 1 | cmd_Release/obj.target/kerberos/lib/kerberosgss.o := cc '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__MACOSX_CORE__' '-DBUILDING_NODE_EXTENSION' -I/Users/david/.node-gyp/0.10.21/src -I/Users/david/.node-gyp/0.10.21/deps/uv/include -I/Users/david/.node-gyp/0.10.21/deps/v8/include -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/kerberos/lib/kerberosgss.o.d.raw -c -o Release/obj.target/kerberos/lib/kerberosgss.o ../lib/kerberosgss.c 2 | Release/obj.target/kerberos/lib/kerberosgss.o: ../lib/kerberosgss.c \ 3 | ../lib/kerberosgss.h ../lib/base64.h 4 | ../lib/kerberosgss.c: 5 | ../lib/kerberosgss.h: 6 | ../lib/base64.h: 7 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/kerberos.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/kerberos.node -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/linker.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/linker.lock -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/base64.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/base64.o -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/kerberos.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/kerberos.o -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/kerberos_context.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/kerberos_context.o -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/kerberosgss.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/kerberosgss.o -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/worker.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/worker.o -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/binding.Makefile: -------------------------------------------------------------------------------- 1 | # This file is generated by gyp; do not edit. 2 | 3 | export builddir_name ?= build/./. 4 | .PHONY: all 5 | all: 6 | $(MAKE) kerberos 7 | -------------------------------------------------------------------------------- /api/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 | } -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/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; -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/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 | } -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/lib/win32/worker.h: -------------------------------------------------------------------------------- 1 | #ifndef WORKER_H_ 2 | #define WORKER_H_ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | using namespace node; 9 | using namespace v8; 10 | 11 | class Worker { 12 | public: 13 | Worker(); 14 | virtual ~Worker(); 15 | 16 | // libuv's request struct. 17 | uv_work_t request; 18 | // Callback 19 | v8::Persistent callback; 20 | // Parameters 21 | void *parameters; 22 | // Results 23 | void *return_value; 24 | // Did we raise an error 25 | bool error; 26 | // The error message 27 | char *error_message; 28 | // Error code if not message 29 | int error_code; 30 | // Any return code 31 | int return_code; 32 | // Method we are going to fire 33 | void (*execute)(Worker *worker); 34 | Handle (*mapper)(Worker *worker); 35 | }; 36 | 37 | #endif // WORKER_H_ 38 | -------------------------------------------------------------------------------- /api/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; -------------------------------------------------------------------------------- /api/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; -------------------------------------------------------------------------------- /api/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; -------------------------------------------------------------------------------- /api/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; -------------------------------------------------------------------------------- /api/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 | } -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/lib/worker.h: -------------------------------------------------------------------------------- 1 | #ifndef WORKER_H_ 2 | #define WORKER_H_ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | using namespace node; 9 | using namespace v8; 10 | 11 | class Worker { 12 | public: 13 | Worker(); 14 | virtual ~Worker(); 15 | 16 | // libuv's request struct. 17 | uv_work_t request; 18 | // Callback 19 | v8::Persistent callback; 20 | // // Arguments 21 | // v8::Persistent arguments; 22 | // Parameters 23 | void *parameters; 24 | // Results 25 | void *return_value; 26 | // Did we raise an error 27 | bool error; 28 | // The error message 29 | char *error_message; 30 | // Error code if not message 31 | int error_code; 32 | // Any return code 33 | int return_code; 34 | // Method we are going to fire 35 | void (*execute)(Worker *worker); 36 | Handle (*mapper)(Worker *worker); 37 | }; 38 | 39 | #endif // WORKER_H_ 40 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/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 | } -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mpath/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mpath/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mpath/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @node_modules/mocha/bin/mocha -A $(T) 4 | 5 | .PHONY: test 6 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mpath/index.js: -------------------------------------------------------------------------------- 1 | module.exports = exports = require('./lib'); 2 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mpromise/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mpromise/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mpromise/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.2.1 / 2013-02-09 3 | ================== 4 | 5 | * fixed; conformancy with A+ 1.2 6 | 7 | 0.2.0 / 2013-01-09 8 | ================== 9 | 10 | * added; .end() 11 | * fixed; only catch handler executions 12 | 13 | 0.1.0 / 2013-01-08 14 | ================== 15 | 16 | * cleaned up API 17 | * customizable event names 18 | * docs 19 | 20 | 0.0.1 / 2013-01-07 21 | ================== 22 | 23 | * original release 24 | 25 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mpromise/index.js: -------------------------------------------------------------------------------- 1 | module.exports = exports = require('./lib/promise'); 2 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mpromise/node_modules/sliced/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mpromise/node_modules/sliced/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mpromise/node_modules/sliced/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.4 / 2013-01-07 3 | ================== 4 | 5 | * added component.json #1 [jkroso](https://github.com/jkroso) 6 | * reversed array loop #1 [jkroso](https://github.com/jkroso) 7 | * remove fn params 8 | 9 | 0.0.3 / 2012-09-29 10 | ================== 11 | 12 | * faster with negative start args 13 | 14 | 0.0.2 / 2012-09-29 15 | ================== 16 | 17 | * support full [].slice semantics 18 | 19 | 0.0.1 / 2012-09-29 20 | =================== 21 | 22 | * initial release 23 | 24 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mpromise/node_modules/sliced/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @time ./node_modules/.bin/mocha $(T) $(TESTS) 4 | 5 | .PHONY: test 6 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mpromise/node_modules/sliced/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sliced", 3 | "version": "0.0.3", 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 | "author": "Aaron Heckmann ", 12 | "license": "MIT" 13 | } 14 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mpromise/node_modules/sliced/index.js: -------------------------------------------------------------------------------- 1 | module.exports = exports = require('./lib/sliced'); 2 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/mpromise/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 () { 12 | var args = arguments[0]; 13 | var slice = arguments[1]; 14 | var sliceEnd = arguments[2]; 15 | 16 | var ret = []; 17 | var len = args.length; 18 | 19 | if (0 === len) return ret; 20 | 21 | var start = slice < 0 22 | ? Math.max(0, slice + len) 23 | : slice || 0; 24 | 25 | var end = 3 === arguments.length 26 | ? sliceEnd < 0 27 | ? sliceEnd + len 28 | : sliceEnd 29 | : len; 30 | 31 | while (end-- > start) { 32 | ret[end - start] = args[end]; 33 | } 34 | 35 | return ret; 36 | } 37 | 38 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/ms/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/muri/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/muri/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/muri/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.3.1 / 2013-02-17 3 | ================== 4 | 5 | * fixed; allow '#' in username and password #3 6 | 7 | 0.3.0 / 2013-01-14 8 | ================== 9 | 10 | * fixed; default db logic #2 11 | 12 | 0.2.0 / 2013-01-09 13 | ================== 14 | 15 | * changed; default db is now 'test' 16 | 17 | 0.1.0 / 2012-12-18 18 | ================== 19 | 20 | * changed; include .sock in UDS 21 | 22 | 0.0.5 / 2012-12-18 23 | ================== 24 | 25 | * fixed; unix domain sockets used with db names 26 | 27 | 0.0.4 / 2012-12-01 28 | ================== 29 | 30 | * handle multple specified protocols 31 | 32 | 0.0.3 / 2012-11-29 33 | ================== 34 | 35 | * validate mongodb:///db 36 | * more detailed error message 37 | 38 | 0.0.2 / 2012-11-02 39 | ================== 40 | 41 | * add readPreferenceTags support 42 | * add unix domain support 43 | 44 | 0.0.1 / 2012-11-01 45 | ================== 46 | 47 | * initial release 48 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/muri/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @node_modules/mocha/bin/mocha $(T) 4 | 5 | .PHONY: test 6 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/muri/index.js: -------------------------------------------------------------------------------- 1 | module.exports = exports = require('./lib'); 2 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/regexp-clone/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/regexp-clone/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.1 / 2013-04-17 3 | ================== 4 | 5 | * initial commit 6 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/sliced/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/sliced/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/sliced/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha $(T) $(TESTS) 4 | 5 | .PHONY: test 6 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/node_modules/mongoose/node_modules/sliced/index.js: -------------------------------------------------------------------------------- 1 | module.exports = exports = require('./lib/sliced'); 2 | -------------------------------------------------------------------------------- /api/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 | -------------------------------------------------------------------------------- /api/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 | req.on('end', function () { 8 | server.serve(req, res, function (err) { 9 | if (err) { 10 | console.error(err, req.url); 11 | res.writeHead(err.status, err.headers); 12 | res.end(); 13 | } 14 | }); 15 | }); 16 | req.resume(); 17 | }).listen(8088); 18 | 19 | console.error('now listening on http://localhost:8088'); 20 | open('http://localhost:8088'); 21 | -------------------------------------------------------------------------------- /api/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "simple-api", 3 | "version": "0.0.0", 4 | "description": "A simple API to work with links.", 5 | "main": "server.js", 6 | "dependencies": { 7 | "express": "~4.0.0", 8 | "mongoose": "~3.6.13", 9 | "body-parser": "~1.0.1" 10 | }, 11 | "scripts": { 12 | "test": "echo \"Error: no test specified\" && exit 1", 13 | "start": "node server.js" 14 | }, 15 | "author": "", 16 | "license": "BSD-2-Clause" 17 | } 18 | -------------------------------------------------------------------------------- /deployment/app/models/link.js: -------------------------------------------------------------------------------- 1 | var mongoose = require('mongoose'); 2 | var Schema = mongoose.Schema; 3 | 4 | var LinkSchema = new Schema({ 5 | url: String, 6 | description: String 7 | }); 8 | 9 | module.exports = mongoose.model('Link', LinkSchema); -------------------------------------------------------------------------------- /deployment/config/db.js: -------------------------------------------------------------------------------- 1 | // config/db.js 2 | module.exports = { 3 | url : 'mongodb://test:test@ds041140.mongolab.com:41140/fj-test' 4 | } -------------------------------------------------------------------------------- /deployment/node_modules/body-parser/.npmignore: -------------------------------------------------------------------------------- 1 | test/ -------------------------------------------------------------------------------- /deployment/node_modules/body-parser/.travis.yml: -------------------------------------------------------------------------------- 1 | node_js: 2 | - "0.10" 3 | language: node_js -------------------------------------------------------------------------------- /deployment/node_modules/body-parser/HISTORY.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.1 / 2014-04-14 3 | ================== 4 | 5 | * use `type-is` module 6 | 7 | 1.0.1 / 2014-03-20 8 | ================== 9 | 10 | * lower default limits to 100kb 11 | -------------------------------------------------------------------------------- /deployment/node_modules/body-parser/Makefile: -------------------------------------------------------------------------------- 1 | BIN = ./node_modules/.bin/ 2 | 3 | test: 4 | @$(BIN)mocha \ 5 | --require should \ 6 | --reporter spec \ 7 | --bail 8 | 9 | .PHONY: test -------------------------------------------------------------------------------- /deployment/node_modules/body-parser/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 | -------------------------------------------------------------------------------- /deployment/node_modules/body-parser/node_modules/qs/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .travis.yml 3 | benchmark.js 4 | component.json 5 | examples.js 6 | History.md 7 | Makefile 8 | -------------------------------------------------------------------------------- /deployment/node_modules/body-parser/node_modules/raw-body/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | test/ 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /deployment/node_modules/body-parser/node_modules/raw-body/node_modules/bytes/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /deployment/node_modules/body-parser/node_modules/raw-body/node_modules/bytes/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.0 / 2014-05-05 3 | ================== 4 | 5 | * add negative support. fixes #6 6 | 7 | 0.3.0 / 2014-03-19 8 | ================== 9 | 10 | * added terabyte support 11 | 12 | 0.2.1 / 2013-04-01 13 | ================== 14 | 15 | * add .component 16 | 17 | 0.2.0 / 2012-10-28 18 | ================== 19 | 20 | * bytes(200).should.eql('200b') 21 | 22 | 0.1.0 / 2012-07-04 23 | ================== 24 | 25 | * add bytes to string conversion [yields] 26 | -------------------------------------------------------------------------------- /deployment/node_modules/body-parser/node_modules/raw-body/node_modules/bytes/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --reporter spec \ 5 | --require should 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /deployment/node_modules/body-parser/node_modules/raw-body/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 | -------------------------------------------------------------------------------- /deployment/node_modules/body-parser/node_modules/raw-body/node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /deployment/node_modules/body-parser/node_modules/raw-body/node_modules/string_decoder/README.md: -------------------------------------------------------------------------------- 1 | **string_decoder.js** (`require('string_decoder')`) from Node.js core 2 | 3 | Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details. 4 | 5 | Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.** 6 | 7 | The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version. -------------------------------------------------------------------------------- /deployment/node_modules/body-parser/node_modules/type-is/.npmignore: -------------------------------------------------------------------------------- 1 | test.js -------------------------------------------------------------------------------- /deployment/node_modules/body-parser/node_modules/type-is/.travis.yml: -------------------------------------------------------------------------------- 1 | node_js: 2 | - "0.10" 3 | - "0.11" 4 | language: node_js -------------------------------------------------------------------------------- /deployment/node_modules/body-parser/node_modules/type-is/HISTORY.md: -------------------------------------------------------------------------------- 1 | 2 | 1.1.0 / 2014-04-12 3 | ================== 4 | 5 | * add non-array values support 6 | * expose internal utilities: 7 | 8 | - `.is()` 9 | - `.hasBody()` 10 | - `.normalize()` 11 | - `.match()` 12 | 13 | 1.0.1 / 2014-03-30 14 | ================== 15 | 16 | * add `multipart` as a shorthand 17 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/node_modules/express/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | -------------------------------------------------------------------------------- /deployment/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 | bench: 28 | @$(MAKE) -C benchmarks 29 | 30 | clean: 31 | rm -f coverage.html 32 | rm -fr lib-cov 33 | 34 | .PHONY: test test-unit test-acceptance bench clean 35 | -------------------------------------------------------------------------------- /deployment/node_modules/express/benchmarks/Makefile: -------------------------------------------------------------------------------- 1 | 2 | all: 3 | @./run 1 middleware 4 | @./run 5 middleware 5 | @./run 10 middleware 6 | @./run 15 middleware 7 | @./run 20 middleware 8 | @./run 30 middleware 9 | @./run 50 middleware 10 | @./run 100 middleware 11 | @echo 12 | 13 | .PHONY: all 14 | -------------------------------------------------------------------------------- /deployment/node_modules/express/benchmarks/middleware.js: -------------------------------------------------------------------------------- 1 | 2 | var http = require('http'); 3 | var express = require('..'); 4 | var app = express(); 5 | 6 | // number of middleware 7 | 8 | var n = parseInt(process.env.MW || '1', 10); 9 | console.log(' %s middleware', n); 10 | 11 | while (n--) { 12 | app.use(function(req, res, next){ 13 | next(); 14 | }); 15 | } 16 | 17 | var body = new Buffer('Hello World'); 18 | 19 | app.use(function(req, res, next){ 20 | res.send(body); 21 | }); 22 | 23 | app.listen(3333); 24 | -------------------------------------------------------------------------------- /deployment/node_modules/express/benchmarks/run: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo 4 | MW=$1 node $2 & 5 | pid=$! 6 | 7 | sleep 2 8 | 9 | wrk 'http://localhost:3333/?foo[bar]=baz' \ 10 | -d 3 \ 11 | -c 50 \ 12 | -t 8 \ 13 | | grep 'Requests/sec' \ 14 | | awk '{ print " " $2 }' 15 | 16 | kill $pid 17 | -------------------------------------------------------------------------------- /deployment/node_modules/express/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = process.env.EXPRESS_COV 3 | ? require('./lib-cov/express') 4 | : require('./lib/express'); -------------------------------------------------------------------------------- /deployment/node_modules/express/lib/middleware/init.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Initialization middleware, exposing the 3 | * request and response to eachother, as well 4 | * as defaulting the X-Powered-By header field. 5 | * 6 | * @param {Function} app 7 | * @return {Function} 8 | * @api private 9 | */ 10 | 11 | exports.init = function(app){ 12 | return function expressInit(req, res, next){ 13 | if (app.enabled('x-powered-by')) res.setHeader('X-Powered-By', 'Express'); 14 | req.res = res; 15 | res.req = req; 16 | req.next = next; 17 | 18 | req.__proto__ = app.request; 19 | res.__proto__ = app.response; 20 | 21 | res.locals = res.locals || Object.create(null); 22 | 23 | next(); 24 | }; 25 | }; 26 | 27 | -------------------------------------------------------------------------------- /deployment/node_modules/express/lib/middleware/query.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Module dependencies. 3 | */ 4 | 5 | var qs = require('qs'); 6 | var parseUrl = require('parseurl'); 7 | 8 | /** 9 | * Query: 10 | * 11 | * Automatically parse the query-string when available, 12 | * populating the `req.query` object using 13 | * [qs](https://github.com/visionmedia/node-querystring). 14 | * 15 | * Examples: 16 | * 17 | * .use(connect.query()) 18 | * .use(function(req, res){ 19 | * res.end(JSON.stringify(req.query)); 20 | * }); 21 | * 22 | * The `options` passed are provided to qs.parse function. 23 | * 24 | * @param {Object} options 25 | * @return {Function} 26 | * @api public 27 | */ 28 | 29 | module.exports = function query(options){ 30 | return function query(req, res, next){ 31 | if (!req.query) { 32 | req.query = ~req.url.indexOf('?') 33 | ? qs.parse(parseUrl(req).query, options) 34 | : {}; 35 | } 36 | 37 | next(); 38 | }; 39 | }; 40 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/accepts/.npmignore: -------------------------------------------------------------------------------- 1 | # Compiled source # 2 | ################### 3 | *.com 4 | *.class 5 | *.dll 6 | *.exe 7 | *.o 8 | *.so 9 | 10 | # Packages # 11 | ############ 12 | # it's better to unpack these files and commit the raw source 13 | # git has its own built in compression methods 14 | *.7z 15 | *.dmg 16 | *.gz 17 | *.iso 18 | *.jar 19 | *.rar 20 | *.tar 21 | *.zip 22 | 23 | # Logs and databases # 24 | ###################### 25 | *.log 26 | *.sql 27 | *.sqlite 28 | 29 | # OS generated files # 30 | ###################### 31 | .DS_Store* 32 | ehthumbs.db 33 | Icon? 34 | Thumbs.db 35 | 36 | # Node.js # 37 | ########### 38 | lib-cov 39 | *.seed 40 | *.log 41 | *.csv 42 | *.dat 43 | *.out 44 | *.pid 45 | *.gz 46 | 47 | pids 48 | logs 49 | results 50 | 51 | node_modules 52 | npm-debug.log 53 | 54 | # Components # 55 | ############## 56 | 57 | /build 58 | /components 59 | 60 | # ImageMagick # 61 | ############### 62 | 63 | *.cache 64 | *.mpc 65 | 66 | # Other # 67 | ######### 68 | test/*.2 69 | test/*/*.2 70 | test/*.mp4 71 | test/images/originalSideways.jpg.2 -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/accepts/.travis.yml: -------------------------------------------------------------------------------- 1 | node_js: 2 | - "0.10" 3 | - "0.11" 4 | language: node_js -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/accepts/Makefile: -------------------------------------------------------------------------------- 1 | BIN = ./node_modules/.bin/ 2 | 3 | test: 4 | @${BIN}mocha \ 5 | --require should \ 6 | --reporter spec 7 | 8 | .PHONY: test -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/accepts/node_modules/negotiator/lib/negotiator.js: -------------------------------------------------------------------------------- 1 | module.exports = Negotiator; 2 | Negotiator.Negotiator = Negotiator; 3 | 4 | function Negotiator(request) { 5 | if (!(this instanceof Negotiator)) return new Negotiator(request); 6 | this.request = request; 7 | } 8 | 9 | var set = { preferredCharset: [require('./charset.js'), 'accept-charset'], 10 | preferredEncoding: [require('./encoding.js'), 'accept-encoding'], 11 | preferredLanguage: [require('./language.js'), 'accept-language'], 12 | preferredMediaType: [require('./mediaType.js'), 'accept'] }; 13 | 14 | Object.keys(set).forEach(function (k) { 15 | var mh = set[k], 16 | method = mh[0], 17 | header = mh[1], 18 | singular = k, 19 | plural = k + 's'; 20 | 21 | Negotiator.prototype[plural] = function (available) { 22 | return method(this.request.headers[header], available); 23 | }; 24 | 25 | Negotiator.prototype[singular] = function(available) { 26 | var set = this[plural](available); 27 | if (set) return set[0]; 28 | }; 29 | }) 30 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/buffer-crc32/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /deployment/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 -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/cookie-signature/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/cookie-signature/History.md: -------------------------------------------------------------------------------- 1 | 1.0.3 / 2014-01-28 2 | ================== 3 | 4 | * fix for timing attacks 5 | 6 | 1.0.2 / 2014-01-28 7 | ================== 8 | 9 | * fix missing repository warning 10 | * fix typo in test 11 | 12 | 1.0.1 / 2013-04-15 13 | ================== 14 | 15 | * Revert "Changed underlying HMAC algo. to sha512." 16 | * Revert "Fix for timing attacks on MAC verification." 17 | 18 | 0.0.1 / 2010-01-03 19 | ================== 20 | 21 | * Initial release 22 | -------------------------------------------------------------------------------- /deployment/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 -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/cookie/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/cookie/LICENSE: -------------------------------------------------------------------------------- 1 | // MIT License 2 | 3 | Copyright (C) Roman Shtylman 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/cookie/test/mocha.opts: -------------------------------------------------------------------------------- 1 | --ui qunit 2 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/escape-html/.npmignore: -------------------------------------------------------------------------------- 1 | components 2 | build 3 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/escape-html/Makefile: -------------------------------------------------------------------------------- 1 | 2 | build: components index.js 3 | @component build 4 | 5 | components: 6 | @Component install 7 | 8 | clean: 9 | rm -fr build components template.js 10 | 11 | .PHONY: clean 12 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/escape-html/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # escape-html 3 | 4 | Escape HTML entities 5 | 6 | ## Example 7 | 8 | ```js 9 | var escape = require('escape-html'); 10 | escape(str); 11 | ``` 12 | 13 | ## License 14 | 15 | MIT -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/escape-html/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "escape-html", 3 | "description": "Escape HTML entities", 4 | "version": "1.0.1", 5 | "keywords": ["escape", "html", "utility"], 6 | "dependencies": {}, 7 | "scripts": [ 8 | "index.js" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/escape-html/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Escape special characters in the given string of html. 3 | * 4 | * @param {String} html 5 | * @return {String} 6 | * @api private 7 | */ 8 | 9 | module.exports = function(html) { 10 | return String(html) 11 | .replace(/&/g, '&') 12 | .replace(/"/g, '"') 13 | .replace(/'/g, ''') 14 | .replace(//g, '>'); 16 | } 17 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/escape-html/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "escape-html", 3 | "description": "Escape HTML entities", 4 | "version": "1.0.1", 5 | "keywords": [ 6 | "escape", 7 | "html", 8 | "utility" 9 | ], 10 | "dependencies": {}, 11 | "main": "index.js", 12 | "component": { 13 | "scripts": { 14 | "escape-html/index.js": "index.js" 15 | } 16 | }, 17 | "repository": { 18 | "type": "git", 19 | "url": "https://github.com/component/escape-html.git" 20 | }, 21 | "readme": "\n# escape-html\n\n Escape HTML entities\n\n## Example\n\n```js\nvar escape = require('escape-html');\nescape(str);\n```\n\n## License\n\n MIT", 22 | "readmeFilename": "Readme.md", 23 | "bugs": { 24 | "url": "https://github.com/component/escape-html/issues" 25 | }, 26 | "_id": "escape-html@1.0.1", 27 | "dist": { 28 | "shasum": "181a286ead397a39a92857cfb1d43052e356bff0" 29 | }, 30 | "_from": "escape-html@1.0.1", 31 | "_resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.1.tgz" 32 | } 33 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/fresh/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/fresh/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.2.1 / 2014-01-29 3 | ================== 4 | 5 | * fix: support max-age=0 for end-to-end revalidation 6 | 7 | 0.2.0 / 2013-08-11 8 | ================== 9 | 10 | * fix: return false for no-cache 11 | -------------------------------------------------------------------------------- /deployment/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 -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/merge-descriptors/.npmignore: -------------------------------------------------------------------------------- 1 | # Compiled source # 2 | ################### 3 | *.com 4 | *.class 5 | *.dll 6 | *.exe 7 | *.o 8 | *.so 9 | 10 | # Packages # 11 | ############ 12 | # it's better to unpack these files and commit the raw source 13 | # git has its own built in compression methods 14 | *.7z 15 | *.dmg 16 | *.gz 17 | *.iso 18 | *.jar 19 | *.rar 20 | *.tar 21 | *.zip 22 | 23 | # Logs and databases # 24 | ###################### 25 | *.log 26 | *.sql 27 | *.sqlite 28 | 29 | # OS generated files # 30 | ###################### 31 | .DS_Store* 32 | ehthumbs.db 33 | Icon? 34 | Thumbs.db 35 | 36 | # Node.js # 37 | ########### 38 | lib-cov 39 | *.seed 40 | *.log 41 | *.csv 42 | *.dat 43 | *.out 44 | *.pid 45 | *.gz 46 | 47 | pids 48 | logs 49 | results 50 | 51 | node_modules 52 | npm-debug.log 53 | 54 | # Components # 55 | ############## 56 | 57 | /build 58 | /components 59 | /vendors -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/merge-descriptors/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "merge-descriptors", 3 | "description": "Merge objects using descriptors", 4 | "version": "0.0.2", 5 | "scripts": [ 6 | "index.js" 7 | ], 8 | "repo": "component/merge-descriptors", 9 | "license": "MIT" 10 | } -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/merge-descriptors/index.js: -------------------------------------------------------------------------------- 1 | module.exports = function (dest, src) { 2 | Object.getOwnPropertyNames(src).forEach(function (name) { 3 | var descriptor = Object.getOwnPropertyDescriptor(src, name) 4 | Object.defineProperty(dest, name, descriptor) 5 | }) 6 | 7 | return dest 8 | } -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/methods/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.1.0 / 2013-10-28 3 | ================== 4 | 5 | * add http.METHODS support 6 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/methods/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # Methods 3 | 4 | HTTP verbs that node core's parser supports. 5 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/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 | "dist": { 28 | "shasum": "335d429eefd21b7bacf2e9c922a8d2bd14a30e4f" 29 | }, 30 | "_from": "methods@0.1.0", 31 | "_resolved": "https://registry.npmjs.org/methods/-/methods-0.1.0.tgz" 32 | } 33 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/parseurl/.npmignore: -------------------------------------------------------------------------------- 1 | # Compiled source # 2 | ################### 3 | *.com 4 | *.class 5 | *.dll 6 | *.exe 7 | *.o 8 | *.so 9 | 10 | # Packages # 11 | ############ 12 | # it's better to unpack these files and commit the raw source 13 | # git has its own built in compression methods 14 | *.7z 15 | *.dmg 16 | *.gz 17 | *.iso 18 | *.jar 19 | *.rar 20 | *.tar 21 | *.zip 22 | 23 | # Logs and databases # 24 | ###################### 25 | *.log 26 | *.sql 27 | *.sqlite 28 | 29 | # OS generated files # 30 | ###################### 31 | .DS_Store* 32 | # Icon? 33 | ehthumbs.db 34 | Thumbs.db 35 | 36 | # Node.js # 37 | ########### 38 | lib-cov 39 | *.seed 40 | *.log 41 | *.csv 42 | *.dat 43 | *.out 44 | *.pid 45 | *.gz 46 | 47 | pids 48 | logs 49 | results 50 | 51 | node_modules 52 | npm-debug.log 53 | 54 | # Components # 55 | ############## 56 | 57 | /build 58 | /components 59 | /public -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/parseurl/index.js: -------------------------------------------------------------------------------- 1 | 2 | var parse = require('url').parse; 3 | 4 | /** 5 | * Parse the `req` url with memoization. 6 | * 7 | * @param {ServerRequest} req 8 | * @return {Object} 9 | * @api private 10 | */ 11 | 12 | module.exports = function parseUrl(req){ 13 | var parsed = req._parsedUrl; 14 | if (parsed && parsed.href == req.url) { 15 | return parsed; 16 | } else { 17 | parsed = parse(req.url); 18 | 19 | if (parsed.auth && !parsed.protocol && ~parsed.href.indexOf('//')) { 20 | // This parses pathnames, and a strange pathname like //r@e should work 21 | parsed = parse(req.url.replace(/@/g, '%40')); 22 | } 23 | 24 | return req._parsedUrl = parsed; 25 | } 26 | }; 27 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/path-to-regexp/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/path-to-regexp/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.1.0 / 2014-03-06 3 | ================== 4 | 5 | * add options.end 6 | 7 | 0.0.2 / 2013-02-10 8 | ================== 9 | 10 | * Update to match current express 11 | * add .license property to component.json 12 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/path-to-regexp/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "path-to-regexp", 3 | "description": "Express style path to RegExp utility", 4 | "version": "0.1.0", 5 | "keywords": [ 6 | "express", 7 | "regexp", 8 | "route", 9 | "routing" 10 | ], 11 | "scripts": [ 12 | "index.js" 13 | ], 14 | "license": "MIT" 15 | } 16 | -------------------------------------------------------------------------------- /deployment/node_modules/express/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 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/qs/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .travis.yml 3 | benchmark.js 4 | component.json 5 | examples.js 6 | History.md 7 | Makefile 8 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/range-parser/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/range-parser/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.0 / 2013-12-11 3 | ================== 4 | 5 | * add repository to package.json 6 | * add MIT license 7 | 8 | 0.0.4 / 2012-06-17 9 | ================== 10 | 11 | * changed: ret -1 for unsatisfiable and -2 when invalid 12 | 13 | 0.0.3 / 2012-06-17 14 | ================== 15 | 16 | * fix last-byte-pos default to len - 1 17 | 18 | 0.0.2 / 2012-06-14 19 | ================== 20 | 21 | * add `.type` 22 | -------------------------------------------------------------------------------- /deployment/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 -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/send/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/send/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.2.0 / 2014-01-29 3 | ================== 4 | 5 | * update range-parser and fresh 6 | 7 | 0.1.4 / 2013-08-11 8 | ================== 9 | 10 | * update fresh 11 | 12 | 0.1.3 / 2013-07-08 13 | ================== 14 | 15 | * Revert "Fix fd leak" 16 | 17 | 0.1.2 / 2013-07-03 18 | ================== 19 | 20 | * Fix fd leak 21 | 22 | 0.1.0 / 2012-08-25 23 | ================== 24 | 25 | * add options parameter to send() that is passed to fs.createReadStream() [kanongil] 26 | 27 | 0.0.4 / 2012-08-16 28 | ================== 29 | 30 | * allow custom "Accept-Ranges" definition 31 | 32 | 0.0.3 / 2012-07-16 33 | ================== 34 | 35 | * fix normalization of the root directory. Closes #3 36 | 37 | 0.0.2 / 2012-07-09 38 | ================== 39 | 40 | * add passing of req explicitly for now (YUCK) 41 | 42 | 0.0.1 / 2010-01-03 43 | ================== 44 | 45 | * Initial release 46 | -------------------------------------------------------------------------------- /deployment/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 -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/send/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/send'); -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/send/lib/utils.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Return an ETag in the form of `"-"` 4 | * from the given `stat`. 5 | * 6 | * @param {Object} stat 7 | * @return {String} 8 | * @api private 9 | */ 10 | 11 | exports.etag = function(stat) { 12 | return '"' + stat.size + '-' + Number(stat.mtime) + '"'; 13 | }; 14 | 15 | /** 16 | * decodeURIComponent. 17 | * 18 | * Allows V8 to only deoptimize this fn instead of all 19 | * of send(). 20 | * 21 | * @param {String} path 22 | * @api private 23 | */ 24 | 25 | exports.decode = function(path){ 26 | try { 27 | return decodeURIComponent(path); 28 | } catch (err) { 29 | return -1; 30 | } 31 | }; 32 | 33 | /** 34 | * Escape the given string of `html`. 35 | * 36 | * @param {String} html 37 | * @return {String} 38 | * @api private 39 | */ 40 | 41 | exports.escape = function(html){ 42 | return String(html) 43 | .replace(/&(?!\w+;)/g, '&') 44 | .replace(//g, '>') 46 | .replace(/"/g, '"'); 47 | }; -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/serve-static/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/serve-static/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/serve-static/node_modules/send/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/serve-static/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 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/serve-static/node_modules/send/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec \ 6 | --bail 7 | 8 | .PHONY: test -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/serve-static/node_modules/send/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/send'); -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/serve-static/node_modules/send/lib/utils.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Return an ETag in the form of `"-"` 4 | * from the given `stat`. 5 | * 6 | * @param {Object} stat 7 | * @return {String} 8 | * @api private 9 | */ 10 | 11 | exports.etag = function(stat) { 12 | return '"' + stat.size + '-' + Number(stat.mtime) + '"'; 13 | }; 14 | 15 | /** 16 | * decodeURIComponent. 17 | * 18 | * Allows V8 to only deoptimize this fn instead of all 19 | * of send(). 20 | * 21 | * @param {String} path 22 | * @api private 23 | */ 24 | 25 | exports.decode = function(path){ 26 | try { 27 | return decodeURIComponent(path); 28 | } catch (err) { 29 | return -1; 30 | } 31 | }; 32 | 33 | /** 34 | * Escape the given string of `html`. 35 | * 36 | * @param {String} html 37 | * @return {String} 38 | * @api private 39 | */ 40 | 41 | exports.escape = function(html){ 42 | return String(html) 43 | .replace(/&(?!\w+;)/g, '&') 44 | .replace(//g, '>') 46 | .replace(/"/g, '"'); 47 | }; -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/serve-static/node_modules/send/node_modules/fresh/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/serve-static/node_modules/send/node_modules/fresh/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.2.0 / 2013-08-11 3 | ================== 4 | 5 | * fix: return false for no-cache 6 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/serve-static/node_modules/send/node_modules/fresh/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --reporter spec \ 5 | --require should 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/serve-static/node_modules/send/node_modules/range-parser/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/serve-static/node_modules/send/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 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/serve-static/node_modules/send/node_modules/range-parser/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --reporter spec \ 5 | --require should 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/type-is/.npmignore: -------------------------------------------------------------------------------- 1 | test.js -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/type-is/.travis.yml: -------------------------------------------------------------------------------- 1 | node_js: 2 | - "0.10" 3 | - "0.11" 4 | language: node_js -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/type-is/Makefile: -------------------------------------------------------------------------------- 1 | BIN = ./node_modules/.bin/ 2 | 3 | test: 4 | @${BIN}mocha \ 5 | --require should \ 6 | --reporter spec 7 | 8 | .PHONY: test -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/utils-merge/.travis.yml: -------------------------------------------------------------------------------- 1 | language: "node_js" 2 | node_js: 3 | - "0.4" 4 | - "0.6" 5 | - "0.8" 6 | - "0.10" 7 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/utils-merge/README.md: -------------------------------------------------------------------------------- 1 | # utils-merge 2 | 3 | Merges the properties from a source object into a destination object. 4 | 5 | ## Install 6 | 7 | $ npm install utils-merge 8 | 9 | ## Usage 10 | 11 | ```javascript 12 | var a = { foo: 'bar' } 13 | , b = { bar: 'baz' }; 14 | 15 | merge(a, b); 16 | // => { foo: 'bar', bar: 'baz' } 17 | ``` 18 | 19 | ## Tests 20 | 21 | $ npm install 22 | $ npm test 23 | 24 | [![Build Status](https://secure.travis-ci.org/jaredhanson/utils-merge.png)](http://travis-ci.org/jaredhanson/utils-merge) 25 | 26 | ## Credits 27 | 28 | - [Jared Hanson](http://github.com/jaredhanson) 29 | 30 | ## License 31 | 32 | [The MIT License](http://opensource.org/licenses/MIT) 33 | 34 | Copyright (c) 2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)> 35 | -------------------------------------------------------------------------------- /deployment/node_modules/express/node_modules/utils-merge/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Merge object b with object a. 3 | * 4 | * var a = { foo: 'bar' } 5 | * , b = { bar: 'baz' }; 6 | * 7 | * merge(a, b); 8 | * // => { foo: 'bar', bar: 'baz' } 9 | * 10 | * @param {Object} a 11 | * @param {Object} b 12 | * @return {Object} 13 | * @api public 14 | */ 15 | 16 | exports = module.exports = function(a, b){ 17 | if (a && b) { 18 | for (var key in b) { 19 | a[key] = b[key]; 20 | } 21 | } 22 | return a; 23 | }; 24 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | - 0.10 6 | services: 7 | - mongodb 8 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/examples/README.md: -------------------------------------------------------------------------------- 1 | 2 | This directory contains runnable sample mongoose programs. 3 | 4 | To run: 5 | 6 | - first install [Node.js](http://nodejs.org/) 7 | - from the command line, execute: `node example.js`, replacing "example.js" with the name of a program. 8 | 9 | 10 | Goal is to show: 11 | 12 | - global schemas 13 | - GeoJSON schemas / use (with crs) 14 | - text search 15 | - storing schemas as json 16 | - lean querires 17 | - statics 18 | - methods and statics on subdocs 19 | - custom types 20 | - querybuilder 21 | - promises 22 | - express + mongoose 23 | - accessing driver collection, db 24 | - connecting to replica sets 25 | - connecting to sharded clusters 26 | - enabling a fail fast mode 27 | - on the fly schemas 28 | - storing files 29 | - map reduce 30 | - aggregation 31 | - advanced hooks 32 | - using $elemMatch to return a subset of an array 33 | - query casting 34 | - upserts 35 | - pagination 36 | - express + mongoose session handling 37 | - group by (use aggregation) 38 | - authentication 39 | - schema migration techniques 40 | - converting documents to plain objects (show transforms) 41 | - how to $unset 42 | 43 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/index.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Export lib/mongoose 4 | * 5 | */ 6 | 7 | module.exports = require('./lib/'); 8 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/lib/drivers/SPEC.md: -------------------------------------------------------------------------------- 1 | 2 | # Driver Spec 3 | 4 | TODO 5 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/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 | var ObjectIdToString = ObjectId.toString.bind(ObjectId); 15 | module.exports = exports = ObjectId; 16 | 17 | ObjectId.fromString = function(str){ 18 | // patch native driver bug in V0.9.6.4 19 | if (!('string' === typeof str && 24 === str.length)) { 20 | throw new Error("Invalid ObjectId"); 21 | } 22 | 23 | return ObjectId.createFromHexString(str); 24 | }; 25 | 26 | ObjectId.toString = function(oid){ 27 | if (!arguments.length) return ObjectIdToString(); 28 | return oid.toHexString(); 29 | }; 30 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/lib/errors/cast.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Module dependencies. 3 | */ 4 | 5 | var MongooseError = require('../error'); 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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/lib/errors/document.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module requirements 4 | */ 5 | 6 | var MongooseError = require('../error') 7 | 8 | /** 9 | * Document Error 10 | * 11 | * @param {String} msg 12 | * @inherits MongooseError 13 | * @api private 14 | */ 15 | 16 | function DocumentError (msg) { 17 | MongooseError.call(this, msg); 18 | Error.captureStackTrace(this, arguments.callee); 19 | this.name = 'DocumentError'; 20 | }; 21 | 22 | /*! 23 | * Inherits from MongooseError. 24 | */ 25 | 26 | DocumentError.prototype.__proto__ = MongooseError.prototype; 27 | 28 | /*! 29 | * Module exports. 30 | */ 31 | 32 | module.exports = exports = DocumentError; 33 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/lib/errors/missingSchema.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | var MongooseError = require('../error'); 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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/lib/errors/overwriteModel.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | var MongooseError = require('../error'); 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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/lib/errors/validation.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module requirements 4 | */ 5 | 6 | var MongooseError = require('../error') 7 | 8 | /** 9 | * Document Validation Error 10 | * 11 | * @api private 12 | * @param {Document} instance 13 | * @inherits MongooseError 14 | */ 15 | 16 | function ValidationError (instance) { 17 | MongooseError.call(this, "Validation failed"); 18 | Error.captureStackTrace(this, arguments.callee); 19 | this.name = 'ValidationError'; 20 | this.errors = instance.errors = {}; 21 | }; 22 | 23 | /** 24 | * Console.log helper 25 | */ 26 | 27 | ValidationError.prototype.toString = function () { 28 | var ret = this.name + ': '; 29 | var msgs = []; 30 | 31 | Object.keys(this.errors).forEach(function (key) { 32 | if (this == this.errors[key]) return; 33 | msgs.push(String(this.errors[key])); 34 | }, this) 35 | 36 | return ret + msgs.join(', '); 37 | }; 38 | 39 | /*! 40 | * Inherits from MongooseError. 41 | */ 42 | 43 | ValidationError.prototype.__proto__ = MongooseError.prototype; 44 | 45 | /*! 46 | * Module exports 47 | */ 48 | 49 | module.exports = exports = ValidationError; 50 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/lib/errors/version.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | var MongooseError = require('../error'); 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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/lib/internal.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Dependencies 3 | */ 4 | 5 | var StateMachine = require('./statemachine') 6 | var ActiveRoster = StateMachine.ctor('require', 'modify', 'init', 'default') 7 | 8 | module.exports = exports = InternalCache; 9 | 10 | function InternalCache () { 11 | this.strictMode = undefined; 12 | this.selected = undefined; 13 | this.shardval = undefined; 14 | this.saveError = undefined; 15 | this.validationError = undefined; 16 | this.adhocPaths = undefined; 17 | this.removing = undefined; 18 | this.inserting = undefined; 19 | this.version = undefined; 20 | this.getters = {}; 21 | this._id = undefined; 22 | this.populate = undefined; // what we want to populate in this doc 23 | this.populated = undefined;// the _ids that have been populated 24 | this.wasPopulated = false; // if this doc was the result of a population 25 | this.scope = undefined; 26 | this.activePaths = new ActiveRoster; 27 | 28 | // embedded docs 29 | this.ownerDocument = undefined; 30 | this.fullPath = undefined; 31 | } 32 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/lib/queryhelpers.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies 4 | */ 5 | 6 | var utils = require('./utils') 7 | 8 | /*! 9 | * Prepare a set of path options for query population. 10 | * 11 | * @param {Query} query 12 | * @param {Object} options 13 | * @return {Array} 14 | */ 15 | 16 | exports.preparePopulationOptions = function preparePopulationOptions (query, options) { 17 | var pop = utils.object.vals(query.options.populate); 18 | 19 | // lean options should trickle through all queries 20 | if (options.lean) pop.forEach(makeLean); 21 | 22 | return pop; 23 | } 24 | 25 | /*! 26 | * Set each path query option to lean 27 | * 28 | * @param {Object} option 29 | */ 30 | 31 | function makeLean (option) { 32 | option.options || (option.options = {}); 33 | option.options.lean = true; 34 | } 35 | 36 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/lib/schema/embedded.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | var SchemaType = require('../schematype') 7 | , CastError = SchemaType.CastError 8 | , errorMessages = require('../error').messages 9 | , utils = require('../utils') 10 | , Document 11 | 12 | /** 13 | * EmbeddedDocument SchemaType constructor. 14 | * 15 | * @param {String} key 16 | * @param {Object} options 17 | * @inherits SchemaType 18 | * @api private 19 | */ 20 | 21 | function SchemaEmbedded (key, options, EmbeddedDoc, parentArray) { 22 | SchemaType.call(this, key, options, 'EmbeddedDocument'); 23 | this.EmbeddedDoc = EmbeddedDoc; 24 | this.parentArray = parentArray; 25 | }; 26 | 27 | /*! 28 | * Inherits from SchemaType. 29 | */ 30 | 31 | SchemaEmbedded.prototype.__proto__ = SchemaType.prototype; 32 | 33 | SchemaEmbedded.prototype.cast = function (value, doc, init) { 34 | return new this.EmbeddedDoc(value, this.parentArray); 35 | } 36 | 37 | /*! 38 | * Module exports. 39 | */ 40 | 41 | module.exports = SchemaEmbedded; 42 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/hooks/.npmignore: -------------------------------------------------------------------------------- 1 | **.swp 2 | node_modules 3 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/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 -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/mongodb'); 2 | -------------------------------------------------------------------------------- /deployment/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; -------------------------------------------------------------------------------- /deployment/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 -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/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 | } -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/.deps/Release/bson.node.d: -------------------------------------------------------------------------------- 1 | cmd_Release/bson.node := ./gyp-mac-tool flock ./Release/linker.lock c++ -shared -Wl,-search_paths_first -mmacosx-version-min=10.5 -arch x86_64 -L./Release -install_name @rpath/bson.node -o Release/bson.node Release/obj.target/bson/ext/bson.o -undefined dynamic_lookup 2 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/bson.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/bson.node -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/linker.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/linker.lock -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/obj.target/bson/ext/bson.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/obj.target/bson/ext/bson.o -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/binding.Makefile: -------------------------------------------------------------------------------- 1 | # This file is generated by gyp; do not edit. 2 | 3 | export builddir_name ?= build/./. 4 | .PHONY: all 5 | all: 6 | $(MAKE) bson 7 | -------------------------------------------------------------------------------- /deployment/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') -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/builderror.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/builderror.log -------------------------------------------------------------------------------- /deployment/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 -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/win32/ia32/bson.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/win32/ia32/bson.node -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/win32/x64/bson.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/win32/x64/bson.node -------------------------------------------------------------------------------- /deployment/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; -------------------------------------------------------------------------------- /deployment/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; -------------------------------------------------------------------------------- /deployment/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; -------------------------------------------------------------------------------- /deployment/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; -------------------------------------------------------------------------------- /deployment/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; -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/lib/bson/symbol.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON Symbol type. 3 | * 4 | * @class Represents the BSON Symbol type. 5 | * @param {String} value the string representing the symbol. 6 | * @return {Symbol} 7 | */ 8 | function Symbol(value) { 9 | if(!(this instanceof Symbol)) return new Symbol(value); 10 | this._bsontype = 'Symbol'; 11 | this.value = value; 12 | } 13 | 14 | /** 15 | * Access the wrapped string value. 16 | * 17 | * @return {String} returns the wrapped string. 18 | * @api public 19 | */ 20 | Symbol.prototype.valueOf = function() { 21 | return this.value; 22 | }; 23 | 24 | /** 25 | * @ignore 26 | * @api private 27 | */ 28 | Symbol.prototype.toString = function() { 29 | return this.value; 30 | } 31 | 32 | /** 33 | * @ignore 34 | * @api private 35 | */ 36 | Symbol.prototype.inspect = function() { 37 | return this.value; 38 | } 39 | 40 | /** 41 | * @ignore 42 | * @api private 43 | */ 44 | Symbol.prototype.toJSON = function() { 45 | return this.value; 46 | } 47 | 48 | exports.Symbol = Symbol; -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/tools/jasmine-1.1.0/jasmine_favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/deployment/node_modules/mongoose/node_modules/mongodb/node_modules/bson/tools/jasmine-1.1.0/jasmine_favicon.png -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/README.md: -------------------------------------------------------------------------------- 1 | kerberos 2 | ======== 3 | 4 | Kerberos library for node.js -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/.deps/Release/kerberos.node.d: -------------------------------------------------------------------------------- 1 | cmd_Release/kerberos.node := ./gyp-mac-tool flock ./Release/linker.lock c++ -shared -Wl,-search_paths_first -mmacosx-version-min=10.5 -arch x86_64 -L./Release -install_name @rpath/kerberos.node -o Release/kerberos.node Release/obj.target/kerberos/lib/kerberos.o Release/obj.target/kerberos/lib/worker.o Release/obj.target/kerberos/lib/kerberosgss.o Release/obj.target/kerberos/lib/base64.o Release/obj.target/kerberos/lib/kerberos_context.o -undefined dynamic_lookup -lkrb5 2 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/.deps/Release/obj.target/kerberos/lib/base64.o.d: -------------------------------------------------------------------------------- 1 | cmd_Release/obj.target/kerberos/lib/base64.o := cc '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__MACOSX_CORE__' '-DBUILDING_NODE_EXTENSION' -I/Users/david/.node-gyp/0.10.21/src -I/Users/david/.node-gyp/0.10.21/deps/uv/include -I/Users/david/.node-gyp/0.10.21/deps/v8/include -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/kerberos/lib/base64.o.d.raw -c -o Release/obj.target/kerberos/lib/base64.o ../lib/base64.c 2 | Release/obj.target/kerberos/lib/base64.o: ../lib/base64.c ../lib/base64.h 3 | ../lib/base64.c: 4 | ../lib/base64.h: 5 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/.deps/Release/obj.target/kerberos/lib/kerberosgss.o.d: -------------------------------------------------------------------------------- 1 | cmd_Release/obj.target/kerberos/lib/kerberosgss.o := cc '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__MACOSX_CORE__' '-DBUILDING_NODE_EXTENSION' -I/Users/david/.node-gyp/0.10.21/src -I/Users/david/.node-gyp/0.10.21/deps/uv/include -I/Users/david/.node-gyp/0.10.21/deps/v8/include -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/kerberos/lib/kerberosgss.o.d.raw -c -o Release/obj.target/kerberos/lib/kerberosgss.o ../lib/kerberosgss.c 2 | Release/obj.target/kerberos/lib/kerberosgss.o: ../lib/kerberosgss.c \ 3 | ../lib/kerberosgss.h ../lib/base64.h 4 | ../lib/kerberosgss.c: 5 | ../lib/kerberosgss.h: 6 | ../lib/base64.h: 7 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/kerberos.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/kerberos.node -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/linker.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/linker.lock -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/base64.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/base64.o -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/kerberos.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/kerberos.o -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/kerberos_context.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/kerberos_context.o -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/kerberosgss.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/kerberosgss.o -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/worker.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos/lib/worker.o -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/binding.Makefile: -------------------------------------------------------------------------------- 1 | # This file is generated by gyp; do not edit. 2 | 3 | export builddir_name ?= build/./. 4 | .PHONY: all 5 | all: 6 | $(MAKE) kerberos 7 | -------------------------------------------------------------------------------- /deployment/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 | } -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/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; -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/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 | } -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/lib/win32/worker.h: -------------------------------------------------------------------------------- 1 | #ifndef WORKER_H_ 2 | #define WORKER_H_ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | using namespace node; 9 | using namespace v8; 10 | 11 | class Worker { 12 | public: 13 | Worker(); 14 | virtual ~Worker(); 15 | 16 | // libuv's request struct. 17 | uv_work_t request; 18 | // Callback 19 | v8::Persistent callback; 20 | // Parameters 21 | void *parameters; 22 | // Results 23 | void *return_value; 24 | // Did we raise an error 25 | bool error; 26 | // The error message 27 | char *error_message; 28 | // Error code if not message 29 | int error_code; 30 | // Any return code 31 | int return_code; 32 | // Method we are going to fire 33 | void (*execute)(Worker *worker); 34 | Handle (*mapper)(Worker *worker); 35 | }; 36 | 37 | #endif // WORKER_H_ 38 | -------------------------------------------------------------------------------- /deployment/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; -------------------------------------------------------------------------------- /deployment/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; -------------------------------------------------------------------------------- /deployment/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; -------------------------------------------------------------------------------- /deployment/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; -------------------------------------------------------------------------------- /deployment/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 | } -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/lib/worker.h: -------------------------------------------------------------------------------- 1 | #ifndef WORKER_H_ 2 | #define WORKER_H_ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | using namespace node; 9 | using namespace v8; 10 | 11 | class Worker { 12 | public: 13 | Worker(); 14 | virtual ~Worker(); 15 | 16 | // libuv's request struct. 17 | uv_work_t request; 18 | // Callback 19 | v8::Persistent callback; 20 | // // Arguments 21 | // v8::Persistent arguments; 22 | // Parameters 23 | void *parameters; 24 | // Results 25 | void *return_value; 26 | // Did we raise an error 27 | bool error; 28 | // The error message 29 | char *error_message; 30 | // Error code if not message 31 | int error_code; 32 | // Any return code 33 | int return_code; 34 | // Method we are going to fire 35 | void (*execute)(Worker *worker); 36 | Handle (*mapper)(Worker *worker); 37 | }; 38 | 39 | #endif // WORKER_H_ 40 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/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 | } -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mpath/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mpath/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mpath/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @node_modules/mocha/bin/mocha -A $(T) 4 | 5 | .PHONY: test 6 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mpath/index.js: -------------------------------------------------------------------------------- 1 | module.exports = exports = require('./lib'); 2 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mpromise/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mpromise/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mpromise/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.2.1 / 2013-02-09 3 | ================== 4 | 5 | * fixed; conformancy with A+ 1.2 6 | 7 | 0.2.0 / 2013-01-09 8 | ================== 9 | 10 | * added; .end() 11 | * fixed; only catch handler executions 12 | 13 | 0.1.0 / 2013-01-08 14 | ================== 15 | 16 | * cleaned up API 17 | * customizable event names 18 | * docs 19 | 20 | 0.0.1 / 2013-01-07 21 | ================== 22 | 23 | * original release 24 | 25 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mpromise/index.js: -------------------------------------------------------------------------------- 1 | module.exports = exports = require('./lib/promise'); 2 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mpromise/node_modules/sliced/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mpromise/node_modules/sliced/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mpromise/node_modules/sliced/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.4 / 2013-01-07 3 | ================== 4 | 5 | * added component.json #1 [jkroso](https://github.com/jkroso) 6 | * reversed array loop #1 [jkroso](https://github.com/jkroso) 7 | * remove fn params 8 | 9 | 0.0.3 / 2012-09-29 10 | ================== 11 | 12 | * faster with negative start args 13 | 14 | 0.0.2 / 2012-09-29 15 | ================== 16 | 17 | * support full [].slice semantics 18 | 19 | 0.0.1 / 2012-09-29 20 | =================== 21 | 22 | * initial release 23 | 24 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mpromise/node_modules/sliced/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @time ./node_modules/.bin/mocha $(T) $(TESTS) 4 | 5 | .PHONY: test 6 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mpromise/node_modules/sliced/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sliced", 3 | "version": "0.0.3", 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 | "author": "Aaron Heckmann ", 12 | "license": "MIT" 13 | } 14 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mpromise/node_modules/sliced/index.js: -------------------------------------------------------------------------------- 1 | module.exports = exports = require('./lib/sliced'); 2 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/mpromise/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 () { 12 | var args = arguments[0]; 13 | var slice = arguments[1]; 14 | var sliceEnd = arguments[2]; 15 | 16 | var ret = []; 17 | var len = args.length; 18 | 19 | if (0 === len) return ret; 20 | 21 | var start = slice < 0 22 | ? Math.max(0, slice + len) 23 | : slice || 0; 24 | 25 | var end = 3 === arguments.length 26 | ? sliceEnd < 0 27 | ? sliceEnd + len 28 | : sliceEnd 29 | : len; 30 | 31 | while (end-- > start) { 32 | ret[end - start] = args[end]; 33 | } 34 | 35 | return ret; 36 | } 37 | 38 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/ms/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/muri/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/muri/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/muri/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.3.1 / 2013-02-17 3 | ================== 4 | 5 | * fixed; allow '#' in username and password #3 6 | 7 | 0.3.0 / 2013-01-14 8 | ================== 9 | 10 | * fixed; default db logic #2 11 | 12 | 0.2.0 / 2013-01-09 13 | ================== 14 | 15 | * changed; default db is now 'test' 16 | 17 | 0.1.0 / 2012-12-18 18 | ================== 19 | 20 | * changed; include .sock in UDS 21 | 22 | 0.0.5 / 2012-12-18 23 | ================== 24 | 25 | * fixed; unix domain sockets used with db names 26 | 27 | 0.0.4 / 2012-12-01 28 | ================== 29 | 30 | * handle multple specified protocols 31 | 32 | 0.0.3 / 2012-11-29 33 | ================== 34 | 35 | * validate mongodb:///db 36 | * more detailed error message 37 | 38 | 0.0.2 / 2012-11-02 39 | ================== 40 | 41 | * add readPreferenceTags support 42 | * add unix domain support 43 | 44 | 0.0.1 / 2012-11-01 45 | ================== 46 | 47 | * initial release 48 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/muri/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @node_modules/mocha/bin/mocha $(T) 4 | 5 | .PHONY: test 6 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/muri/index.js: -------------------------------------------------------------------------------- 1 | module.exports = exports = require('./lib'); 2 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/regexp-clone/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/regexp-clone/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.1 / 2013-04-17 3 | ================== 4 | 5 | * initial commit 6 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/sliced/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/sliced/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/sliced/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha $(T) $(TESTS) 4 | 5 | .PHONY: test 6 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/node_modules/mongoose/node_modules/sliced/index.js: -------------------------------------------------------------------------------- 1 | module.exports = exports = require('./lib/sliced'); 2 | -------------------------------------------------------------------------------- /deployment/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 | -------------------------------------------------------------------------------- /deployment/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 | req.on('end', function () { 8 | server.serve(req, res, function (err) { 9 | if (err) { 10 | console.error(err, req.url); 11 | res.writeHead(err.status, err.headers); 12 | res.end(); 13 | } 14 | }); 15 | }); 16 | req.resume(); 17 | }).listen(8088); 18 | 19 | console.error('now listening on http://localhost:8088'); 20 | open('http://localhost:8088'); 21 | -------------------------------------------------------------------------------- /deployment/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "simple-api", 3 | "version": "0.0.0", 4 | "description": "A simple API to work with links.", 5 | "main": "server.js", 6 | "dependencies": { 7 | "express": "~4.0.0", 8 | "mongoose": "~3.6.13", 9 | "body-parser": "~1.0.1" 10 | }, 11 | "scripts": { 12 | "test": "echo \"Error: no test specified\" && exit 1", 13 | "start": "node server.js" 14 | }, 15 | "author": "", 16 | "license": "BSD-2-Clause" 17 | } 18 | -------------------------------------------------------------------------------- /deployment/public/client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForJournalism/fj-javascript/9a2f9a323dd75a35b14a9705937d3687ba5ce5c2/deployment/public/client.js -------------------------------------------------------------------------------- /deployment/public/index.html: -------------------------------------------------------------------------------- 1 | My API --------------------------------------------------------------------------------