@jetthai/cuora 1.0.194 → 1.0.195-1

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 CHANGED
@@ -2,6 +2,10 @@
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-1](https://github.com/jetthai/cuora-module/compare/v1.0.195...v1.0.195-1) (2022-11-09)
6
+
7
+ ### [1.0.195](https://github.com/jetthai/cuora-module/compare/v1.0.194...v1.0.195) (2022-10-28)
8
+
5
9
  ### [1.0.194](https://github.com/jetthai/cuora-module/compare/v1.0.193...v1.0.194) (2022-10-28)
6
10
 
7
11
  ### [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.maxAge) {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.194",
3
+ "version": "1.0.195-1",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  "standard-version": "^9.3.1"
24
24
  },
25
25
  "dependencies": {
26
- "@fingerprintjs/fingerprintjs-pro": "^3.5.7",
26
+ "@fingerprintjs/fingerprintjs-pro": "^3.8.0",
27
27
  "lodash": "^4.17.21",
28
28
  "ua-parser-js": "^0.7.28",
29
29
  "universal-cookie": "^4.0.4",
@@ -17,7 +17,7 @@ export default {
17
17
  set(name, value, options) {
18
18
  const item = {value}
19
19
 
20
- if (options.maxAge) {
20
+ if (options?.maxAge) {
21
21
  item.expiry = new Date().getTime() + options.maxAge * 1000
22
22
  }
23
23
  localStorage.setItem(name, JSON.stringify(item))