@virtuals-protocol/acp-node 0.3.0-beta.25 → 0.3.0-beta.26
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 +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ var require_package = __commonJS({
|
|
|
35
35
|
"package.json"(exports2, module2) {
|
|
36
36
|
module2.exports = {
|
|
37
37
|
name: "@virtuals-protocol/acp-node",
|
|
38
|
-
version: "0.3.0-beta.
|
|
38
|
+
version: "0.3.0-beta.26",
|
|
39
39
|
main: "./dist/index.js",
|
|
40
40
|
module: "./dist/index.mjs",
|
|
41
41
|
types: "./dist/index.d.ts",
|
|
@@ -4910,7 +4910,7 @@ var AcpClient = class {
|
|
|
4910
4910
|
const agentsResponse = await this.noAuthAcpClient.get("/agents", {
|
|
4911
4911
|
params
|
|
4912
4912
|
});
|
|
4913
|
-
if (
|
|
4913
|
+
if (agentsResponse.data.data.length === 0) {
|
|
4914
4914
|
return null;
|
|
4915
4915
|
}
|
|
4916
4916
|
return this._hydrateAgent(agentsResponse.data.data[0]);
|
|
@@ -4936,7 +4936,6 @@ var AcpClient = class {
|
|
|
4936
4936
|
{},
|
|
4937
4937
|
(err) => {
|
|
4938
4938
|
if (err.response?.status === 404) {
|
|
4939
|
-
console.warn("Account not found by client and provider");
|
|
4940
4939
|
return;
|
|
4941
4940
|
}
|
|
4942
4941
|
throw new acpError_default("Failed to get account by client and provider", err);
|
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ var require_package = __commonJS({
|
|
|
8
8
|
"package.json"(exports, module) {
|
|
9
9
|
module.exports = {
|
|
10
10
|
name: "@virtuals-protocol/acp-node",
|
|
11
|
-
version: "0.3.0-beta.
|
|
11
|
+
version: "0.3.0-beta.26",
|
|
12
12
|
main: "./dist/index.js",
|
|
13
13
|
module: "./dist/index.mjs",
|
|
14
14
|
types: "./dist/index.d.ts",
|
|
@@ -4864,7 +4864,7 @@ var AcpClient = class {
|
|
|
4864
4864
|
const agentsResponse = await this.noAuthAcpClient.get("/agents", {
|
|
4865
4865
|
params
|
|
4866
4866
|
});
|
|
4867
|
-
if (
|
|
4867
|
+
if (agentsResponse.data.data.length === 0) {
|
|
4868
4868
|
return null;
|
|
4869
4869
|
}
|
|
4870
4870
|
return this._hydrateAgent(agentsResponse.data.data[0]);
|
|
@@ -4890,7 +4890,6 @@ var AcpClient = class {
|
|
|
4890
4890
|
{},
|
|
4891
4891
|
(err) => {
|
|
4892
4892
|
if (err.response?.status === 404) {
|
|
4893
|
-
console.warn("Account not found by client and provider");
|
|
4894
4893
|
return;
|
|
4895
4894
|
}
|
|
4896
4895
|
throw new acpError_default("Failed to get account by client and provider", err);
|