@dxos/crypto
Advanced tools
Comparing version 1.0.0-beta.4 to 1.0.0-beta.5
@@ -12,6 +12,6 @@ /** | ||
/** | ||
* @param {Buffer|Uint8Array} value | ||
* @param {Buffer} value | ||
* @return {string|Buffer} | ||
*/ | ||
export function humanize(value: Buffer | Uint8Array): string | Buffer; | ||
export function humanize(value: Buffer): string | Buffer; | ||
/** | ||
@@ -18,0 +18,0 @@ * Return random bytes of length. |
@@ -47,9 +47,6 @@ "use strict"; | ||
/** | ||
* @param {Buffer|Uint8Array} value | ||
* @param {Buffer} value | ||
* @return {string|Buffer} | ||
*/ | ||
function humanize(value) { | ||
if (value instanceof Uint8Array) { | ||
value = Buffer.from(value); | ||
} | ||
if (value instanceof Buffer) { | ||
@@ -56,0 +53,0 @@ value = keyToString(value); |
{ | ||
"name": "@dxos/crypto", | ||
"version": "1.0.0-beta.4", | ||
"version": "1.0.0-beta.5", | ||
"description": "Basic crypto key utils", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -48,9 +48,6 @@ // | ||
/** | ||
* @param {Buffer|Uint8Array} value | ||
* @param {Buffer} value | ||
* @return {string|Buffer} | ||
*/ | ||
export function humanize (value) { | ||
if (value instanceof Uint8Array) { | ||
value = Buffer.from(value); | ||
} | ||
if (value instanceof Buffer) { | ||
@@ -57,0 +54,0 @@ value = keyToString(value); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
72612
633
1