@x-spacy/pagination 1.0.6 → 1.0.7

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/@types/index.d.ts CHANGED
@@ -5,7 +5,7 @@ declare module '@x-spacy/pagination' {
5
5
  export enum PaginationLinkType {
6
6
  FIRST = 'FIRST',
7
7
  LAST = 'LAST',
8
- PREV = 'PREV',
8
+ PREVIOUS = 'PREVIOUS',
9
9
  NEXT = 'NEXT',
10
10
  PAGE = 'PAGE'
11
11
  }
@@ -5,7 +5,7 @@ var PaginationLinkType;
5
5
  (function (PaginationLinkType) {
6
6
  PaginationLinkType["FIRST"] = "FIRST";
7
7
  PaginationLinkType["LAST"] = "LAST";
8
- PaginationLinkType["PREV"] = "PREV";
8
+ PaginationLinkType["PREVIOUS"] = "PREVIOUS";
9
9
  PaginationLinkType["NEXT"] = "NEXT";
10
10
  PaginationLinkType["PAGE"] = "PAGE";
11
11
  })(PaginationLinkType || (exports.PaginationLinkType = PaginationLinkType = {}));
@@ -38,7 +38,7 @@ let PaginateInterceptor = class PaginateInterceptor {
38
38
  }
39
39
  buildLinks(currentPage, lastPage, buildUrl) {
40
40
  const links = new Array();
41
- links.push(new PaginationLink_1.PaginationLink(currentPage > 1 ? buildUrl(currentPage - 1) : null, '« Anterior', PaginationLinkType_1.PaginationLinkType.PREV, false));
41
+ links.push(new PaginationLink_1.PaginationLink(currentPage > 1 ? buildUrl(currentPage - 1) : null, '« Anterior', PaginationLinkType_1.PaginationLinkType.PREVIOUS, false));
42
42
  for (let i = 1; i <= lastPage; i++) {
43
43
  links.push(new PaginationLink_1.PaginationLink(buildUrl(i), String(i), PaginationLinkType_1.PaginationLinkType.PAGE, i === currentPage));
44
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-spacy/pagination",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "A pagination library for NestJS",
5
5
  "license": "X SPACY LICENSE AGREEMENT",
6
6
  "private": false,