light-h5-core-lib 2.10.1 → 2.10.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.
@@ -18,7 +18,6 @@ var BaseSingleton = /** @class */ (function () {
18
18
  throw new Error("".concat(constructorName, " is a singleton class, can't create new instance"));
19
19
  }
20
20
  else {
21
- BaseSingleton._instance = this;
22
21
  this.ctor();
23
22
  }
24
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "light-h5-core-lib",
3
- "version": "2.10.1",
3
+ "version": "2.10.3",
4
4
  "description": "light core lib",
5
5
  "main": "./LightCore.js",
6
6
  "types": "./type/index.d.ts",
package/type/index.d.ts CHANGED
@@ -76,7 +76,7 @@ export declare class PoolObj<T> implements IClear {
76
76
  */
77
77
  export declare abstract class BaseSingleton implements IDestroy {
78
78
  protected static _instance: BaseSingleton;
79
- constructor();
79
+ protected constructor();
80
80
  /**
81
81
  * 销毁单例类
82
82
  */