xvideosx 1.4.7 → 1.4.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,10 @@
1
+ const hasNextFunction = (currentPage, pages) => () => {
2
+ return currentPage < Math.max(...pages);
3
+ };
4
+
5
+ const createHasNextFunction = (pagination) => {
6
+ const { page, pages } = pagination;
7
+ return hasNextFunction(page, pages);
8
+ };
9
+
10
+ module.exports = createHasNextFunction;
@@ -0,0 +1,10 @@
1
+ const hasPreviousFunction = (currentPage, pages) => () => {
2
+ return currentPage > Math.min(...pages);
3
+ };
4
+
5
+ const createHasPreviousFunction = (pagination) => {
6
+ const { page, pages } = pagination;
7
+ return hasPreviousFunction(page, pages);
8
+ };
9
+
10
+ module.exports = createHasPreviousFunction;
@@ -1,5 +1,5 @@
1
1
  const nextFunction = (currentPage) => () => {
2
- const fresh = require('./fresh');
2
+ const fresh = require('./newfresh');
3
3
  const next = currentPage + 1;
4
4
  return fresh({ page: next });
5
5
  };
@@ -1,5 +1,5 @@
1
1
  const previousFunction = (currentPage) => () => {
2
- const fresh = require('./fresh');
2
+ const fresh = require('./newfresh');
3
3
  const previous = currentPage - 1;
4
4
  return fresh({ page: previous });
5
5
  };
@@ -1,5 +1,5 @@
1
1
  const refreshFunction = (currentPage) => () => {
2
- const fresh = require('./fresh');
2
+ const fresh = require('./newfresh');
3
3
  return fresh(currentPage);
4
4
  };
5
5
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "xvideosx",
3
3
  "description": "xvideos.com api implementation.",
4
- "version": "1.4.7",
4
+ "version": "1.4.8",
5
5
  "main": "index.js",
6
6
  "license": "BSD-3-Clause",
7
7
  "repository": {