Permalink
Browse files

removing deps directory, fixing mapreduce to throw on missing out par…

…ameter
  • Loading branch information...
1 parent 8d5291f commit b6d250ebf5aaf909363231879dca71393aba26bb @christkv committed Feb 15, 2012
Showing with 238 additions and 16,407 deletions.
  1. +4 −0 HISTORY
  2. +0 −4 deps/gleak/.gitignore
  3. +0 −42 deps/gleak/History.md
  4. +0 −6 deps/gleak/Makefile
  5. +0 −118 deps/gleak/README.md
  6. +0 −190 deps/gleak/index.js
  7. +0 −215 deps/gleak/test/index.js
  8. +0 −3 deps/nodeunit/.npmignore
  9. +0 −68 deps/nodeunit/CONTRIBUTORS.md
  10. +0 −19 deps/nodeunit/LICENSE
  11. +0 −176 deps/nodeunit/Makefile
  12. +0 −443 deps/nodeunit/README.md
  13. +0 −125 deps/nodeunit/bin/nodeunit
  14. +0 −10 deps/nodeunit/bin/nodeunit.json
  15. +0 −623 deps/nodeunit/deps/async.js
  16. +0 −55 deps/nodeunit/deps/console.log.js
  17. +0 −70 deps/nodeunit/deps/ejs/History.md
  18. +0 −20 deps/nodeunit/deps/ejs/Makefile
  19. +0 −152 deps/nodeunit/deps/ejs/Readme.md
  20. +0 −14 deps/nodeunit/deps/ejs/benchmark.js
  21. +0 −531 deps/nodeunit/deps/ejs/ejs.js
  22. +0 −2 deps/nodeunit/deps/ejs/ejs.min.js
  23. +0 −5 deps/nodeunit/deps/ejs/examples/client.html
  24. +0 −7 deps/nodeunit/deps/ejs/examples/list.ejs
  25. +0 −16 deps/nodeunit/deps/ejs/examples/list.js
  26. +0 −2 deps/nodeunit/deps/ejs/index.js
  27. +0 −251 deps/nodeunit/deps/ejs/lib/ejs.js
  28. +0 −198 deps/nodeunit/deps/ejs/lib/filters.js
  29. +0 −23 deps/nodeunit/deps/ejs/lib/utils.js
  30. +0 −11 deps/nodeunit/deps/ejs/package.json
  31. +0 −173 deps/nodeunit/deps/ejs/support/compile.js
  32. +0 −269 deps/nodeunit/deps/ejs/test/ejs.test.js
  33. +0 −481 deps/nodeunit/deps/json2.js
  34. +0 −125 deps/nodeunit/dist/nodeunit/bin/nodeunit
  35. +0 −10 deps/nodeunit/dist/nodeunit/bin/nodeunit.json
  36. +0 −623 deps/nodeunit/dist/nodeunit/deps/async.js
  37. +0 −55 deps/nodeunit/dist/nodeunit/deps/console.log.js
  38. +0 −125 deps/nodeunit/dist/nodeunit/deps/ejs.js
  39. +0 −481 deps/nodeunit/dist/nodeunit/deps/json2.js
  40. +0 −3 deps/nodeunit/dist/nodeunit/index.js
  41. +0 −327 deps/nodeunit/dist/nodeunit/lib/assert.js
  42. +0 −316 deps/nodeunit/dist/nodeunit/lib/core.js
  43. +0 −104 deps/nodeunit/dist/nodeunit/lib/nodeunit.js
  44. +0 −121 deps/nodeunit/dist/nodeunit/lib/reporters/browser.js
  45. +0 −130 deps/nodeunit/dist/nodeunit/lib/reporters/default.js
  46. +0 −104 deps/nodeunit/dist/nodeunit/lib/reporters/eclipse.js
  47. +0 −109 deps/nodeunit/dist/nodeunit/lib/reporters/html.js
  48. +0 −14 deps/nodeunit/dist/nodeunit/lib/reporters/index.js
  49. +0 −183 deps/nodeunit/dist/nodeunit/lib/reporters/junit.js
  50. +0 −111 deps/nodeunit/dist/nodeunit/lib/reporters/machineout.js
  51. +0 −120 deps/nodeunit/dist/nodeunit/lib/reporters/minimal.js
  52. +0 −213 deps/nodeunit/dist/nodeunit/lib/reporters/nested.js
  53. +0 −107 deps/nodeunit/dist/nodeunit/lib/reporters/skip_passed.js
  54. +0 −65 deps/nodeunit/dist/nodeunit/lib/reporters/tap.js
  55. +0 −122 deps/nodeunit/dist/nodeunit/lib/reporters/verbose.js
  56. +0 −48 deps/nodeunit/dist/nodeunit/lib/track.js
  57. +0 −189 deps/nodeunit/dist/nodeunit/lib/types.js
  58. +0 −209 deps/nodeunit/dist/nodeunit/lib/utils.js
  59. +0 −65 deps/nodeunit/dist/nodeunit/package.json
  60. +0 −19 deps/nodeunit/dist/nodeunit/share/junit.xml.ejs
  61. +0 −11 deps/nodeunit/dist/nodeunit/share/license.js
  62. +0 −70 deps/nodeunit/dist/nodeunit/share/nodeunit.css
  63. +0 −60 deps/nodeunit/doc/nodeunit.md
  64. +0 −2,034 deps/nodeunit/examples/browser/nodeunit.js
  65. +0 −12 deps/nodeunit/examples/browser/suite1.js
  66. +0 −13 deps/nodeunit/examples/browser/suite2.js
  67. +0 −7 deps/nodeunit/examples/browser/suite3.js
  68. +0 −18 deps/nodeunit/examples/browser/test.html
  69. +0 −94 deps/nodeunit/examples/nested/nested_reporter_test.unit.js
  70. BIN deps/nodeunit/img/example_fail.png
  71. BIN deps/nodeunit/img/example_machineout.png
  72. BIN deps/nodeunit/img/example_pass.png
  73. +0 −3 deps/nodeunit/index.js
  74. +0 −327 deps/nodeunit/lib/assert.js
  75. +0 −316 deps/nodeunit/lib/core.js
  76. +0 −103 deps/nodeunit/lib/nodeunit.js
  77. +0 −121 deps/nodeunit/lib/reporters/browser.js
  78. +0 −130 deps/nodeunit/lib/reporters/default.js
  79. +0 −104 deps/nodeunit/lib/reporters/eclipse.js
  80. +0 −109 deps/nodeunit/lib/reporters/html.js
  81. +0 −14 deps/nodeunit/lib/reporters/index.js
  82. +0 −179 deps/nodeunit/lib/reporters/junit.js
  83. +0 −111 deps/nodeunit/lib/reporters/machineout.js
  84. +0 −120 deps/nodeunit/lib/reporters/minimal.js
  85. +0 −213 deps/nodeunit/lib/reporters/nested.js
  86. +0 −107 deps/nodeunit/lib/reporters/skip_passed.js
  87. +0 −65 deps/nodeunit/lib/reporters/tap.js
  88. +0 −122 deps/nodeunit/lib/reporters/verbose.js
  89. +0 −48 deps/nodeunit/lib/track.js
  90. +0 −189 deps/nodeunit/lib/types.js
  91. +0 −209 deps/nodeunit/lib/utils.js
  92. +0 −95 deps/nodeunit/man1/nodeunit.1
  93. +0 −2 deps/nodeunit/node_modules/tap-assert/AUTHORS
  94. +0 −23 deps/nodeunit/node_modules/tap-assert/LICENSE
  95. +0 −3 deps/nodeunit/node_modules/tap-assert/README.md
  96. +0 −396 deps/nodeunit/node_modules/tap-assert/assert.js
  97. +0 −4 deps/nodeunit/node_modules/tap-producer/README.md
  98. +0 −51 deps/nodeunit/node_modules/tap-producer/node_modules/inherits/README.md
  99. +0 −29 deps/nodeunit/node_modules/tap-producer/node_modules/inherits/inherits.js
  100. +0 −2 deps/nodeunit/node_modules/tap-producer/node_modules/tap-results/README.md
  101. +0 −68 deps/nodeunit/node_modules/tap-producer/node_modules/tap-results/results.js
  102. +0 −19 deps/nodeunit/node_modules/tap-producer/node_modules/yamlish/LICENSE
  103. +0 −20 deps/nodeunit/node_modules/tap-producer/node_modules/yamlish/README.md
  104. +0 −221 deps/nodeunit/node_modules/tap-producer/node_modules/yamlish/yamlish.js
  105. +0 −12 deps/nodeunit/node_modules/tap-producer/package.json
  106. +0 −7 deps/nodeunit/nodelint.cfg
  107. +0 −19 deps/nodeunit/share/junit.xml.ejs
  108. +0 −11 deps/nodeunit/share/license.js
  109. +0 −70 deps/nodeunit/share/nodeunit.css
  110. +0 −4 deps/nodeunit/test/fixtures/coffee/mock_coffee_module.coffee
  111. +0 −1 deps/nodeunit/test/fixtures/dir/mock_module3.js
  112. +0 −1 deps/nodeunit/test/fixtures/dir/mock_module4.js
  113. +0 −1 deps/nodeunit/test/fixtures/mock_module1.js
  114. +0 −1 deps/nodeunit/test/fixtures/mock_module2.js
  115. +0 −3 deps/nodeunit/test/fixtures/raw_jscode1.js
  116. +0 −3 deps/nodeunit/test/fixtures/raw_jscode2.js
  117. +0 −1 deps/nodeunit/test/fixtures/raw_jscode3.js
  118. +0 −219 deps/nodeunit/test/test-base.js
  119. +0 −114 deps/nodeunit/test/test-failing-callbacks.js
  120. +0 −55 deps/nodeunit/test/test-httputil.js
  121. +0 −214 deps/nodeunit/test/test-runfiles.js
  122. +0 −177 deps/nodeunit/test/test-runmodule.js
  123. +0 −46 deps/nodeunit/test/test-runtest.js
  124. +0 −31 deps/nodeunit/test/test-sandbox.js
  125. +0 −257 deps/nodeunit/test/test-testcase-legacy.js
  126. +0 −256 deps/nodeunit/test/test-testcase.js
  127. +0 −28 deps/nodeunit/test/test.html
  128. +0 −71 deps/step/README.markdown
  129. +0 −154 deps/step/lib/step.js
  130. +0 −26 deps/step/test/callbackTest.js
  131. +0 −27 deps/step/test/errorTest.js
  132. +0 −21 deps/step/test/fnTest.js
  133. +0 −102 deps/step/test/groupTest.js
  134. +0 −17 deps/step/test/helper.js
  135. +0 −49 deps/step/test/parallelTest.js
  136. +3 −1 dev/tools/gleak.js
  137. +2 −2 dev/tools/test_all.js
  138. +1 −1 dev/tools/test_set_runner.js
  139. +22 −4 lib/mongodb/admin.js
  140. +14 −4 lib/mongodb/collection.js
  141. +77 −11 lib/mongodb/db.js
  142. +2 −2 test/admin_test.js
  143. +2 −2 test/authentication_test.js
  144. +3 −3 test/auxilliary/authentication_test.js
  145. +3 −3 test/auxilliary/repl_set_ssl_test.js
  146. +3 −3 test/auxilliary/replicaset_auth_test.js
  147. +3 −3 test/auxilliary/single_server_kill_reconnect.js
  148. +3 −3 test/auxilliary/ssl_test.js
  149. +1 −1 test/bson/bson_test.js
  150. +1 −1 test/bson/commands_test.js
  151. +1 −1 test/bson_types_test.js
  152. +4 −4 test/collection_test.js
  153. +3 −4 test/connect_test.js
  154. +1 −1 test/connection/connection_pool_test.js
  155. +1 −1 test/connection/message_parser_test.js
  156. +2 −3 test/connection_test.js
  157. +3 −3 test/cursor_test.js
  158. +2 −3 test/cursorstream_test.js
  159. +2 −2 test/custom_pk_test.js
  160. +2 −2 test/db_test.js
  161. +2 −2 test/error_test.js
  162. +2 −2 test/exception_handling_test.js
  163. +3 −3 test/find_test.js
  164. +2 −3 test/geo_search_test.js
  165. +2 −2 test/gridstore/grid_store_file_test.js
  166. +3 −3 test/gridstore/grid_store_stream_test.js
  167. +2 −2 test/gridstore/grid_store_test.js
  168. +2 −2 test/gridstore/grid_test.js
  169. +3 −3 test/gridstore/readstream_test.js
  170. +2 −2 test/index_test.js
  171. +3 −3 test/insert_test.js
  172. +2 −2 test/logging_test.js
  173. +11 −8 test/map_reduce_test.js
  174. +2 −2 test/multiple_dbs_on_connection_pool_test.js
  175. +2 −2 test/objectid_test.js
  176. +2 −2 test/raw_test.js
  177. +2 −2 test/reaper_test.js
  178. +2 −2 test/regexp_test.js
  179. +2 −2 test/remove_test.js
  180. +1 −1 test/replicaset/connect_test.js
  181. +1 −1 test/replicaset/count_test.js
  182. +2 −2 test/replicaset/insert_test.js
  183. +4 −12 test/replicaset/map_reduce_test.js
  184. +2 −2 test/replicaset/query_secondaries_test.js
  185. +2 −2 test/replicaset/read_preference_replicaset_test.js
  186. +2 −2 test/replicaset/read_preferences_single_test.js
  187. +1 −1 test/replicaset/tags_test.js
  188. +2 −2 test/replicaset/two_server_tests.js
  189. +2 −2 test/streaming_test.js
  190. +1 −1 test/tools/replica_set_manager.js
  191. +2 −2 test/unicode_test.js
View
@@ -1,3 +1,7 @@
+0.9.9.1
+----------------
+* Better handling of safe when using some commands such as createIndex, ensureIndex, addUser, removeUser, createCollection.
+
0.9.9 2012-02-13
----------------
* Added createFromTime method on ObjectID to allow for queries against _id more easily using the timestamp.
View
@@ -1,4 +0,0 @@
-*.swp
-*.swo
-*.swu
-node_modules/
View
@@ -1,42 +0,0 @@
-
-0.2.1 / 10-18-2011
-==================
-
- * fixed; package.json dependency versioning
-
-0.2.0 / 10-11-2011
-==================
-
- * added; node v0.5 / v0.6 support
-
-0.1.3 / 09-22-2011
-==================
-
- * use old school node engine format in package.json
-
-0.1.2 / 09-08-2011
-==================
-
- * changed; utilize detectNew in middleware
- * updated; docs
-
-0.1.1 / 09-07-2011
-==================
-
- * added; #detectNew method
-
-0.1.0 / 09-06-2011
-==================
-
- * added; #ignore method
- * added; multiple instance support
-
-0.0.2 / 09-06-2011
-==================
-
- * added; allow whitelisting by variable name
-
-0.0.1 / 09-03-2011
-==================
-
- * initial release
View
@@ -1,6 +0,0 @@
-
-test:
- @NODE_ENV=test ./node_modules/expresso/bin/expresso \
- test/index.js
-
-.PHONY: test
View
@@ -1,118 +0,0 @@
-# Gleak
-Global variable leak detection for Node.js
-
- var detector = require('gleak')();
-
- detector.detect().forEach(function (name) {
- console.warn('found global leak: %s', name);
- });
-
-Global variable leaks in javascript can bite you when you least
-expect it. Do something about it now and run this module after
-your tests, after HTTP requests, and after you brush your teeth.
-
-## Detectable
-
-As demonstrated, gleak comes with the `detect` method which returns
-an array of all found variable leaks.
-
-Often times we want to run the detector many times, progressively
-checking for any new leaks that occurred since we last checked. In
-this scenario we can utilize the `detectNew` method.
-
- var detector = require('gleak')();
-
- x = 1;
- detector.detectNew(); // ['x']
- detector.detectNew(); // []
- y = 3;
- detector.detectNew(); // ['y']
-
-## Configurable:
-
-Gleak comes configured for Node.js and will ignore built-ins by default
-but you can configure it however your like:
-
- var gleak = require('gleak')();
- gleak.ignore(app, db);
-
-The `gleak.ignore` method allows us to add globals we want to ignore
-while safely ignoring duplicates.
-
-`gleak.whitelist` is an array that holds all globals we are ignoring.
-You can push to it or blow it away completely with your own list too.
-
- var gleak = require('gleak')();
- gleak.whitelist = [dnode, cluster];
-
-Changes to your whitelists do not impact any global settings. For example:
-
- var gleak = require('gleak');
- var g1 = gleak();
- var g2 = gleak();
-
- g1.ignore(myglobal);
- g2.whitelist.indexOf(myglobal) === -1;
-
-`g2` does not inherit changes to `g1`s whitelist.
-
-## Printable
-
-If you don't want anything fancy and want to quickly dump all
-global leaks to your console, just call `print()`.
-
- var gleak = require('gleak')();
- gleak.print(); // prints "Gleak!: leakedVarName"
-
-## Expressable
-
-We might want to print leaked variables to our console after each
-HTTP request. This is especially helpful during development.
-To accomplish this we can utilize the bundled [express](http://expressjs.com) middleware:
-
- var app = express.createServer();
- app.use(gleak.middleware());
-
-What if we want to output to a different stream than stderr?
-
- app.use(gleak.middleware(stream));
-
-How about customized logging formats?
-
- app.use(gleak.middleware('\x1b[31mLeak!\x1b[0m %s'));
-
-Combining formats and streams?
-
- app.use(gleak.middleware(stream, '\x1b[31mLeak!\x1b[0m %s'));
-
-## Installable
-
- npm install gleak
-
-### Node version
-Compatible with Node >=v0.4 <0.5.0
-
-## License
-
-(The MIT License)
-
-Copyright (c) 2011 [Aaron Heckmann](aaron.heckmann+github@gmail.com)
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -1,190 +0,0 @@
-
-/**
- * Gleak - detect global var leaks.
- * @api public
- */
-
-module.exports = exports = function gleak () {
- return new Gleak;
-}
-
-/**
- * Version.
- * @api public
- */
-
-exports.version = '0.2.1';
-
-/**
- * Express middleware.
- * @api public
- */
-
-exports.middleware = function gleakMiddleware (stream, format) {
- var g = new Gleak;
-
- if (!format) {
- switch (typeof stream) {
- case 'string':
- format = stream;
- stream = process.stderr;
- break;
- case 'undefined':
- format = g.format;
- stream = process.stderr;
- break;
- default:
- format = g.format;
- }
- }
-
- setTimeout(print, 1000);
-
- function print () {
- g.detectNew().forEach(function (leak) {
- stream.write(format.replace(/%s/, leak) + '\n');
- });
- }
-
- return function gleakMiddleware (req, res, next) {
- if (res._gleak) return next();
- res._gleak = true;
-
- var send = res.send;
-
- res.send = function () {
- res.send = send;
- res.send.apply(res, arguments);
- print();
- }
-
- next();
- }
-}
-
-/**
- * Gleak constructor
- * @api private
- */
-
-function Gleak () {
- this.whitelist = this.whitelist.slice();
-}
-
-/**
- * Whitelisted globals.
- * @api public
- */
-
-// v0.4.x
-Gleak.prototype.whitelist = [
- setTimeout
- , setInterval
- , clearTimeout
- , clearInterval
- , console
- , Buffer
- , process
- , global
- , GLOBAL
- , root
-];
-
-// check for new globals in >= v0.5x
-var version = process.version.replace(/^v/, '').split('.');
-if ('0' === version[0] && version[1] > 4) {
- Gleak.prototype.whitelist.push(
- ArrayBuffer
- , Int8Array
- , Uint8Array
- , Int16Array
- , Uint16Array
- , Int32Array
- , Uint32Array
- , Float32Array
- , Float64Array
- , DataView
- , 'errno' // node >= v0.5.x hack
- )
-}
-
-/**
- * Default format.
- * @api public
- */
-
-Gleak.prototype.format = '\x1b[31mGleak!:\x1b[0m %s';
-
-/**
- * Detects global variable leaks.
- * @api public
- */
-
-Gleak.prototype.detect = function detect () {
- var whitelist = this.whitelist
- , ret = []
-
- Object.keys(global).forEach(function (key) {
- var w = whitelist.length
- , bad = true
- , white
-
- while (w--) {
- white = whitelist[w];
- if (global[key] === white || 'string' === typeof white && key === white) {
- bad = false;
- break;
- }
- }
-
- if (bad) ret.push(key);
- });
-
- return ret;
-};
-
-/**
- * Return only new leaks since the last time `detectNew`
- * was run.
- * @api public
- */
-
-Gleak.prototype.detectNew = function detectNew () {
- var found = this.found || (this.found = []);
- var ret = [];
-
- this.detect().forEach(function (leak) {
- if (~found.indexOf(leak)) return;
- found.push(leak);
- ret.push(leak);
- });
-
- return ret;
-}
-
-/**
- * Prints all gleaks to stderr.
- * @api public
- */
-
-Gleak.prototype.print = function print () {
- var format = this.format;
- this.detect().forEach(function (leak) {
- console.error(format, leak);
- });
-}
-
-/**
- * Add items to the whitelist disallowing duplicates.
- * @api public
- */
-
-Gleak.prototype.ignore = function ignore () {
- var i = arguments.length;
- while (i--) {
- if (~this.whitelist.indexOf(arguments[i])) continue;
- this.whitelist.push(arguments[i]);
- }
- return this;
-}
-
Oops, something went wrong.

0 comments on commit b6d250e

Please sign in to comment.