New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

axios-hooks

Package Overview
Dependencies
Maintainers
0
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axios-hooks - npm Package Compare versions

Comparing version 5.0.2 to 5.1.0

8

cjs/index.js

@@ -16,3 +16,3 @@ "use strict";

function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
var actions = {

@@ -90,3 +90,3 @@ REQUEST_START: 'REQUEST_START',

function _serializeCache() {
_serializeCache = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
_serializeCache = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
var ssrPromisesCopy;

@@ -176,3 +176,3 @@ return _regenerator["default"].wrap(function _callee$(_context) {

function _executeRequest() {
_executeRequest = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(config, dispatch) {
_executeRequest = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(config, dispatch) {
var response;

@@ -219,3 +219,3 @@ return _regenerator["default"].wrap(function _callee2$(_context2) {

function _request() {
_request = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(config, options, dispatch) {
_request = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(config, options, dispatch) {
return _regenerator["default"].wrap(function _callee3$(_context3) {

@@ -222,0 +222,0 @@ while (1) switch (_context3.prev = _context3.next) {

@@ -81,3 +81,3 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";

function _serializeCache() {
_serializeCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
_serializeCache = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
var ssrPromisesCopy;

@@ -167,3 +167,3 @@ return _regeneratorRuntime.wrap(function _callee$(_context) {

function _executeRequest() {
_executeRequest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(config, dispatch) {
_executeRequest = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(config, dispatch) {
var response;

@@ -210,3 +210,3 @@ return _regeneratorRuntime.wrap(function _callee2$(_context2) {

function _request() {
_request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(config, options, dispatch) {
_request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(config, options, dispatch) {
return _regeneratorRuntime.wrap(function _callee3$(_context3) {

@@ -213,0 +213,0 @@ while (1) switch (_context3.prev = _context3.next) {

{
"name": "axios-hooks",
"version": "5.0.2",
"version": "5.1.0",
"description": "axios-hooks",

@@ -36,46 +36,46 @@ "keywords": [

"dependencies": {
"@babel/runtime": "7.23.4",
"@babel/runtime": "7.26.0",
"dequal": "2.0.3",
"lru-cache": "^10.0.1"
"lru-cache": "^11.0.0"
},
"peerDependencies": {
"axios": ">=1.0.0",
"react": "^16.8.0-0 || ^17.0.0 || ^18.0.0"
"react": "^16.8.0-0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"devDependencies": {
"@babel/cli": "7.23.4",
"@babel/core": "7.23.3",
"@babel/plugin-transform-runtime": "7.23.4",
"@babel/preset-env": "7.23.3",
"@babel/preset-react": "7.23.3",
"@commitlint/cli": "18.4.2",
"@commitlint/config-conventional": "18.4.2",
"@babel/cli": "7.26.4",
"@babel/core": "7.26.0",
"@babel/plugin-transform-runtime": "7.25.9",
"@babel/preset-env": "7.26.0",
"@babel/preset-react": "7.26.3",
"@commitlint/cli": "19.6.1",
"@commitlint/config-conventional": "19.6.0",
"@testing-library/react": "12.1.5",
"@testing-library/react-hooks": "7.0.2",
"@types/jest": "29.5.8",
"@types/node": "20.9.2",
"@types/jest": "29.5.14",
"@types/node": "22.10.5",
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"axios": "1.6.2",
"axios": "1.7.9",
"cross-env": "7.0.3",
"eslint": "8.54.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.29.0",
"eslint-plugin-prettier": "5.0.1",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"husky": "^8.0.1",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.37.3",
"eslint-plugin-react-hooks": "5.1.0",
"husky": "^9.0.3",
"jest": "29.7.0",
"jest-environment-jsdom": "^29.6.4",
"lint-staged": "15.1.0",
"lint-staged": "15.3.0",
"npm-run-all": "4.1.5",
"prettier": "3.1.0",
"prettier": "3.4.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"rimraf": "5.0.5",
"rimraf": "6.0.1",
"shx": "0.3.4",
"standard-version": "9.5.0",
"ts-jest": "29.1.1",
"tsd": "^0.29.0",
"typescript": "5.2.2"
"ts-jest": "29.2.5",
"tsd": "^0.31.0",
"typescript": "5.7.2"
},

@@ -82,0 +82,0 @@ "lint-staged": {

@@ -135,3 +135,3 @@ > The license of this software has changed to AWISC - Anti War ISC license

A promise containing the response. If the request is unsuccessful, the promise reects and the rejection must be handled manually.
A promise containing the response. If the request is unsuccessful, the promise rejects and the rejection must be handled manually.

@@ -138,0 +138,0 @@ - `manualCancel()` - A function to cancel outstanding requests manually.

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