@iota/converter
Advanced tools
Comparing version 1.0.0-beta.96000eb5 to 1.0.0-beta.a1883550
@@ -92,3 +92,3 @@ "use strict"; | ||
function trytes(trits) { | ||
if (!(trits instanceof Int8Array)) { | ||
if (!(trits instanceof Int8Array) && !Array.isArray(trits)) { | ||
throw new Error(errors.INVALID_TRITS); | ||
@@ -95,0 +95,0 @@ } |
{ | ||
"name": "@iota/converter", | ||
"version": "1.0.0-beta.96000eb5", | ||
"version": "1.0.0-beta.a1883550", | ||
"description": "Convert values & trytes to trits and back", | ||
@@ -5,0 +5,0 @@ "main": "./out/src/index.js", |
@@ -96,3 +96,3 @@ import * as errors from './errors' | ||
export function trytes(trits: Int8Array): string { | ||
if (!(trits instanceof Int8Array)) { | ||
if (!(trits instanceof Int8Array) && !Array.isArray(trits)) { | ||
throw new Error(errors.INVALID_TRITS) | ||
@@ -99,0 +99,0 @@ } |
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
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
63428