@virtuals-protocol/acp-node 0.3.0-beta.24 → 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 +6 -6
- package/dist/index.mjs +6 -6
- 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",
|
|
@@ -4907,12 +4907,13 @@ var AcpClient = class {
|
|
|
4907
4907
|
if (showHiddenOfferings) {
|
|
4908
4908
|
params.showHiddenOfferings = true;
|
|
4909
4909
|
}
|
|
4910
|
-
const
|
|
4911
|
-
|
|
4910
|
+
const agentsResponse = await this.noAuthAcpClient.get("/agents", {
|
|
4911
|
+
params
|
|
4912
|
+
});
|
|
4913
|
+
if (agentsResponse.data.data.length === 0) {
|
|
4912
4914
|
return null;
|
|
4913
4915
|
}
|
|
4914
|
-
|
|
4915
|
-
return this._hydrateAgent(agent);
|
|
4916
|
+
return this._hydrateAgent(agentsResponse.data.data[0]);
|
|
4916
4917
|
}
|
|
4917
4918
|
async getAccountByJobId(jobId, acpContractClient) {
|
|
4918
4919
|
const account = await this._fetch(`/accounts/job/${jobId}`);
|
|
@@ -4935,7 +4936,6 @@ var AcpClient = class {
|
|
|
4935
4936
|
{},
|
|
4936
4937
|
(err) => {
|
|
4937
4938
|
if (err.response?.status === 404) {
|
|
4938
|
-
console.warn("Account not found by client and provider");
|
|
4939
4939
|
return;
|
|
4940
4940
|
}
|
|
4941
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",
|
|
@@ -4861,12 +4861,13 @@ var AcpClient = class {
|
|
|
4861
4861
|
if (showHiddenOfferings) {
|
|
4862
4862
|
params.showHiddenOfferings = true;
|
|
4863
4863
|
}
|
|
4864
|
-
const
|
|
4865
|
-
|
|
4864
|
+
const agentsResponse = await this.noAuthAcpClient.get("/agents", {
|
|
4865
|
+
params
|
|
4866
|
+
});
|
|
4867
|
+
if (agentsResponse.data.data.length === 0) {
|
|
4866
4868
|
return null;
|
|
4867
4869
|
}
|
|
4868
|
-
|
|
4869
|
-
return this._hydrateAgent(agent);
|
|
4870
|
+
return this._hydrateAgent(agentsResponse.data.data[0]);
|
|
4870
4871
|
}
|
|
4871
4872
|
async getAccountByJobId(jobId, acpContractClient) {
|
|
4872
4873
|
const account = await this._fetch(`/accounts/job/${jobId}`);
|
|
@@ -4889,7 +4890,6 @@ var AcpClient = class {
|
|
|
4889
4890
|
{},
|
|
4890
4891
|
(err) => {
|
|
4891
4892
|
if (err.response?.status === 404) {
|
|
4892
|
-
console.warn("Account not found by client and provider");
|
|
4893
4893
|
return;
|
|
4894
4894
|
}
|
|
4895
4895
|
throw new acpError_default("Failed to get account by client and provider", err);
|