From c58b40320fbea6111fa426a5dc046a372e9105a1 Mon Sep 17 00:00:00 2001 From: Niket Pathak Date: Mon, 15 Apr 2024 12:44:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20patch=20version=20bump=20to=20v2?= =?UTF-8?q?.7.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ed99048..f555eb4 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,7 @@ Sets an item in the LocalStorage. It can accept 3 arguments 1. `key: string` **[Required]** - The key with which the value should be associated 2. `value: string|Date|Number|Object|Boolean|Null` **[Required]** - The value to be stored -3. `config: Config` **[Optional]** - This argument accepts the same properties as the [global config](#config) object. Defaults to an empty object +3. `config: Config` **[Optional]** - This argument accepts the same properties (except `storage` property) as the [global config](#config) object. Defaults to an empty object Returns `false` if there was an error, else returns `undefined`. @@ -205,7 +205,7 @@ ls.set('key', 'value', { encrypt: true }); Retrieves the Data associated with the key stored in the LocalStorage. It accepts 2 arguments - 1. `key: string` **[Required]** - The key with which the value is associated -2. `config: Config` **[Optional]** - This argument accepts the same properties as the [global config](#config) object. Defaults to an empty object +2. `config: Config` **[Optional]** - This argument accepts the same properties (except `storage` property) as the [global config](#config) object. Defaults to an empty object If the passed key does not exist, it returns `null`. diff --git a/package.json b/package.json index b375d70..d8bbfc4 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "localstorage-slim", "title": "localstorage-slim", "description": "An ultra slim localstorage wrapper with optional support for ttl and encryption", - "version": "2.7.0", + "version": "2.7.1", "homepage": "https://github.com/digitalfortress-tech/localstorage-slim", "license": "MIT", "scripts": {