From 34ca8621b6a5d6a549de99bd79719761c0dc9615 Mon Sep 17 00:00:00 2001 From: MistEO Date: Thu, 16 Jan 2025 22:12:44 +0800 Subject: [PATCH] chore(nodejs): missing rename --- source/binding/NodeJS/release/maa-node/src/maa.d.ts | 2 +- source/binding/NodeJS/release/maa-node/src/resource.ts | 2 +- source/binding/NodeJS/src/instance/resource.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/binding/NodeJS/release/maa-node/src/maa.d.ts b/source/binding/NodeJS/release/maa-node/src/maa.d.ts index 82b18d9bb..129c87da4 100644 --- a/source/binding/NodeJS/release/maa-node/src/maa.d.ts +++ b/source/binding/NodeJS/release/maa-node/src/maa.d.ts @@ -229,7 +229,7 @@ export declare function resource_status(handle: ResourceHandle, res_id: ResId): export declare function resource_wait(handle: ResourceHandle, res_id: ResId): Promise export declare function resource_loaded(handle: ResourceHandle): boolean export declare function resource_get_hash(handle: ResourceHandle): string | null -export declare function resource_get_task_list(handle: ResourceHandle): string[] | null +export declare function resource_get_node_list(handle: ResourceHandle): string[] | null // tasker.cpp diff --git a/source/binding/NodeJS/release/maa-node/src/resource.ts b/source/binding/NodeJS/release/maa-node/src/resource.ts index 9d0a2d390..6354ad250 100644 --- a/source/binding/NodeJS/release/maa-node/src/resource.ts +++ b/source/binding/NodeJS/release/maa-node/src/resource.ts @@ -154,7 +154,7 @@ export class ResourceBase { } get task_list() { - return maa.resource_get_task_list(this.handle) + return maa.resource_get_node_list(this.handle) } } diff --git a/source/binding/NodeJS/src/instance/resource.cpp b/source/binding/NodeJS/src/instance/resource.cpp index 6b2ca6653..1599a2acf 100644 --- a/source/binding/NodeJS/src/instance/resource.cpp +++ b/source/binding/NodeJS/src/instance/resource.cpp @@ -163,7 +163,7 @@ std::optional resource_get_hash(Napi::External info) } } -std::optional> resource_get_task_list(Napi::External info) +std::optional> resource_get_node_list(Napi::External info) { StringListBuffer buffer; auto ret = MaaResourceGetNodeList(info.Data()->handle, buffer); @@ -193,5 +193,5 @@ void load_instance_resource(Napi::Env env, Napi::Object& exports, Napi::External BIND(resource_wait); BIND(resource_loaded); BIND(resource_get_hash); - BIND(resource_get_task_list); + BIND(resource_get_node_list); }