Socket
Socket
Sign inDemoInstall

viewmodel

Package Overview
Dependencies
Maintainers
2
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 1.1.5 to 1.1.6

2

lib/databases/inmemory.js

@@ -116,3 +116,3 @@ 'use strict';

vms = _.map(vms, function(data) {
var vm = new ViewModel(data, this);
var vm = new ViewModel(data, self);
vm.actionOnCommit = 'update';

@@ -119,0 +119,0 @@ return vm;

@@ -13,2 +13,7 @@ 'use strict';

function ViewModel (attr, repository) {
if (!repository) {
var errMsg = 'Please pass in a valid repository';
console.log(errMsg);
throw new Error(errMsg);
}

@@ -15,0 +20,0 @@ for (var f in Repository.prototype) {

{
"author": "adrai",
"name": "viewmodel",
"version": "1.1.5",
"version": "1.1.6",
"private": false,

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

@@ -0,1 +1,4 @@

#### v1.1.6
- Fix undefined repository test in ViewModel constructor [#4](https://github.com/adrai/node-viewmodel/pull/4) thanks to [sbiaudet](https://github.com/sbiaudet)
#### v1.1.5

@@ -2,0 +5,0 @@ - make redis commit transactional

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