Socket
Socket
Sign inDemoInstall

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.5.1 to 0.5.2

14

lib/repository.js

@@ -74,8 +74,8 @@ var fs = require('fs')

var obj = _.clone(vm);
delete obj.actionOnCommit;
delete obj.destroy;
delete obj.commit;
delete obj.toJSON;
delete obj.set;
delete obj.get;
if (obj.actionOnCommit) delete obj.actionOnCommit;
if (obj.destroy) delete obj.destroy;
if (obj.commit) delete obj.commit;
if (obj.toJSON) delete obj.toJSON;
if (obj.set) delete obj.set;
if (obj.get) delete obj.get;
return obj;

@@ -89,3 +89,3 @@ }

getNewViewModel: function(id) {
return this.fromObject({ id: id, actionOnCommit: 'create', _revision: 1 });
return this.fromObject({ id: id, actionOnCommit: 'create' });
},

@@ -92,0 +92,0 @@

{
"author": "adrai",
"name": "viewmodel",
"version": "0.5.1",
"version": "0.5.2",
"private": false,

@@ -14,3 +14,3 @@ "main": "index.js",

"dependencies": {
"lodash": ">= 2.2.1",
"lodash": ">= 2.4.1",
"tolerance": ">= 1.0.0"

@@ -17,0 +17,0 @@ },

@@ -149,3 +149,3 @@ # Introduction

Copyright (c) 2013 Adriano Raiano
Copyright (c) 2014 Adriano Raiano

@@ -152,0 +152,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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