wao 0.37.8 → 0.37.9
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/cjs/hb.js +24 -11
- package/esm/hb.js +25 -11
- package/package.json +1 -1
package/cjs/hb.js
CHANGED
|
@@ -1047,17 +1047,30 @@ var HB = /*#__PURE__*/function () {
|
|
|
1047
1047
|
_context27.n = 1;
|
|
1048
1048
|
return this.setInfo();
|
|
1049
1049
|
case 1:
|
|
1050
|
-
t =
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1050
|
+
t = {};
|
|
1051
|
+
if (this.format === "ans104") {
|
|
1052
|
+
t = (0, _ramda.mergeLeft)(tags, {
|
|
1053
|
+
"Data-Protocol": "ao",
|
|
1054
|
+
Variant: "ao.TN.1",
|
|
1055
|
+
Authority: this.operator,
|
|
1056
|
+
Scheduler: this.operator,
|
|
1057
|
+
Module: module !== null && module !== void 0 ? module : "ISShJH1ij-hPPt9St5UFFr_8Ys3Kj5cyg7zrMGt7H9s",
|
|
1058
|
+
device: "process@1.0",
|
|
1059
|
+
"execution-device": "genesis-wasm@1.0"
|
|
1060
|
+
});
|
|
1061
|
+
} else {
|
|
1062
|
+
t = (0, _ramda.mergeLeft)(tags, {
|
|
1063
|
+
"Data-Protocol": "ao",
|
|
1064
|
+
Variant: "ao.TN.1",
|
|
1065
|
+
Authority: this.operator,
|
|
1066
|
+
Module: module !== null && module !== void 0 ? module : "ISShJH1ij-hPPt9St5UFFr_8Ys3Kj5cyg7zrMGt7H9s",
|
|
1067
|
+
device: "process@1.0",
|
|
1068
|
+
"execution-device": "stack@1.0",
|
|
1069
|
+
"push-device": "push@1.0",
|
|
1070
|
+
"device-stack": ["genesis-wasm@1.0", "patch@1.0"],
|
|
1071
|
+
"patch-from": "/results/outbox"
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1061
1074
|
if (data) t.data = data;
|
|
1062
1075
|
_context27.n = 2;
|
|
1063
1076
|
return this.spawn(t);
|
package/esm/hb.js
CHANGED
|
@@ -303,20 +303,34 @@ class HB {
|
|
|
303
303
|
|
|
304
304
|
async spawnLegacy({ module, tags = {}, data } = {}) {
|
|
305
305
|
await this.setInfo()
|
|
306
|
-
let t =
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
306
|
+
let t = {}
|
|
307
|
+
if (this.format === "ans104") {
|
|
308
|
+
t = mergeLeft(tags, {
|
|
309
|
+
"Data-Protocol": "ao",
|
|
310
|
+
Variant: "ao.TN.1",
|
|
311
|
+
Authority: this.operator,
|
|
312
|
+
Scheduler: this.operator,
|
|
313
|
+
Module: module ?? "ISShJH1ij-hPPt9St5UFFr_8Ys3Kj5cyg7zrMGt7H9s",
|
|
314
|
+
device: "process@1.0",
|
|
315
|
+
"execution-device": "genesis-wasm@1.0",
|
|
316
|
+
})
|
|
317
|
+
} else {
|
|
318
|
+
t = mergeLeft(tags, {
|
|
319
|
+
"Data-Protocol": "ao",
|
|
320
|
+
Variant: "ao.TN.1",
|
|
321
|
+
Authority: this.operator,
|
|
322
|
+
Module: module ?? "ISShJH1ij-hPPt9St5UFFr_8Ys3Kj5cyg7zrMGt7H9s",
|
|
323
|
+
device: "process@1.0",
|
|
324
|
+
"execution-device": "stack@1.0",
|
|
325
|
+
"push-device": "push@1.0",
|
|
326
|
+
"device-stack": ["genesis-wasm@1.0", "patch@1.0"],
|
|
327
|
+
"patch-from": "/results/outbox",
|
|
328
|
+
})
|
|
329
|
+
}
|
|
317
330
|
if (data) t.data = data
|
|
318
331
|
return await this.spawn(t)
|
|
319
332
|
}
|
|
333
|
+
|
|
320
334
|
async scheduleLegacy({ action = "Eval", tags = {}, ...rest } = {}) {
|
|
321
335
|
if (action) tags.Action = action
|
|
322
336
|
return await this.schedule({ tags, ...rest })
|