@maaxyz/maa-node 4.2.0 → 4.2.1
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-client.js +1 -1
- package/dist/maa.d.ts +1 -1
- package/package.json +7 -7
- package/src/client.ts +1 -1
- package/src/maa.d.ts +1 -1
package/dist/index-client.js
CHANGED
|
@@ -1032,7 +1032,7 @@ var maa8 = __toESM(require_maa());
|
|
|
1032
1032
|
var AgentClient = class {
|
|
1033
1033
|
handle;
|
|
1034
1034
|
constructor(identifier) {
|
|
1035
|
-
const h = maa8.agent_client_create(identifier);
|
|
1035
|
+
const h = maa8.agent_client_create(identifier ?? null);
|
|
1036
1036
|
if (!h) {
|
|
1037
1037
|
throw "AgentClient create failed";
|
|
1038
1038
|
}
|
package/dist/maa.d.ts
CHANGED
|
@@ -387,7 +387,7 @@ export declare const AgentRole: 'client' | 'server'
|
|
|
387
387
|
|
|
388
388
|
// agent.cpp - client
|
|
389
389
|
|
|
390
|
-
export declare function agent_client_create(identifier
|
|
390
|
+
export declare function agent_client_create(identifier: string | null): AgentClientHandle | null
|
|
391
391
|
export declare function agent_client_destroy(handle: AgentClientHandle): void
|
|
392
392
|
export declare function agent_client_identifier(handle: AgentClientHandle): string | null
|
|
393
393
|
export declare function agent_client_bind_resource(
|
package/package.json
CHANGED
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"prettier": "^3.5.2",
|
|
26
26
|
"typescript": "^5.8.2"
|
|
27
27
|
},
|
|
28
|
-
"version": "4.2.
|
|
28
|
+
"version": "4.2.1",
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"@maaxyz/maa-node-darwin-arm64": "4.2.
|
|
31
|
-
"@maaxyz/maa-node-darwin-x64": "4.2.
|
|
32
|
-
"@maaxyz/maa-node-linux-arm64": "4.2.
|
|
33
|
-
"@maaxyz/maa-node-linux-x64": "4.2.
|
|
34
|
-
"@maaxyz/maa-node-win32-arm64": "4.2.
|
|
35
|
-
"@maaxyz/maa-node-win32-x64": "4.2.
|
|
30
|
+
"@maaxyz/maa-node-darwin-arm64": "4.2.1",
|
|
31
|
+
"@maaxyz/maa-node-darwin-x64": "4.2.1",
|
|
32
|
+
"@maaxyz/maa-node-linux-arm64": "4.2.1",
|
|
33
|
+
"@maaxyz/maa-node-linux-x64": "4.2.1",
|
|
34
|
+
"@maaxyz/maa-node-win32-arm64": "4.2.1",
|
|
35
|
+
"@maaxyz/maa-node-win32-x64": "4.2.1"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/src/client.ts
CHANGED
package/src/maa.d.ts
CHANGED
|
@@ -387,7 +387,7 @@ export declare const AgentRole: 'client' | 'server'
|
|
|
387
387
|
|
|
388
388
|
// agent.cpp - client
|
|
389
389
|
|
|
390
|
-
export declare function agent_client_create(identifier
|
|
390
|
+
export declare function agent_client_create(identifier: string | null): AgentClientHandle | null
|
|
391
391
|
export declare function agent_client_destroy(handle: AgentClientHandle): void
|
|
392
392
|
export declare function agent_client_identifier(handle: AgentClientHandle): string | null
|
|
393
393
|
export declare function agent_client_bind_resource(
|