Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@brightleaf/react-hooks

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brightleaf/react-hooks - npm Package Compare versions

Comparing version 4.1.1 to 4.2.0

6

lib/use-stylesheet.js

@@ -11,2 +11,3 @@ "use strict";

const useStyleSheet = href => {
const [sheet, setSheet] = (0, _react.useState)(href);
(0, _react.useEffect)(() => {

@@ -16,3 +17,3 @@ const link = document.createElement('link');

link.rel = 'stylesheet';
link.href = href;
link.href = sheet;
document.getElementsByTagName('head')[0].appendChild(link);

@@ -22,3 +23,4 @@ return () => {

};
}, [href]);
}, [sheet]);
return [sheet, setSheet];
};

@@ -25,0 +27,0 @@

{
"name": "@brightleaf/react-hooks",
"version": "4.1.1",
"version": "4.2.0",
"description": "Useful react hooks",

@@ -45,19 +45,19 @@ "files": [

"devDependencies": {
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/preset-env": "^7.6.0",
"@babel/preset-react": "^7.0.0",
"@babel/cli": "^7.7.5",
"@babel/core": "^7.7.5",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
"@babel/preset-env": "^7.7.6",
"@babel/preset-react": "^7.7.4",
"@kev_nz/async-tools": "^1.2.3",
"@kev_nz/eslint-config": "^4.0.0",
"@kev_nz/eslint-config": "^5.1.0",
"@kev_nz/publisher": "^4.0.1",
"@reach/router": "^1.2.1",
"@testing-library/react": "^9.1.4",
"@testing-library/react-hooks": "^2.0.1",
"@testing-library/react": "^9.3.2",
"@testing-library/react-hooks": "^3.2.1",
"babel-loader": "^8.0.6",
"copy-webpack-plugin": "^5.0.4",
"css-loader": "^3.2.0",
"eslint": "^6.4.0",
"eslint-plugin-react-hooks": "^2.0.1",
"copy-webpack-plugin": "^5.0.5",
"css-loader": "^3.2.1",
"eslint": "^6.7.2",
"eslint-plugin-react-hooks": "^2.3.0",
"graphql-request": "^1.8.2",

@@ -71,17 +71,17 @@ "hash-source": "^1.0.4",

"jest-localstorage-mock": "^2.4.0",
"jest-websocket-mock": "^1.5.0",
"jest-websocket-mock": "^2.0.0",
"markdown-loader": "^5.1.0",
"mock-socket": "^9.0.0",
"react": ">=16.9.0",
"react-dom": "^16.9.0",
"react-hot-loader": "^4.12.13",
"react-test-renderer": "^16.9.0",
"rollup": "^1.21.4",
"mock-socket": "^9.0.2",
"react": ">=16.12.0",
"react-dom": "^16.12.0",
"react-hot-loader": "^4.12.18",
"react-test-renderer": "^16.12.0",
"rollup": "^1.27.9",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"style-loader": "^1.0.0",
"webpack": "^4.40.2",
"webpack-cli": "^3.3.8",
"webpack-dev-server": "^3.8.1"
"style-loader": "^1.0.1",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.9.0"
},

@@ -88,0 +88,0 @@ "peerDependencies": {

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