@leofcoin/codec-format-interface 1.6.6 → 1.6.8

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -156,7 +156,7 @@ let Codec$1 = class Codec extends BasicInterface$1 {
156
156
  }
157
157
  }
158
158
  else if (typeof buffer === 'string') {
159
- if (utils.getCodec[buffer])
159
+ if (utils.getCodec(buffer))
160
160
  this.fromName(buffer);
161
161
  else if (this.isHex(buffer))
162
162
  this.fromHex(buffer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/codec-format-interface",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {