Socket
Socket
Sign inDemoInstall

feathers-sequelize

Package Overview
Dependencies
5
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.1.0 to 5.1.1

7

CHANGELOG.md
# Change Log
## [v5.1.0](https://github.com/feathersjs-ecosystem/feathers-sequelize/tree/v5.1.0) (2019-04-05)
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-sequelize/compare/v5.0.1...v5.1.0)
**Closed issues:**
- include association's association [\#284](https://github.com/feathersjs-ecosystem/feathers-sequelize/issues/284)
## [v5.0.1](https://github.com/feathersjs-ecosystem/feathers-sequelize/tree/v5.0.1) (2019-03-30)

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

16

lib/index.js

@@ -199,14 +199,10 @@ const errors = require('@feathersjs/errors');

const ignoreSetters = Boolean(options.ignoreSetters);
const createOptions = Object.assign({}, options, { raw: ignoreSetters });
const createOptions = Object.assign({
returning: true
}, options, { raw: ignoreSetters });
const isArray = Array.isArray(data);
let promise;
const Model = this.applyScope(params);
const promise = isArray ? Model.bulkCreate(data, createOptions)
: Model.create(data, createOptions);
let Model = this.applyScope(params);
if (isArray) {
promise = Model.bulkCreate(data, createOptions);
} else {
promise = Model.create(data, createOptions);
}
return promise.then(result => {

@@ -213,0 +209,0 @@ const sel = select(params, this.id);

{
"name": "feathers-sequelize",
"description": "A service adapter for Sequelize an SQL ORM",
"version": "5.1.0",
"version": "5.1.1",
"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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc