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
1
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 2.1.0 to 2.2.0

8

CHANGELOG.md

@@ -5,2 +5,10 @@ # Changelog

## [2.2.0](https://github.com/simoneb/axios-hooks/compare/v2.1.0...v2.2.0) (2020-11-18)
### Bug Fixes
* **deps:** update dependency lru-cache to v6 ([e589be6](https://github.com/simoneb/axios-hooks/commit/e589be6100130269c4dcdc202288018d1a45cebb))
* **typings:** improve typing of the error and response properties on ResponseValues ([4479a90](https://github.com/simoneb/axios-hooks/commit/4479a906a8db61511a06f5836c6cb9a5c7729e80))
## [2.1.0](https://github.com/simoneb/axios-hooks/compare/v2.0.0...v2.1.0) (2020-07-04)

@@ -7,0 +15,0 @@

68

package.json
{
"name": "axios-hooks",
"version": "2.1.0",
"version": "2.2.0",
"description": "axios-hooks",

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

"dependencies": {
"@babel/runtime": "7.10.3",
"lru-cache": "5.1.1"
"@babel/runtime": "7.12.5",
"lru-cache": "6.0.0"
},
"peerDependencies": {
"react": "^16.8.0-0",
"axios": "^0.18.0 || ^0.19.0"
"react": "^16.8.0-0 || ^17.0.0",
"axios": "^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0"
},
"devDependencies": {
"@babel/cli": "7.10.3",
"@babel/core": "7.10.3",
"@babel/plugin-transform-runtime": "7.10.3",
"@babel/preset-env": "7.10.3",
"@babel/preset-react": "7.10.1",
"@commitlint/cli": "9.0.1",
"@commitlint/config-conventional": "9.0.1",
"@testing-library/react": "10.4.3",
"@testing-library/react-hooks": "3.3.0",
"@types/jest": "26.0.3",
"@babel/cli": "7.12.1",
"@babel/core": "7.12.3",
"@babel/plugin-transform-runtime": "7.12.1",
"@babel/preset-env": "7.12.1",
"@babel/preset-react": "7.12.5",
"@commitlint/cli": "11.0.0",
"@commitlint/config-conventional": "11.0.0",
"@testing-library/react": "11.1.2",
"@testing-library/react-hooks": "3.4.2",
"@types/jest": "26.0.15",
"@types/lru-cache": "5.1.0",
"@types/node": "12.12.24",
"@types/react": "16.9.41",
"@types/react-dom": "16.9.8",
"axios": "0.19.2",
"@types/react": "16.9.56",
"@types/react-dom": "16.9.9",
"axios": "0.21.0",
"babel-eslint": "10.1.0",
"cross-env": "7.0.2",
"cz-conventional-changelog": "3.2.0",
"eslint": "7.3.1",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-import": "2.22.0",
"cz-conventional-changelog": "3.3.0",
"eslint": "7.13.0",
"eslint-config-prettier": "6.15.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.20.0",
"eslint-plugin-react-hooks": "4.0.4",
"husky": "4.2.5",
"jest": "26.1.0",
"lint-staged": "10.2.11",
"eslint-plugin-react": "7.21.5",
"eslint-plugin-react-hooks": "4.2.0",
"husky": "4.3.0",
"jest": "26.6.3",
"lint-staged": "10.5.1",
"npm-run-all": "4.1.5",
"prettier": "2.0.5",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-test-renderer": "16.13.1",
"prettier": "2.1.2",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-test-renderer": "17.0.1",
"rimraf": "3.0.2",
"standard-version": "8.0.0",
"ts-jest": "26.1.1",
"typescript": "3.9.5"
"standard-version": "9.0.0",
"ts-jest": "26.4.4",
"typescript": "4.0.5"
},

@@ -84,0 +84,0 @@ "husky": {

# axios-hooks
[![Build Status](https://travis-ci.org/simoneb/axios-hooks.svg?branch=master)](https://travis-ci.org/simoneb/axios-hooks)
![Node.js CI](https://github.com/simoneb/axios-hooks/workflows/Node.js%20CI/badge.svg)
[![codecov](https://codecov.io/gh/simoneb/axios-hooks/branch/master/graph/badge.svg)](https://codecov.io/gh/simoneb/axios-hooks)

@@ -5,0 +5,0 @@ [![npm version](https://badge.fury.io/js/axios-hooks.svg)](https://badge.fury.io/js/axios-hooks)

@@ -11,7 +11,7 @@ import {

export interface ResponseValues<T> {
data: T
export interface ResponseValues<TResponse, TError> {
data?: TResponse
loading: boolean
error?: AxiosError
response?: AxiosResponse
error?: AxiosError<TError>
response?: AxiosResponse<TResponse>
}

@@ -34,5 +34,5 @@

export interface UseAxios {
<T = any>(config: AxiosRequestConfig | string, options?: Options): [
ResponseValues<T>,
(config?: AxiosRequestConfig, options?: RefetchOptions) => AxiosPromise<T>
<TResponse = any, TError = any>(config: AxiosRequestConfig | string, options?: Options): [
ResponseValues<TResponse, TError>,
(config?: AxiosRequestConfig, options?: RefetchOptions) => AxiosPromise<TResponse>
]

@@ -39,0 +39,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