@dao-xyz/borsh
Advanced tools
Comparing version 5.1.7 to 5.1.8
@@ -567,3 +567,3 @@ "use strict"; | ||
else if (index === otherVariant || (Array.isArray(index) && Array.isArray(otherVariant) && (index.length !== otherVariant.length || index.every((value, index) => value === otherVariant[index])))) { | ||
throw new error_js_1.BorshError(`Variant of ${ctor.name}: ${exports.variant} is the same as for ${dependency.name} which is not allowed (non-determinism)`); | ||
throw new error_js_1.BorshError(`Variant of ${ctor.name}: ${JSON.stringify(index)} is the same as for ${dependency.name} which is not allowed (non-determinism)`); | ||
} | ||
@@ -570,0 +570,0 @@ } |
@@ -545,3 +545,3 @@ import { FixedArrayKind, OptionKind, StructKind, VecKind, getOffset, StringType, } from "./types.js"; | ||
else if (index === otherVariant || (Array.isArray(index) && Array.isArray(otherVariant) && (index.length !== otherVariant.length || index.every((value, index) => value === otherVariant[index])))) { | ||
throw new BorshError(`Variant of ${ctor.name}: ${variant} is the same as for ${dependency.name} which is not allowed (non-determinism)`); | ||
throw new BorshError(`Variant of ${ctor.name}: ${JSON.stringify(index)} is the same as for ${dependency.name} which is not allowed (non-determinism)`); | ||
} | ||
@@ -548,0 +548,0 @@ } |
{ | ||
"name": "@dao-xyz/borsh", | ||
"version": "5.1.7", | ||
"version": "5.1.8", | ||
"readme": "README.md", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/dao-xyz/borsh-ts#README", |
@@ -677,3 +677,3 @@ import { | ||
else if (index === otherVariant || (Array.isArray(index) && Array.isArray(otherVariant) && (index.length !== otherVariant.length || index.every((value, index) => value === (otherVariant as number[])[index])))) { | ||
throw new BorshError(`Variant of ${ctor.name}: ${variant} is the same as for ${dependency.name} which is not allowed (non-determinism)`) | ||
throw new BorshError(`Variant of ${ctor.name}: ${JSON.stringify(index)} is the same as for ${dependency.name} which is not allowed (non-determinism)`) | ||
@@ -680,0 +680,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
359510