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

redux-query

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-query - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1-alpha.0

12

dist/commonjs/components/connect-request.js

@@ -19,6 +19,10 @@ 'use strict';

var _lodash5 = require('lodash.intersection');
var _lodash5 = require('lodash.includes');
var _lodash6 = _interopRequireDefault(_lodash5);
var _lodash7 = require('lodash.intersection');
var _lodash8 = _interopRequireDefault(_lodash7);
var _react = require('react');

@@ -62,3 +66,3 @@

var intersect = (0, _lodash6.default)(prevQueryKeys, queryKeys);
var intersect = (0, _lodash8.default)(prevQueryKeys, queryKeys);
var cancelKeys = (0, _lodash4.default)(prevQueryKeys, intersect);

@@ -118,3 +122,3 @@ var requestKeys = (0, _lodash4.default)(queryKeys, intersect);

var requestConfigs = configs.filter(function (c) {
return requestKeys.includes((0, _getQueryKey2.default)(c.url, c.body));
return (0, _lodash6.default)(requestKeys, (0, _getQueryKey2.default)(c.url, c.body));
});

@@ -148,3 +152,3 @@

ensureArray(cancelKeys).filter(function (key) {
return pendingKeys.includes(key);
return (0, _lodash6.default)(pendingKeys, key);
}).forEach(function (queryKey) {

@@ -151,0 +155,0 @@ return dispatch((0, _actions.cancelQuery)(queryKey));

@@ -19,6 +19,10 @@ 'use strict';

var _lodash5 = require('lodash.intersection');
var _lodash5 = require('lodash.includes');
var _lodash6 = _interopRequireDefault(_lodash5);
var _lodash7 = require('lodash.intersection');
var _lodash8 = _interopRequireDefault(_lodash7);
var _react = require('react');

@@ -62,3 +66,3 @@

var intersect = (0, _lodash6.default)(prevQueryKeys, queryKeys);
var intersect = (0, _lodash8.default)(prevQueryKeys, queryKeys);
var cancelKeys = (0, _lodash4.default)(prevQueryKeys, intersect);

@@ -118,3 +122,3 @@ var requestKeys = (0, _lodash4.default)(queryKeys, intersect);

var requestConfigs = configs.filter(function (c) {
return requestKeys.includes((0, _getQueryKey2.default)(c.url, c.body));
return (0, _lodash6.default)(requestKeys, (0, _getQueryKey2.default)(c.url, c.body));
});

@@ -148,3 +152,3 @@

ensureArray(cancelKeys).filter(function (key) {
return pendingKeys.includes(key);
return (0, _lodash6.default)(pendingKeys, key);
}).forEach(function (queryKey) {

@@ -151,0 +155,0 @@ return dispatch((0, _actions.cancelQuery)(queryKey));

{
"name": "redux-query",
"version": "1.1.0",
"version": "1.1.1-alpha.0",
"description": "A library for querying and managing network state in React/Redux applications",

@@ -19,2 +19,3 @@ "main": "dist/commonjs/index.js",

"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"prepublish": "npm run lint && npm run test && npm run build",
"lint": "eslint src test",

@@ -21,0 +22,0 @@ "test:cov": "cross-env NODE_ENV=test nyc npm test",

import partial from 'lodash.partial';
import difference from 'lodash.difference';
import includes from 'lodash.includes';
import intersection from 'lodash.intersection';

@@ -61,3 +62,3 @@ import React from 'react';

const requestConfigs = configs.filter((c) => {
return requestKeys.includes(getQueryKey(c.url, c.body));
return includes(requestKeys, getQueryKey(c.url, c.body));
});

@@ -87,3 +88,3 @@

ensureArray(cancelKeys)
.filter((key) => pendingKeys.includes(key))
.filter((key) => includes(pendingKeys, key))
.forEach((queryKey) => dispatch(cancelQuery(queryKey)));

@@ -90,0 +91,0 @@ }

Sorry, the diff of this file is too big to display

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