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.2.2 to 0.2.3

lib/repository.js~

4

lib/repository.js

@@ -76,2 +76,3 @@ // lib/queue.js v0.1.0

delete obj.commit;
delete obj.toJSON;
delete obj.set;

@@ -100,2 +101,3 @@ delete obj.get;

};
vm.toJSON = function() { return fromViewModel(this); };
vm.set = set;

@@ -130,2 +132,2 @@ vm.get = get;

};
};
{
"author": "adrai",
"name": "viewmodel",
"version": "0.2.2",
"version": "0.2.3",
"private": false,

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

@@ -16,2 +16,3 @@ var expect = require('expect.js')

delete obj.commit;
delete obj.toJSON;
delete obj.set;

@@ -35,2 +36,3 @@ delete obj.get;

delete obj.commit;
delete obj.toJSON;
delete obj.set;

@@ -50,2 +52,3 @@ delete obj.get;

};
vm.toJSON = function() { return dummyRepo.fromViewModel(this); };
vm.set = function(data) {

@@ -391,2 +394,2 @@ if (arguments.length === 2) {

});
});

@@ -16,2 +16,3 @@ var expect = require('expect.js')

delete obj.commit;
delete obj.toJSON;
delete obj.set;

@@ -31,2 +32,3 @@ delete obj.get;

};
vm.toJSON = function() { return repository.fromViewModel(this); };
vm.set = function(data) {

@@ -146,2 +148,3 @@ if (arguments.length === 2) {

expect(obj.get).to.be.a('function');
expect(obj.toJSON).to.be.a('function');
expect(obj.destroy).to.be.a('function');

@@ -301,2 +304,4 @@ expect(obj.commit).to.be.a('function');

expect(results[1].get).to.be.a('function');
expect(results[0].toJSON).to.be.a('function');
expect(results[1].toJSON).to.be.a('function');
expect(results[0].destroy).to.be.a('function');

@@ -796,2 +801,2 @@ expect(results[1].destroy).to.be.a('function');

});
});
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