@blacklake-web/utils
Advanced tools
+1
-1
@@ -1,1 +0,1 @@ | ||
| export * as LocalStorage from './localStroage'; | ||
| export * from './localStroage'; |
+11
-7
@@ -246,2 +246,11 @@ import _ from 'lodash'; | ||
| } | ||
| }], [{ | ||
| key: "getInstance", | ||
| value: function getInstance() { | ||
| if (BlLocalStorage.instance === undefined) { | ||
| BlLocalStorage.instance = new BlLocalStorage(); | ||
| } | ||
| return BlLocalStorage.instance; | ||
| } | ||
| }]); | ||
@@ -252,9 +261,4 @@ | ||
| var index = /*#__PURE__*/Object.freeze({ | ||
| __proto__: null, | ||
| BlLocalStorage: BlLocalStorage, | ||
| get StorageLimitType () { return StorageLimitType; }, | ||
| STORAGE_EXPIRED: STORAGE_EXPIRED | ||
| }); | ||
| BlLocalStorage.instance = void 0; | ||
| export { index as LocalStorage }; | ||
| export { BlLocalStorage, STORAGE_EXPIRED, StorageLimitType }; |
@@ -6,3 +6,5 @@ import { StorageLimitType, STORAGE_EXPIRED } from './constants'; | ||
| userId?: number; | ||
| constructor(); | ||
| private static instance; | ||
| private constructor(); | ||
| static getInstance(): BlLocalStorage; | ||
| setBaseInfo: (userId?: number | undefined, orgId?: number | undefined) => void; | ||
@@ -9,0 +11,0 @@ clearBaseInfo: () => void; |
+2
-2
| { | ||
| "name": "@blacklake-web/utils", | ||
| "version": "1.0.13-alpha.8", | ||
| "version": "1.0.13-alpha.11", | ||
| "description": "blackalke-web utils", | ||
@@ -28,3 +28,3 @@ "author": "zx <zhaoxin@blacklake.cn>", | ||
| }, | ||
| "gitHead": "9debdce897d58e907f8976538b02ebcde1bac6cb", | ||
| "gitHead": "aabb1cb5a5bb82572f2229503bc7f683a05a6b68", | ||
| "publishConfig": { | ||
@@ -31,0 +31,0 @@ "access": "public" |
+2
-2
@@ -1,4 +0,4 @@ | ||
| # `utils` | ||
| # `@blacklake-web/utils` | ||
| > TODO: description | ||
| > | ||
@@ -5,0 +5,0 @@ ## Usage |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
9133
1.84%255
2%0
-100%