axios-hooks
Advanced tools
Comparing version 3.1.4 to 3.1.5
@@ -325,3 +325,7 @@ "use strict"; | ||
return cancelOutstandingRequest; | ||
return function () { | ||
if (options.autoCancel) { | ||
cancelOutstandingRequest(); | ||
} | ||
}; | ||
}, [config, options, withCancelToken, cancelOutstandingRequest]); | ||
@@ -328,0 +332,0 @@ |
@@ -302,3 +302,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator"; | ||
return cancelOutstandingRequest; | ||
return function () { | ||
if (options.autoCancel) { | ||
cancelOutstandingRequest(); | ||
} | ||
}; | ||
}, [config, options, withCancelToken, cancelOutstandingRequest]); | ||
@@ -305,0 +309,0 @@ var refetch = React.useCallback(function (configOverride, options) { |
{ | ||
"name": "axios-hooks", | ||
"version": "3.1.4", | ||
"version": "3.1.5", | ||
"description": "axios-hooks", | ||
@@ -36,4 +36,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@babel/runtime": "7.18.6", | ||
"dequal": "2.0.2", | ||
"@babel/runtime": "7.18.9", | ||
"dequal": "2.0.3", | ||
"lru-cache": "6.0.0" | ||
@@ -46,23 +46,23 @@ }, | ||
"devDependencies": { | ||
"@babel/cli": "7.18.6", | ||
"@babel/core": "7.18.6", | ||
"@babel/plugin-transform-runtime": "7.18.6", | ||
"@babel/preset-env": "7.18.6", | ||
"@babel/cli": "7.18.10", | ||
"@babel/core": "7.18.13", | ||
"@babel/plugin-transform-runtime": "7.18.10", | ||
"@babel/preset-env": "7.18.10", | ||
"@babel/preset-react": "7.18.6", | ||
"@commitlint/cli": "17.0.3", | ||
"@commitlint/config-conventional": "17.0.3", | ||
"@commitlint/cli": "17.1.2", | ||
"@commitlint/config-conventional": "17.1.0", | ||
"@testing-library/react": "12.1.5", | ||
"@testing-library/react-hooks": "7.0.2", | ||
"@types/jest": "28.1.4", | ||
"@types/jest": "29.0.0", | ||
"@types/lru-cache": "7.10.10", | ||
"@types/node": "18.0.1", | ||
"@types/react": "18.0.14", | ||
"@types/react-dom": "18.0.5", | ||
"@types/node": "18.7.14", | ||
"@types/react": "18.0.17", | ||
"@types/react-dom": "18.0.6", | ||
"axios": "0.27.2", | ||
"cross-env": "7.0.3", | ||
"eslint": "8.19.0", | ||
"eslint": "8.23.0", | ||
"eslint-config-prettier": "8.5.0", | ||
"eslint-plugin-import": "2.26.0", | ||
"eslint-plugin-prettier": "4.2.1", | ||
"eslint-plugin-react": "7.30.1", | ||
"eslint-plugin-react": "7.31.1", | ||
"eslint-plugin-react-hooks": "4.6.0", | ||
@@ -80,3 +80,3 @@ "husky": "^8.0.1", | ||
"ts-jest": "26.5.6", | ||
"typescript": "4.7.4" | ||
"typescript": "4.8.2" | ||
}, | ||
@@ -83,0 +83,0 @@ "lint-staged": { |
@@ -254,3 +254,7 @@ import React from 'react' | ||
return cancelOutstandingRequest | ||
return () => { | ||
if (options.autoCancel) { | ||
cancelOutstandingRequest() | ||
} | ||
} | ||
}, [config, options, withCancelToken, cancelOutstandingRequest]) | ||
@@ -257,0 +261,0 @@ |
45770
856
+ Added@babel/runtime@7.18.9(transitive)
+ Addeddequal@2.0.3(transitive)
- Removed@babel/runtime@7.18.6(transitive)
- Removeddequal@2.0.2(transitive)
Updated@babel/runtime@7.18.9
Updateddequal@2.0.3