@next2d/view-generator 1.5.0 → 1.5.2
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/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -42,7 +42,7 @@ const createJavaScriptFile = function ()
|
|
|
42
42
|
|
|
43
43
|
for (let idx = 0; idx < keys.length; ++idx) {
|
|
44
44
|
|
|
45
|
-
const names = keys[idx].split(
|
|
45
|
+
const names = keys[idx].split(/-|\//);
|
|
46
46
|
|
|
47
47
|
if (names[0].charAt(0) === "@") {
|
|
48
48
|
continue;
|
|
@@ -130,7 +130,7 @@ export class ${name}ViewModel extends ViewModel
|
|
|
130
130
|
{
|
|
131
131
|
return this
|
|
132
132
|
.factory(view)
|
|
133
|
-
.then((view) =>
|
|
133
|
+
.then((view) =>
|
|
134
134
|
{
|
|
135
135
|
return Promise.resolve(view);
|
|
136
136
|
});
|
|
@@ -167,7 +167,7 @@ const createTypeScriptFile = function ()
|
|
|
167
167
|
|
|
168
168
|
for (let idx = 0; idx < keys.length; ++idx) {
|
|
169
169
|
|
|
170
|
-
const names = keys[idx].split(
|
|
170
|
+
const names = keys[idx].split(/-|\//);
|
|
171
171
|
|
|
172
172
|
if (names[0].charAt(0) === "@") {
|
|
173
173
|
continue;
|