@next2d/view-generator 2.0.0 → 3.0.0

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -22
  2. package/package.json +11 -7
package/dist/index.js CHANGED
@@ -67,29 +67,24 @@ export class ${name}ViewModel extends ViewModel
67
67
  {
68
68
  /**
69
69
  * @param {View} view
70
- * @return {void}
70
+ * @return {Promise<View>}
71
71
  * @method
72
72
  * @public
73
73
  */
74
- unbind (view)
74
+ async unbind (view)
75
75
  {
76
- console.log(view);
76
+ return await super.unbind(view);
77
77
  }
78
78
 
79
79
  /**
80
80
  * @param {View} view
81
- * @return {Promise}
81
+ * @return {Promise<void>}
82
82
  * @method
83
83
  * @public
84
84
  */
85
- bind (view)
85
+ async bind (view)
86
86
  {
87
- return this
88
- .factory(view)
89
- .then((view) =>
90
- {
91
- return Promise.resolve(view);
92
- });
87
+ await super.bind(view);
93
88
  }
94
89
  }`;
95
90
  };
@@ -135,29 +130,24 @@ export class ${name}ViewModel extends ViewModel
135
130
  {
136
131
  /**
137
132
  * @param {View} view
138
- * @return {void}
133
+ * @return {Promise<View>}
139
134
  * @method
140
135
  * @public
141
136
  */
142
- unbind (view: View): void
137
+ async unbind (view: View): Promise<View>
143
138
  {
144
- console.log(view);
139
+ return await super.unbind(view);
145
140
  }
146
141
 
147
142
  /**
148
143
  * @param {View} view
149
- * @return {Promise}
144
+ * @return {Promise<void>}
150
145
  * @method
151
146
  * @public
152
147
  */
153
- bind (view: View): Promise<View>
148
+ async bind (view: View): Promise<void>
154
149
  {
155
- return this
156
- .factory(view)
157
- .then((view): Promise<View> =>
158
- {
159
- return Promise.resolve(view);
160
- });
150
+ await super.bind(view);
161
151
  }
162
152
  }`;
163
153
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next2d/view-generator",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Generate the View class required for routing.",
5
5
  "author": "Toshiyuki Ienaga<ienaga@next2d.app>",
6
6
  "license": "MIT",
@@ -28,13 +28,17 @@
28
28
  "@next2d/view-generator": "dist/index.js"
29
29
  },
30
30
  "devDependencies": {
31
- "@typescript-eslint/eslint-plugin": "^6.9.1",
32
- "@typescript-eslint/parser": "^6.9.1",
33
- "eslint": "^8.22.0",
34
- "typescript": "^5.2.2"
31
+ "@eslint/eslintrc": "^3.3.1",
32
+ "@eslint/js": "^9.23.0",
33
+ "@typescript-eslint/eslint-plugin": "^8.27.0",
34
+ "@typescript-eslint/parser": "^8.27.0",
35
+ "eslint": "^9.23.0",
36
+ "eslint-plugin-unused-imports": "^4.1.4",
37
+ "globals": "^16.0.0",
38
+ "typescript": "^5.8.2"
35
39
  },
36
40
  "dependencies": {
37
- "@types/node": "^20.8.10",
38
- "picocolors": "^1.0.0"
41
+ "@types/node": "^22.13.11",
42
+ "picocolors": "^1.1.1"
39
43
  }
40
44
  }