@hedhog/pagination 0.0.15 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  <img src="https://avatars.githubusercontent.com/u/177489127?s=200&v=4" alt="Hedhog Avatar" />
5
5
  </p>
6
6
 
7
- **Hedhog Pagination** is a powerful and flexible pagination library designed for use with HedHog-based projects. It simplifies the process of paginating data results from your database queries, making it easy to handle large datasets and provide users with a smooth and efficient browsing experience.
7
+ **Hedhog Pagination** is a powerful and flexible pagination library designed for use with HedHog-based projects. It simplifies the process of paginating data results from your database queries, making it easy to handle large datasets and provide user with a smooth and efficient browsing experience.
8
8
 
9
9
  ## Features
10
10
 
@@ -25,7 +25,7 @@ npm i @hedhog/pagination
25
25
 
26
26
  ```plaintext
27
27
  pagination/
28
- ├── dist/ # Compiled JavaScript files from build
28
+ ├── dist/ # Compiled JavaScript file from build
29
29
  ├── node_modules/ # Discardable folder with all module dependencies
30
30
  ├── src/
31
31
  │ ├── constants/
@@ -38,11 +38,11 @@ pagination/
38
38
  │ │ └── pagination.enums.ts # Enums for pagination
39
39
  │ ├── types/
40
40
  │ │ └── pagination.types.ts # Type definitions for pagination
41
- │ ├── index.ts # Entry point for pagination files
41
+ │ ├── index.ts # Entry point for pagination file
42
42
  │ ├── pagination.module.ts # Module definition for pagination functionalities
43
43
  │ ├── pagination.service.spec.ts # Unit tests for PaginationService
44
44
  │ └── pagination.service.ts # Service class for pagination logic
45
- ├── .gitignore # Specifies which files Git should ignore
45
+ ├── .gitignore # Specifies which file Git should ignore
46
46
  ├── package.json # Manages dependencies and scripts for the library
47
47
  ├── package-lock.json # Lock file for dependencies
48
48
  ├── README.md # Documentation for the library
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.service.d.ts","sourceRoot":"","sources":["../src/pagination.service.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EACZ,eAAe,EACf,gBAAgB,EACjB,MAAM,0BAA0B,CAAC;AAElC,qBACa,i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,OAAO;CAK7D"}
@@ -106,7 +106,6 @@ let PaginationService = PaginationService_1 = class PaginationService {
106
106
  }
107
107
  extractFieldNames(model) {
108
108
  const fieldNames = [];
109
- console.log('extractFieldNames', { model });
110
109
  const fields = model.fields;
111
110
  for (const key in fields) {
112
111
  if (fields && fields.hasOwnProperty(key)) {
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.service.js","sourceRoot":"","sources":["../src/pagination.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,yCAAiD;AACjD,2CAAyE;AACzE,2EAG0C;AAC1C,+DAA8D;AASvD,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IAAvB;QACY,WAAM,GAAG,IAAI,eAAM,CAAC,mBAAiB,CAAC,IAAI,CAAC,CAAC;IA4J/D,CAAC;IA1JC,KAAK,CAAC,QAAQ,CACZ,KAAQ,EACR,gBAAkC,EAClC,WAA6B,EAC7B,cAAuB;QAEvB,IAAI,CAAC;YACH,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,MAAM,IAAI,4BAAmB,CAAC,mBAAmB,CAAC,CAAC;YACrD,CAAC;YAED,MAAM,IAAI,GAAG,MAAM,CAAC,gBAAgB,CAAC,IAAI,IAAI,mCAAY,CAAC,CAAC;YAC3D,MAAM,QAAQ,GAAG,MAAM,CAAC,gBAAgB,CAAC,QAAQ,IAAI,wCAAiB,CAAC,CAAC;YACxE,MAAM,MAAM,GAAG,gBAAgB,CAAC,MAAM,IAAI,IAAI,CAAC;YAC/C,MAAM,SAAS,GAAG,gBAAgB,CAAC,SAAS,IAAI,IAAI,CAAC;YACrD,MAAM,SAAS,GAAG,gBAAgB,CAAC,SAAS,IAAI,qCAAkB,CAAC,GAAG,CAAC;YACvE,MAAM,MAAM,GAAG,gBAAgB,CAAC,MAAM;gBACpC,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC;gBACpC,CAAC,CAAC,IAAI,CAAC;YAET,IAAI,IAAI,GAAG,CAA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AM,KAAK,CAAC;YACd,CAAC;YAED,MAAM,IAAI,4BAAmB,CAAC,uBAAuB,KAAK,EAAE,CAAC,CAAC;QAChE,CAAC;IACH,CAAC;IAED,iBAAiB,CAAC,KAA0B;QAC1C,MAAM,UAAU,GAAa,EAAE,CAAC;QAEhC,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAE5B,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;YACzB,IAAI,MAAM,IAAI,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC;gBACzC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACvB,CAAC;QACH,CAAC;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,cAAc,CAAC,SAAiB,EAAE,KAAgB;QAChD,OAAO,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACjE,CAAC;IAED,eAAe,CAAC,MAAgB,EAAE,KAAgB;QAChD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAC7B,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CACpD,CAAC;IACJ,CAAC;CACF,CAAA;AA3JY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;GACA,iBAAiB,CA2J7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/pagination",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -148,8 +148,6 @@ export class PaginationService {
148
148
  extractFieldNames(model: Record<string, any>): string[] {
149
149
  const fieldNames: string[] = [];
150
150
 
151
- console.log('extractFieldNames', { model });
152
-
153
151
  const fields = model.fields;
154
152
 
155
153
  for (const key in fields) {