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

viewmodel

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

viewmodel - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

.gitignore

3

lib/databases/inMemory.js

@@ -148,2 +148,3 @@ // lib/databases/inMemory.js v0.1.0

col[vm.id] = this.fromViewModel(vm);
vm.actionOnCommit = 'update';
break;

@@ -154,3 +155,3 @@ default:

callback(null);
callback(null, vm);
},

@@ -157,0 +158,0 @@

@@ -46,3 +46,3 @@ // lib/databases/mongoDb.js v0.1.0

} else {
var finish = function() {
var finish = function() {
self.client = client;

@@ -152,3 +152,6 @@ self.isConnected = true;

obj._id = obj.id;
this.collection.save(obj, { safe: true }, callback);
this.collection.save(obj, { safe: true }, function(err) {
vm.actionOnCommit = 'update';
callback(err, vm);
});
break;

@@ -155,0 +158,0 @@ default:

@@ -129,3 +129,6 @@ // lib/databases/nStore.js v0.0.1

var obj = self.fromViewModel(vm);
self.collection.set(vm.id, obj, callback);
self.collection.set(vm.id, obj, function(err) {
vm.actionOnCommit = 'update';
callback(err, vm);
});
break;

@@ -132,0 +135,0 @@ default:

{
"author": "adrai",
"name": "viewmodel",
"version": "0.3.0",
"version": "0.3.1",
"private": false,

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

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