From f01ebb8e5df995f14ab4ae427a616cb3a134d315 Mon Sep 17 00:00:00 2001 From: John Driscoll Date: Mon, 27 Jan 2025 12:12:48 -0600 Subject: [PATCH] chore(deser-lib): fix deser-lib untransform handling of arrays TICKET: HSM-635 --- modules/deser-lib/src/cbor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/deser-lib/src/cbor.ts b/modules/deser-lib/src/cbor.ts index 951e2ff33c..aafc8f9e45 100644 --- a/modules/deser-lib/src/cbor.ts +++ b/modules/deser-lib/src/cbor.ts @@ -44,7 +44,7 @@ export function untransform(value: T): T | string { if (value.startsWith('0x')) { return '\\' + value; } - } else if (value instanceof Array && value.length > 1) { + } else if (value instanceof Array) { return value.map(untransform) as unknown as T; } else if (value instanceof Object) { const properties = Object.getOwnPropertyNames(value);