Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mquery

Package Overview
Dependencies
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mquery - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

test/utils.js

6

History.md
0.8.0 / 2014-05-15
==================
* added; support for maxTimeMS #44 [yoitsro](https://github.com/yoitsro)
* updated; devDependency (driver to 1.4.4)
0.7.0 / 2014-05-02

@@ -3,0 +9,0 @@ ==================

@@ -152,2 +152,3 @@ 'use strict';

* - [maxScan](http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%24maxScan) *
* - [maxTime](http://docs.mongodb.org/manual/reference/operator/meta/maxTimeMS/#op._S_maxTimeMS) *
* - [batchSize](http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%7B%7BbatchSize%28%29%7D%7D) *

@@ -1335,2 +1336,22 @@ * - [comment](http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%24comment) *

/**
* Specifies the maxTimeMS option.
*
* ####Example
*
* query.maxTime(100)
*
* @method maxTime
* @memberOf Query
* @param {Number} val
* @see mongodb http://docs.mongodb.org/manual/reference/operator/meta/maxTimeMS/#op._S_maxTimeMS
* @api public
*/
Query.prototype.maxTime = function (v) {
this._validate('maxTime');
this.options.maxTimeMS = v;
return this;
};
/**
* Specifies this query as a `snapshot` query.

@@ -1337,0 +1358,0 @@ *

6

package.json
{
"name": "mquery",
"version": "0.7.0",
"version": "0.8.0",
"description": "Expressive query building for MongoDB",
"main": "index.js",
"main": "lib/mquery.js",
"scripts": {

@@ -19,3 +19,3 @@ "test": "make test"

"devDependencies": {
"mongodb": "1.3.23",
"mongodb": "1.4.4",
"mocha": "1.9.x"

@@ -22,0 +22,0 @@ },

@@ -91,2 +91,3 @@ #mquery

- [maxScan](#maxscan)
- [maxTime](#maxtime)
- [skip](#skip)

@@ -854,2 +855,13 @@ - [sort](#sort)

###maxTime()
Specifies the maxTimeMS option.
```js
query.maxTime(100)
```
[MongoDB documentation](http://docs.mongodb.org/manual/reference/method/cursor.maxTimeMS/)
###skip()

@@ -1020,3 +1032,4 @@

- [skip](#skip) *
- [maxScan](#maxScan) *
- [maxScan](#maxscan) *
- [maxTime](#maxtime) *
- [batchSize](#batchSize) *

@@ -1023,0 +1036,0 @@ - [comment](#comment) *

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc