diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e90085..67d6d46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # @lemoncloud/lemon-front-lib +## 1.3.13 + +### Patch Changes + +- add updatePrefix function to storage service + ## 1.3.12 ### Patch Changes diff --git a/package.json b/package.json index c24bc23..5bbd323 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lemoncloud/lemon-front-lib", - "version": "1.3.12", + "version": "1.3.13", "description": "Web Core Library for Lemoncloud", "exports": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/core/lemon-storage.service.ts b/src/core/lemon-storage.service.ts index f3f1cdd..06f5e8c 100644 --- a/src/core/lemon-storage.service.ts +++ b/src/core/lemon-storage.service.ts @@ -29,6 +29,10 @@ export class LemonStorageService { this.storageService = storage; } + updatePrefix(prefix: string) { + this.prefix = `@${prefix}`; + } + async setItem(key: string, value: string) { return await this.storageService.setItem(`${this.prefix}.${key}`, value); }