diff --git a/package-lock.json b/package-lock.json index a9727729..da9d4a58 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@keetanetwork/anchor", - "version": "0.0.19", + "version": "0.0.20", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@keetanetwork/anchor", - "version": "0.0.19", + "version": "0.0.20", "license": "SEE LICENSE IN LICENSE", "dependencies": { "@keetanetwork/currency-info": "1.2.5", diff --git a/package.json b/package.json index cc6b7cdf..72e706d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@keetanetwork/anchor", - "version": "0.0.19", + "version": "0.0.20", "description": "KeetaNetwork Network Anchor", "main": "client/index.js", "scripts": { diff --git a/src/lib/utils/json.ts b/src/lib/utils/json.ts index 708ca860..0b953847 100644 --- a/src/lib/utils/json.ts +++ b/src/lib/utils/json.ts @@ -1,4 +1,4 @@ -import { types as nodeUtilsTypes } from 'util'; +import { types as nodeUtilsTypes } from './util.js'; import { Buffer } from './buffer.js'; import type { JSONSerializable, ToJSONSerializable } from '@keetanetwork/keetanet-client/lib/utils/conversion.js'; export type { JSONSerializable, ToJSONSerializable }; diff --git a/src/lib/utils/util.ts b/src/lib/utils/util.ts new file mode 100644 index 00000000..edd6aaea --- /dev/null +++ b/src/lib/utils/util.ts @@ -0,0 +1,13 @@ +import { lib as KeetaNetLib } from '@keetanetwork/keetanet-client'; + +const util: typeof KeetaNetLib.Utils.Helper.util = KeetaNetLib.Utils.Helper.util; + +const types: typeof util.types = util.types; +const inspect: typeof util.inspect = util.inspect; + +export { + types, + inspect +} + +export default util;