@next2d/view-generator 2.0.1 → 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.
- package/dist/index.js +12 -22
- package/package.json +12 -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 {
|
|
70
|
+
* @return {Promise<View>}
|
|
71
71
|
* @method
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
unbind (view)
|
|
74
|
+
async unbind (view)
|
|
75
75
|
{
|
|
76
|
-
|
|
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
|
-
|
|
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 {
|
|
133
|
+
* @return {Promise<View>}
|
|
139
134
|
* @method
|
|
140
135
|
* @public
|
|
141
136
|
*/
|
|
142
|
-
unbind (view: View):
|
|
137
|
+
async unbind (view: View): Promise<View>
|
|
143
138
|
{
|
|
144
|
-
|
|
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<
|
|
148
|
+
async bind (view: View): Promise<void>
|
|
154
149
|
{
|
|
155
|
-
|
|
156
|
-
.factory(view)
|
|
157
|
-
.then((view: 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": "
|
|
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",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"view-generator"
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
|
+
"lint": "eslint src/index.ts",
|
|
17
18
|
"publish": "tsc"
|
|
18
19
|
},
|
|
19
20
|
"files": [
|
|
@@ -27,13 +28,17 @@
|
|
|
27
28
|
"@next2d/view-generator": "dist/index.js"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
32
|
-
"eslint": "^8.
|
|
33
|
-
"typescript": "^
|
|
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"
|
|
34
39
|
},
|
|
35
40
|
"dependencies": {
|
|
36
|
-
"@types/node": "^
|
|
37
|
-
"picocolors": "^1.
|
|
41
|
+
"@types/node": "^22.13.11",
|
|
42
|
+
"picocolors": "^1.1.1"
|
|
38
43
|
}
|
|
39
44
|
}
|