@koralabs/kora-labs-common 6.1.5 → 6.1.6
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/handles/utils.js +1 -1
- package/package.json +2 -2
package/handles/utils.js
CHANGED
|
@@ -128,7 +128,7 @@ const buildDrep = (address, id_hash) => {
|
|
|
128
128
|
const decoded = (_a = (0, utils_1.decodeAddress)(address)) === null || _a === void 0 ? void 0 : _a.slice(2, 58);
|
|
129
129
|
if (!decoded || decoded == '')
|
|
130
130
|
return undefined;
|
|
131
|
-
const hashed = crypto.createHash('md5').update(decoded).digest('hex');
|
|
131
|
+
const hashed = crypto.createHash('md5').update(Buffer.from(decoded, 'hex')).digest('hex');
|
|
132
132
|
if (!id_hash.startsWith(hashed))
|
|
133
133
|
return undefined;
|
|
134
134
|
const typeByte = id_hash.slice(32, 34);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koralabs/kora-labs-common",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.6",
|
|
4
4
|
"description": "Kora Labs Common Utilities",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@aws-sdk/client-dynamodb": "^3.549.0",
|
|
31
31
|
"@aws-sdk/lib-dynamodb": "^3.549.0",
|
|
32
32
|
"@types/jest": "^28.1.1",
|
|
33
|
-
"@types/node": "^
|
|
33
|
+
"@types/node": "^22.15.17",
|
|
34
34
|
"@types/pluralize": "^0.0.29",
|
|
35
35
|
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
36
36
|
"@typescript-eslint/parser": "^7.6.0",
|