create-gramstax 0.0.25 → 0.0.27

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.
@@ -1,3 +1,11 @@
1
1
  import { CtxCore } from "~/core/ctx"
2
2
 
3
- export abstract class GuardBase extends CtxCore {}
3
+ export abstract class GuardBase extends CtxCore {
4
+ public constructor(ctx: CtxCore) {
5
+ super(ctx)
6
+ if (ctx?.data) {
7
+ // save as temporary because guard should not save this.data or class.data because it is intended for Page only.
8
+ this.temp.data = ctx.data
9
+ }
10
+ }
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-gramstax",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "private": false,
5
5
  "description": "CLI tool to quickly create a new Gramstax Telegram bot project with all the best practices",
6
6
  "keywords": [