wao 0.37.7 → 0.37.8
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/aoconnect-base.js +4 -2
- package/cjs/hb.js +2 -16
- package/esm/aoconnect-base.js +3 -1
- package/esm/hb.js +1 -6
- package/package.json +1 -1
package/cjs/aoconnect-base.js
CHANGED
|
@@ -879,7 +879,7 @@ var _default = exports["default"] = function _default() {
|
|
|
879
879
|
_iterator3 = _createForOfIteratorHelper((_res$Messages = res.Messages) !== null && _res$Messages !== void 0 ? _res$Messages : []);
|
|
880
880
|
_context6.p = 24;
|
|
881
881
|
_loop = /*#__PURE__*/_regenerator().m(function _loop() {
|
|
882
|
-
var v, _t43, _result, slot, fetchHB, info, _connect, request, _tags2, _yield$request, _res2, _data, sch, tar, ao, _yield$mem$getTx$tags3, _yield$mem$getTx4, _tags3$Action, _v$Data, _tags3, pr, module, _yield$ao$msg, mid, _yield$fetch$then$Pro, _yield$fetch$then, _sch, _tar, procs, _ao, _yield$mem$getTx$tags4, _yield$mem$getTx5, _tags4$Action, _v$Data2, _tags4, _pr, _module2, _yield$_ao$msg, _mid, _t44, _t45, _t46, _t47, _t48, _t49, _t50, _t51, _t52, _t53, _t54, _t55, _t56, _t57, _t58, _t59, _t60, _t61, _t62, _t63, _t64;
|
|
882
|
+
var v, _t43, _result, slot, fetchHB, info, _connect, request, _tags2, _yield$request, _res2, _data, sch, tar, ao, _yield$mem$getTx$tags3, _yield$mem$getTx4, _tags3$Action, _v$Data, _tags3, pr, module, act, _yield$ao$msg, mid, _yield$fetch$then$Pro, _yield$fetch$then, _sch, _tar, procs, _ao, _yield$mem$getTx$tags4, _yield$mem$getTx5, _tags4$Action, _v$Data2, _tags4, _pr, _module2, _yield$_ao$msg, _mid, _t44, _t45, _t46, _t47, _t48, _t49, _t50, _t51, _t52, _t53, _t54, _t55, _t56, _t57, _t58, _t59, _t60, _t61, _t62, _t63, _t64;
|
|
883
883
|
return _regenerator().w(function (_context5) {
|
|
884
884
|
while (1) switch (_context5.p = _context5.n) {
|
|
885
885
|
case 0:
|
|
@@ -1053,9 +1053,11 @@ var _default = exports["default"] = function _default() {
|
|
|
1053
1053
|
pr = _t50;
|
|
1054
1054
|
module = (0, _utils.tags)(pr).Module;
|
|
1055
1055
|
if (module) _tags3["From-Module"] = module;
|
|
1056
|
+
act = (_tags3$Action = _tags3["Action"]) !== null && _tags3$Action !== void 0 ? _tags3$Action : null;
|
|
1057
|
+
delete _tags3["Action"];
|
|
1056
1058
|
_context5.n = 20;
|
|
1057
1059
|
return ao.msg({
|
|
1058
|
-
act:
|
|
1060
|
+
act: act,
|
|
1059
1061
|
pid: tar,
|
|
1060
1062
|
tags: _tags3,
|
|
1061
1063
|
data: (_v$Data = v.Data) !== null && _v$Data !== void 0 ? _v$Data : ""
|
package/cjs/hb.js
CHANGED
|
@@ -882,32 +882,18 @@ var HB = /*#__PURE__*/function () {
|
|
|
882
882
|
key: "slot",
|
|
883
883
|
value: function () {
|
|
884
884
|
var _slot = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee23(_ref12) {
|
|
885
|
-
var pid, _ref12$path, path
|
|
885
|
+
var pid, _ref12$path, path;
|
|
886
886
|
return _regenerator().w(function (_context23) {
|
|
887
887
|
while (1) switch (_context23.n) {
|
|
888
888
|
case 0:
|
|
889
889
|
pid = _ref12.pid, _ref12$path = _ref12.path, path = _ref12$path === void 0 ? "" : _ref12$path;
|
|
890
890
|
if (path && !/^\//.test(path)) path = "/" + path;
|
|
891
|
-
if (!(this.format === "ans104")) {
|
|
892
|
-
_context23.n = 2;
|
|
893
|
-
break;
|
|
894
|
-
}
|
|
895
891
|
_context23.n = 1;
|
|
896
|
-
return this.get({
|
|
897
|
-
path: "/".concat(pid, "/slot").concat(path)
|
|
898
|
-
});
|
|
899
|
-
case 1:
|
|
900
|
-
res = _context23.v;
|
|
901
|
-
return _context23.a(2, res.out);
|
|
902
|
-
case 2:
|
|
903
|
-
_context23.n = 3;
|
|
904
892
|
return this.getJSON({
|
|
905
893
|
path: "/".concat(pid, "/slot").concat(path)
|
|
906
894
|
});
|
|
907
|
-
case
|
|
895
|
+
case 1:
|
|
908
896
|
return _context23.a(2, _context23.v);
|
|
909
|
-
case 4:
|
|
910
|
-
return _context23.a(2);
|
|
911
897
|
}
|
|
912
898
|
}, _callee23, this);
|
|
913
899
|
}));
|
package/esm/aoconnect-base.js
CHANGED
|
@@ -449,8 +449,10 @@ export default ({ AR, scheduler, mu, su, cu, acc, AoLoader, ArMem } = {}) => {
|
|
|
449
449
|
const pr = (await mem.getTx(opt.process))?.tags ?? []
|
|
450
450
|
const module = tags(pr).Module
|
|
451
451
|
if (module) _tags["From-Module"] = module
|
|
452
|
+
const act = _tags["Action"] ?? null
|
|
453
|
+
delete _tags["Action"]
|
|
452
454
|
const { mid } = await ao.msg({
|
|
453
|
-
act
|
|
455
|
+
act,
|
|
454
456
|
pid: tar,
|
|
455
457
|
tags: _tags,
|
|
456
458
|
data: v.Data ?? "",
|
package/esm/hb.js
CHANGED
|
@@ -249,12 +249,7 @@ class HB {
|
|
|
249
249
|
|
|
250
250
|
async slot({ pid, path = "" }) {
|
|
251
251
|
if (path && !/^\//.test(path)) path = "/" + path
|
|
252
|
-
|
|
253
|
-
const res = await this.get({ path: `/${pid}/slot${path}` })
|
|
254
|
-
return res.out
|
|
255
|
-
} else {
|
|
256
|
-
return await this.getJSON({ path: `/${pid}/slot${path}` })
|
|
257
|
-
}
|
|
252
|
+
return await this.getJSON({ path: `/${pid}/slot${path}` })
|
|
258
253
|
}
|
|
259
254
|
|
|
260
255
|
async messages({ pid, from, to } = {}) {
|