@brightleaf/react-hooks
Advanced tools
Comparing version 0.15.0 to 0.16.0
"use strict"; | ||
var _reactHooksTestingLibrary = require("react-hooks-testing-library"); | ||
var _reactHooks = require("@testing-library/react-hooks"); | ||
@@ -10,6 +10,6 @@ var _ = require("../"); | ||
result | ||
} = (0, _reactHooksTestingLibrary.renderHook)(() => (0, _.useLocalStorage)('test', 'Test')); | ||
} = (0, _reactHooks.renderHook)(() => (0, _.useLocalStorage)('test', 'Test')); | ||
expect(result.current[0]).toBe('Test'); | ||
(0, _reactHooksTestingLibrary.act)(() => result.current[1]('Bob')); | ||
(0, _reactHooks.act)(() => result.current[1]('Bob')); | ||
expect(result.current[0]).toBe('Bob'); | ||
}); |
{ | ||
"name": "@brightleaf/react-hooks", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"description": "Useful react hooks", | ||
@@ -10,3 +10,3 @@ "files": [ | ||
"scripts": { | ||
"test": "jest", | ||
"test": "jest ./src", | ||
"dev": "webpack-dev-server --config ./webpack/webpack.config.js --mode development", | ||
@@ -21,5 +21,9 @@ "preversion": "npx isom build && npx isom build:examples", | ||
"utils", | ||
"tools" | ||
"tools", | ||
"graphql", | ||
"fetch", | ||
"DOM", | ||
"hooks" | ||
], | ||
"homepage": "https://brightleaf.github.io/react-hooks", | ||
"homepage": "https://brightleaf.dev/hooks", | ||
"author": "Brightleaf JS", | ||
@@ -36,22 +40,22 @@ "repository": { | ||
"@hapi/nes": "^11.2.0", | ||
"graphql-request": "^1.8.2", | ||
"highlight.js": "^9.15.8" | ||
"graphql-request": "^1.8.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.4.4", | ||
"@babel/core": "^7.4.5", | ||
"@babel/plugin-proposal-class-properties": "^7.4.4", | ||
"@babel/cli": "^7.5.0", | ||
"@babel/core": "^7.5.4", | ||
"@babel/plugin-proposal-class-properties": "^7.5.0", | ||
"@babel/plugin-syntax-dynamic-import": "^7.2.0", | ||
"@babel/preset-env": "^7.4.5", | ||
"@babel/preset-env": "^7.5.4", | ||
"@babel/preset-react": "^7.0.0", | ||
"@kev_nz/eslint-config": "^3.3.0", | ||
"@kev_nz/async-tools": "^1.2.1", | ||
"@kev_nz/eslint-config": "^4.0.0", | ||
"@kev_nz/publisher": "^4.0.1", | ||
"@reach/router": "^1.2.1", | ||
"@testing-library/react": "^8.0.1", | ||
"axios": "^0.19.0", | ||
"@testing-library/react": "^8.0.5", | ||
"@testing-library/react-hooks": "^1.1.0", | ||
"babel-loader": "^8.0.6", | ||
"copy-webpack-plugin": "^5.0.3", | ||
"css-loader": "^3.0.0", | ||
"eslint": "^5.16.0", | ||
"eslint-plugin-react-hooks": "^1.6.0", | ||
"eslint": "^6.0.1", | ||
"eslint-plugin-react-hooks": "^1.6.1", | ||
"hash-source": "^1.0.4", | ||
@@ -63,3 +67,3 @@ "html-loader": "^0.5.5", | ||
"jest-localstorage-mock": "^2.4.0", | ||
"jest-websocket-mock": "^1.4.0", | ||
"jest-websocket-mock": "^1.5.0", | ||
"markdown-loader": "^5.0.0", | ||
@@ -69,8 +73,7 @@ "mock-socket": "^8.0.5", | ||
"react-dom": "^16.8.6", | ||
"react-hooks-testing-library": "^0.6.0", | ||
"react-hot-loader": "^4.11.1", | ||
"react-hot-loader": "^4.12.6", | ||
"react-test-renderer": "^16.8.6", | ||
"style-loader": "^0.23.1", | ||
"webpack": "^4.35.0", | ||
"webpack-cli": "^3.3.4", | ||
"webpack": "^4.35.3", | ||
"webpack-cli": "^3.3.5", | ||
"webpack-dev-server": "^3.7.2" | ||
@@ -77,0 +80,0 @@ }, |
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 website
QualityPackage does not have a website.
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
43375
3
28
1203
2
- Removedhighlight.js@^9.15.8
- Removedhighlight.js@9.18.5(transitive)