@itrocks/lazy-loading 0.2.0 → 0.2.1
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/cjs/lazy-loading.js +2 -2
- package/esm/lazy-loading.js +2 -2
- package/package.json +1 -1
package/cjs/lazy-loading.js
CHANGED
|
@@ -81,7 +81,7 @@ function initClass(classType) {
|
|
|
81
81
|
}
|
|
82
82
|
const properties = [];
|
|
83
83
|
// @ts-ignore TS2415 classType is always a heritable class, not a function.
|
|
84
|
-
const BuiltClass = class extends classType {
|
|
84
|
+
const BuiltClass = (() => class extends classType {
|
|
85
85
|
constructor(...args) {
|
|
86
86
|
super(...args);
|
|
87
87
|
for (const property of properties) {
|
|
@@ -95,7 +95,7 @@ function initClass(classType) {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
};
|
|
98
|
+
})();
|
|
99
99
|
let resultingBuiltClass = undefined;
|
|
100
100
|
for (const property of new reflect_1.ReflectClass(classType).properties) {
|
|
101
101
|
const propertyType = property.type;
|
package/esm/lazy-loading.js
CHANGED
|
@@ -78,7 +78,7 @@ export function initClass(classType) {
|
|
|
78
78
|
}
|
|
79
79
|
const properties = [];
|
|
80
80
|
// @ts-ignore TS2415 classType is always a heritable class, not a function.
|
|
81
|
-
const BuiltClass = class extends classType {
|
|
81
|
+
const BuiltClass = (() => class extends classType {
|
|
82
82
|
constructor(...args) {
|
|
83
83
|
super(...args);
|
|
84
84
|
for (const property of properties) {
|
|
@@ -92,7 +92,7 @@ export function initClass(classType) {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
};
|
|
95
|
+
})();
|
|
96
96
|
let resultingBuiltClass = undefined;
|
|
97
97
|
for (const property of new ReflectClass(classType).properties) {
|
|
98
98
|
const propertyType = property.type;
|
package/package.json
CHANGED