@next2d/view-generator 1.1.0 → 1.1.3

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 (3) hide show
  1. package/README.md +11 -6
  2. package/index.js +3 -3
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -1,12 +1,17 @@
1
- [![CodeQL](https://github.com/Next2D/next2d-view-generator/actions/workflows/codeql-analysis.yml/badge.svg?branch=main)](https://github.com/Next2D/next2d-view-generator/actions/workflows/codeql-analysis.yml)
2
- [![release](https://img.shields.io/github/v/release/Next2D/next2d-view-generator)](https://github.com/Next2D/next2d-view-generator/releases)
3
- [![license](https://img.shields.io/github/license/Next2D/next2d-view-generator)](https://github.com/Next2D/next2d-view-generator/blob/main/LICENSE)
1
+ # view-generator
2
+
3
+ [![CodeQL](https://github.com/Next2D/view-generator/actions/workflows/codeql-analysis.yml/badge.svg?branch=main)](https://github.com/Next2D/view-generator/actions/workflows/codeql-analysis.yml)
4
+ [![Lint](https://github.com/Next2D/view-generator/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/Next2D/view-generator/actions/workflows/lint.yml)
5
+ [![release](https://img.shields.io/github/v/release/Next2D/view-generator)](https://github.com/Next2D/view-generator/releases)
6
+ [![license](https://img.shields.io/github/license/Next2D/view-generator)](https://github.com/Next2D/view-generator/blob/main/LICENSE)
4
7
 
5
- # next2d-view-generator
6
8
  Generate the View class required for routing.
7
9
 
8
10
  ## Commands
9
11
 
10
12
  ```sh
11
- npx next2d-view-generator
12
- ```
13
+ npx @next2d/view-generator
14
+ ```
15
+
16
+ ## License
17
+ This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details.
package/index.js CHANGED
@@ -113,12 +113,12 @@ export class ${name}ViewModel extends next2d.fw.ViewModel
113
113
 
114
114
  /**
115
115
  * @param {next2d.fw.View} view
116
- * @return {void}
117
- * @abstract
116
+ * @return {Promise|void}
117
+ * @public
118
118
  */
119
119
  bind (view)
120
120
  {
121
- console.log(view);
121
+ return this.factory();
122
122
  }
123
123
  }`);
124
124
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next2d/view-generator",
3
- "version": "1.1.0",
3
+ "version": "1.1.3",
4
4
  "description": "Generate the View class required for routing.",
5
5
  "author": "Toshiyuki Ienaga<ienaga@tvon.jp>",
6
6
  "license": "MIT",
@@ -26,6 +26,6 @@
26
26
  "fs-extra": "9.0.1"
27
27
  },
28
28
  "devDependencies": {
29
- "eslint": "^8.0.0"
29
+ "eslint": "^8.1.0"
30
30
  }
31
31
  }