@virtuals-protocol/acp-node 0.3.0-beta.16 → 0.3.0-beta.17
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 -4
- package/dist/index.mjs +6 -4
- 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.17",
|
|
39
39
|
main: "./dist/index.js",
|
|
40
40
|
module: "./dist/index.mjs",
|
|
41
41
|
types: "./dist/index.d.ts",
|
|
@@ -4130,9 +4130,11 @@ var AcpJob = class {
|
|
|
4130
4130
|
3 /* EVALUATION */
|
|
4131
4131
|
)
|
|
4132
4132
|
);
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4133
|
+
if (this.price > 0) {
|
|
4134
|
+
const x402PaymentDetails = await this.acpContractClient.getX402PaymentDetails(this.id);
|
|
4135
|
+
if (x402PaymentDetails.isX402) {
|
|
4136
|
+
await this.performX402Payment(this.price);
|
|
4137
|
+
}
|
|
4136
4138
|
}
|
|
4137
4139
|
return await this.acpContractClient.handleOperation(operations);
|
|
4138
4140
|
}
|
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.17",
|
|
12
12
|
main: "./dist/index.js",
|
|
13
13
|
module: "./dist/index.mjs",
|
|
14
14
|
types: "./dist/index.d.ts",
|
|
@@ -4083,9 +4083,11 @@ var AcpJob = class {
|
|
|
4083
4083
|
3 /* EVALUATION */
|
|
4084
4084
|
)
|
|
4085
4085
|
);
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4086
|
+
if (this.price > 0) {
|
|
4087
|
+
const x402PaymentDetails = await this.acpContractClient.getX402PaymentDetails(this.id);
|
|
4088
|
+
if (x402PaymentDetails.isX402) {
|
|
4089
|
+
await this.performX402Payment(this.price);
|
|
4090
|
+
}
|
|
4089
4091
|
}
|
|
4090
4092
|
return await this.acpContractClient.handleOperation(operations);
|
|
4091
4093
|
}
|