@maaxyz/maa-node 4.2.0 → 4.2.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.
@@ -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?: string): AgentClientHandle | null
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.0",
28
+ "version": "4.2.2",
29
29
  "optionalDependencies": {
30
- "@maaxyz/maa-node-darwin-arm64": "4.2.0",
31
- "@maaxyz/maa-node-darwin-x64": "4.2.0",
32
- "@maaxyz/maa-node-linux-arm64": "4.2.0",
33
- "@maaxyz/maa-node-linux-x64": "4.2.0",
34
- "@maaxyz/maa-node-win32-arm64": "4.2.0",
35
- "@maaxyz/maa-node-win32-x64": "4.2.0"
30
+ "@maaxyz/maa-node-darwin-arm64": "4.2.2",
31
+ "@maaxyz/maa-node-darwin-x64": "4.2.2",
32
+ "@maaxyz/maa-node-linux-arm64": "4.2.2",
33
+ "@maaxyz/maa-node-linux-x64": "4.2.2",
34
+ "@maaxyz/maa-node-win32-arm64": "4.2.2",
35
+ "@maaxyz/maa-node-win32-x64": "4.2.2"
36
36
  }
37
37
  }
package/src/client.ts CHANGED
@@ -5,7 +5,7 @@ export class AgentClient {
5
5
  handle: maa.AgentClientHandle
6
6
 
7
7
  constructor(identifier?: string) {
8
- const h = maa.agent_client_create(identifier)
8
+ const h = maa.agent_client_create(identifier ?? null)
9
9
  if (!h) {
10
10
  throw 'AgentClient create failed'
11
11
  }
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?: string): AgentClientHandle | null
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(