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 1.3.2 to 1.3.3

14

CHANGELOG.md
# Change Log
## [v1.3.2](https://github.com/feathersjs/feathers-sequelize/tree/v1.3.2) (2016-08-25)
[Full Changelog](https://github.com/feathersjs/feathers-sequelize/compare/v1.3.1...v1.3.2)
**Closed issues:**
- Cannot call remove service method when id field name is custom [\#60](https://github.com/feathersjs/feathers-sequelize/issues/60)
- Make params optional [\#59](https://github.com/feathersjs/feathers-sequelize/issues/59)
- Exporting utils.js [\#58](https://github.com/feathersjs/feathers-sequelize/issues/58)
**Merged pull requests:**
- Use correct id property when removing items [\#62](https://github.com/feathersjs/feathers-sequelize/pull/62) ([daffl](https://github.com/daffl))
- Update mocha to version 3.0.0 🚀 [\#57](https://github.com/feathersjs/feathers-sequelize/pull/57) ([greenkeeperio-bot](https://github.com/greenkeeperio-bot))
## [v1.3.1](https://github.com/feathersjs/feathers-sequelize/tree/v1.3.1) (2016-07-20)

@@ -4,0 +18,0 @@ [Full Changelog](https://github.com/feathersjs/feathers-sequelize/compare/v1.3.0...v1.3.1)

19

lib/index.js

@@ -7,2 +7,4 @@ 'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

@@ -55,2 +57,3 @@

this.id = options.id || 'id';
this.events = options.events;
}

@@ -159,3 +162,17 @@

var where = _extends({}, params.query);
var patchQuery = {};
// Account for potentially modified data
Object.keys(where).forEach(function (key) {
if (where[key] !== undefined && data[key] !== undefined && _typeof(data[key]) !== 'object') {
patchQuery[key] = data[key];
} else {
patchQuery[key] = where[key];
}
});
var patchParams = _extends({}, params, {
query: patchQuery
});
if (id !== null) {

@@ -168,3 +185,3 @@ where[this.id] = id;

return this.Model.update((0, _lodash2.default)(data, this.id), options).then(function () {
return _this._getOrFind(id, params);
return _this._getOrFind(id, patchParams);
}).catch(utils.errorHandler);

@@ -171,0 +188,0 @@ }

4

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

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

"feathers-rest": "^1.3.0",
"feathers-service-tests": "^0.6.1",
"feathers-service-tests": "^0.8.0",
"jshint": "^2.8.0",

@@ -71,0 +71,0 @@ "mocha": "^3.0.0",

Sorry, the diff of this file is not supported yet

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