From 83124f8fe98896959529789dd665d6262b55adf0 Mon Sep 17 00:00:00 2001 From: Roy Keene Date: Tue, 28 Oct 2025 22:24:49 -0500 Subject: [PATCH 1/3] Use "util" from KeetaNet Client package to support multiple environments --- src/lib/utils/json.ts | 2 +- src/lib/utils/util.ts | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/lib/utils/util.ts 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..fe97f6f5 --- /dev/null +++ b/src/lib/utils/util.ts @@ -0,0 +1,13 @@ +import { lib as KeetaNetLib } from '@keetanetwork/keetanet-client'; + +const util = KeetaNetLib.Utils.Helper.util; + +const types = util.types; +const inspect = util.inspect; + +export { + types, + inspect +} + +export default util; From 5cb116fd30b5c0a494c20e635fba202e295f88a3 Mon Sep 17 00:00:00 2001 From: Roy Keene Date: Tue, 28 Oct 2025 23:04:28 -0500 Subject: [PATCH 2/3] Add type definitions --- src/lib/utils/util.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/utils/util.ts b/src/lib/utils/util.ts index fe97f6f5..edd6aaea 100644 --- a/src/lib/utils/util.ts +++ b/src/lib/utils/util.ts @@ -1,9 +1,9 @@ import { lib as KeetaNetLib } from '@keetanetwork/keetanet-client'; -const util = KeetaNetLib.Utils.Helper.util; +const util: typeof KeetaNetLib.Utils.Helper.util = KeetaNetLib.Utils.Helper.util; -const types = util.types; -const inspect = util.inspect; +const types: typeof util.types = util.types; +const inspect: typeof util.inspect = util.inspect; export { types, From 7a576d9fb61557e5dcd7f3297bb46b78c90ed11d Mon Sep 17 00:00:00 2001 From: Roy Keene Date: Wed, 29 Oct 2025 11:50:00 -0500 Subject: [PATCH 3/3] Keeta Anchor v0.0.20 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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": {