@cocreate/api 1.9.5 → 1.9.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.9.7](https://github.com/CoCreate-app/CoCreate-api/compare/v1.9.6...v1.9.7) (2023-04-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * check if undefined ([3ac208f](https://github.com/CoCreate-app/CoCreate-api/commit/3ac208fa3f5a68f18d8cedb5a7fbff11fa13984c))
7
+
8
+ ## [1.9.6](https://github.com/CoCreate-app/CoCreate-api/compare/v1.9.5...v1.9.6) (2023-04-11)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bump dependencies ([4f00018](https://github.com/CoCreate-app/CoCreate-api/commit/4f000180913e743b2f6a8a124f0f8275238994e4))
14
+
1
15
  ## [1.9.5](https://github.com/CoCreate-app/CoCreate-api/compare/v1.9.4...v1.9.5) (2023-04-11)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/api",
3
- "version": "1.9.5",
3
+ "version": "1.9.7",
4
4
  "description": "A simple api helper component in vanilla javascript used by JavaScript developers to create thirdparty api intergrations. CoCreate-api includes the client component and server side for api processing. Thirdparty apis can be accessible using HTML5 attributes and/or JavaScript API. ",
5
5
  "keywords": [
6
6
  "thirdparty-api-intergration",
@@ -61,13 +61,13 @@
61
61
  "webpack-log": "^3.0.1"
62
62
  },
63
63
  "dependencies": {
64
- "@cocreate/actions": "^1.6.4",
65
- "@cocreate/crud-client": "^1.19.4",
66
- "@cocreate/docs": "^1.6.4",
67
- "@cocreate/element-prototype": "^1.6.4",
68
- "@cocreate/hosting": "^1.8.4",
69
- "@cocreate/render": "^1.22.5",
70
- "@cocreate/socket-client": "^1.18.3",
71
- "@cocreate/utils": "^1.19.4"
64
+ "@cocreate/actions": "^1.6.5",
65
+ "@cocreate/crud-client": "^1.19.5",
66
+ "@cocreate/docs": "^1.6.5",
67
+ "@cocreate/element-prototype": "^1.6.5",
68
+ "@cocreate/hosting": "^1.8.5",
69
+ "@cocreate/render": "^1.22.6",
70
+ "@cocreate/socket-client": "^1.18.4",
71
+ "@cocreate/utils": "^1.19.5"
72
72
  }
73
73
  }
package/src/client.js CHANGED
@@ -147,7 +147,7 @@ const CoCreateApi = {
147
147
  if (!elements || elements.length == 0)
148
148
  elements = [element]
149
149
  for (let el of elements) {
150
- if (el.closest('[template]')) continue
150
+ if (!el || el.closest('[template]')) continue
151
151
  let attribute = el.getAttribute(name)
152
152
  if (attribute)
153
153
  data[attribute] = el.getValue()