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

promised-models

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promised-models - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

lib/model.js

@@ -51,3 +51,3 @@ /**

isNew: function () {
return Boolean(this.id);
return !this.id;
},

@@ -54,0 +54,0 @@

{
"description": "promise based, typed attributes, nested models and collections",
"name": "promised-models",
"version": "0.0.5",
"version": "0.0.6",
"repository": "git@github.com:delfrrr/promised-models.git",

@@ -6,0 +6,0 @@ "keywords": [

@@ -6,2 +6,10 @@

var Model = require('./models/persistent');
describe('isNew', function () {
it('should be true after model create', function () {
var model = new Model();
expect(model.isNew()).to.be.equal(true);
});
});
it('should save and fetch model by id', function (done) {

@@ -8,0 +16,0 @@ var model1 = new Model();

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