@cocreate/api 1.9.6 → 1.10.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 CHANGED
@@ -1,3 +1,17 @@
1
+ # [1.10.0](https://github.com/CoCreate-app/CoCreate-api/compare/v1.9.7...v1.10.0) (2023-04-24)
2
+
3
+
4
+ ### Features
5
+
6
+ * added pwa manifest ([61fc02f](https://github.com/CoCreate-app/CoCreate-api/commit/61fc02f8bc4a5985af194537fd5dee907dcd699b))
7
+
8
+ ## [1.9.7](https://github.com/CoCreate-app/CoCreate-api/compare/v1.9.6...v1.9.7) (2023-04-13)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * check if undefined ([3ac208f](https://github.com/CoCreate-app/CoCreate-api/commit/3ac208fa3f5a68f18d8cedb5a7fbff11fa13984c))
14
+
1
15
  ## [1.9.6](https://github.com/CoCreate-app/CoCreate-api/compare/v1.9.5...v1.9.6) (2023-04-11)
2
16
 
3
17
 
package/demo/index.html CHANGED
@@ -4,7 +4,8 @@
4
4
  <title>Api | CoCreateJS</title>
5
5
  <!-- CoCreate Favicon -->
6
6
  <link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16">
7
- </head>
7
+ <link rel="manifest" href="/manifest.json" />
8
+ </head>
8
9
  <body>
9
10
 
10
11
  <h1>Form Demo</h1>
package/docs/form.html CHANGED
@@ -15,6 +15,7 @@
15
15
  <!-- CoCreate CSS -->
16
16
  <link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
17
17
  <link rel="stylesheet" href="/docs/index.css" collection="files" document_id="60888216117c640e7596303f" name="src" type="text/css" save="true" />
18
+ <link rel="manifest" href="/manifest.json" />
18
19
  </head>
19
20
 
20
21
  <body>
package/docs/index.html CHANGED
@@ -16,6 +16,7 @@
16
16
  <link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
17
17
  <link rel="stylesheet" href="/docs/index.css" collection="files" document_id="60888216117c640e7596303f" name="src" type="text/css" save="true" />
18
18
 
19
+ <link rel="manifest" href="/manifest.json" />
19
20
  </head>
20
21
 
21
22
  <body>
package/docs/module.html CHANGED
@@ -15,6 +15,7 @@
15
15
  <!-- CoCreate CSS -->
16
16
  <link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
17
17
  <link rel="stylesheet" href="/docs/index.css" collection="files" document_id="60888216117c640e7596303f" name="src" type="text/css" save="true" />
18
+ <link rel="manifest" href="/manifest.json">
18
19
  </head>
19
20
 
20
21
  <body>
package/docs/server.html CHANGED
@@ -15,6 +15,7 @@
15
15
  <!-- CoCreate CSS -->
16
16
  <link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
17
17
  <link rel="stylesheet" href="/docs/index.css" collection="files" document_id="60888216117c640e7596303f" name="src" type="text/css" save="true" />
18
+ <link rel="manifest" href="/manifest.json">
18
19
  </head>
19
20
 
20
21
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/api",
3
- "version": "1.9.6",
3
+ "version": "1.10.0",
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",
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()