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.4.4 to 1.4.5

13

CHANGELOG.md
# Change Log
## [v1.4.4](https://github.com/feathersjs/feathers-sequelize/tree/v1.4.4) (2017-03-24)
[Full Changelog](https://github.com/feathersjs/feathers-sequelize/compare/v1.4.3...v1.4.4)
**Closed issues:**
- Relation between Models not working. [\#98](https://github.com/feathersjs/feathers-sequelize/issues/98)
- Can we create nested models in one go? [\#97](https://github.com/feathersjs/feathers-sequelize/issues/97)
- Add example for model relations [\#20](https://github.com/feathersjs/feathers-sequelize/issues/20)
**Merged pull requests:**
- checking for the toJSON method on the instance before calling it [\#100](https://github.com/feathersjs/feathers-sequelize/pull/100) ([lowip](https://github.com/lowip))
## [v1.4.3](https://github.com/feathersjs/feathers-sequelize/tree/v1.4.3) (2017-03-17)

@@ -4,0 +17,0 @@ [Full Changelog](https://github.com/feathersjs/feathers-sequelize/compare/v1.4.2...v1.4.3)

6

lib/index.js

@@ -228,3 +228,5 @@ 'use strict';

return this.Model.findById(id).then(function (instance) {
// Force the {raw: false} option as the instance is needed to properly
// update
return this.Model.findById(id, { raw: false }).then(function (instance) {
if (!instance) {

@@ -235,3 +237,3 @@ throw new _feathersErrors2.default.NotFound('No record found for id \'' + id + '\'');

var copy = {};
Object.keys(typeof instance.toJSON === 'function' ? instance.toJSON() : instance).forEach(function (key) {
Object.keys(instance.toJSON()).forEach(function (key) {
if (typeof data[key] === 'undefined') {

@@ -238,0 +240,0 @@ copy[key] = null;

{
"name": "feathers-sequelize",
"description": "A service adapter for Sequelize an SQL ORM",
"version": "1.4.4",
"version": "1.4.5",
"homepage": "https://github.com/feathersjs/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