@aresrpg/sui-checkpoint-reader
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "@aresrpg/sui-checkpoint-reader", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "", | ||
@@ -37,4 +37,4 @@ "main": "src/index.js", | ||
"@mongodb-js/zstd": "^1.2.2", | ||
"@mysten/bcs": "^1.0.4", | ||
"chokidar": "^4.0.0", | ||
"@mysten/bcs": "^1.1.0", | ||
"chokidar": "^4.0.1", | ||
"classic-level": "^1.4.1", | ||
@@ -44,9 +44,9 @@ "yaml": "^2.5.1" | ||
"devDependencies": { | ||
"@types/node": "^22.5.5", | ||
"@typescript-eslint/eslint-plugin": "^8.6.0", | ||
"@typescript-eslint/parser": "^8.6.0", | ||
"@types/node": "^22.7.4", | ||
"@typescript-eslint/eslint-plugin": "^8.8.0", | ||
"@typescript-eslint/parser": "^8.8.0", | ||
"eslint": "^8.57.1", | ||
"eslint-config-prettier": "9.1.0", | ||
"eslint-config-standard": "17.1.0", | ||
"eslint-plugin-import": "2.30.0", | ||
"eslint-plugin-import": "2.31.0", | ||
"eslint-plugin-node": "11.1.0", | ||
@@ -53,0 +53,0 @@ "eslint-plugin-promise": "^6.6.0", |
@@ -52,3 +52,9 @@ import { setInterval, setTimeout } from 'timers/promises' | ||
case 'vector': | ||
if (rest.vector.struct) return find_nested_bcs(rest.vector.struct) | ||
if (rest.vector.struct) { | ||
const nested = find_nested_bcs(rest.vector.struct) | ||
return nested ? bcs.vector(nested) : null | ||
} | ||
if (rest.vector.$kind === 'address') { | ||
return bcs.vector(SuiAddress) | ||
} | ||
return bcs.vector(bcs[rest.vector.$kind.toLowerCase()]()) | ||
@@ -102,3 +108,4 @@ default: | ||
} catch (error) { | ||
console.dir({ found_bcs }, { depth: Infinity }) | ||
console.log('--- error while parsing content ---') | ||
console.dir({ found_bcs, contents }, { depth: Infinity }) | ||
throw error | ||
@@ -105,0 +112,0 @@ } |
730168
19405
Updated@mysten/bcs@^1.1.0
Updatedchokidar@^4.0.1