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 4.0.4 to 4.0.5

7

CHANGELOG.md
# Change Log
## [v4.0.4](https://github.com/feathersjs-ecosystem/feathers-sequelize/tree/v4.0.4) (2018-12-22)
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-sequelize/compare/v4.0.3...v4.0.4)
**Merged pull requests:**
- Only filter plain objects in query [\#264](https://github.com/feathersjs-ecosystem/feathers-sequelize/pull/264) ([daffl](https://github.com/daffl))
## [v4.0.3](https://github.com/feathersjs-ecosystem/feathers-sequelize/tree/v4.0.3) (2018-12-21)

@@ -4,0 +11,0 @@ [Full Changelog](https://github.com/feathersjs-ecosystem/feathers-sequelize/compare/v4.0.2...v4.0.3)

9

lib/index.js

@@ -263,6 +263,5 @@ const errors = require('@feathersjs/errors');

// update
const updateOptions = Object.assign({}, params.sequelize, { raw: false });
const getOptions = Object.assign({}, params, { query: where, sequelize: { raw: false } });
const seqOptions = Object.assign({}, params.sequelize, { raw: false });
return this._get(id, getOptions).then(instance => {
return this._get(id, { sequelize: seqOptions, query: where }).then(instance => {
const copy = Object.keys(instance.toJSON()).reduce((result, key) => {

@@ -274,4 +273,4 @@ result[key] = typeof data[key] === 'undefined' ? null : data[key];

return instance.update(copy, updateOptions)
.then(() => this._get(id, { sequelize: params.sequelize }));
return instance.update(copy, seqOptions)
.then(() => this._get(id, { sequelize: seqOptions }));
})

@@ -278,0 +277,0 @@ .then(select(params, this.id))

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

@@ -6,0 +6,0 @@ "main": "lib/",

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