react-password-strength
Advanced tools
+2
-2
| { | ||
| "name": "react-password-strength", | ||
| "version": "2.3.0", | ||
| "version": "2.3.1", | ||
| "engines": { | ||
| "node": "6.11.1" | ||
| "node": ">6.11.1" | ||
| }, | ||
@@ -7,0 +7,0 @@ "description": "A password strength indicator field for use in React projects", |
Sorry, the diff of this file is too big to display
| <!doctype html> | ||
| <html> | ||
| <head> | ||
| <title>React Password Strength Example</title> | ||
| <style media="screen"> | ||
| body { | ||
| background: #e6e6e6; | ||
| font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
| } | ||
| #example { | ||
| background: #fff; | ||
| margin: 50px auto 30px; | ||
| min-height: 250px; | ||
| padding: 45px 75px; | ||
| width: 500px; | ||
| } | ||
| label { | ||
| display: inline-block; | ||
| margin-bottom: 10px; | ||
| } | ||
| button { | ||
| background: #fff; | ||
| border: none; | ||
| color: #6e6e6e; | ||
| font-size: 16px; | ||
| padding: 5px 8px; | ||
| margin-top: 10px; | ||
| opacity: 1; | ||
| transition: opacity 250ms ease-in-out; | ||
| } | ||
| button:hover, | ||
| button:focus { | ||
| cursor: pointer; | ||
| outline: none; | ||
| } | ||
| button:disabled { | ||
| opacity: 0; | ||
| } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div id="example"></div> | ||
| <script src="bundle.js"></script> | ||
| </body> | ||
| </html> |
| import React from 'react'; | ||
| import ReactDOM from 'react-dom'; | ||
| import ReactPasswordStrength from "../dist/index"; | ||
| class App extends React.Component { | ||
| constructor() { | ||
| super(); | ||
| this.state = { | ||
| passLength: 0, | ||
| }; | ||
| } | ||
| changeCallback(state) { | ||
| this.setState({ passLength: state.password.length }); | ||
| } | ||
| clear() { | ||
| this.refs.passComponent.clear(); | ||
| } | ||
| render() { | ||
| const inputProps = { | ||
| placeholder: "Try a password...", | ||
| id: "inputPassword", | ||
| autoFocus: true, | ||
| }; | ||
| return ( | ||
| <div> | ||
| <h1>React Password Strength Tool</h1> | ||
| <p>Powered by <a href="https://github.com/dropbox/zxcvbn" target="_blank">zxcvbn</a></p> | ||
| <ReactPasswordStrength | ||
| ref="passComponent" | ||
| inputProps={inputProps} | ||
| changeCallback={this.changeCallback.bind(this)} | ||
| /> | ||
| <button | ||
| onClick={this.clear.bind(this)} | ||
| disabled={this.state.passLength === 0} | ||
| > | ||
| Clear | ||
| </button> | ||
| </div> | ||
| ); | ||
| } | ||
| } | ||
| ReactDOM.render(<App />, document.getElementById("example")); |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1828928
-46.64%16
-15.79%12786
-63.51%