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

asdfgh

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asdfgh - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "asdfgh",
"version": "1.0.2",
"version": "1.0.3",
"description": "Asynchronous wrapper around zxcvbn",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -20,8 +20,2 @@ # asdfgh

// by default loads from cdnjs
// override with optional setting
//
// asdfgh.setDefaults(url, integritySRI, timeoutMS)
async function checkPassphrase(pwd) {

@@ -39,2 +33,17 @@ try {

// must call before any password check
function changeAsdfghOptions() {
// default values used
// url to load zxcvbn from
const url = "https://cdnjs.cloudflare.com/ajax/libs/zxcvbn/4.4.2/zxcvbn.js";
// integrity parameter for script element
const integritySRI = "sha256-Znf8FdJF85f1LV0JmPOob5qudSrns8pLPZ6qkd/+F0o=";
// max time to wait for zxcvbn before timing out
const timeout = 5000;
asdfgh.setDefaults(url, integritySRI, timeoutMS);
}
```

@@ -47,3 +56,3 @@

* `asdfgh.setDefaults(url, integritySRI, timeoutMS)`
* Must be callsed before any passphrase checks are started
* Must be called before any passphrase checks are started
* default:

@@ -50,0 +59,0 @@ * version: 4.4.2

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