From 8e4a4c3e9c2b93fd61b479ade4a4823fafae8024 Mon Sep 17 00:00:00 2001 From: Michelon Souza Date: Wed, 25 Dec 2024 10:42:08 -0300 Subject: [PATCH] Feature/implements cookie (#722) * feat(cookie): implements cookie encriptation * fix: update version * fix: update version * fix(cookie): fix remove cookie function --- package.json | 2 +- src/encrypt-storage.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 158e447..fbd3201 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "encrypt-storage", - "version": "2.14.00", + "version": "2.14.03", "description": "Wrapper for encrypted localStorage and sessionStorage in browser", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/encrypt-storage.ts b/src/encrypt-storage.ts index 3d88a44..07b73a6 100644 --- a/src/encrypt-storage.ts +++ b/src/encrypt-storage.ts @@ -492,7 +492,7 @@ export class EncryptStorage implements EncryptStorageInterface { return; } - this.cookie.set(this.#getKey(key), '', { ...options, expires: -1 }); + this.cookie.set(key, '', { ...options, expires: -1 }); if (this.#notifyHandler) { this.#notifyHandler({