@cocreate/local-storage 1.10.5 → 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 CHANGED
@@ -1,3 +1,17 @@
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
+
8
+ ## [1.10.6](https://github.com/CoCreate-app/CoCreate-local-storage/compare/v1.10.5...v1.10.6) (2023-10-14)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bump dependencies ([40ff489](https://github.com/CoCreate-app/CoCreate-local-storage/commit/40ff489768b53fc194d3c03d083f82ec36f547e5))
14
+
1
15
  ## [1.10.5](https://github.com/CoCreate-app/CoCreate-local-storage/compare/v1.10.4...v1.10.5) (2023-10-09)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/local-storage",
3
- "version": "1.10.5",
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",
@@ -58,7 +58,7 @@
58
58
  "webpack-log": "^3.0.1"
59
59
  },
60
60
  "dependencies": {
61
- "@cocreate/actions": "^1.11.5",
62
- "@cocreate/observer": "^1.11.4"
61
+ "@cocreate/actions": "^1.11.6",
62
+ "@cocreate/observer": "^1.11.5"
63
63
  }
64
64
  }
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);