webcrypto-core
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -735,5 +735,8 @@ /** | ||
static isHashedAlgorithm(data) { | ||
return data instanceof Object | ||
return data | ||
&& typeof data === "object" | ||
&& "name" in data | ||
&& "hash" in data; | ||
&& "hash" in data | ||
? true | ||
: false; | ||
} | ||
@@ -740,0 +743,0 @@ async digest(algorithm, data) { |
@@ -738,5 +738,8 @@ /** | ||
static isHashedAlgorithm(data) { | ||
return data instanceof Object | ||
return data | ||
&& typeof data === "object" | ||
&& "name" in data | ||
&& "hash" in data; | ||
&& "hash" in data | ||
? true | ||
: false; | ||
} | ||
@@ -743,0 +746,0 @@ async digest(algorithm, data) { |
{ | ||
"name": "webcrypto-core", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Common layer to be used by crypto libraries based on WebCrypto API for input validation.", | ||
@@ -5,0 +5,0 @@ "main": "build/webcrypto-core.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
274914
6689