Comparing version 1.0.2 to 1.0.3
{ | ||
"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 |
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
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
14466
65