Socket
Socket
Sign inDemoInstall

feathers-sequelize

Package Overview
Dependencies
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feathers-sequelize - npm Package Compare versions

Comparing version 2.3.1 to 2.3.2

13

CHANGELOG.md
# Change Log
## [v2.3.1](https://github.com/feathersjs/feathers-sequelize/tree/v2.3.1) (2017-09-06)
[Full Changelog](https://github.com/feathersjs/feathers-sequelize/compare/v2.3.0...v2.3.1)
**Closed issues:**
- \[Question\] Should new tests be using Postgres or SQLite or both? [\#154](https://github.com/feathersjs/feathers-sequelize/issues/154)
- Multiple rows delete [\#153](https://github.com/feathersjs/feathers-sequelize/issues/153)
**Merged pull requests:**
- Tests and fixes [\#162](https://github.com/feathersjs/feathers-sequelize/pull/162) ([Ryanthegiantlion](https://github.com/Ryanthegiantlion))
- Extend test coverage [\#160](https://github.com/feathersjs/feathers-sequelize/pull/160) ([Ryanthegiantlion](https://github.com/Ryanthegiantlion))
## [v2.3.0](https://github.com/feathersjs/feathers-sequelize/tree/v2.3.0) (2017-08-19)

@@ -4,0 +17,0 @@ [Full Changelog](https://github.com/feathersjs/feathers-sequelize/compare/v2.2.1...v2.3.0)

13

lib/index.js

@@ -63,8 +63,13 @@ 'use strict';

_createClass(Service, [{
key: 'getModel',
value: function getModel(params) {
return this.Model;
}
}, {
key: 'applyScope',
value: function applyScope(params) {
if ((params.sequelize || {}).scope) {
return this.Model.scope(params.sequelize.scope);
return this.getModel(params).scope(params.sequelize.scope);
}
return this.Model;
return this.getModel(params);
}

@@ -245,4 +250,4 @@ }, {

return this._getOrFind(id, options).then(function (results) {
return _this2.Model.update((0, _lodash2.default)(data, _this2.id), options);
return this._getOrFind(id, params).then(function (results) {
return _this2.getModel(params).update((0, _lodash2.default)(data, _this2.id), options);
}).then(function (results) {

@@ -249,0 +254,0 @@ if (id === null) {

{
"name": "feathers-sequelize",
"description": "A service adapter for Sequelize an SQL ORM",
"version": "2.3.1",
"version": "2.3.2",
"homepage": "https://github.com/feathersjs/feathers-sequelize",

@@ -86,3 +86,3 @@ "main": "lib/",

"istanbul": "^1.1.0-alpha.1",
"mocha": "^3.0.0",
"mocha": "^4.0.0",
"mysql2": "^1.4.2",

@@ -89,0 +89,0 @@ "pg": "^6.1.5",

Sorry, the diff of this file is not supported yet

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