@cocreate/local-storage 1.10.6 → 1.10.7
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 +7 -0
- package/package.json +1 -1
- package/src/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.10.7](https://github.com/CoCreate-app/CoCreate-local-storage/compare/v1.10.6...v1.10.7) (2023-10-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* await getValue() ([a16a9d7](https://github.com/CoCreate-app/CoCreate-local-storage/commit/a16a9d75f4c64ac300168bf8b2e3fcc78e5e0dab))
|
|
7
|
+
|
|
1
8
|
## [1.10.6](https://github.com/CoCreate-app/CoCreate-local-storage/compare/v1.10.5...v1.10.6) (2023-10-14)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/local-storage",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.7",
|
|
4
4
|
"description": "A Simple component similar to CoCreate-input & CoCreate-fetch which Save and fetch data for inputs, textarea, selects from localstorage. Easily configured using HTML5 attributes and/or JavaScript API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"local-storage",
|
package/src/index.js
CHANGED
|
@@ -107,7 +107,7 @@ const CoCreateLocalStorage = {
|
|
|
107
107
|
*
|
|
108
108
|
* @return { undefined } No return
|
|
109
109
|
*/
|
|
110
|
-
runStorage: function (btn) {
|
|
110
|
+
runStorage: async function (btn) {
|
|
111
111
|
const form = btn.form;
|
|
112
112
|
// If the form is not a form return false.
|
|
113
113
|
if (!form) return;
|
|
@@ -115,7 +115,7 @@ const CoCreateLocalStorage = {
|
|
|
115
115
|
let set_els = form.querySelectorAll('[localstorage-set]')
|
|
116
116
|
for (let el of set_els) {
|
|
117
117
|
let key = el.getAttribute('localstorage-set');
|
|
118
|
-
let value = el.getValue()
|
|
118
|
+
let value = await el.getValue()
|
|
119
119
|
// Sets the value of an item.
|
|
120
120
|
if (value && key) {
|
|
121
121
|
this.setItem(key, value);
|