zova-cli-set-front 1.1.178 → 1.1.180

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.
@@ -8,7 +8,7 @@ module.exports = {
8
8
  if (ast.includes(`e: '${eventName}'`)) throw new Error('Model exists');
9
9
  // Props
10
10
  ast = ast.replace(/export interface Props([^\{]*) \{/, $0 => {
11
- return `${$0}\n ${modelName}: number;`;
11
+ return `${$0}\n ${modelName}?: number;`;
12
12
  });
13
13
  // Emits
14
14
  ast = ast.replace(/export type Emits([^\{]*) = \{/, $0 => {
@@ -23,7 +23,7 @@ module.exports = {
23
23
  return `${localName}: number;\n\n ${$0}`;
24
24
  });
25
25
  ast = ast.replace(/protected async __init__([^\{]*) \{/, $0 => {
26
- return `${$0}\n this.${localName} = this.$useModel(${modelName === 'modelValue' ? '' : `'${modelName}'`});`;
26
+ return `${$0}\n this.${localName} = this.$useModel(${modelName === 'modelValue' ? '' : `'${modelName}'`})!;`;
27
27
  });
28
28
  // ok
29
29
  return ast;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-cli-set-front",
3
- "version": "1.1.178",
3
+ "version": "1.1.180",
4
4
  "description": "zova cli-set-front",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -46,7 +46,7 @@
46
46
  "svgo": "^3.2.0",
47
47
  "urllib": "^3.24.0",
48
48
  "zova-shared": "^1.0.4",
49
- "zova-vite": "^1.0.175"
49
+ "zova-vite": "^1.0.176"
50
50
  },
51
- "gitHead": "2aa8046cc0dcb637f5ea7ef6a8916a94154c4dc5"
51
+ "gitHead": "2b22e9148dc8348edb6321e415184a7b83ace284"
52
52
  }