revdev 0.0.78 → 0.0.79

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/lib/utils/feed.js CHANGED
@@ -27,7 +27,7 @@ function newFeed(items, p1, p2) {
27
27
  var _a;
28
28
  var oldSkip = 0;
29
29
  var all = items.length ? ((_a = items[0]) === null || _a === void 0 ? void 0 : _a.count) || 0 : 0;
30
- if (p1) {
30
+ if (typeof p1 === 'number') {
31
31
  if (p2) {
32
32
  // all
33
33
  all = p2;
@@ -40,10 +40,16 @@ describe('feed', function () {
40
40
  });
41
41
  });
42
42
  test('newFeed: 3 params', function () {
43
- testFeed(feed_1.FeedUtil.new(items, 10, 100), {
43
+ var all = 100;
44
+ testFeed(feed_1.FeedUtil.new(items, 0, all), {
45
+ items: items,
46
+ skip: ITEM_COUNT,
47
+ all: all,
48
+ });
49
+ testFeed(feed_1.FeedUtil.new(items, 10, all), {
44
50
  items: items,
45
51
  skip: 10 + ITEM_COUNT,
46
- all: 100,
52
+ all: all,
47
53
  });
48
54
  });
49
55
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.0.78",
3
+ "version": "0.0.79",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",