@maaxyz/maa-node 2.3.0-alpha.3 → 2.3.0-beta.2
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/dist/index.js +5 -3
- package/dist/maa.d.ts +1 -1
- package/dist/tasker.d.ts +1 -1
- package/package.json +7 -7
- package/src/maa.d.ts +1 -1
- package/src/tasker.ts +5 -3
package/dist/index.js
CHANGED
|
@@ -467,9 +467,11 @@ var TaskerBase = class {
|
|
|
467
467
|
return import_maa2.default.tasker_running(this.handle);
|
|
468
468
|
}
|
|
469
469
|
post_stop() {
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
470
|
+
return new TaskJob(
|
|
471
|
+
this,
|
|
472
|
+
this.#source,
|
|
473
|
+
import_maa2.default.tasker_post_stop(this.handle)
|
|
474
|
+
);
|
|
473
475
|
}
|
|
474
476
|
get resource() {
|
|
475
477
|
const res = import_maa2.default.tasker_get_resource(this.handle);
|
package/dist/maa.d.ts
CHANGED
|
@@ -252,7 +252,7 @@ export declare function tasker_post_pipeline(
|
|
|
252
252
|
export declare function tasker_status(handle: TaskerHandle, task_id: TaskId): Status
|
|
253
253
|
export declare function tasker_wait(handle: TaskerHandle, task_id: TaskId): Promise<Status>
|
|
254
254
|
export declare function tasker_running(handle: TaskerHandle): boolean
|
|
255
|
-
export declare function tasker_post_stop(handle: TaskerHandle):
|
|
255
|
+
export declare function tasker_post_stop(handle: TaskerHandle): TaskId
|
|
256
256
|
export declare function tasker_get_resource(handle: TaskerHandle): ResourceHandle | null
|
|
257
257
|
export declare function tasker_get_controller(handle: TaskerHandle): ControllerHandle | null
|
|
258
258
|
export declare function tasker_clear_cache(handle: TaskerHandle): boolean
|
package/dist/tasker.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ export declare class TaskerBase {
|
|
|
77
77
|
post_pipeline(entry: string, param?: Record<string, unknown>): TaskJob;
|
|
78
78
|
get inited(): boolean;
|
|
79
79
|
get running(): boolean;
|
|
80
|
-
post_stop():
|
|
80
|
+
post_stop(): TaskJob;
|
|
81
81
|
get resource(): ResourceBase | null;
|
|
82
82
|
get controller(): ControllerBase | null;
|
|
83
83
|
clear_cache(): void;
|
package/package.json
CHANGED
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"prettier": "^3.3.2",
|
|
22
22
|
"typescript": "^5.4.5"
|
|
23
23
|
},
|
|
24
|
-
"version": "2.3.0-
|
|
24
|
+
"version": "2.3.0-beta.2",
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"@maaxyz/maa-node-darwin-arm64": "2.3.0-
|
|
27
|
-
"@maaxyz/maa-node-darwin-x64": "2.3.0-
|
|
28
|
-
"@maaxyz/maa-node-linux-arm64": "2.3.0-
|
|
29
|
-
"@maaxyz/maa-node-linux-x64": "2.3.0-
|
|
30
|
-
"@maaxyz/maa-node-win32-arm64": "2.3.0-
|
|
31
|
-
"@maaxyz/maa-node-win32-x64": "2.3.0-
|
|
26
|
+
"@maaxyz/maa-node-darwin-arm64": "2.3.0-beta.2",
|
|
27
|
+
"@maaxyz/maa-node-darwin-x64": "2.3.0-beta.2",
|
|
28
|
+
"@maaxyz/maa-node-linux-arm64": "2.3.0-beta.2",
|
|
29
|
+
"@maaxyz/maa-node-linux-x64": "2.3.0-beta.2",
|
|
30
|
+
"@maaxyz/maa-node-win32-arm64": "2.3.0-beta.2",
|
|
31
|
+
"@maaxyz/maa-node-win32-x64": "2.3.0-beta.2"
|
|
32
32
|
}
|
|
33
33
|
}
|
package/src/maa.d.ts
CHANGED
|
@@ -252,7 +252,7 @@ export declare function tasker_post_pipeline(
|
|
|
252
252
|
export declare function tasker_status(handle: TaskerHandle, task_id: TaskId): Status
|
|
253
253
|
export declare function tasker_wait(handle: TaskerHandle, task_id: TaskId): Promise<Status>
|
|
254
254
|
export declare function tasker_running(handle: TaskerHandle): boolean
|
|
255
|
-
export declare function tasker_post_stop(handle: TaskerHandle):
|
|
255
|
+
export declare function tasker_post_stop(handle: TaskerHandle): TaskId
|
|
256
256
|
export declare function tasker_get_resource(handle: TaskerHandle): ResourceHandle | null
|
|
257
257
|
export declare function tasker_get_controller(handle: TaskerHandle): ControllerHandle | null
|
|
258
258
|
export declare function tasker_clear_cache(handle: TaskerHandle): boolean
|
package/src/tasker.ts
CHANGED
|
@@ -134,9 +134,11 @@ export class TaskerBase {
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
post_stop() {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
return new TaskJob(
|
|
138
|
+
this,
|
|
139
|
+
this.#source,
|
|
140
|
+
maa.tasker_post_stop(this.handle)
|
|
141
|
+
)
|
|
140
142
|
}
|
|
141
143
|
|
|
142
144
|
get resource() {
|