@leofcoin/codec-format-interface 1.6.13 → 1.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -334,7 +334,7 @@ let FormatInterface$1 = class FormatInterface extends BasicInterface$1 {
|
|
|
334
334
|
this.fromUint8Array(buffer);
|
|
335
335
|
else if (buffer instanceof ArrayBuffer)
|
|
336
336
|
this.fromArrayBuffer(buffer);
|
|
337
|
-
else if (buffer instanceof FormatInterface
|
|
337
|
+
else if (buffer instanceof FormatInterface && buffer?.name === this.name)
|
|
338
338
|
return buffer;
|
|
339
339
|
else if (typeof buffer === 'string') {
|
|
340
340
|
if (this.isHex(buffer))
|