Comparing version 0.1.0 to 0.2.0
16
index.js
@@ -0,1 +1,3 @@ | ||
(function(){ | ||
var defaultUrl = | ||
@@ -55,3 +57,3 @@ "https://cdnjs.cloudflare.com/ajax/libs/zxcvbn/4.4.2/zxcvbn.js"; | ||
module.exports = function(password, user_inputs) { | ||
var asdfgh = function(password, user_inputs) { | ||
return loadLibrary().then(function(zxcvbn) { | ||
@@ -62,3 +64,3 @@ return zxcvbn(password, user_inputs); | ||
module.exports.setDefaults(url, integrity, timeout) { | ||
asdfgh.setDefaults(url, integrity, timeout) { | ||
loadUrl = url; | ||
@@ -70,1 +72,11 @@ loadIntegrity = integrity; | ||
} | ||
if (module && module.exports) { | ||
module.exports = asdfgh; | ||
} else if (window) { | ||
window.asdfgh = asdfgh; | ||
} else { | ||
throw new Error("asdfgh: Not in a Node/Browserify/Webpack or browser environment."); | ||
} | ||
}()) |
{ | ||
"name": "asdfgh", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Asynchronous wrapper around zxcvbn", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
4940
68