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

reactive-mongodb

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactive-mongodb - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

modules/collection.module.js

@@ -60,3 +60,3 @@ const Observable = require('rxjs/Rx').Observable;

if (hyerrors === null) {
this.collection.update({ _id: ObjectId(id) }, newObject, { multi: true }, (err, data) => {
this.collection.update({ _id: ObjectId(id) }, newObject, { multi: false }, (err, data) => {
if (err) {

@@ -63,0 +63,0 @@ observer.error(err);

{
"name": "reactive-mongodb",
"version": "0.1.2",
"version": "0.1.3",
"description": "An ODM for MongoDB with very strict data types/stucture. It is Based on Observable (with RxJS)",

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

@@ -48,3 +48,3 @@ # Reactive-MongoDB

```javascript
const Collection = require('../index.js').Collection;
const Collection = require('reactive-mongodb').Collection;
//Collection is a class that represents your collection in the database

@@ -51,0 +51,0 @@ const Users = new Collection('users');

@@ -23,8 +23,4 @@ const Collection = require('../index.js').Collection;

var Test = new Collection('test');
Test.updateOne({ name: 'hello i\'m mocha' }, { name: 'I changed from Mocha' }).subscribe((data) => {
var rules = new Objects.Rule;
var hyerrors = hyvalidator.validate(data, rules);
if (hyerrors === null) {
done();
}
Test.updateOne({ name: 'hello i\'m mocha' }, { name: 'I changed from Mocha' }).subscribe(empty,empty,() => {
done();
});

@@ -31,0 +27,0 @@ });

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