New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

moltyjs

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moltyjs - npm Package Compare versions

Comparing version 0.9.2 to 0.9.3

20

CHANGELOG.md

@@ -9,8 +9,4 @@ ## [Unreleased]

* Add more cursor options ([MongoDB Doc](https://docs.mongodb.com/manual/reference/method/js-cursor/)).
* .skip(1) // Skip 1
* .limit(10) // Limit 10
* .batchSize(5) // Set batchSize on cursor to 5
* .filter({a:1}) // Set query on the cursor
* .comment('add a comment') // Add a comment to the query, allowing to correlate queries
* .addCursorFlag('tailable', true) // Set cursor as tailable
* .addCursorFlag('oplogReplay', true) // Set cursor as oplogReplay

@@ -20,17 +16,14 @@ * .addCursorFlag('noCursorTimeout', true) // Set cursor as noCursorTimeout

* .addCursorFlag('exhaust', true) // Set cursor as exhaust
* .addCursorFlag('partial', true) // Set cursor as partial
* .addQueryModifier('$orderby', {a:1}) // Set $orderby {a:1}
* .max(10) // Set the cursor maxScan
* .maxScan(10) // Set the cursor maxScan
* .maxTimeMS(1000) // Set the cursor maxTimeMS
* .min(100) // Set the cursor min
* .returnKey(10) // Set the cursor returnKey
* .setReadPreference(ReadPreference.PRIMARY) // Set the cursor readPreference
* .setCursorOption(field, value) // Set a node.js specific cursor option
* .showRecordId(true) // Set the cursor showRecordId
* .snapshot(true) // Set the cursor snapshot
* .sort([['a', 1]]) // Sets the sort order of the cursor query
* .stream(options) // Return a modified Readable stream including a possible transform method.
* .hint('a_1') // Set the cursor hint
## [0.9.3] - 2018-05-17
### Added
* New cursor options to find() method: sort, skip, hint, explain, snapshot, timeout, tailable, returnKey, maxScan, min, max, showDiskLoc, comment, raw, promoteLongs, promoteValues, promoteBuffers, readPreference, partial, maxTimeMS, collation.
## [0.9.2] - 2018-04-08

@@ -468,2 +461,3 @@

[0.9.3]: https://github.com/Yonirt/moltyjs/compare/v0.9.2...v0.9.3
[0.9.2]: https://github.com/Yonirt/moltyjs/compare/v0.9.1...v0.9.2

@@ -470,0 +464,0 @@ [0.9.1]: https://github.com/Yonirt/moltyjs/compare/v0.9.0...v0.9.1

@@ -64,3 +64,24 @@ 'use strict';

limit: 0,
projection: null
sort: null,
projection: null,
skip: 0,
hint: null,
explain: false,
snapshot: false,
timeout: false,
tailable: false,
returnKey: false,
maxScan: null,
min: null,
max: null,
showDiskLoc: false,
comment: null,
raw: false,
promoteLongs: true,
promoteValues: true,
promoteBuffers: false,
readPreference: null,
partial: false,
maxTimeMS: null,
collation: null
};

@@ -705,7 +726,30 @@

try {
// Find Options
const limit = findOptions.limit,
sort = findOptions.sort,
projection = findOptions.projection,
skip = findOptions.skip,
hint = findOptions.hint,
explain = findOptions.explain,
snapshot = findOptions.snapshot,
timeout = findOptions.timeout,
tailable = findOptions.tailable,
returnKey = findOptions.returnKey,
maxScan = findOptions.maxScan,
min = findOptions.min,
max = findOptions.max,
showDiskLoc = findOptions.showDiskLoc,
comment = findOptions.comment,
raw = findOptions.raw,
promoteLongs = findOptions.promoteLongs,
promoteValues = findOptions.promoteValues,
promoteBuffers = findOptions.promoteBuffers,
readPreference = findOptions.readPreference,
partial = findOptions.partial,
maxTimeMS = findOptions.maxTimeMS,
collation = findOptions.collation;
// Get and run the Cursor
var _ref8 = yield to(conn.db(tenant, _this3._tenantsOptions).collection(collection).find(query, {
limit: findOptions.limit,
projection: findOptions.projection
}).toArray()),
var _ref8 = yield to(conn.db(tenant, _this3._tenantsOptions).collection(collection).find(query, _extends({}, findOptions)).toArray()),
_ref9 = _slicedToArray(_ref8, 2);

@@ -712,0 +756,0 @@

{
"name": "moltyjs",
"version": "0.9.2",
"version": "0.9.3",
"description": "A tiny ODM for MongoDB with multy tenancy support.",

@@ -42,3 +42,3 @@ "main": "lib/index.js",

"moment": "^2.19.4",
"np": "^2.18.2",
"np": "^2.20.1",
"nyc": "^11.4.1",

@@ -45,0 +45,0 @@ "watch": "^1.0.2"

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