Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "blakejs", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Pure Javascript implementation of the BLAKE2b and BLAKE2s hash functions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,6 +8,5 @@ const ERROR_MSG_INPUT = 'Input must be an string, Buffer or Uint8Array' | ||
ret = input | ||
} else if (input instanceof Buffer) { | ||
ret = new Uint8Array(input) | ||
} else if (typeof input === 'string') { | ||
ret = new Uint8Array(Buffer.from(input, 'utf8')) | ||
const encoder = new TextEncoder() | ||
ret = encoder.encode(input) | ||
} else { | ||
@@ -14,0 +13,0 @@ throw new Error(ERROR_MSG_INPUT) |
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
160236
1080