@leofcoin/codec-format-interface 1.6.2 → 1.6.3
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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -341,7 +341,7 @@ let CodecHash$1 = class CodecHash extends BasicInterface$1 {
|
|
|
341
341
|
}
|
|
342
342
|
if (typeof uint8Array === 'string') {
|
|
343
343
|
if (this.isHex(uint8Array))
|
|
344
|
-
await this.fromHex(
|
|
344
|
+
await this.fromHex(uint8Array);
|
|
345
345
|
if (this.isBase32(uint8Array))
|
|
346
346
|
await this.fromBs32(uint8Array);
|
|
347
347
|
else if (this.isBase58(uint8Array))
|
|
@@ -414,7 +414,7 @@ let CodecHash$1 = class CodecHash extends BasicInterface$1 {
|
|
|
414
414
|
}
|
|
415
415
|
if (typeof buffer === 'string') {
|
|
416
416
|
if (this.isHex(buffer))
|
|
417
|
-
this.fromHex(
|
|
417
|
+
this.fromHex(buffer);
|
|
418
418
|
if (this.isBase32(buffer))
|
|
419
419
|
this.fromBs32(buffer);
|
|
420
420
|
}
|