node-entity
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74533
1720
479