wao 0.10.1 → 0.10.2
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 +196 -174
- package/cjs/armem-base.js +233 -100
- package/cjs/{ar-base.js → bar.js} +29 -30
- package/cjs/lfdb.js +4 -5
- package/cjs/server.js +66 -46
- package/cjs/tar.js +2 -2
- package/cjs/tgql.js +81 -78
- package/cjs/war.js +2 -2
- package/esm/aoconnect-base.js +24 -23
- package/esm/armem-base.js +40 -3
- package/esm/{ar-base.js → bar.js} +9 -15
- package/esm/lfdb.js +0 -1
- package/esm/server.js +5 -5
- package/esm/tar.js +1 -1
- package/esm/tgql.js +2 -2
- package/esm/war.js +1 -1
- package/package.json +1 -1
|
@@ -62,18 +62,17 @@ var AR = /*#__PURE__*/function (_MAR) {
|
|
|
62
62
|
key: "owner",
|
|
63
63
|
value: function () {
|
|
64
64
|
var _owner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(di) {
|
|
65
|
-
var raw_owner, hashBuffer;
|
|
66
65
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
67
66
|
while (1) switch (_context.prev = _context.next) {
|
|
68
67
|
case 0:
|
|
69
|
-
|
|
70
|
-
_context.
|
|
68
|
+
_context.t0 = _base64url["default"];
|
|
69
|
+
_context.t1 = Buffer;
|
|
71
70
|
_context.next = 4;
|
|
72
|
-
return crypto.subtle.digest("SHA-256",
|
|
71
|
+
return crypto.subtle.digest("SHA-256", di.rawOwner);
|
|
73
72
|
case 4:
|
|
74
|
-
_context.
|
|
75
|
-
|
|
76
|
-
return _context.abrupt("return",
|
|
73
|
+
_context.t2 = _context.sent;
|
|
74
|
+
_context.t3 = _context.t1.from.call(_context.t1, _context.t2);
|
|
75
|
+
return _context.abrupt("return", _context.t0.encode.call(_context.t0, _context.t3));
|
|
77
76
|
case 7:
|
|
78
77
|
case "end":
|
|
79
78
|
return _context.stop();
|
|
@@ -89,38 +88,37 @@ var AR = /*#__PURE__*/function (_MAR) {
|
|
|
89
88
|
key: "dataitem",
|
|
90
89
|
value: function () {
|
|
91
90
|
var _dataitem = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref) {
|
|
92
|
-
var _ref$target, target, _ref$data, data, _ref$tags, tags, signer, item, di,
|
|
91
|
+
var _ref$target, target, _ref$data, data, _ref$tags, tags, signer, item, di, _item, owner;
|
|
93
92
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
94
93
|
while (1) switch (_context2.prev = _context2.next) {
|
|
95
94
|
case 0:
|
|
96
95
|
_ref$target = _ref.target, target = _ref$target === void 0 ? "" : _ref$target, _ref$data = _ref.data, data = _ref$data === void 0 ? "1984" : _ref$data, _ref$tags = _ref.tags, tags = _ref$tags === void 0 ? {} : _ref$tags, signer = _ref.signer, item = _ref.item;
|
|
97
96
|
di = item;
|
|
98
97
|
if (di) {
|
|
99
|
-
_context2.next =
|
|
98
|
+
_context2.next = 9;
|
|
100
99
|
break;
|
|
101
100
|
}
|
|
102
|
-
|
|
103
|
-
_context2.next = 6;
|
|
101
|
+
_context2.next = 5;
|
|
104
102
|
return signer({
|
|
105
103
|
data: data,
|
|
106
|
-
tags:
|
|
104
|
+
tags: (0, _utils.buildTags)(tags),
|
|
107
105
|
target: target
|
|
108
106
|
});
|
|
109
|
-
case
|
|
107
|
+
case 5:
|
|
110
108
|
_item = _context2.sent;
|
|
111
109
|
di = new DataItem(_item.raw);
|
|
112
|
-
_context2.next =
|
|
110
|
+
_context2.next = 10;
|
|
113
111
|
break;
|
|
114
|
-
case
|
|
112
|
+
case 9:
|
|
115
113
|
tags = (0, _utils.tags)(di.tags);
|
|
116
|
-
case
|
|
117
|
-
_context2.next =
|
|
114
|
+
case 10:
|
|
115
|
+
_context2.next = 12;
|
|
118
116
|
return this.owner(di);
|
|
119
|
-
case
|
|
117
|
+
case 12:
|
|
120
118
|
owner = _context2.sent;
|
|
121
|
-
_context2.next =
|
|
119
|
+
_context2.next = 15;
|
|
122
120
|
return di.id;
|
|
123
|
-
case
|
|
121
|
+
case 15:
|
|
124
122
|
_context2.t0 = _context2.sent;
|
|
125
123
|
_context2.t1 = owner;
|
|
126
124
|
_context2.t2 = di;
|
|
@@ -131,7 +129,7 @@ var AR = /*#__PURE__*/function (_MAR) {
|
|
|
131
129
|
item: _context2.t2,
|
|
132
130
|
tags: _context2.t3
|
|
133
131
|
});
|
|
134
|
-
case
|
|
132
|
+
case 20:
|
|
135
133
|
case "end":
|
|
136
134
|
return _context2.stop();
|
|
137
135
|
}
|
|
@@ -146,7 +144,7 @@ var AR = /*#__PURE__*/function (_MAR) {
|
|
|
146
144
|
key: "post",
|
|
147
145
|
value: function () {
|
|
148
146
|
var _post = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref2) {
|
|
149
|
-
var _ref2$data, data, _ref2$tags, tags, jwk, err, _yield$this$checkWall, tx,
|
|
147
|
+
var _ref2$data, data, _ref2$tags, tags, jwk, err, _yield$this$checkWall, tx, _iterator, _step, v;
|
|
150
148
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
151
149
|
while (1) switch (_context3.prev = _context3.next) {
|
|
152
150
|
case 0:
|
|
@@ -174,8 +172,7 @@ var AR = /*#__PURE__*/function (_MAR) {
|
|
|
174
172
|
});
|
|
175
173
|
case 11:
|
|
176
174
|
tx = _context3.sent;
|
|
177
|
-
|
|
178
|
-
_iterator = _createForOfIteratorHelper(_tags);
|
|
175
|
+
_iterator = _createForOfIteratorHelper((0, _utils.buildTags)(null, tags));
|
|
179
176
|
try {
|
|
180
177
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
181
178
|
v = _step.value;
|
|
@@ -186,11 +183,11 @@ var AR = /*#__PURE__*/function (_MAR) {
|
|
|
186
183
|
} finally {
|
|
187
184
|
_iterator.f();
|
|
188
185
|
}
|
|
189
|
-
_context3.next =
|
|
186
|
+
_context3.next = 16;
|
|
190
187
|
return this.postTx(tx, jwk);
|
|
191
|
-
case
|
|
188
|
+
case 16:
|
|
192
189
|
return _context3.abrupt("return", _context3.sent);
|
|
193
|
-
case
|
|
190
|
+
case 17:
|
|
194
191
|
case "end":
|
|
195
192
|
return _context3.stop();
|
|
196
193
|
}
|
|
@@ -490,7 +487,9 @@ var AR = /*#__PURE__*/function (_MAR) {
|
|
|
490
487
|
block.txs.push(item.id);
|
|
491
488
|
_txs2.block = block.id;
|
|
492
489
|
_context5.next = 58;
|
|
493
|
-
return this.mem.set(
|
|
490
|
+
return this.mem.set({
|
|
491
|
+
bundle: tx.id
|
|
492
|
+
}, "txs", item.id);
|
|
494
493
|
case 58:
|
|
495
494
|
_context5.next = 43;
|
|
496
495
|
break;
|
|
@@ -606,7 +605,7 @@ var AR = /*#__PURE__*/function (_MAR) {
|
|
|
606
605
|
while (1) switch (_context6.prev = _context6.next) {
|
|
607
606
|
case 0:
|
|
608
607
|
_context6.next = 2;
|
|
609
|
-
return this.mem.
|
|
608
|
+
return this.mem.getTx(id);
|
|
610
609
|
case 2:
|
|
611
610
|
return _context6.abrupt("return", _context6.sent);
|
|
612
611
|
case 3:
|
|
@@ -636,7 +635,7 @@ var AR = /*#__PURE__*/function (_MAR) {
|
|
|
636
635
|
if (!(0, _ramda.isNil)(_string.string)) string = _string.string;
|
|
637
636
|
}
|
|
638
637
|
_context7.next = 5;
|
|
639
|
-
return this.mem.
|
|
638
|
+
return this.mem.getTx(id);
|
|
640
639
|
case 5:
|
|
641
640
|
tx = _context7.sent;
|
|
642
641
|
_data = (_tx$data = tx === null || tx === void 0 ? void 0 : tx.data) !== null && _tx$data !== void 0 ? _tx$data : null;
|
package/cjs/lfdb.js
CHANGED
|
@@ -22,7 +22,6 @@ var _default = exports["default"] = function _default(_this) {
|
|
|
22
22
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
23
23
|
while (1) switch (_context.prev = _context.next) {
|
|
24
24
|
case 0:
|
|
25
|
-
console.log(key, val);
|
|
26
25
|
_val = null;
|
|
27
26
|
if (_typeof(val) === "object" && !(0, _ramda.is)(Array, val)) {
|
|
28
27
|
_val = {};
|
|
@@ -62,13 +61,13 @@ var _default = exports["default"] = function _default(_this) {
|
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
63
|
} else _val = val;
|
|
65
|
-
_context.next =
|
|
64
|
+
_context.next = 4;
|
|
66
65
|
return _localforage["default"].setItem(key, _val);
|
|
67
|
-
case
|
|
66
|
+
case 4:
|
|
68
67
|
_this.keys[key] = true;
|
|
69
|
-
_context.next =
|
|
68
|
+
_context.next = 7;
|
|
70
69
|
return _localforage["default"].setItem("keys", (0, _ramda.keys)(_this.keys));
|
|
71
|
-
case
|
|
70
|
+
case 7:
|
|
72
71
|
case "end":
|
|
73
72
|
return _context.stop();
|
|
74
73
|
}
|
package/cjs/server.js
CHANGED
|
@@ -499,37 +499,57 @@ var Server = /*#__PURE__*/function () {
|
|
|
499
499
|
});
|
|
500
500
|
});
|
|
501
501
|
app.get("/:pid", function (req, res) {
|
|
502
|
-
var _this3$mem$env$pid$
|
|
502
|
+
var _this3$mem$env$pid$re, _this3$mem$env$pid;
|
|
503
503
|
var pid = req.params.pid;
|
|
504
|
-
var edges = (0, _ramda.map)(function (
|
|
505
|
-
var
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
504
|
+
var edges = (0, _ramda.map)(/*#__PURE__*/function () {
|
|
505
|
+
var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(v) {
|
|
506
|
+
var _mtx$anchor, _tx$anchor;
|
|
507
|
+
var tx, _tags, mid, mtx;
|
|
508
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
509
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
510
|
+
case 0:
|
|
511
|
+
_context11.next = 2;
|
|
512
|
+
return _this3.mem.getTx(v);
|
|
513
|
+
case 2:
|
|
514
|
+
tx = _context11.sent;
|
|
515
|
+
_tags = (0, _utils.tags)(v.tags);
|
|
516
|
+
mid = _tags.Message;
|
|
517
|
+
_context11.next = 7;
|
|
518
|
+
return _this3.mem.getTx(mid);
|
|
519
|
+
case 7:
|
|
520
|
+
mtx = _context11.sent;
|
|
521
|
+
return _context11.abrupt("return", {
|
|
522
|
+
cursor: v,
|
|
523
|
+
node: {
|
|
524
|
+
message: {
|
|
525
|
+
id: mtx.id,
|
|
526
|
+
tags: mtx.tags,
|
|
527
|
+
owner: _this3.mem.addrmap[mtx.owner],
|
|
528
|
+
anchor: (_mtx$anchor = mtx.anchor) !== null && _mtx$anchor !== void 0 ? _mtx$anchor : null,
|
|
529
|
+
target: pid,
|
|
530
|
+
signature: mtx.signature,
|
|
531
|
+
data: tx.data
|
|
532
|
+
},
|
|
533
|
+
assignment: {
|
|
534
|
+
id: tx.id,
|
|
535
|
+
tags: tx.tags,
|
|
536
|
+
owner: _this3.mem.addrmap[tx.owner],
|
|
537
|
+
anchor: (_tx$anchor = tx.anchor) !== null && _tx$anchor !== void 0 ? _tx$anchor : null,
|
|
538
|
+
target: null,
|
|
539
|
+
signature: tx.signature
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
case 9:
|
|
544
|
+
case "end":
|
|
545
|
+
return _context11.stop();
|
|
529
546
|
}
|
|
530
|
-
}
|
|
547
|
+
}, _callee11);
|
|
548
|
+
}));
|
|
549
|
+
return function (_x21) {
|
|
550
|
+
return _ref12.apply(this, arguments);
|
|
531
551
|
};
|
|
532
|
-
})((0, _ramda.reverse)((_this3$mem$env$pid$
|
|
552
|
+
}())((0, _ramda.reverse)((_this3$mem$env$pid$re = (_this3$mem$env$pid = _this3.mem.env[pid]) === null || _this3$mem$env$pid === void 0 ? void 0 : _this3$mem$env$pid.results) !== null && _this3$mem$env$pid$re !== void 0 ? _this3$mem$env$pid$re : [])); // need mod
|
|
533
553
|
res.json({
|
|
534
554
|
page_info: {
|
|
535
555
|
has_next_page: false
|
|
@@ -556,38 +576,38 @@ var Server = /*#__PURE__*/function () {
|
|
|
556
576
|
});
|
|
557
577
|
});
|
|
558
578
|
app.get("/result/:mid", /*#__PURE__*/function () {
|
|
559
|
-
var
|
|
579
|
+
var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(req, res) {
|
|
560
580
|
var res2;
|
|
561
|
-
return _regeneratorRuntime().wrap(function
|
|
562
|
-
while (1) switch (
|
|
581
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
582
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
563
583
|
case 0:
|
|
564
|
-
|
|
584
|
+
_context12.next = 2;
|
|
565
585
|
return _this4.result({
|
|
566
586
|
message: req.params.mid,
|
|
567
587
|
process: req.query["process-id"]
|
|
568
588
|
});
|
|
569
589
|
case 2:
|
|
570
|
-
res2 =
|
|
590
|
+
res2 = _context12.sent;
|
|
571
591
|
res.json(res2);
|
|
572
592
|
case 4:
|
|
573
593
|
case "end":
|
|
574
|
-
return
|
|
594
|
+
return _context12.stop();
|
|
575
595
|
}
|
|
576
|
-
},
|
|
596
|
+
}, _callee12);
|
|
577
597
|
}));
|
|
578
|
-
return function (
|
|
579
|
-
return
|
|
598
|
+
return function (_x22, _x23) {
|
|
599
|
+
return _ref13.apply(this, arguments);
|
|
580
600
|
};
|
|
581
601
|
}());
|
|
582
602
|
app.post("/dry-run", /*#__PURE__*/function () {
|
|
583
|
-
var
|
|
603
|
+
var _ref14 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(req, res) {
|
|
584
604
|
var process, _req$body2, id, owner, tags, data, res2;
|
|
585
|
-
return _regeneratorRuntime().wrap(function
|
|
586
|
-
while (1) switch (
|
|
605
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
606
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
587
607
|
case 0:
|
|
588
608
|
process = req.query["process-id"];
|
|
589
609
|
_req$body2 = req.body, id = _req$body2.Id, owner = _req$body2.Owner, tags = _req$body2.Tags, data = _req$body2.Data;
|
|
590
|
-
|
|
610
|
+
_context13.next = 4;
|
|
591
611
|
return _this4.dryrun({
|
|
592
612
|
id: id,
|
|
593
613
|
owner: owner,
|
|
@@ -596,7 +616,7 @@ var Server = /*#__PURE__*/function () {
|
|
|
596
616
|
process: process
|
|
597
617
|
});
|
|
598
618
|
case 4:
|
|
599
|
-
res2 =
|
|
619
|
+
res2 = _context13.sent;
|
|
600
620
|
if (!res2) {
|
|
601
621
|
res.status(400);
|
|
602
622
|
res.json({
|
|
@@ -608,12 +628,12 @@ var Server = /*#__PURE__*/function () {
|
|
|
608
628
|
}
|
|
609
629
|
case 6:
|
|
610
630
|
case "end":
|
|
611
|
-
return
|
|
631
|
+
return _context13.stop();
|
|
612
632
|
}
|
|
613
|
-
},
|
|
633
|
+
}, _callee13);
|
|
614
634
|
}));
|
|
615
|
-
return function (
|
|
616
|
-
return
|
|
635
|
+
return function (_x24, _x25) {
|
|
636
|
+
return _ref14.apply(this, arguments);
|
|
617
637
|
};
|
|
618
638
|
}());
|
|
619
639
|
var server = app.listen(this.ports.cu, function () {
|
package/cjs/tar.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
|
-
var
|
|
8
|
+
var _bar = _interopRequireDefault(require("./bar.js"));
|
|
9
9
|
var _armem = _interopRequireDefault(require("./armem.js"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -33,5 +33,5 @@ var AR = /*#__PURE__*/function (_BAR) {
|
|
|
33
33
|
}
|
|
34
34
|
_inherits(AR, _BAR);
|
|
35
35
|
return _createClass(AR);
|
|
36
|
-
}(
|
|
36
|
+
}(_bar["default"]);
|
|
37
37
|
var _default = exports["default"] = AR;
|
package/cjs/tgql.js
CHANGED
|
@@ -213,7 +213,7 @@ var GQL = exports["default"] = /*#__PURE__*/function () {
|
|
|
213
213
|
_iterator3.s();
|
|
214
214
|
case 22:
|
|
215
215
|
if ((_step3 = _iterator3.n()).done) {
|
|
216
|
-
_context2.next =
|
|
216
|
+
_context2.next = 113;
|
|
217
217
|
break;
|
|
218
218
|
}
|
|
219
219
|
v = _step3.value;
|
|
@@ -222,13 +222,13 @@ var GQL = exports["default"] = /*#__PURE__*/function () {
|
|
|
222
222
|
_context2.next = 27;
|
|
223
223
|
break;
|
|
224
224
|
}
|
|
225
|
-
return _context2.abrupt("continue",
|
|
225
|
+
return _context2.abrupt("continue", 111);
|
|
226
226
|
case 27:
|
|
227
227
|
if (!(!(0, _ramda.isNil)(_block.max) && block.height > _block.max)) {
|
|
228
228
|
_context2.next = 29;
|
|
229
229
|
break;
|
|
230
230
|
}
|
|
231
|
-
return _context2.abrupt("continue",
|
|
231
|
+
return _context2.abrupt("continue", 111);
|
|
232
232
|
case 29:
|
|
233
233
|
_txs2 = block.txs;
|
|
234
234
|
if (opt.asc !== true) _txs2 = (0, _ramda.reverse)(_txs2);
|
|
@@ -237,7 +237,7 @@ var GQL = exports["default"] = /*#__PURE__*/function () {
|
|
|
237
237
|
_iterator4.s();
|
|
238
238
|
case 34:
|
|
239
239
|
if ((_step4 = _iterator4.n()).done) {
|
|
240
|
-
_context2.next =
|
|
240
|
+
_context2.next = 101;
|
|
241
241
|
break;
|
|
242
242
|
}
|
|
243
243
|
v2 = _step4.value;
|
|
@@ -246,113 +246,116 @@ var GQL = exports["default"] = /*#__PURE__*/function () {
|
|
|
246
246
|
break;
|
|
247
247
|
}
|
|
248
248
|
after = true;
|
|
249
|
-
return _context2.abrupt("break",
|
|
249
|
+
return _context2.abrupt("break", 101);
|
|
250
250
|
case 39:
|
|
251
251
|
if (!(!(0, _ramda.isNil)(opt.after) && count === 0 && !after)) {
|
|
252
252
|
_context2.next = 41;
|
|
253
253
|
break;
|
|
254
254
|
}
|
|
255
|
-
return _context2.abrupt("continue",
|
|
255
|
+
return _context2.abrupt("continue", 99);
|
|
256
256
|
case 41:
|
|
257
|
-
|
|
257
|
+
_context2.next = 43;
|
|
258
|
+
return this.mem.getTx(v2);
|
|
259
|
+
case 43:
|
|
260
|
+
tx = _context2.sent;
|
|
258
261
|
if (!(!(0, _ramda.isNil)(ids) && ids.length > 0)) {
|
|
259
|
-
_context2.next =
|
|
262
|
+
_context2.next = 47;
|
|
260
263
|
break;
|
|
261
264
|
}
|
|
262
265
|
if ((0, _ramda.includes)(tx.id, ids)) {
|
|
263
|
-
_context2.next =
|
|
266
|
+
_context2.next = 47;
|
|
264
267
|
break;
|
|
265
268
|
}
|
|
266
|
-
return _context2.abrupt("continue",
|
|
267
|
-
case
|
|
269
|
+
return _context2.abrupt("continue", 99);
|
|
270
|
+
case 47:
|
|
268
271
|
if (!(!(0, _ramda.isNil)(owners) && owners.length > 0)) {
|
|
269
|
-
_context2.next =
|
|
272
|
+
_context2.next = 50;
|
|
270
273
|
break;
|
|
271
274
|
}
|
|
272
275
|
if ((0, _ramda.includes)(tx.owner, owners)) {
|
|
273
|
-
_context2.next =
|
|
276
|
+
_context2.next = 50;
|
|
274
277
|
break;
|
|
275
278
|
}
|
|
276
|
-
return _context2.abrupt("continue",
|
|
277
|
-
case
|
|
279
|
+
return _context2.abrupt("continue", 99);
|
|
280
|
+
case 50:
|
|
278
281
|
if (!(!(0, _ramda.isNil)(recipients) && recipients.length > 0)) {
|
|
279
|
-
_context2.next =
|
|
282
|
+
_context2.next = 53;
|
|
280
283
|
break;
|
|
281
284
|
}
|
|
282
285
|
if ((0, _ramda.includes)(tx.recipient, recipients)) {
|
|
283
|
-
_context2.next =
|
|
286
|
+
_context2.next = 53;
|
|
284
287
|
break;
|
|
285
288
|
}
|
|
286
|
-
return _context2.abrupt("continue",
|
|
287
|
-
case
|
|
289
|
+
return _context2.abrupt("continue", 99);
|
|
290
|
+
case 53:
|
|
288
291
|
tag_unmatch = false;
|
|
289
292
|
_iterator5 = _createForOfIteratorHelper(tags);
|
|
290
|
-
_context2.prev =
|
|
293
|
+
_context2.prev = 55;
|
|
291
294
|
_iterator5.s();
|
|
292
|
-
case
|
|
295
|
+
case 57:
|
|
293
296
|
if ((_step5 = _iterator5.n()).done) {
|
|
294
|
-
_context2.next =
|
|
297
|
+
_context2.next = 83;
|
|
295
298
|
break;
|
|
296
299
|
}
|
|
297
300
|
_v2 = _step5.value;
|
|
298
301
|
ex = false;
|
|
299
302
|
_iterator8 = _createForOfIteratorHelper(tx.tags);
|
|
300
|
-
_context2.prev =
|
|
303
|
+
_context2.prev = 61;
|
|
301
304
|
_iterator8.s();
|
|
302
|
-
case
|
|
305
|
+
case 63:
|
|
303
306
|
if ((_step8 = _iterator8.n()).done) {
|
|
304
|
-
_context2.next =
|
|
307
|
+
_context2.next = 70;
|
|
305
308
|
break;
|
|
306
309
|
}
|
|
307
310
|
_v3 = _step8.value;
|
|
308
311
|
if (!(_v3.name === _v2.name && (0, _ramda.includes)(_v3.value, _v2.values))) {
|
|
309
|
-
_context2.next =
|
|
312
|
+
_context2.next = 68;
|
|
310
313
|
break;
|
|
311
314
|
}
|
|
312
315
|
ex = true;
|
|
313
|
-
return _context2.abrupt("break",
|
|
314
|
-
case 66:
|
|
315
|
-
_context2.next = 61;
|
|
316
|
-
break;
|
|
316
|
+
return _context2.abrupt("break", 70);
|
|
317
317
|
case 68:
|
|
318
|
-
_context2.next =
|
|
318
|
+
_context2.next = 63;
|
|
319
319
|
break;
|
|
320
320
|
case 70:
|
|
321
|
-
_context2.
|
|
322
|
-
|
|
321
|
+
_context2.next = 75;
|
|
322
|
+
break;
|
|
323
|
+
case 72:
|
|
324
|
+
_context2.prev = 72;
|
|
325
|
+
_context2.t0 = _context2["catch"](61);
|
|
323
326
|
_iterator8.e(_context2.t0);
|
|
324
|
-
case
|
|
325
|
-
_context2.prev =
|
|
327
|
+
case 75:
|
|
328
|
+
_context2.prev = 75;
|
|
326
329
|
_iterator8.f();
|
|
327
|
-
return _context2.finish(
|
|
328
|
-
case
|
|
330
|
+
return _context2.finish(75);
|
|
331
|
+
case 78:
|
|
329
332
|
if (ex) {
|
|
330
|
-
_context2.next =
|
|
333
|
+
_context2.next = 81;
|
|
331
334
|
break;
|
|
332
335
|
}
|
|
333
336
|
tag_unmatch = true;
|
|
334
|
-
return _context2.abrupt("break",
|
|
335
|
-
case 79:
|
|
336
|
-
_context2.next = 55;
|
|
337
|
-
break;
|
|
337
|
+
return _context2.abrupt("break", 83);
|
|
338
338
|
case 81:
|
|
339
|
-
_context2.next =
|
|
339
|
+
_context2.next = 57;
|
|
340
340
|
break;
|
|
341
341
|
case 83:
|
|
342
|
-
_context2.
|
|
343
|
-
|
|
342
|
+
_context2.next = 88;
|
|
343
|
+
break;
|
|
344
|
+
case 85:
|
|
345
|
+
_context2.prev = 85;
|
|
346
|
+
_context2.t1 = _context2["catch"](55);
|
|
344
347
|
_iterator5.e(_context2.t1);
|
|
345
|
-
case
|
|
346
|
-
_context2.prev =
|
|
348
|
+
case 88:
|
|
349
|
+
_context2.prev = 88;
|
|
347
350
|
_iterator5.f();
|
|
348
|
-
return _context2.finish(
|
|
349
|
-
case
|
|
351
|
+
return _context2.finish(88);
|
|
352
|
+
case 91:
|
|
350
353
|
if (!tag_unmatch) {
|
|
351
|
-
_context2.next =
|
|
354
|
+
_context2.next = 93;
|
|
352
355
|
break;
|
|
353
356
|
}
|
|
354
|
-
return _context2.abrupt("continue",
|
|
355
|
-
case
|
|
357
|
+
return _context2.abrupt("continue", 99);
|
|
358
|
+
case 93:
|
|
356
359
|
_tx = _defineProperty({
|
|
357
360
|
cursor: tx.id,
|
|
358
361
|
id: tx.id,
|
|
@@ -444,47 +447,47 @@ var GQL = exports["default"] = /*#__PURE__*/function () {
|
|
|
444
447
|
data.push(_tx);
|
|
445
448
|
count += 1;
|
|
446
449
|
if (!(count >= first)) {
|
|
447
|
-
_context2.next =
|
|
450
|
+
_context2.next = 99;
|
|
448
451
|
break;
|
|
449
452
|
}
|
|
450
|
-
return _context2.abrupt("break",
|
|
451
|
-
case 97:
|
|
452
|
-
_context2.next = 34;
|
|
453
|
-
break;
|
|
453
|
+
return _context2.abrupt("break", 101);
|
|
454
454
|
case 99:
|
|
455
|
-
_context2.next =
|
|
455
|
+
_context2.next = 34;
|
|
456
456
|
break;
|
|
457
457
|
case 101:
|
|
458
|
-
_context2.
|
|
458
|
+
_context2.next = 106;
|
|
459
|
+
break;
|
|
460
|
+
case 103:
|
|
461
|
+
_context2.prev = 103;
|
|
459
462
|
_context2.t2 = _context2["catch"](32);
|
|
460
463
|
_iterator4.e(_context2.t2);
|
|
461
|
-
case
|
|
462
|
-
_context2.prev =
|
|
464
|
+
case 106:
|
|
465
|
+
_context2.prev = 106;
|
|
463
466
|
_iterator4.f();
|
|
464
|
-
return _context2.finish(
|
|
465
|
-
case
|
|
467
|
+
return _context2.finish(106);
|
|
468
|
+
case 109:
|
|
466
469
|
if (!(count >= first)) {
|
|
467
|
-
_context2.next =
|
|
470
|
+
_context2.next = 111;
|
|
468
471
|
break;
|
|
469
472
|
}
|
|
470
|
-
return _context2.abrupt("break",
|
|
471
|
-
case 109:
|
|
472
|
-
_context2.next = 22;
|
|
473
|
-
break;
|
|
473
|
+
return _context2.abrupt("break", 113);
|
|
474
474
|
case 111:
|
|
475
|
-
_context2.next =
|
|
475
|
+
_context2.next = 22;
|
|
476
476
|
break;
|
|
477
477
|
case 113:
|
|
478
|
-
_context2.
|
|
478
|
+
_context2.next = 118;
|
|
479
|
+
break;
|
|
480
|
+
case 115:
|
|
481
|
+
_context2.prev = 115;
|
|
479
482
|
_context2.t3 = _context2["catch"](20);
|
|
480
483
|
_iterator3.e(_context2.t3);
|
|
481
|
-
case
|
|
482
|
-
_context2.prev =
|
|
484
|
+
case 118:
|
|
485
|
+
_context2.prev = 118;
|
|
483
486
|
_iterator3.f();
|
|
484
|
-
return _context2.finish(
|
|
485
|
-
case
|
|
487
|
+
return _context2.finish(118);
|
|
488
|
+
case 121:
|
|
486
489
|
if (!(opt.next === true)) {
|
|
487
|
-
_context2.next =
|
|
490
|
+
_context2.next = 128;
|
|
488
491
|
break;
|
|
489
492
|
}
|
|
490
493
|
cursor = null;
|
|
@@ -510,13 +513,13 @@ var GQL = exports["default"] = /*#__PURE__*/function () {
|
|
|
510
513
|
data: data,
|
|
511
514
|
next: next
|
|
512
515
|
});
|
|
513
|
-
case
|
|
516
|
+
case 128:
|
|
514
517
|
return _context2.abrupt("return", data);
|
|
515
|
-
case
|
|
518
|
+
case 129:
|
|
516
519
|
case "end":
|
|
517
520
|
return _context2.stop();
|
|
518
521
|
}
|
|
519
|
-
}, _callee2, this, [[20,
|
|
522
|
+
}, _callee2, this, [[20, 115, 118, 121], [32, 103, 106, 109], [55, 85, 88, 91], [61, 72, 75, 78]]);
|
|
520
523
|
}));
|
|
521
524
|
function txs() {
|
|
522
525
|
return _txs.apply(this, arguments);
|
package/cjs/war.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
|
-
var
|
|
8
|
+
var _bar = _interopRequireDefault(require("./bar.js"));
|
|
9
9
|
var _armemWeb = _interopRequireDefault(require("./armem-web.js"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -33,5 +33,5 @@ var AR = /*#__PURE__*/function (_BAR) {
|
|
|
33
33
|
}
|
|
34
34
|
_inherits(AR, _BAR);
|
|
35
35
|
return _createClass(AR);
|
|
36
|
-
}(
|
|
36
|
+
}(_bar["default"]);
|
|
37
37
|
var _default = exports["default"] = AR;
|