light-h5-core-lib 2.10.7 → 2.10.8

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.
@@ -13,13 +13,11 @@ const ClassNameUtil_1 = require("../util/ClassNameUtil");
13
13
  */
14
14
  class BaseSingleton {
15
15
  constructor() {
16
+ this.ctor();
16
17
  if (BaseSingleton._instance) {
17
18
  const constructorName = ClassNameUtil_1.ClassNameUtil.getClassName(this);
18
19
  throw new Error(`${constructorName} is a singleton class, can't create new instance`);
19
20
  }
20
- else {
21
- this.ctor();
22
- }
23
21
  }
24
22
  }
25
23
  exports.BaseSingleton = BaseSingleton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "light-h5-core-lib",
3
- "version": "2.10.7",
3
+ "version": "2.10.8",
4
4
  "description": "light core lib",
5
5
  "main": "./LightCore.js",
6
6
  "types": "./type/index.d.ts",