Skip to content

Commit ee82e11

Browse files
committed
released v2.0.6 (#45)
1 parent 3959338 commit ee82e11

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

dist/store.cjs.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**!
2-
* storejs v2.0.5
2+
* storejs v2.0.6
33
* Local storage localstorage package provides a simple API
44
*
55
* Copyright (c) 2023 kenny wang <[email protected]>
@@ -87,7 +87,8 @@ Store.prototype = {
8787
return this;
8888
},
8989
get: function get(key) {
90-
if (!key) {
90+
// Return all entries if no key
91+
if (key === undefined) {
9192
var ret = {};
9293
this.forEach(function (key, val) {
9394
return ret[key] = val;

dist/store.esm.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**!
2-
* storejs v2.0.5
2+
* storejs v2.0.6
33
* Local storage localstorage package provides a simple API
44
*
55
* Copyright (c) 2023 kenny wang <[email protected]>
@@ -85,7 +85,8 @@ Store.prototype = {
8585
return this;
8686
},
8787
get: function get(key) {
88-
if (!key) {
88+
// Return all entries if no key
89+
if (key === undefined) {
8990
var ret = {};
9091
this.forEach(function (key, val) {
9192
return ret[key] = val;

dist/store.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**!
2-
* storejs v2.0.5
2+
* storejs v2.0.6
33
* Local storage localstorage package provides a simple API
44
*
55
* Copyright (c) 2023 kenny wang <[email protected]>
@@ -91,7 +91,8 @@
9191
return this;
9292
},
9393
get: function get(key) {
94-
if (!key) {
94+
// Return all entries if no key
95+
if (key === undefined) {
9596
var ret = {};
9697
this.forEach(function (key, val) {
9798
return ret[key] = val;

dist/store.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "storejs",
3-
"version": "2.0.5",
3+
"version": "2.0.6",
44
"description": "Local storage localstorage package provides a simple API",
55
"homepage": "https://jaywcjlove.github.io/store.js/",
66
"author": "kenny wang <[email protected]>",

0 commit comments

Comments
 (0)