@alevnyacow/nzmt 0.1.7 → 0.1.8

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/bin/cli.js CHANGED
@@ -457,7 +457,6 @@ if (command === 'service') {
457
457
  var [lowerCase, upperCase] = camelizeVariants(entityName)
458
458
  generateService(lowerCase, upperCase, false)
459
459
  process.exit(0)
460
-
461
460
  }
462
461
 
463
462
  if (command === 'crud') {
@@ -465,4 +464,5 @@ if (command === 'crud') {
465
464
  generateEntity(upperCase)
466
465
  generateStores(lowerCase, upperCase)
467
466
  generateService(lowerCase, upperCase, true)
467
+ process.exit(0)
468
468
  }
@@ -15,4 +15,5 @@ export declare class Pagination {
15
15
  * Safe implementation. If it's first page, pagination with the same model is returned.
16
16
  */
17
17
  get previousPage(): Pagination;
18
+ get previousPage_UNSAFE(): Pagination;
18
19
  }
package/dist/index.cjs CHANGED
@@ -381,6 +381,12 @@ class Pagination {
381
381
  zeroBasedIndex: this.model.zeroBasedIndex - 1
382
382
  });
383
383
  }
384
+ get previousPage_UNSAFE() {
385
+ return Pagination.create({
386
+ pageSize: this.model.pageSize,
387
+ zeroBasedIndex: this.model.zeroBasedIndex - 1
388
+ });
389
+ }
384
390
  }
385
391
  const mapStoreSchemasToModuleMetadata = (schemas, name)=>({
386
392
  name,
package/dist/index.js CHANGED
@@ -342,6 +342,12 @@ class Pagination {
342
342
  zeroBasedIndex: this.model.zeroBasedIndex - 1
343
343
  });
344
344
  }
345
+ get previousPage_UNSAFE() {
346
+ return Pagination.create({
347
+ pageSize: this.model.pageSize,
348
+ zeroBasedIndex: this.model.zeroBasedIndex - 1
349
+ });
350
+ }
345
351
  }
346
352
  const mapStoreSchemasToModuleMetadata = (schemas, name)=>({
347
353
  name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alevnyacow/nzmt",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Next Zod Modules Toolkit",
5
5
  "repository": {
6
6
  "type": "git",