vsn 0.1.79 → 0.1.80
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/demo/vsn.js +2 -2
- package/dist/attributes/ComponentAttribute.js +9 -4
- package/dist/attributes/ComponentAttribute.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/vsn.min.js +2 -2
- package/package.json +1 -1
- package/src/attributes/ComponentAttribute.ts +3 -4
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -11,13 +11,12 @@ export class ComponentAttribute extends TemplateAttribute {
|
|
|
11
11
|
if (!Registry.instance.components.has(name)) {
|
|
12
12
|
await super.extract();
|
|
13
13
|
const clsName = this.getAttributeValue();
|
|
14
|
-
let cls
|
|
14
|
+
let cls;
|
|
15
15
|
if (clsName) {
|
|
16
16
|
cls = await Registry.instance.components.get(clsName);
|
|
17
|
-
if (!cls) {
|
|
18
|
-
throw new Error(`Component ${clsName} not found`);
|
|
19
|
-
}
|
|
20
17
|
}
|
|
18
|
+
if (!cls)
|
|
19
|
+
cls = class extends Component {};
|
|
21
20
|
Registry.instance.components.register(name, cls);
|
|
22
21
|
}
|
|
23
22
|
}
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.
|
|
1
|
+
export const VERSION = '0.1.80';
|
|
2
2
|
|