node-entity
Advanced tools
Comparing version 0.5.4 to 0.5.5
@@ -12,4 +12,2 @@ /** | ||
function noop() {} | ||
/** | ||
@@ -36,5 +34,2 @@ * The Mongoose CRUD implementation. | ||
this._schemaOpts.expandPaths = true; | ||
// stub internal methods, all should be private to instance | ||
this._mongRemove = noop; | ||
}); | ||
@@ -60,10 +55,5 @@ | ||
this._defineMethods(); | ||
this._readSchema(); | ||
}; | ||
MongooseAdapter.prototype._defineMethods = function() { | ||
this._mongRemove = Promise.promisify(this.Model.remove, this.Model); | ||
}; | ||
/** | ||
@@ -243,3 +233,3 @@ * Create an entity item. | ||
return this._mongRemove(query); | ||
return Promise.resolve(this.Model.remove(query)); | ||
}; | ||
@@ -275,3 +265,3 @@ | ||
this.addSchema(path, type); | ||
}, this); | ||
}.bind(this)); | ||
}; | ||
@@ -357,3 +347,3 @@ | ||
__.forIn(selectors, function(item, key) { | ||
var pair = __.pairs(item); | ||
var pair = __.toPairs(item); | ||
var selector = pair[0][0]; | ||
@@ -360,0 +350,0 @@ var value = pair[0][1]; |
@@ -190,3 +190,3 @@ /** | ||
this.addSchema(schemaItem); | ||
}, this); | ||
}.bind(this)); | ||
}; | ||
@@ -193,0 +193,0 @@ |
{ | ||
"name": "node-entity", | ||
"description": "The MVCe implementation for Node.js", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"homepage": "https://github.com/thanpolas/entity", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -601,2 +601,4 @@ # Entity | ||
- **v0.5.5**, *16 Jan 2016* | ||
- Fixed issues caused by upgrading the dependencies. | ||
- **v0.5.4**, *16 Jan 2016* | ||
@@ -603,0 +605,0 @@ - Upgraded all dependencies to latest. |
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
683
118621
2860