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.1.6 to 1.2.0

15

lib/index.js

@@ -88,9 +88,8 @@ 'use strict';

value: function find(params) {
var _this = this;
var paginate = params && typeof params.paginate !== 'undefined' ? params.paginate : this.paginate;
var result = this._find(params, function (where) {
return (0, _feathersQueryFilters2.default)(where, _this.paginate);
return (0, _feathersQueryFilters2.default)(where, paginate);
});
if (!this.paginate.default) {
if (!paginate.default) {
return result.then(function (page) {

@@ -148,3 +147,3 @@ return page.data;

value: function patch(id, data, params) {
var _this2 = this;
var _this = this;

@@ -162,3 +161,3 @@ var where = _extends({}, params.query);

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

@@ -197,3 +196,3 @@ }

value: function remove(id, params) {
var _this3 = this;
var _this2 = this;

@@ -209,3 +208,3 @@ return this._getOrFind(id, params).then(function (data) {

return _this3.Model.destroy(options).then(function () {
return _this2.Model.destroy(options).then(function () {
return data;

@@ -212,0 +211,0 @@ });

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

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

"feathers-rest": "^1.3.0",
"feathers-service-tests": "^0.5.2",
"feathers-service-tests": "^0.6.0",
"jshint": "^2.8.0",

@@ -70,0 +70,0 @@ "mocha": "^2.5.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