From 45c532d594e5f204e82855cce5ce8c5daaa85a1a Mon Sep 17 00:00:00 2001 From: louis Date: Mon, 20 Nov 2023 13:12:19 +0900 Subject: [PATCH 1/2] feat: update prefix func --- src/core/lemon-storage.service.ts | 4 ++++ 1 file changed, 4 insertions(+) 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); } From 7f04b1974a4b519570b9676c84e020880c02666f Mon Sep 17 00:00:00 2001 From: louis Date: Mon, 20 Nov 2023 13:13:45 +0900 Subject: [PATCH 2/2] docs: update CHANGELOG --- CHANGELOG.md | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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",