wao 0.40.1 → 0.40.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/ao.js CHANGED
@@ -1609,11 +1609,11 @@ var AO = /*#__PURE__*/function () {
1609
1609
  value: function () {
1610
1610
  var _ress2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14(_ref16) {
1611
1611
  var _this4 = this;
1612
- var pid, limit, asc, cursor, err, msgs, next, res, sort, _t34;
1612
+ var pid, limit, asc, from, err, msgs, next, res, sort, _t34;
1613
1613
  return _regenerator().w(function (_context14) {
1614
1614
  while (1) switch (_context14.p = _context14.n) {
1615
1615
  case 0:
1616
- pid = _ref16.pid, limit = _ref16.limit, asc = _ref16.asc, cursor = _ref16.cursor;
1616
+ pid = _ref16.pid, limit = _ref16.limit, asc = _ref16.asc, from = _ref16.from;
1617
1617
  err = null;
1618
1618
  msgs = null;
1619
1619
  next = null;
@@ -1629,7 +1629,7 @@ var AO = /*#__PURE__*/function () {
1629
1629
  process: pid,
1630
1630
  limit: limit,
1631
1631
  sort: sort,
1632
- from: cursor
1632
+ from: from
1633
1633
  });
1634
1634
  case 2:
1635
1635
  res = _context14.v;
@@ -1641,7 +1641,7 @@ var AO = /*#__PURE__*/function () {
1641
1641
  process: pid,
1642
1642
  limit: limit,
1643
1643
  sort: sort,
1644
- from: cursor
1644
+ from: from
1645
1645
  });
1646
1646
  case 4:
1647
1647
  res = _context14.v;
@@ -100,7 +100,7 @@ const { mid, res, err, out } = await ao.res({
100
100
  Paginated results for a process.
101
101
 
102
102
  ```js
103
- const { err, out, res, next } = await ao.ress({ pid, limit: 10, asc: true, cursor: null })
103
+ const { err, out, res, next } = await ao.ress({ pid, limit: 10, asc: true, from: null })
104
104
  const page2 = next ? await next() : null
105
105
  ```
106
106
 
@@ -13,6 +13,6 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "hbsig": "0.3.0",
16
- "wao": "0.40.1"
16
+ "wao": "0.40.2"
17
17
  }
18
18
  }
package/esm/ao.js CHANGED
@@ -793,7 +793,7 @@ class AO {
793
793
  return { res, err, out }
794
794
  }
795
795
 
796
- async ress({ pid, limit, asc, cursor }) {
796
+ async ress({ pid, limit, asc, from }) {
797
797
  let err = null
798
798
  let msgs = null
799
799
  let next = null
@@ -801,9 +801,9 @@ class AO {
801
801
  try {
802
802
  let sort = asc ? "ASC" : "DESC"
803
803
  if (this.hb) {
804
- res = await this.hb.results({ process: pid, limit, sort, from: cursor })
804
+ res = await this.hb.results({ process: pid, limit, sort, from })
805
805
  } else {
806
- res = await this.results({ process: pid, limit, sort, from: cursor })
806
+ res = await this.results({ process: pid, limit, sort, from })
807
807
  }
808
808
  if (!res.edges) return null
809
809
  msgs = map(v => ({ cursor: v.cursor, ...v.node }))(res.edges)
@@ -100,7 +100,7 @@ const { mid, res, err, out } = await ao.res({
100
100
  Paginated results for a process.
101
101
 
102
102
  ```js
103
- const { err, out, res, next } = await ao.ress({ pid, limit: 10, asc: true, cursor: null })
103
+ const { err, out, res, next } = await ao.ress({ pid, limit: 10, asc: true, from: null })
104
104
  const page2 = next ? await next() : null
105
105
  ```
106
106
 
@@ -13,6 +13,6 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "hbsig": "0.3.0",
16
- "wao": "0.40.1"
16
+ "wao": "0.40.2"
17
17
  }
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wao",
3
- "version": "0.40.1",
3
+ "version": "0.40.2",
4
4
  "bin": {
5
5
  "wao": "./cjs/cli.js",
6
6
  "wao-esm": "./esm/cli.js"