@cocreate/events 1.14.2 → 1.15.0
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 +12 -0
- package/package.json +5 -5
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [1.15.0](https://github.com/CoCreate-app/CoCreate-events/compare/v1.14.2...v1.15.0) (2023-11-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* if localstorage return if no key or value ([c6b2fc1](https://github.com/CoCreate-app/CoCreate-events/commit/c6b2fc166e6214dd9a3cb3a61cb309b2fd9cf34f))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* update dependecies for th latest features and bug fixes ([2e03eed](https://github.com/CoCreate-app/CoCreate-events/commit/2e03eed38fe82d0b7ae98da30a2894a1aa12be62))
|
|
12
|
+
|
|
1
13
|
## [1.14.2](https://github.com/CoCreate-app/CoCreate-events/compare/v1.14.1...v1.14.2) (2023-11-12)
|
|
2
14
|
|
|
3
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/events",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "A simple events component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"events",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"webpack-log": "^3.0.1"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@cocreate/actions": "^1.12.
|
|
62
|
-
"@cocreate/element-prototype": "^1.13.
|
|
63
|
-
"@cocreate/observer": "^1.
|
|
64
|
-
"@cocreate/utils": "^1.27.
|
|
61
|
+
"@cocreate/actions": "^1.12.4",
|
|
62
|
+
"@cocreate/element-prototype": "^1.13.2",
|
|
63
|
+
"@cocreate/observer": "^1.12.0",
|
|
64
|
+
"@cocreate/utils": "^1.27.4"
|
|
65
65
|
}
|
|
66
66
|
}
|
package/src/index.js
CHANGED
|
@@ -219,7 +219,7 @@ const CoCreateEvents = {
|
|
|
219
219
|
let key = element.getAttribute('localstorage-get')
|
|
220
220
|
if (key)
|
|
221
221
|
values = localStorage.getItem(key)
|
|
222
|
-
|
|
222
|
+
if (!key || !values)
|
|
223
223
|
return
|
|
224
224
|
} else
|
|
225
225
|
values = element.getAttribute(`${prefix}-value`) || element.getAttribute(prefix);
|