Huge News!Announcing our $40M Series B led by Abstract Ventures.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.2.0 to 0.2.1

12

CHANGELOG.md

@@ -9,3 +9,2 @@ ## [Unreleased]

* Add cursor options ([MongoDB Doc](https://docs.mongodb.com/manual/reference/method/js-cursor/)).
* .project({a:1}) // Create a projection of field a
* .skip(1) // Skip 1

@@ -36,2 +35,12 @@ * .limit(10) // Limit 10

## [0.2.1] - 2017-12-20
### Added
* Options 'projection' to just exclude or include specific field in the documents results
### Changed
* Documentation about find() method
## [0.2.0] - 2017-12-18

@@ -183,2 +192,3 @@

[0.2.1]: https://github.com/Yonirt/moltyjs/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/Yonirt/moltyjs/compare/v0.1.6...v0.2.0

@@ -185,0 +195,0 @@ [0.1.6]: https://github.com/Yonirt/moltyjs/compare/v0.1.5...v0.1.6

5

lib/clients/mongoClient.js

@@ -34,3 +34,4 @@ 'use strict';

moltyClass: true,
limit: 0
limit: 0,
projection: null
};

@@ -400,3 +401,3 @@

var _ref5 = yield to(cursor.limit(findOptions.limit).toArray()),
var _ref5 = yield to(cursor.limit(findOptions.limit).project(findOptions.projection).toArray()),
_ref6 = _slicedToArray(_ref5, 2);

@@ -403,0 +404,0 @@

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

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -273,2 +273,3 @@ # What is moltyjs?

* {Number} `limit` (0 by default: no limit) Limit the results to the amount specified
* {Object} `projection` (null by default) Create a projection of a field, the projection document limits the fields to return for all matching documents

@@ -275,0 +276,0 @@ ```javascript

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