@aresrpg/aresrpg-sdk
Advanced tools
Comparing version 4.1.4 to 4.1.5
{ | ||
"name": "@aresrpg/aresrpg-sdk", | ||
"version": "4.1.4", | ||
"version": "4.1.5", | ||
"description": "General SDK to interract with AresRPG", | ||
@@ -64,3 +64,3 @@ "type": "module", | ||
"iterator-helper": "^1.3.4", | ||
"lru-cache": "^10.2.2", | ||
"lru-cache": "^10.3.0", | ||
"pino": "^9.2.0", | ||
@@ -70,5 +70,5 @@ "spiralloop": "^1.0.2" | ||
"devDependencies": { | ||
"@types/node": "^20.14.8", | ||
"@typescript-eslint/eslint-plugin": "^7.13.1", | ||
"@typescript-eslint/parser": "^7.13.1", | ||
"@types/node": "^20.14.9", | ||
"@typescript-eslint/eslint-plugin": "^7.15.0", | ||
"@typescript-eslint/parser": "^7.15.0", | ||
"dotenv": "^16.4.5", | ||
@@ -80,7 +80,7 @@ "eslint": "^8.57.0", | ||
"eslint-plugin-node": "11.1.0", | ||
"eslint-plugin-promise": "6.2.0", | ||
"eslint-plugin-promise": "6.4.0", | ||
"husky": "^4.3.8", | ||
"lint-staged": "15.2.7", | ||
"prettier": "3.3.2", | ||
"typescript": "5.5.2" | ||
"typescript": "5.5.3" | ||
}, | ||
@@ -87,0 +87,0 @@ "husky": { |
@@ -5,3 +5,4 @@ import { parse_sui_object } from '../cache.js' | ||
/** @param {import("../../../types.js").Context} context */ | ||
export function get_character_by_id({ sui_client, types }) { | ||
export function get_character_by_id(context) { | ||
const { types, sui_client } = context | ||
return async id => { | ||
@@ -16,6 +17,4 @@ const character = parse_sui_object( | ||
if (!character) return | ||
if (character._type !== `${types.PACKAGE_ID}::character::Character`) | ||
throw new Error(`INVALID_CONTRACT`) | ||
return parse_character({ sui_client, types })(character) | ||
return parse_character(context)(character) | ||
} | ||
} |
/** @param {import("../../../types.js").Context} context */ | ||
export function get_character_by_id({ sui_client, types }: import("../../../types.js").Context): (id: any) => Promise<import("../../../types.js").SuiCharacter>; | ||
export function get_character_by_id(context: import("../../../types.js").Context): (id: any) => Promise<import("../../../types.js").SuiCharacter>; |
146263
4305
Updatedlru-cache@^10.3.0