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

node-entity

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-entity - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

17

adaptors/sequelize.adp.js

@@ -6,2 +6,3 @@ /**

var __ = require('lodash');
var Promise = require('bluebird');

@@ -54,3 +55,3 @@ var AdaptorBase = require('./base.adp');

var item = this.Model.build(itemData);
return item.save();
return Promise.cast(item.save());
};

@@ -68,7 +69,7 @@

return this.Model.find({
return Promise.cast(this.Model.find({
where: query,
offset: 0,
limit: 1,
});
}));
};

@@ -90,3 +91,3 @@

return this.Model.findAll(findOpts);
return Promise.cast(this.Model.findAll(findOpts));
};

@@ -117,3 +118,3 @@

return this.Model.findAll(findOpts);
return Promise.cast(this.Model.findAll(findOpts));
};

@@ -133,3 +134,3 @@

}
return this.Model.count(findOpts);
return Promise.cast(this.Model.count(findOpts));
};

@@ -148,3 +149,3 @@

return this.Model.update(itemData, query);
return Promise.cast(this.Model.update(itemData, query));
};

@@ -161,3 +162,3 @@

var query = this._getQuery(id);
return this.Model.destroy(query);
return Promise.cast(this.Model.destroy(query));
};

@@ -164,0 +165,0 @@

{
"name": "node-entity",
"description": "The MVCe implementation for Node.js",
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://github.com/thanpolas/entity",

@@ -6,0 +6,0 @@ "author": {

@@ -458,3 +458,4 @@ # Entity

## Release History
- **v0.1.2**, *12 Feb 2014*
- Now casting to Bluebird promises all returned Objects from Sequelize adaptor.
- **v0.1.1**, *11 Feb 2014*

@@ -461,0 +462,0 @@ - Added "main" key in package.json

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