@alevnyacow/nzmt 0.1.7 → 0.1.9
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 +1 -1
- package/dist/entities/pagination.entity.d.ts +1 -0
- package/dist/index.cjs +6 -0
- package/dist/index.js +6 -0
- package/package.json +1 -1
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
|
}
|
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,
|