├── .gitignore
├── lib
├── docoomentdb
│ ├── node_modules
│ │ ├── mongodb
│ │ │ ├── .gitmodules
│ │ │ ├── node_modules
│ │ │ │ ├── bson
│ │ │ │ │ ├── builderror.log
│ │ │ │ │ ├── build
│ │ │ │ │ │ ├── Release
│ │ │ │ │ │ │ ├── linker.lock
│ │ │ │ │ │ │ ├── .deps
│ │ │ │ │ │ │ │ └── Release
│ │ │ │ │ │ │ │ │ ├── bson.node.d
│ │ │ │ │ │ │ │ │ └── obj.target
│ │ │ │ │ │ │ │ │ ├── bson.node.d
│ │ │ │ │ │ │ │ │ └── bson
│ │ │ │ │ │ │ │ │ └── ext
│ │ │ │ │ │ │ │ │ └── bson.o.d
│ │ │ │ │ │ │ ├── bson.node
│ │ │ │ │ │ │ └── obj.target
│ │ │ │ │ │ │ │ ├── bson.node
│ │ │ │ │ │ │ │ └── bson
│ │ │ │ │ │ │ │ └── ext
│ │ │ │ │ │ │ │ └── bson.o
│ │ │ │ │ │ └── binding.Makefile
│ │ │ │ │ ├── node_modules
│ │ │ │ │ │ └── nan
│ │ │ │ │ │ │ ├── include_dirs.js
│ │ │ │ │ │ │ ├── .dntrc
│ │ │ │ │ │ │ └── appveyor.yml
│ │ │ │ │ ├── .travis.yml
│ │ │ │ │ ├── ext
│ │ │ │ │ │ ├── win32
│ │ │ │ │ │ │ ├── ia32
│ │ │ │ │ │ │ │ └── bson.node
│ │ │ │ │ │ │ └── x64
│ │ │ │ │ │ │ │ └── bson.node
│ │ │ │ │ │ ├── Makefile
│ │ │ │ │ │ ├── wscript
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── build_browser.js
│ │ │ │ │ ├── tools
│ │ │ │ │ │ ├── jasmine-1.1.0
│ │ │ │ │ │ │ ├── jasmine_favicon.png
│ │ │ │ │ │ │ └── MIT.LICENSE
│ │ │ │ │ │ └── gleak.js
│ │ │ │ │ ├── lib
│ │ │ │ │ │ └── bson
│ │ │ │ │ │ │ ├── min_key.js
│ │ │ │ │ │ │ ├── max_key.js
│ │ │ │ │ │ │ ├── code.js
│ │ │ │ │ │ │ ├── double.js
│ │ │ │ │ │ │ ├── db_ref.js
│ │ │ │ │ │ │ ├── symbol.js
│ │ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── Makefile
│ │ │ │ │ ├── browser_build
│ │ │ │ │ │ └── package.json
│ │ │ │ │ ├── binding.gyp
│ │ │ │ │ └── package.json
│ │ │ │ ├── kerberos
│ │ │ │ │ ├── builderror.log
│ │ │ │ │ ├── build
│ │ │ │ │ │ ├── Release
│ │ │ │ │ │ │ ├── linker.lock
│ │ │ │ │ │ │ ├── kerberos.node
│ │ │ │ │ │ │ ├── .deps
│ │ │ │ │ │ │ │ └── Release
│ │ │ │ │ │ │ │ │ ├── kerberos.node.d
│ │ │ │ │ │ │ │ │ └── obj.target
│ │ │ │ │ │ │ │ │ └── kerberos.node.d
│ │ │ │ │ │ │ └── obj.target
│ │ │ │ │ │ │ │ └── kerberos.node
│ │ │ │ │ │ ├── binding.Makefile
│ │ │ │ │ │ └── kerberos.target.mk
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── lib
│ │ │ │ │ │ ├── worker.cc
│ │ │ │ │ │ ├── win32
│ │ │ │ │ │ │ ├── worker.cc
│ │ │ │ │ │ │ ├── wrappers
│ │ │ │ │ │ │ │ ├── security_context.js
│ │ │ │ │ │ │ │ ├── security_buffer_descriptor.js
│ │ │ │ │ │ │ │ ├── security_buffer.js
│ │ │ │ │ │ │ │ ├── security_credentials.js
│ │ │ │ │ │ │ │ ├── security_buffer_descriptor.h
│ │ │ │ │ │ │ │ ├── security_buffer.h
│ │ │ │ │ │ │ │ └── security_credentials.h
│ │ │ │ │ │ │ ├── base64.h
│ │ │ │ │ │ │ ├── worker.h
│ │ │ │ │ │ │ ├── kerberos.h
│ │ │ │ │ │ │ └── kerberos.cc
│ │ │ │ │ │ ├── sspi.js
│ │ │ │ │ │ ├── base64.h
│ │ │ │ │ │ ├── worker.h
│ │ │ │ │ │ ├── kerberos_context.h
│ │ │ │ │ │ └── kerberos.h
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── test
│ │ │ │ │ │ ├── win32
│ │ │ │ │ │ │ ├── security_buffer_tests.js
│ │ │ │ │ │ │ ├── security_buffer_descriptor_tests.js
│ │ │ │ │ │ │ └── security_credentials_tests.js
│ │ │ │ │ │ ├── kerberos_win32_test.js
│ │ │ │ │ │ └── kerberos_tests.js
│ │ │ │ │ ├── binding.gyp
│ │ │ │ │ └── package.json
│ │ │ │ └── readable-stream
│ │ │ │ │ ├── node_modules
│ │ │ │ │ ├── string_decoder
│ │ │ │ │ │ ├── .npmignore
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ └── package.json
│ │ │ │ │ ├── inherits
│ │ │ │ │ │ ├── inherits.js
│ │ │ │ │ │ ├── test.js
│ │ │ │ │ │ ├── inherits_browser.js
│ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ └── README.md
│ │ │ │ │ ├── core-util-is
│ │ │ │ │ │ ├── README.md
│ │ │ │ │ │ └── package.json
│ │ │ │ │ └── isarray
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── component.json
│ │ │ │ │ │ └── README.md
│ │ │ │ │ ├── .npmignore
│ │ │ │ │ ├── duplex.js
│ │ │ │ │ ├── transform.js
│ │ │ │ │ ├── writable.js
│ │ │ │ │ ├── passthrough.js
│ │ │ │ │ ├── readable.js
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── lib
│ │ │ │ │ └── _stream_passthrough.js
│ │ │ │ │ └── package.json
│ │ │ ├── index.js
│ │ │ ├── .travis.yml
│ │ │ ├── Makefile
│ │ │ ├── lib
│ │ │ │ └── mongodb
│ │ │ │ │ ├── commands
│ │ │ │ │ └── base_command.js
│ │ │ │ │ ├── connection
│ │ │ │ │ ├── connection_utils.js
│ │ │ │ │ ├── server_capabilities.js
│ │ │ │ │ └── repl_set
│ │ │ │ │ │ └── repl_set_state.js
│ │ │ │ │ └── index.js
│ │ │ └── CONTRIBUTING.md
│ │ ├── mpromise
│ │ │ ├── .idea
│ │ │ │ ├── .name
│ │ │ │ ├── scopes
│ │ │ │ │ └── scope_settings.xml
│ │ │ │ ├── encodings.xml
│ │ │ │ ├── other.xml
│ │ │ │ ├── vcs.xml
│ │ │ │ ├── misc.xml
│ │ │ │ ├── inspectionProfiles
│ │ │ │ │ ├── profiles_settings.xml
│ │ │ │ │ └── Project_Default.xml
│ │ │ │ ├── modules.xml
│ │ │ │ ├── jsLibraryMappings.xml
│ │ │ │ ├── libraries
│ │ │ │ │ └── Node_js_Dependencies_for_mpromise.xml
│ │ │ │ ├── mpromise.iml
│ │ │ │ └── codeStyleSettings.xml
│ │ │ ├── .npmignore
│ │ │ ├── index.js
│ │ │ ├── .travis.yml
│ │ │ ├── test
│ │ │ │ ├── promise.domain.test.js
│ │ │ │ └── promises.Aplus.js
│ │ │ ├── LICENSE
│ │ │ └── History.md
│ │ ├── mquery
│ │ │ ├── test
│ │ │ │ ├── collection
│ │ │ │ │ ├── browser.js
│ │ │ │ │ ├── mongo.js
│ │ │ │ │ └── node.js
│ │ │ │ ├── utils.js
│ │ │ │ └── env.js
│ │ │ ├── .npmignore
│ │ │ ├── Makefile
│ │ │ ├── .travis.yml
│ │ │ ├── node_modules
│ │ │ │ └── debug
│ │ │ │ │ └── index.js
│ │ │ ├── lib
│ │ │ │ ├── collection
│ │ │ │ │ ├── index.js
│ │ │ │ │ └── collection.js
│ │ │ │ ├── env.js
│ │ │ │ └── permissions.js
│ │ │ └── LICENSE
│ │ ├── ms
│ │ │ ├── .npmignore
│ │ │ ├── Makefile
│ │ │ ├── test
│ │ │ │ ├── index.html
│ │ │ │ └── test.js
│ │ │ ├── ms.js
│ │ │ └── README.md
│ │ ├── hooks
│ │ │ ├── .npmignore
│ │ │ └── Makefile
│ │ ├── mpath
│ │ │ ├── .npmignore
│ │ │ ├── index.js
│ │ │ ├── .travis.yml
│ │ │ ├── Makefile
│ │ │ ├── History.md
│ │ │ └── LICENSE
│ │ ├── muri
│ │ │ ├── .npmignore
│ │ │ ├── index.js
│ │ │ ├── .travis.yml
│ │ │ ├── Makefile
│ │ │ ├── History.md
│ │ │ ├── LICENSE
│ │ │ └── README.md
│ │ ├── sliced
│ │ │ ├── .npmignore
│ │ │ ├── index.js
│ │ │ ├── .travis.yml
│ │ │ ├── Makefile
│ │ │ ├── component.json
│ │ │ ├── lib
│ │ │ │ └── sliced.js
│ │ │ ├── History.md
│ │ │ └── LICENSE
│ │ └── regexp-clone
│ │ │ ├── .npmignore
│ │ │ ├── .travis.yml
│ │ │ ├── History.md
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ ├── LICENSE
│ │ │ └── package.json
│ ├── lib
│ │ ├── drivers
│ │ │ ├── SPEC.md
│ │ │ └── node-mongodb-native
│ │ │ │ ├── binary.js
│ │ │ │ └── objectid.js
│ │ ├── types
│ │ │ ├── index.js
│ │ │ └── objectid.js
│ │ ├── schema
│ │ │ ├── index.js
│ │ │ ├── mixed.js
│ │ │ └── boolean.js
│ │ ├── connectionstate.js
│ │ ├── error
│ │ │ ├── version.js
│ │ │ ├── overwriteModel.js
│ │ │ ├── missingSchema.js
│ │ │ ├── cast.js
│ │ │ ├── validator.js
│ │ │ ├── validation.js
│ │ │ ├── divergentArray.js
│ │ │ └── messages.js
│ │ ├── schemadefault.js
│ │ ├── internal.js
│ │ ├── error.js
│ │ └── queryhelpers.js
│ ├── examples
│ │ ├── express
│ │ │ ├── README.md
│ │ │ └── connection-sharing
│ │ │ │ ├── README.md
│ │ │ │ ├── modelA.js
│ │ │ │ ├── package.json
│ │ │ │ ├── app.js
│ │ │ │ └── routes.js
│ │ ├── schema
│ │ │ └── storing-schemas-as-json
│ │ │ │ ├── schema.json
│ │ │ │ └── index.js
│ │ ├── lean
│ │ │ ├── package.json
│ │ │ ├── person.js
│ │ │ └── lean.js
│ │ ├── promises
│ │ │ ├── package.json
│ │ │ └── person.js
│ │ ├── aggregate
│ │ │ ├── package.json
│ │ │ └── person.js
│ │ ├── geospatial
│ │ │ ├── package.json
│ │ │ ├── geoJSONSchema.js
│ │ │ ├── person.js
│ │ │ └── geoJSONexample.js
│ │ ├── mapreduce
│ │ │ ├── package.json
│ │ │ └── person.js
│ │ ├── replicasets
│ │ │ ├── package.json
│ │ │ ├── person.js
│ │ │ └── replica-sets.js
│ │ ├── querybuilder
│ │ │ ├── package.json
│ │ │ ├── person.js
│ │ │ └── querybuilder.js
│ │ ├── globalschemas
│ │ │ ├── person.js
│ │ │ └── gs_example.js
│ │ ├── statics
│ │ │ ├── person.js
│ │ │ └── statics.js
│ │ ├── README.md
│ │ ├── doc-methods.js
│ │ └── population
│ │ │ └── population-basic.js
│ ├── index.js
│ ├── README.md
│ └── package.json
├── types
│ ├── objectid.js
│ └── index.js
├── connectionstate.js
├── schema
│ ├── index.js
│ ├── mixed.js
│ └── boolean.js
├── error
│ ├── version.js
│ ├── overwriteModel.js
│ ├── missingSchema.js
│ ├── cast.js
│ ├── validator.js
│ ├── validation.js
│ ├── divergentArray.js
│ └── messages.js
├── internal.js
├── error.js
└── queryhelpers.js
├── index.js
├── .travis.yml
├── test
├── test-query.js
└── test.js
└── package.json
/.gitignore:
--------------------------------------------------------------------------------
1 | test/config.js
2 | node_modules/
3 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/.gitmodules:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 |
2 | module.exports = require('./lib/');
3 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/.idea/.name:
--------------------------------------------------------------------------------
1 | mpromise
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mquery/test/collection/browser.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mquery/test/collection/mongo.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/ms/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.11"
4 | - "0.10"
--------------------------------------------------------------------------------
/lib/docoomentdb/lib/drivers/SPEC.md:
--------------------------------------------------------------------------------
1 |
2 | # Driver Spec
3 |
4 | TODO
5 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/hooks/.npmignore:
--------------------------------------------------------------------------------
1 | **.swp
2 | node_modules
3 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/bson/builderror.log:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/kerberos/builderror.log:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpath/.npmignore:
--------------------------------------------------------------------------------
1 | *.sw*
2 | node_modules/
3 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/muri/.npmignore:
--------------------------------------------------------------------------------
1 | *.sw*
2 | node_modules/
3 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/express/README.md:
--------------------------------------------------------------------------------
1 | Mongoose + Express examples
2 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mquery/.npmignore:
--------------------------------------------------------------------------------
1 | *.sw*
2 | node_modules/
3 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/sliced/.npmignore:
--------------------------------------------------------------------------------
1 | *.sw*
2 | node_modules/
3 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/bson/build/Release/linker.lock:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/regexp-clone/.npmignore:
--------------------------------------------------------------------------------
1 | *.sw*
2 | node_modules/
3 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/kerberos/build/Release/linker.lock:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib/mongodb');
2 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpath/index.js:
--------------------------------------------------------------------------------
1 | module.exports = exports = require('./lib');
2 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/.npmignore:
--------------------------------------------------------------------------------
1 | *.sw*
2 | node_modules/
3 | .DS_Store
4 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/muri/index.js:
--------------------------------------------------------------------------------
1 | module.exports = exports = require('./lib');
2 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpath/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.6
4 | - 0.8
5 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/index.js:
--------------------------------------------------------------------------------
1 | module.exports = exports = require('./lib/promise');
2 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/muri/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.6
4 | - 0.8
5 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/sliced/index.js:
--------------------------------------------------------------------------------
1 | module.exports = exports = require('./lib/sliced');
2 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/sliced/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.6
4 | - 0.8
5 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.8
4 | - 0.10
5 | - 0.11
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/node_modules/string_decoder/.npmignore:
--------------------------------------------------------------------------------
1 | build
2 | test
3 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpath/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @node_modules/mocha/bin/mocha -A $(T)
4 |
5 | .PHONY: test
6 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.8
4 | - 0.10
5 | - 0.11
6 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/muri/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @node_modules/mocha/bin/mocha $(T)
4 |
5 | .PHONY: test
6 |
--------------------------------------------------------------------------------
/lib/docoomentdb/index.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Export lib/mongoose
4 | *
5 | */
6 |
7 | module.exports = require('./lib/');
8 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/kerberos/README.md:
--------------------------------------------------------------------------------
1 | kerberos
2 | ========
3 |
4 | Kerberos library for node.js
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/.npmignore:
--------------------------------------------------------------------------------
1 | build/
2 | test/
3 | examples/
4 | fs.js
5 | zlib.js
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mquery/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @./node_modules/.bin/mocha $(T) $(TESTS)
4 |
5 | .PHONY: test
6 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/regexp-clone/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.6
4 | - 0.8
5 | - 0.10
6 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/sliced/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @./node_modules/.bin/mocha $(T) $(TESTS)
4 |
5 | .PHONY: test
6 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/duplex.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_duplex.js")
2 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/regexp-clone/History.md:
--------------------------------------------------------------------------------
1 |
2 | 0.0.1 / 2013-04-17
3 | ==================
4 |
5 | * initial commit
6 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/transform.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_transform.js")
2 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/writable.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_writable.js")
2 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/passthrough.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_passthrough.js")
2 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/bson/node_modules/nan/include_dirs.js:
--------------------------------------------------------------------------------
1 | console.log(require('path').relative('.', __dirname));
2 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/node_modules/inherits/inherits.js:
--------------------------------------------------------------------------------
1 | module.exports = require('util').inherits
2 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/regexp-clone/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @./node_modules/.bin/mocha $(T) --async-only $(TESTS)
4 |
5 | .PHONY: test
6 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mquery/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.8
4 | - 0.10
5 | - 0.11
6 | services:
7 | - mongodb
8 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/kerberos/lib/worker.cc:
--------------------------------------------------------------------------------
1 | #include "worker.h"
2 |
3 | Worker::Worker() {
4 | }
5 |
6 | Worker::~Worker() {
7 | }
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/bson/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.10 # development version of 0.8, may be unstable
4 | - 0.11
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/kerberos/lib/win32/worker.cc:
--------------------------------------------------------------------------------
1 | #include "worker.h"
2 |
3 | Worker::Worker() {
4 | }
5 |
6 | Worker::~Worker() {
7 | }
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mquery/test/utils.js:
--------------------------------------------------------------------------------
1 |
2 | var utils = require('../lib/utils');
3 |
4 | describe('utils', function(){
5 | // TODO
6 | })
7 |
8 |
9 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/node_modules/core-util-is/README.md:
--------------------------------------------------------------------------------
1 | # core-util-is
2 |
3 | The `util.is*` functions introduced in Node v0.12.
4 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/express/connection-sharing/README.md:
--------------------------------------------------------------------------------
1 |
2 | To run:
3 |
4 | - Execute `npm install` from this directory
5 | - Execute `node app.js`
6 | - Navigate to `localhost:8000`
7 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/bson/build/Release/.deps/Release/bson.node.d:
--------------------------------------------------------------------------------
1 | cmd_Release/bson.node := rm -rf "Release/bson.node" && cp -af "Release/obj.target/bson.node" "Release/bson.node"
2 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/bson/build/Release/bson.node:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gian788/docooment/HEAD/lib/docoomentdb/node_modules/mongodb/node_modules/bson/build/Release/bson.node
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/bson/ext/win32/ia32/bson.node:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gian788/docooment/HEAD/lib/docoomentdb/node_modules/mongodb/node_modules/bson/ext/win32/ia32/bson.node
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/bson/ext/win32/x64/bson.node:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gian788/docooment/HEAD/lib/docoomentdb/node_modules/mongodb/node_modules/bson/ext/win32/x64/bson.node
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mquery/node_modules/debug/index.js:
--------------------------------------------------------------------------------
1 | if ('undefined' == typeof window) {
2 | module.exports = require('./lib/debug');
3 | } else {
4 | module.exports = require('./debug');
5 | }
6 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/kerberos/build/Release/kerberos.node:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gian788/docooment/HEAD/lib/docoomentdb/node_modules/mongodb/node_modules/kerberos/build/Release/kerberos.node
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/node_modules/isarray/index.js:
--------------------------------------------------------------------------------
1 | module.exports = Array.isArray || function (arr) {
2 | return Object.prototype.toString.call(arr) == '[object Array]';
3 | };
4 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/.idea/scopes/scope_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/bson/build/Release/obj.target/bson.node:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gian788/docooment/HEAD/lib/docoomentdb/node_modules/mongodb/node_modules/bson/build/Release/obj.target/bson.node
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/express/connection-sharing/modelA.js:
--------------------------------------------------------------------------------
1 |
2 | var Schema = require('../../../lib').Schema;
3 | var mySchema = Schema({ name: String });
4 |
5 | // db is global
6 | module.exports = db.model('MyModel', mySchema);
7 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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')
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/kerberos/build/Release/.deps/Release/kerberos.node.d:
--------------------------------------------------------------------------------
1 | cmd_Release/kerberos.node := rm -rf "Release/kerberos.node" && cp -af "Release/obj.target/kerberos.node" "Release/kerberos.node"
2 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/bson/build/Release/obj.target/bson/ext/bson.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gian788/docooment/HEAD/lib/docoomentdb/node_modules/mongodb/node_modules/bson/build/Release/obj.target/bson/ext/bson.o
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/bson/tools/jasmine-1.1.0/jasmine_favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gian788/docooment/HEAD/lib/docoomentdb/node_modules/mongodb/node_modules/bson/tools/jasmine-1.1.0/jasmine_favicon.png
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos.node:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gian788/docooment/HEAD/lib/docoomentdb/node_modules/mongodb/node_modules/kerberos/build/Release/obj.target/kerberos.node
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/.idea/other.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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;
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/schema/storing-schemas-as-json/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "count": "number",
3 | "unit": "number",
4 | "description": "string",
5 | "links": ["string"],
6 | "created": "date",
7 | "additive": "boolean",
8 | "user_id": "ObjectId"
9 | }
10 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 | }
--------------------------------------------------------------------------------
/lib/types/objectid.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * ObjectId type constructor
4 | *
5 | * ####Example
6 | *
7 | * var id = new docooment.Types.ObjectId;
8 | *
9 | * @constructor ObjectId
10 | */
11 |
12 | var ObjectId = require('bson').BSONPure.ObjectID;
13 | module.exports = ObjectId;
14 |
15 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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;
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/kerberos/build/Release/.deps/Release/obj.target/kerberos.node.d:
--------------------------------------------------------------------------------
1 | cmd_Release/obj.target/kerberos.node := flock ./Release/linker.lock g++ -shared -pthread -rdynamic -m64 -Wl,-soname=kerberos.node -o Release/obj.target/kerberos.node -Wl,--start-group -Wl,--end-group
2 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/bson/build/Release/.deps/Release/obj.target/bson.node.d:
--------------------------------------------------------------------------------
1 | cmd_Release/obj.target/bson.node := flock ./Release/linker.lock g++ -shared -pthread -rdynamic -m64 -Wl,-soname=bson.node -o Release/obj.target/bson.node -Wl,--start-group Release/obj.target/bson/ext/bson.o -Wl,--end-group
2 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/.idea/inspectionProfiles/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mquery/lib/collection/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var env = require('../env')
4 |
5 | if ('unknown' == env.type) {
6 | throw new Error('Unknown environment')
7 | }
8 |
9 | module.exports =
10 | env.isNode ? require('./node') :
11 | env.isMongo ? require('./mongo') :
12 | require('./browser');
13 |
14 |
--------------------------------------------------------------------------------
/lib/types/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Module exports.
3 | */
4 |
5 | exports.Array = require('./array');
6 | //exports.Buffer = require('./buffer');
7 |
8 | exports.Document = // @deprecate
9 | exports.Embedded = require('./embedded');
10 |
11 | exports.DocumentArray = require('./documentarray');
12 | exports.ObjectId = require('./objectid');
13 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/lib/docoomentdb/lib/drivers/node-mongodb-native/objectid.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * [node-mongodb-native](https://github.com/mongodb/node-mongodb-native) ObjectId
4 | * @constructor NodeMongoDbObjectId
5 | * @see ObjectId
6 | */
7 |
8 | var ObjectId = require('mongodb').BSONPure.ObjectID;
9 |
10 | /*!
11 | * ignore
12 | */
13 |
14 | module.exports = exports = ObjectId;
15 |
16 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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;
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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;
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/lean/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lean-example",
3 | "private": "true",
4 | "version": "0.0.0",
5 | "description": "deps for lean example",
6 | "main": "lean.js",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1"
9 | },
10 | "dependencies": { "async": "*" },
11 | "repository": "",
12 | "author": "",
13 | "license": "BSD"
14 | }
15 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/promises/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "promise-example",
3 | "private": "true",
4 | "version": "0.0.0",
5 | "description": "deps for promise example",
6 | "main": "promise.js",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1"
9 | },
10 | "dependencies": { "async": "*" },
11 | "repository": "",
12 | "author": "",
13 | "license": "BSD"
14 | }
15 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/aggregate/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "aggregate-example",
3 | "private": "true",
4 | "version": "0.0.0",
5 | "description": "deps for aggregate example",
6 | "main": "aggregate.js",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1"
9 | },
10 | "dependencies": { "async": "*" },
11 | "repository": "",
12 | "author": "",
13 | "license": "BSD"
14 | }
15 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/geospatial/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "geospatial-example",
3 | "private": "true",
4 | "version": "0.0.0",
5 | "description": "deps for geospatial example",
6 | "main": "geospatial.js",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1"
9 | },
10 | "dependencies": { "async": "*" },
11 | "repository": "",
12 | "author": "",
13 | "license": "BSD"
14 | }
15 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/mapreduce/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "map-reduce-example",
3 | "private": "true",
4 | "version": "0.0.0",
5 | "description": "deps for map reduce example",
6 | "main": "mapreduce.js",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1"
9 | },
10 | "dependencies": { "async": "*" },
11 | "repository": "",
12 | "author": "",
13 | "license": "BSD"
14 | }
15 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/replicasets/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "replica-set-example",
3 | "private": "true",
4 | "version": "0.0.0",
5 | "description": "deps for replica set example",
6 | "main": "querybuilder.js",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1"
9 | },
10 | "dependencies": { "async": "*" },
11 | "repository": "",
12 | "author": "",
13 | "license": "BSD"
14 | }
15 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/querybuilder/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "query-builder-example",
3 | "private": "true",
4 | "version": "0.0.0",
5 | "description": "deps for query builder example",
6 | "main": "querybuilder.js",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1"
9 | },
10 | "dependencies": { "async": "*" },
11 | "repository": "",
12 | "author": "",
13 | "license": "BSD"
14 | }
15 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/express/connection-sharing/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "connection-sharing",
3 | "private": "true",
4 | "version": "0.0.0",
5 | "description": "ERROR: No README.md file found!",
6 | "main": "app.js",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1"
9 | },
10 | "dependencies": { "express": "3.1.1" },
11 | "repository": "",
12 | "author": "",
13 | "license": "BSD"
14 | }
15 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/promises/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date
13 | });
14 | mongoose.model('Person', PersonSchema);
15 | };
16 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/querybuilder/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date
13 | });
14 | mongoose.model('Person', PersonSchema);
15 | };
16 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/replicasets/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date
13 | });
14 | mongoose.model('Person', PersonSchema);
15 | };
16 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/globalschemas/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date
13 | });
14 | mongoose.model('Person', PersonSchema);
15 | };
16 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/mapreduce/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date,
13 | gender: String
14 | });
15 | mongoose.model('Person', PersonSchema);
16 | };
17 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/lean/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date,
13 | gender: String,
14 | likes: [String]
15 | });
16 | mongoose.model('Person', PersonSchema);
17 | };
18 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/aggregate/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date,
13 | gender: String,
14 | likes: [String]
15 | });
16 | mongoose.model('Person', PersonSchema);
17 | };
18 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/.idea/libraries/Node_js_Dependencies_for_mpromise.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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;
--------------------------------------------------------------------------------
/lib/docoomentdb/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 | 'include_dirs': [ '
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mquery/test/env.js:
--------------------------------------------------------------------------------
1 |
2 | var assert = require('assert')
3 | var env = require('../').env;
4 |
5 | console.log('environment: %s', env.type);
6 |
7 | var col;
8 | switch (env.type) {
9 | case 'node':
10 | col = require('./collection/node');
11 | break;
12 | case 'mongo':
13 | col = require('./collection/mongo');
14 | case 'browser':
15 | col = require('./collection/browser');
16 | default:
17 | throw new Error('missing collection implementation for environment: ' + env.type);
18 | }
19 |
20 | module.exports = exports = col;
21 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/express/connection-sharing/routes.js:
--------------------------------------------------------------------------------
1 |
2 | var model = require('./modelA')
3 |
4 | exports.home = function (req, res, next) {
5 | model.find(function (err, docs) {
6 | if (err) return next(err);
7 | res.send(docs);
8 | })
9 | }
10 |
11 | exports.modelName = function (req, res) {
12 | res.send('my model name is ' + model.modelName);
13 | }
14 |
15 | exports.insert = function (req, res, next) {
16 | model.create({ name: 'inserting ' + Date.now() }, function (err, doc) {
17 | if (err) return next(err);
18 | res.send(doc);
19 | })
20 | }
21 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/node_modules/string_decoder/README.md:
--------------------------------------------------------------------------------
1 | **string_decoder.js** (`require('string_decoder')`) from Node.js core
2 |
3 | Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details.
4 |
5 | Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.**
6 |
7 | The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version.
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/statics/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date
13 | });
14 |
15 | // define a static
16 | PersonSchema.statics.findPersonByName = function (name, cb) {
17 | this.find({ name : new RegExp(name, 'i') }, cb);
18 | };
19 |
20 | mongoose.model('Person', PersonSchema);
21 | };
22 |
--------------------------------------------------------------------------------
/lib/connectionstate.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Connection states
3 | */
4 |
5 | var STATES = module.exports = exports = Object.create(null);
6 |
7 | var disconnected = 'disconnected';
8 | var connected = 'connected';
9 | var connecting = 'connecting';
10 | var disconnecting = 'disconnecting';
11 | var uninitialized = 'uninitialized';
12 |
13 | STATES[0] = disconnected;
14 | STATES[1] = connected;
15 | STATES[2] = connecting;
16 | STATES[3] = disconnecting;
17 | STATES[99] = uninitialized;
18 |
19 | STATES[disconnected] = 0;
20 | STATES[connected] = 1;
21 | STATES[connecting] = 2;
22 | STATES[disconnecting] = 3;
23 | STATES[uninitialized] = 99;
24 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/node_modules/isarray/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name" : "isarray",
3 | "description" : "Array#isArray for older browsers",
4 | "version" : "0.0.1",
5 | "repository" : "juliangruber/isarray",
6 | "homepage": "https://github.com/juliangruber/isarray",
7 | "main" : "index.js",
8 | "scripts" : [
9 | "index.js"
10 | ],
11 | "dependencies" : {},
12 | "keywords": ["browser","isarray","array"],
13 | "author": {
14 | "name": "Julian Gruber",
15 | "email": "mail@juliangruber.com",
16 | "url": "http://juliangruber.com"
17 | },
18 | "license": "MIT"
19 | }
20 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/error/version.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module dependencies.
4 | */
5 |
6 | var DocoomentError = require('../error.js');
7 |
8 | /**
9 | * Version Error constructor.
10 | *
11 | * @inherits DocoomentError
12 | * @api private
13 | */
14 |
15 | function VersionError () {
16 | DocoomentError.call(this, 'No matching document found.');
17 | Error.captureStackTrace(this, arguments.callee);
18 | this.name = 'VersionError';
19 | };
20 |
21 | /*!
22 | * Inherits from DocoomentError.
23 | */
24 |
25 | VersionError.prototype.__proto__ = DocoomentError.prototype;
26 |
27 | /*!
28 | * exports
29 | */
30 |
31 | module.exports = VersionError;
32 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/lib/error/version.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module dependencies.
4 | */
5 |
6 | var MongooseError = require('../error.js');
7 |
8 | /**
9 | * Version Error constructor.
10 | *
11 | * @inherits MongooseError
12 | * @api private
13 | */
14 |
15 | function VersionError () {
16 | MongooseError.call(this, 'No matching document found.');
17 | Error.captureStackTrace(this, arguments.callee);
18 | this.name = 'VersionError';
19 | };
20 |
21 | /*!
22 | * Inherits from MongooseError.
23 | */
24 |
25 | VersionError.prototype.__proto__ = MongooseError.prototype;
26 |
27 | /*!
28 | * exports
29 | */
30 |
31 | module.exports = VersionError;
32 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/.idea/mpromise.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/lib/error/overwriteModel.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module dependencies.
4 | */
5 |
6 | var DocoomentError = require('../error.js');
7 |
8 | /*!
9 | * OverwriteModel Error constructor.
10 | *
11 | * @inherits DocoomentError
12 | */
13 |
14 | function OverwriteModelError (name) {
15 | DocoomentError.call(this, 'Cannot overwrite `' + name + '` model once compiled.');
16 | Error.captureStackTrace(this, arguments.callee);
17 | this.name = 'OverwriteModelError';
18 | };
19 |
20 | /*!
21 | * Inherits from DocoomentError.
22 | */
23 |
24 | OverwriteModelError.prototype.__proto__ = DocoomentError.prototype;
25 |
26 | /*!
27 | * exports
28 | */
29 |
30 | module.exports = OverwriteModelError;
31 |
--------------------------------------------------------------------------------
/lib/docoomentdb/lib/error/overwriteModel.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module dependencies.
4 | */
5 |
6 | var MongooseError = require('../error.js');
7 |
8 | /*!
9 | * OverwriteModel Error constructor.
10 | *
11 | * @inherits MongooseError
12 | */
13 |
14 | function OverwriteModelError (name) {
15 | MongooseError.call(this, 'Cannot overwrite `' + name + '` model once compiled.');
16 | Error.captureStackTrace(this, arguments.callee);
17 | this.name = 'OverwriteModelError';
18 | };
19 |
20 | /*!
21 | * Inherits from MongooseError.
22 | */
23 |
24 | OverwriteModelError.prototype.__proto__ = MongooseError.prototype;
25 |
26 | /*!
27 | * exports
28 | */
29 |
30 | module.exports = OverwriteModelError;
31 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/node_modules/inherits/test.js:
--------------------------------------------------------------------------------
1 | var inherits = require('./inherits.js')
2 | var assert = require('assert')
3 |
4 | function test(c) {
5 | assert(c.constructor === Child)
6 | assert(c.constructor.super_ === Parent)
7 | assert(Object.getPrototypeOf(c) === Child.prototype)
8 | assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype)
9 | assert(c instanceof Child)
10 | assert(c instanceof Parent)
11 | }
12 |
13 | function Child() {
14 | Parent.call(this)
15 | test(this)
16 | }
17 |
18 | function Parent() {}
19 |
20 | inherits(Child, Parent)
21 |
22 | var c = new Child
23 | test(c)
24 |
25 | console.log('ok')
26 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 | var Code = function Code(code, scope) {
10 | if(!(this instanceof Code)) return new Code(code, scope);
11 | this._bsontype = 'Code';
12 | this.code = code;
13 | this.scope = scope == null ? {} : scope;
14 | };
15 |
16 | /**
17 | * @ignore
18 | * @api private
19 | */
20 | Code.prototype.toJSON = function() {
21 | return {scope:this.scope, code:this.code};
22 | }
23 |
24 | exports.Code = Code;
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/geospatial/geoJSONSchema.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | // NOTE : This object must conform *precisely* to the geoJSON specification
10 | // you cannot embed a geoJSON doc inside a model or anything like that- IT
11 | // MUST BE VANILLA
12 | var LocationObject = new Schema({
13 | loc: {
14 | type: { type: String },
15 | coordinates: []
16 | }
17 | });
18 | // define the index
19 | LocationObject.index({ loc : '2dsphere' });
20 |
21 | mongoose.model('Location', LocationObject);
22 | };
23 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/test/test-query.js:
--------------------------------------------------------------------------------
1 | var queryComposer = require('../lib/querycomposer');
2 |
3 | var select = {
4 | /*firstName: 'Gianluca',
5 | id: {$in: [1, 2, 3]},
6 | age: {$gt: 18, $lt: 30, $ne: 25},
7 | score: {$gte: 5, $lte: 10,},
8 | lastName: {$ne: 'Pengo'},
9 | city: {$nin: ['Milano', 'Roma']},
10 | interest: {$all: ['travel', 'sport']},
11 | visitedCity: {$elementMatch: ['london', 'paris', 'madrid']},
12 | likes: {$size: 3},
13 | banned: {$exist: true},
14 | date: {$type: 'date'},
15 | qty: {$mod: [4,0]},
16 | fullName: {$regex: /gian/},*/
17 | $not: {qty: {$mod: [4,0]}}
18 |
19 | };
20 |
21 | var fields = {
22 | // firstName: 1,
23 | lastName: 0,
24 | // subs: {$slice: 2},
25 | }
26 |
27 |
28 | console.log(queryComposer.composeQuery(select, fields, model));
--------------------------------------------------------------------------------
/lib/docoomentdb/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
--------------------------------------------------------------------------------
/lib/error/missingSchema.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module dependencies.
4 | */
5 |
6 | var DocoomentError = require('../error.js');
7 |
8 | /*!
9 | * MissingSchema Error constructor.
10 | *
11 | * @inherits DocoomentError
12 | */
13 |
14 | function MissingSchemaError (name) {
15 | var msg = 'Schema hasn\'t been registered for model "' + name + '".\n'
16 | + 'Use Docooment.model(name, schema)';
17 | DocoomentError.call(this, msg);
18 | Error.captureStackTrace(this, arguments.callee);
19 | this.name = 'MissingSchemaError';
20 | };
21 |
22 | /*!
23 | * Inherits from DocoomentError.
24 | */
25 |
26 | MissingSchemaError.prototype.__proto__ = DocoomentError.prototype;
27 |
28 | /*!
29 | * exports
30 | */
31 |
32 | module.exports = MissingSchemaError;
33 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/schema/storing-schemas-as-json/index.js:
--------------------------------------------------------------------------------
1 |
2 | // modules
3 | var mongoose = require('../../../lib')
4 | var Schema = mongoose.Schema;
5 |
6 | // parse json
7 | var raw = require('./schema.json');
8 |
9 | // create a schema
10 | var timeSignatureSchema = Schema(raw);
11 |
12 | // compile the model
13 | var TimeSignature = mongoose.model('TimeSignatures', timeSignatureSchema);
14 |
15 | // create a TimeSignature document
16 | var threeFour = new TimeSignature({
17 | count: 3
18 | , unit: 4
19 | , description: "3/4"
20 | , additive: false
21 | , created: new Date
22 | , links: ["http://en.wikipedia.org/wiki/Time_signature"]
23 | , user_id: "518d31a0ef32bbfa853a9814"
24 | });
25 |
26 | // print its description
27 | console.log(threeFour)
28 |
--------------------------------------------------------------------------------
/lib/docoomentdb/lib/error/missingSchema.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module dependencies.
4 | */
5 |
6 | var MongooseError = require('../error.js');
7 |
8 | /*!
9 | * MissingSchema Error constructor.
10 | *
11 | * @inherits MongooseError
12 | */
13 |
14 | function MissingSchemaError (name) {
15 | var msg = 'Schema hasn\'t been registered for model "' + name + '".\n'
16 | + 'Use mongoose.model(name, schema)';
17 | MongooseError.call(this, msg);
18 | Error.captureStackTrace(this, arguments.callee);
19 | this.name = 'MissingSchemaError';
20 | };
21 |
22 | /*!
23 | * Inherits from MongooseError.
24 | */
25 |
26 | MissingSchemaError.prototype.__proto__ = MongooseError.prototype;
27 |
28 | /*!
29 | * exports
30 | */
31 |
32 | module.exports = MissingSchemaError;
33 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mquery/lib/env.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | exports.isNode = 'undefined' != typeof process
4 | && 'object' == typeof module
5 | && 'object' == typeof global
6 | && 'function' == typeof Buffer
7 | && process.argv
8 |
9 | exports.isMongo = !exports.isNode
10 | && 'function' == typeof printjson
11 | && 'function' == typeof ObjectId
12 | && 'function' == typeof rs
13 | && 'function' == typeof sh;
14 |
15 | exports.isBrowser = !exports.isNode
16 | && !exports.isMongo
17 | && 'undefined' != typeof window;
18 |
19 | exports.type = exports.isNode ? 'node'
20 | : exports.isMongo ? 'mongo'
21 | : exports.isBrowser ? 'browser'
22 | : 'unknown'
23 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mquery/test/collection/node.js:
--------------------------------------------------------------------------------
1 |
2 | var assert = require('assert')
3 | var slice = require('sliced')
4 | var mongo = require('mongodb')
5 | var utils = require('../../').utils;
6 |
7 | var uri = process.env.MQUERY_URI || 'mongodb://localhost/mquery';
8 | var db;
9 |
10 | exports.getCollection = function (cb) {
11 | mongo.Db.connect(uri, function (err, db_) {
12 | assert.ifError(err);
13 | db = db_;
14 |
15 | var collection = db.collection('stuff');
16 | collection.opts.safe = true;
17 |
18 | // clean test db before starting
19 | db.dropDatabase(function () {
20 | cb(null, collection);
21 | });
22 | })
23 | }
24 |
25 | exports.dropCollection = function (cb) {
26 | db.dropDatabase(function () {
27 | db.close(cb);
28 | })
29 | }
30 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/error/cast.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Module dependencies.
3 | */
4 |
5 | var DocoomentError = require('../error.js');
6 |
7 | /**
8 | * Casting Error constructor.
9 | *
10 | * @param {String} type
11 | * @param {String} value
12 | * @inherits DocoomentError
13 | * @api private
14 | */
15 |
16 | function CastError (type, value, path) {
17 | DocoomentError.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 DocoomentError.
27 | */
28 |
29 | CastError.prototype.__proto__ = DocoomentError.prototype;
30 |
31 | /*!
32 | * exports
33 | */
34 |
35 | module.exports = CastError;
36 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 | }
--------------------------------------------------------------------------------
/lib/docoomentdb/lib/error/cast.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Module dependencies.
3 | */
4 |
5 | var MongooseError = require('../error.js');
6 |
7 | /**
8 | * Casting Error constructor.
9 | *
10 | * @param {String} type
11 | * @param {String} value
12 | * @inherits MongooseError
13 | * @api private
14 | */
15 |
16 | function CastError (type, value, path) {
17 | MongooseError.call(this, 'Cast to ' + type + ' failed for value "' + value + '" at path "' + path + '"');
18 | Error.captureStackTrace(this, arguments.callee);
19 | this.name = 'CastError';
20 | this.type = type;
21 | this.value = value;
22 | this.path = path;
23 | };
24 |
25 | /*!
26 | * Inherits from MongooseError.
27 | */
28 |
29 | CastError.prototype.__proto__ = MongooseError.prototype;
30 |
31 | /*!
32 | * exports
33 | */
34 |
35 | module.exports = CastError;
36 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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;
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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;
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/node_modules/inherits/inherits_browser.js:
--------------------------------------------------------------------------------
1 | if (typeof Object.create === 'function') {
2 | // implementation from standard node.js 'util' module
3 | module.exports = function inherits(ctor, superCtor) {
4 | ctor.super_ = superCtor
5 | ctor.prototype = Object.create(superCtor.prototype, {
6 | constructor: {
7 | value: ctor,
8 | enumerable: false,
9 | writable: true,
10 | configurable: true
11 | }
12 | });
13 | };
14 | } else {
15 | // old school shim for old browsers
16 | module.exports = function inherits(ctor, superCtor) {
17 | ctor.super_ = superCtor
18 | var TempCtor = function () {}
19 | TempCtor.prototype = superCtor.prototype
20 | ctor.prototype = new TempCtor()
21 | ctor.prototype.constructor = ctor
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/geospatial/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date,
13 | gender: String,
14 | likes: [String],
15 | // define the geospatial field
16 | loc: { type : [Number], index: '2d' }
17 | });
18 |
19 | // define a method to find the closest person
20 | PersonSchema.methods.findClosest = function(cb) {
21 | return this.model('Person').find({
22 | loc : { $nearSphere : this.loc },
23 | name : { $ne : this.name }
24 | }).limit(1).exec(cb);
25 | };
26 |
27 | mongoose.model('Person', PersonSchema);
28 | };
29 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mquery/lib/collection/collection.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /**
4 | * methods a collection must implement
5 | */
6 |
7 | var names = 'find findOne update remove count distict findAndModify aggregate';
8 | var methods = names.split(' ');
9 |
10 | /**
11 | * Collection base class from which implementations inherit
12 | */
13 |
14 | function Collection () {}
15 |
16 | for (var i = 0, len = methods.length; i < len; ++i) {
17 | var method = methods[i];
18 | Collection.prototype[method] = notImplemented(method);
19 | }
20 |
21 | module.exports = exports = Collection;
22 | Collection.methods = methods;
23 |
24 | /**
25 | * creates a function which throws an implementation error
26 | */
27 |
28 | function notImplemented (method) {
29 | return function () {
30 | throw new Error('collection.' + method + ' not implemented');
31 | }
32 | }
33 |
34 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/node_modules/inherits/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 | PERFORMANCE OF THIS SOFTWARE.
16 |
17 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/test/promise.domain.test.js:
--------------------------------------------------------------------------------
1 | var Promise = require('../')
2 | , Domain = require('domain')
3 | , assert = require('assert');
4 |
5 | var next = 'function' == typeof setImmediate
6 | ? setImmediate
7 | : process.nextTick;
8 |
9 | describe("domains", function () {
10 | it("exceptions should not breakout of domain bounderies", function (done) {
11 | if (process.version.indexOf('v0.8') == 0) return done();
12 | var d = Domain.create();
13 | d.once('error', function (err) {
14 | assert.equal(err.message, 'gaga');
15 | done()
16 | });
17 |
18 | var p = new Promise();
19 |
20 | d.run(function () {
21 | p.then(function () {
22 |
23 | }).then(function () {
24 | throw new Error('gaga');
25 | }).end();
26 | });
27 |
28 | next(function () {
29 | p.fulfill();
30 | })
31 | });
32 | });
33 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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;
--------------------------------------------------------------------------------
/lib/docoomentdb/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 | #ifndef BASE64_H
17 | #define BASE64_H
18 |
19 | char *base64_encode(const unsigned char *value, int vlen);
20 | unsigned char *base64_decode(const char *value, int *rlen);
21 |
22 | #endif
--------------------------------------------------------------------------------
/lib/docoomentdb/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;
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/bson/node_modules/nan/.dntrc:
--------------------------------------------------------------------------------
1 | ## DNT config file
2 | ## see https://github.com/rvagg/dnt
3 |
4 | NODE_VERSIONS="\
5 | master \
6 | v0.11.13 \
7 | v0.10.30 \
8 | v0.10.29 \
9 | v0.10.28 \
10 | v0.10.26 \
11 | v0.10.25 \
12 | v0.10.24 \
13 | v0.10.23 \
14 | v0.10.22 \
15 | v0.10.21 \
16 | v0.10.20 \
17 | v0.10.19 \
18 | v0.8.28 \
19 | v0.8.27 \
20 | v0.8.26 \
21 | v0.8.24 \
22 | "
23 | OUTPUT_PREFIX="nan-"
24 | TEST_CMD=" \
25 | cd /dnt/ && \
26 | npm install && \
27 | node_modules/.bin/node-gyp --nodedir /usr/src/node/ rebuild --directory test && \
28 | node_modules/.bin/tap --gc test/js/*-test.js \
29 | "
30 |
31 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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;
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/bson/node_modules/nan/appveyor.yml:
--------------------------------------------------------------------------------
1 | # http://www.appveyor.com/docs/appveyor-yml
2 |
3 | # Test against these versions of Node.js.
4 | environment:
5 | matrix:
6 | - nodejs_version: "0.8"
7 | - nodejs_version: "0.10"
8 | - nodejs_version: "0.11"
9 |
10 | # Install scripts. (runs after repo cloning)
11 | install:
12 | # Get the latest stable version of Node 0.STABLE.latest
13 | - npm install npm
14 | - move node_modules npm
15 | - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
16 | # Typical npm stuff.
17 | - npm/.bin/npm install
18 | - npm/.bin/npm run rebuild-tests
19 |
20 | # Post-install test scripts.
21 | test_script:
22 | # Output useful info for debugging.
23 | - node --version
24 | - npm --version
25 | - cmd: npm test
26 |
27 | # Don't actually build.
28 | build: off
29 |
30 | # Set build version format here instead of in the admin panel.
31 | version: "{build}"
32 |
33 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/statics/statics.js:
--------------------------------------------------------------------------------
1 |
2 | var mongoose = require('../../lib');
3 |
4 |
5 | // import the schema
6 | require('./person.js')();
7 |
8 | // grab the person model object
9 | var Person = mongoose.model("Person");
10 |
11 | // connect to a server to do a quick write / read example
12 |
13 | mongoose.connect('mongodb://localhost/persons', function(err) {
14 | if (err) throw err;
15 |
16 | Person.create({
17 | name : 'bill',
18 | age : 25,
19 | birthday : new Date().setFullYear((new Date().getFullYear() - 25))
20 | }, function (err, bill) {
21 | if (err) throw err;
22 | console.log("People added to db: %s", bill.toString());
23 |
24 | // using the static
25 | Person.findPersonByName('bill', function(err, result) {
26 | if (err) throw err;
27 |
28 | console.log(result);
29 | cleanup();
30 | });
31 | });
32 | });
33 |
34 | function cleanup() {
35 | Person.remove(function() {
36 | mongoose.disconnect();
37 | });
38 | }
39 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/test/promises.Aplus.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Module dependencies.
3 | */
4 |
5 | var Promise = require('../lib/promise');
6 | var aplus = require('promises-aplus-tests');
7 |
8 | // tests
9 |
10 | var adapter = {};
11 | adapter.fulfilled = function (value) {
12 | var p = new Promise;
13 | p.fulfill(value);
14 | return p;
15 | };
16 | adapter.rejected = function (reason) {
17 | var p = new Promise;
18 | p.reject(reason);
19 | return p;
20 | }
21 | adapter.deferred = function () {
22 | var p = new Promise;
23 | return {
24 | promise: p, reject: p.reject.bind(p), resolve: p.fulfill.bind(p)
25 | }
26 | }
27 |
28 | it("run A+ suite", function (done) {
29 | this.timeout(60000);
30 | aplus(adapter, {
31 | reporter: 'spec', slow: 1
32 |
33 | // , bail:true
34 | // , grep:'2.3.1: If `promise` and `x` refer to the same object, reject `promise` with a `TypeError` as the reason. via return from a fulfilled promise'
35 | }, function (err) {
36 | done(err);
37 | });
38 | });
39 |
40 |
--------------------------------------------------------------------------------
/lib/internal.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Dependencies
3 | */
4 |
5 | var StateMachine = require('./statemachine')
6 | var ActiveRoster = StateMachine.ctor('require', 'modify', 'init', 'default', 'ignore');
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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/lib/internal.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Dependencies
3 | */
4 |
5 | var StateMachine = require('./statemachine')
6 | var ActiveRoster = StateMachine.ctor('require', 'modify', 'init', 'default', 'ignore');
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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/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;
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/node_modules/core-util-is/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "core-util-is",
3 | "version": "1.0.1",
4 | "description": "The `util.is*` functions introduced in Node v0.12.",
5 | "main": "lib/util.js",
6 | "repository": {
7 | "type": "git",
8 | "url": "git://github.com/isaacs/core-util-is"
9 | },
10 | "keywords": [
11 | "util",
12 | "isBuffer",
13 | "isArray",
14 | "isNumber",
15 | "isString",
16 | "isRegExp",
17 | "isThis",
18 | "isThat",
19 | "polyfill"
20 | ],
21 | "author": {
22 | "name": "Isaac Z. Schlueter",
23 | "email": "i@izs.me",
24 | "url": "http://blog.izs.me/"
25 | },
26 | "license": "MIT",
27 | "bugs": {
28 | "url": "https://github.com/isaacs/core-util-is/issues"
29 | },
30 | "readme": "# core-util-is\n\nThe `util.is*` functions introduced in Node v0.12.\n",
31 | "readmeFilename": "README.md",
32 | "homepage": "https://github.com/isaacs/core-util-is",
33 | "_id": "core-util-is@1.0.1",
34 | "_from": "core-util-is@~1.0.0",
35 | "scripts": {}
36 | }
37 |
--------------------------------------------------------------------------------
/lib/error/validator.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Module dependencies.
3 | */
4 |
5 | var DocoomentError = require('../error.js');
6 | var errorMessages = DocoomentError.messages;
7 |
8 | /**
9 | * Schema validator error
10 | *
11 | * @param {String} path
12 | * @param {String} msg
13 | * @param {String|Number|any} val
14 | * @inherits DocoomentError
15 | * @api private
16 | */
17 |
18 | function ValidatorError (path, msg, type, val) {
19 | if (!msg) msg = errorMessages.general.default;
20 | var message = this.formatMessage(msg, path, type, val);
21 | DocoomentError.call(this, message);
22 | Error.captureStackTrace(this, arguments.callee);
23 | this.name = 'ValidatorError';
24 | this.path = path;
25 | this.type = type;
26 | this.value = val;
27 | };
28 |
29 | /*!
30 | * toString helper
31 | */
32 |
33 | ValidatorError.prototype.toString = function () {
34 | return this.message;
35 | }
36 |
37 | /*!
38 | * Inherits from DocoomentError
39 | */
40 |
41 | ValidatorError.prototype.__proto__ = DocoomentError.prototype;
42 |
43 | /*!
44 | * exports
45 | */
46 |
47 | module.exports = ValidatorError;
48 |
--------------------------------------------------------------------------------
/lib/docoomentdb/lib/error/validator.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Module dependencies.
3 | */
4 |
5 | var MongooseError = require('../error.js');
6 | var errorMessages = MongooseError.messages;
7 |
8 | /**
9 | * Schema validator error
10 | *
11 | * @param {String} path
12 | * @param {String} msg
13 | * @param {String|Number|any} val
14 | * @inherits MongooseError
15 | * @api private
16 | */
17 |
18 | function ValidatorError (path, msg, type, val) {
19 | if (!msg) msg = errorMessages.general.default;
20 | var message = this.formatMessage(msg, path, type, val);
21 | MongooseError.call(this, message);
22 | Error.captureStackTrace(this, arguments.callee);
23 | this.name = 'ValidatorError';
24 | this.path = path;
25 | this.type = type;
26 | this.value = val;
27 | };
28 |
29 | /*!
30 | * toString helper
31 | */
32 |
33 | ValidatorError.prototype.toString = function () {
34 | return this.message;
35 | }
36 |
37 | /*!
38 | * Inherits from MongooseError
39 | */
40 |
41 | ValidatorError.prototype.__proto__ = MongooseError.prototype;
42 |
43 | /*!
44 | * exports
45 | */
46 |
47 | module.exports = ValidatorError;
48 |
--------------------------------------------------------------------------------
/lib/error/validation.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module requirements
4 | */
5 |
6 | var DocoomentError = require('../error.js')
7 |
8 | /**
9 | * Document Validation Error
10 | *
11 | * @api private
12 | * @param {Document} instance
13 | * @inherits DocoomentError
14 | */
15 |
16 | function ValidationError (instance) {
17 | DocoomentError.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 DocoomentError.
41 | */
42 |
43 | ValidationError.prototype.__proto__ = DocoomentError.prototype;
44 |
45 | /*!
46 | * Module exports
47 | */
48 |
49 | module.exports = exports = ValidationError;
50 |
--------------------------------------------------------------------------------
/lib/docoomentdb/lib/error/validation.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module requirements
4 | */
5 |
6 | var MongooseError = require('../error.js')
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 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/globalschemas/gs_example.js:
--------------------------------------------------------------------------------
1 |
2 | var mongoose = require('../../lib');
3 |
4 |
5 | // import the global schema, this can be done in any file that needs the model
6 | require('./person.js')();
7 |
8 | // grab the person model object
9 | var Person = mongoose.model("Person");
10 |
11 | // connect to a server to do a quick write / read example
12 |
13 | mongoose.connect('mongodb://localhost/persons', function(err) {
14 | if (err) throw err;
15 |
16 | Person.create({
17 | name : 'bill',
18 | age : 25,
19 | birthday : new Date().setFullYear((new Date().getFullYear() - 25))
20 | }, function (err, bill) {
21 | if (err) throw err;
22 | console.log("People added to db: %s", bill.toString());
23 | Person.find({}, function(err, people) {
24 | if (err) throw err;
25 |
26 | people.forEach(function(person) {
27 | console.log("People in the db: %s", person.toString());
28 | });
29 |
30 | // make sure to clean things up after we're done
31 | setTimeout(function () { cleanup(); }, 2000);
32 | });
33 | });
34 | });
35 |
36 | function cleanup() {
37 | Person.remove(function() {
38 | mongoose.disconnect();
39 | });
40 | }
41 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/bson/tools/jasmine-1.1.0/MIT.LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2008-2011 Pivotal Labs
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright Joyent, Inc. and other Node contributors. All rights reserved.
2 | Permission is hereby granted, free of charge, to any person obtaining a copy
3 | of this software and associated documentation files (the "Software"), to
4 | deal in the Software without restriction, including without limitation the
5 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
6 | sell copies of the Software, and to permit persons to whom the Software is
7 | furnished to do so, subject to the following conditions:
8 |
9 | The above copyright notice and this permission notice shall be included in
10 | all copies or substantial portions of the Software.
11 |
12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
18 | IN THE SOFTWARE.
19 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/lib/mongodb/connection/connection_utils.js:
--------------------------------------------------------------------------------
1 | exports.setIntegerParameter = function(object, field, defaultValue) {
2 | if(object[field] == null) {
3 | object[field] = defaultValue;
4 | } else if(typeof object[field] !== "number" && object[field] !== parseInt(object[field], 10)) {
5 | throw "object field [" + field + "] must be a numeric integer value, attempted to set to [" + object[field] + "] type of [" + typeof object[field] + "]";
6 | }
7 | }
8 |
9 | exports.setBooleanParameter = function(object, field, defaultValue) {
10 | if(object[field] == null) {
11 | object[field] = defaultValue;
12 | } else if(typeof object[field] !== "boolean") {
13 | throw "object field [" + field + "] must be a boolean value, attempted to set to [" + object[field] + "] type of [" + typeof object[field] + "]";
14 | }
15 | }
16 |
17 | exports.setStringParameter = function(object, field, defaultValue) {
18 | if(object[field] == null) {
19 | object[field] = defaultValue;
20 | } else if(typeof object[field] !== "string") {
21 | throw "object field [" + field + "] must be a string value, attempted to set to [" + object[field] + "] type of [" + typeof object[field] + "]";
22 | }
23 | }
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpath/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2012 [Aaron Heckmann](aaron.heckmann+github@gmail.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mpromise/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2012 [Aaron Heckmann](aaron.heckmann+github@gmail.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mquery/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2012 [Aaron Heckmann](aaron.heckmann+github@gmail.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/muri/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2012 [Aaron Heckmann](aaron.heckmann+github@gmail.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/sliced/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2012 [Aaron Heckmann](aaron.heckmann+github@gmail.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/regexp-clone/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2013 [Aaron Heckmann](aaron.heckmann+github@gmail.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/readable-stream/node_modules/string_decoder/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright Joyent, Inc. and other Node contributors.
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a
4 | copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to permit
8 | persons to whom the Software is furnished to do so, subject to the
9 | following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included
12 | in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
17 | NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
19 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20 | USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/kerberos/test/kerberos_tests.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 object'] = function(test) {
10 | var Kerberos = require('../lib/kerberos.js').Kerberos;
11 | var kerberos = new Kerberos();
12 | // console.dir(kerberos)
13 |
14 | // Initiate kerberos client
15 | kerberos.authGSSClientInit('mongodb@kdc.10gen.me', Kerberos.GSS_C_MUTUAL_FLAG, function(err, context) {
16 | console.log("===================================== authGSSClientInit")
17 | test.equal(null, err);
18 | test.ok(context != null && typeof context == 'object');
19 | // console.log("===================================== authGSSClientInit")
20 | console.dir(err)
21 | console.dir(context)
22 | // console.dir(typeof result)
23 |
24 | // Perform the first step
25 | kerberos.authGSSClientStep(context, function(err, result) {
26 | console.log("===================================== authGSSClientStep")
27 | console.dir(err)
28 | console.dir(result)
29 | console.dir(context)
30 |
31 | test.done();
32 | });
33 | });
34 | }
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/kerberos/build/kerberos.target.mk:
--------------------------------------------------------------------------------
1 | # This file is generated by gyp; do not edit.
2 |
3 | TOOLSET := target
4 | TARGET := kerberos
5 | ### Rules for final target.
6 | LDFLAGS_Debug := \
7 | -pthread \
8 | -rdynamic \
9 | -m64
10 |
11 | LDFLAGS_Release := \
12 | -pthread \
13 | -rdynamic \
14 | -m64
15 |
16 | LIBS :=
17 |
18 | $(obj).target/kerberos.node: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
19 | $(obj).target/kerberos.node: LIBS := $(LIBS)
20 | $(obj).target/kerberos.node: TOOLSET := $(TOOLSET)
21 | $(obj).target/kerberos.node: FORCE_DO_CMD
22 | $(call do_cmd,solink_module)
23 |
24 | all_deps += $(obj).target/kerberos.node
25 | # Add target alias
26 | .PHONY: kerberos
27 | kerberos: $(builddir)/kerberos.node
28 |
29 | # Copy this to the executable output path.
30 | $(builddir)/kerberos.node: TOOLSET := $(TOOLSET)
31 | $(builddir)/kerberos.node: $(obj).target/kerberos.node FORCE_DO_CMD
32 | $(call do_cmd,copy)
33 |
34 | all_deps += $(builddir)/kerberos.node
35 | # Short alias for building this executable.
36 | .PHONY: kerberos.node
37 | kerberos.node: $(obj).target/kerberos.node $(builddir)/kerberos.node
38 |
39 | # Add executable to "all" target.
40 | .PHONY: all
41 | all: $(builddir)/kerberos.node
42 |
43 |
--------------------------------------------------------------------------------
/lib/error/divergentArray.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module dependencies.
4 | */
5 |
6 | var DocoomentError = require('../error.js');
7 |
8 | /*!
9 | * DivergentArrayError constructor.
10 | *
11 | * @inherits DocoomentError
12 | */
13 |
14 | function DivergentArrayError (paths) {
15 | var msg = 'For your own good, using `document.save()` to update an array '
16 | + 'which was selected using an $elemMatch projection OR '
17 | + 'populated using skip, limit, query conditions, or exclusion of '
18 | + 'the _id field when the operation results in a $pop or $set of '
19 | + 'the entire array is not supported. The following '
20 | + 'path(s) would have been modified unsafely:\n'
21 | + ' ' + paths.join('\n ') + '\n'
22 | + 'Use Model.update() to update these arrays instead.'
23 | // TODO write up a docs page (FAQ) and link to it
24 |
25 | DocoomentError.call(this, msg);
26 | Error.captureStackTrace(this, arguments.callee);
27 | this.name = 'DivergentArrayError';
28 | };
29 |
30 | /*!
31 | * Inherits from DocoomentError.
32 | */
33 |
34 | DivergentArrayError.prototype.__proto__ = DocoomentError.prototype;
35 |
36 | /*!
37 | * exports
38 | */
39 |
40 | module.exports = DivergentArrayError;
41 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "docooment",
3 | "description": "A Mongoose like Azure DocuomentDB ORM.",
4 | "version": "0.5.3",
5 | "main": "index.js",
6 | "dependencies": {
7 | "async": "^0.9.0",
8 | "bson": "^0.2.16",
9 | "documentdb": "^1.7.0",
10 | "hooks": "^0.3.2",
11 | "sliced": "0.0.5",
12 | "underscore": "^1.7.0",
13 | "mpath": "^0.2.1",
14 | "mpromise": "^0.5.5",
15 | "mquery": "^1.3.0"
16 | },
17 | "engines": {
18 | "node": ">=0.10.0"
19 | },
20 | "private": false,
21 | "devDependencies": {},
22 | "repository": {
23 | "type": "git",
24 | "url": "https://github.com/gian788/docooment.git"
25 | },
26 | "author": {
27 | "name": "Gianluca Pengo",
28 | "email": "gianluca.pengo@gmail.com"
29 | },
30 | "keywords": [
31 | "DocumentDb",
32 | "document",
33 | "model",
34 | "schema",
35 | "database",
36 | "odm",
37 | "data",
38 | "datastore",
39 | "query",
40 | "nosql",
41 | "orm",
42 | "db",
43 | "azure",
44 | "mongoose"
45 | ],
46 | "license": "MIT",
47 | "bugs": {
48 | "url": "https://github.com/gian788/docooment/issues"
49 | },
50 | "homepage": "https://github.com/gian788/docooment",
51 | "readmeFilename": "README.md"
52 | }
53 |
--------------------------------------------------------------------------------
/lib/docoomentdb/lib/error/divergentArray.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module dependencies.
4 | */
5 |
6 | var MongooseError = require('../error.js');
7 |
8 | /*!
9 | * DivergentArrayError constructor.
10 | *
11 | * @inherits MongooseError
12 | */
13 |
14 | function DivergentArrayError (paths) {
15 | var msg = 'For your own good, using `document.save()` to update an array '
16 | + 'which was selected using an $elemMatch projection OR '
17 | + 'populated using skip, limit, query conditions, or exclusion of '
18 | + 'the _id field when the operation results in a $pop or $set of '
19 | + 'the entire array is not supported. The following '
20 | + 'path(s) would have been modified unsafely:\n'
21 | + ' ' + paths.join('\n ') + '\n'
22 | + 'Use Model.update() to update these arrays instead.'
23 | // TODO write up a docs page (FAQ) and link to it
24 |
25 | MongooseError.call(this, msg);
26 | Error.captureStackTrace(this, arguments.callee);
27 | this.name = 'DivergentArrayError';
28 | };
29 |
30 | /*!
31 | * Inherits from MongooseError.
32 | */
33 |
34 | DivergentArrayError.prototype.__proto__ = MongooseError.prototype;
35 |
36 | /*!
37 | * exports
38 | */
39 |
40 | module.exports = DivergentArrayError;
41 |
--------------------------------------------------------------------------------
/lib/docoomentdb/examples/README.md:
--------------------------------------------------------------------------------
1 | This directory contains runnable sample mongoose programs.
2 |
3 | To run:
4 |
5 | - first install [Node.js](http://nodejs.org/)
6 | - from the root of the project, execute `npm install -d`
7 | - in the example directory, run `npm install -d`
8 | - from the command line, execute: `node example.js`, replacing "example.js" with the name of a program.
9 |
10 |
11 | Goal is to show:
12 |
13 | - ~~global schemas~~
14 | - ~~GeoJSON schemas / use (with crs)~~
15 | - text search (once MongoDB removes the "Experimental/beta" label)
16 | - ~~lean queries~~
17 | - ~~statics~~
18 | - methods and statics on subdocs
19 | - custom types
20 | - ~~querybuilder~~
21 | - ~~promises~~
22 | - accessing driver collection, db
23 | - ~~connecting to replica sets~~
24 | - connecting to sharded clusters
25 | - enabling a fail fast mode
26 | - on the fly schemas
27 | - storing files
28 | - ~~map reduce~~
29 | - ~~aggregation~~
30 | - advanced hooks
31 | - using $elemMatch to return a subset of an array
32 | - query casting
33 | - upserts
34 | - pagination
35 | - express + mongoose session handling
36 | - ~~group by (use aggregation)~~
37 | - authentication
38 | - schema migration techniques
39 | - converting documents to plain objects (show transforms)
40 | - how to $unset
41 |
42 |
--------------------------------------------------------------------------------
/lib/docoomentdb/node_modules/mongodb/node_modules/kerberos/lib/kerberos_context.h:
--------------------------------------------------------------------------------
1 | #ifndef KERBEROS_CONTEXT_H
2 | #define KERBEROS_CONTEXT_H
3 |
4 | #include
5 | #include
6 | #include
7 | #include
8 |
9 | #include
10 | #include
11 |
12 | extern "C" {
13 | #include "kerberosgss.h"
14 | }
15 |
16 | using namespace v8;
17 | using namespace node;
18 |
19 | class KerberosContext : public ObjectWrap {
20 |
21 | public:
22 | KerberosContext();
23 | ~KerberosContext();
24 |
25 | static inline bool HasInstance(Handle val) {
26 | if (!val->IsObject()) return false;
27 | Local