@jetthai/cuora 1.0.194 → 1.0.195
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/dist/bundle.mjs +1 -1
- package/package.json +1 -1
- package/src/util/storage.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.0.195](https://github.com/jetthai/cuora-module/compare/v1.0.194...v1.0.195) (2022-10-28)
|
|
6
|
+
|
|
5
7
|
### [1.0.194](https://github.com/jetthai/cuora-module/compare/v1.0.193...v1.0.194) (2022-10-28)
|
|
6
8
|
|
|
7
9
|
### [1.0.193](https://github.com/jetthai/cuora-module/compare/v1.0.192...v1.0.193) (2022-10-26)
|
package/dist/bundle.mjs
CHANGED
|
@@ -7762,7 +7762,7 @@ var storage = {
|
|
|
7762
7762
|
set(name, value, options) {
|
|
7763
7763
|
const item = {value};
|
|
7764
7764
|
|
|
7765
|
-
if (options
|
|
7765
|
+
if (options?.maxAge) {
|
|
7766
7766
|
item.expiry = new Date().getTime() + options.maxAge * 1000;
|
|
7767
7767
|
}
|
|
7768
7768
|
localStorage.setItem(name, JSON.stringify(item));
|
package/package.json
CHANGED
package/src/util/storage.js
CHANGED