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 1.5.0-0 to 1.5.0

2

CHANGELOG.md

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

## [1.5.0](https://github.com/simoneb/axios-hooks/compare/v1.5.0-0...v1.5.0) (2019-10-23)
## [1.5.0-0](https://github.com/simoneb/axios-hooks/compare/v1.4.1...v1.5.0-0) (2019-10-22)

@@ -7,0 +9,0 @@

22

package.json
{
"name": "axios-hooks",
"version": "1.5.0-0",
"version": "1.5.0",
"description": "axios-hooks",

@@ -50,8 +50,8 @@ "keywords": [

"@babel/preset-env": "7.6.3",
"@testing-library/react-hooks": "2.0.3",
"@types/jest": "24.0.18",
"@testing-library/react-hooks": "3.1.0",
"@types/jest": "24.0.19",
"@types/lru-cache": "5.1.0",
"@types/node": "12.7.12",
"@types/react": "16.9.5",
"@types/react-dom": "16.9.1",
"@types/node": "12.11.5",
"@types/react": "16.9.9",
"@types/react-dom": "16.9.2",
"axios": "0.19.0",

@@ -65,4 +65,4 @@ "babel-eslint": "10.0.3",

"eslint-plugin-prettier": "3.1.1",
"eslint-plugin-react-hooks": "2.1.2",
"husky": "3.0.8",
"eslint-plugin-react-hooks": "2.2.0",
"husky": "3.0.9",
"jest": "24.9.0",

@@ -72,5 +72,5 @@ "lint-staged": "9.4.2",

"prettier": "1.18.2",
"react": "16.10.2",
"react-dom": "16.10.2",
"react-test-renderer": "16.10.2",
"react": "16.11.0",
"react-dom": "16.11.0",
"react-test-renderer": "16.11.0",
"rimraf": "3.0.0",

@@ -77,0 +77,0 @@ "standard-version": "7.0.0",

@@ -88,14 +88,2 @@ import { renderHook, act } from '@testing-library/react-hooks'

it('should return the same reference to the fetch function', async () => {
axios.mockResolvedValue({ data: 'whatever' })
const { result, rerender } = renderHook(() => useAxios(''))
const firstRefetch = result.current[1]
rerender()
expect(result.current[1]).toBe(firstRefetch)
})
describe('manual option', () => {

@@ -102,0 +90,0 @@ it('should set loading to false', async () => {

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