Skip to content

Commit

Permalink
🔖 patch version bump to v2.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
niketpathak committed Apr 15, 2024
1 parent a7af2d9 commit c58b403
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand All @@ -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`.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit c58b403

Please sign in to comment.