Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

feathers-memory

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feathers-memory - npm Package Compare versions

Comparing version 0.7.2 to 0.7.3

19

lib/index.js

@@ -174,10 +174,9 @@ 'use strict';

value: function find(params) {
var _this = this;
var paginate = typeof params.paginate !== 'undefined' ? params.paginate : this.paginate;
// Call the internal find with query parameter that include pagination
var result = this._find(params, function (query) {
return (0, _feathersQueryFilters2.default)(query, _this.paginate);
return (0, _feathersQueryFilters2.default)(query, paginate);
});
if (!this.paginate.default) {
if (!(paginate && paginate.default)) {
return result.then(function (page) {

@@ -217,7 +216,7 @@ return page.data;

value: function create(data) {
var _this2 = this;
var _this = this;
if (Array.isArray(data)) {
return Promise.all(data.map(function (current) {
return _this2._create(current);
return _this._create(current);
}));

@@ -273,3 +272,3 @@ }

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

@@ -279,3 +278,3 @@ if (id === null) {

return Promise.all(page.data.map(function (current) {
return _this3._patch(current[_this3._id], data, params);
return _this2._patch(current[_this2._id], data, params);
}));

@@ -305,3 +304,3 @@ });

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

@@ -311,3 +310,3 @@ if (id === null) {

return Promise.all(page.data.map(function (current) {
return _this4._remove(current[_this4._id]);
return _this3._remove(current[_this3._id]);
}));

@@ -314,0 +313,0 @@ });

{
"name": "feathers-memory",
"description": "An in memory service store",
"version": "0.7.2",
"version": "0.7.3",
"homepage": "https://github.com/feathersjs/feathers-memory",

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

"feathers-rest": "^1.2.2",
"feathers-service-tests": "^0.5.0",
"feathers-service-tests": "^0.6.0",
"feathers-socketio": "^1.3.3",

@@ -61,0 +61,0 @@ "jshint": "^2.8.0",

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