redux-query
Advanced tools
Comparing version 1.1.0 to 1.1.1-alpha.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
222650
2961
3