@cocreate/elements 1.34.1 → 1.34.2
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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.34.2](https://github.com/CoCreate-app/CoCreate-elements/compare/v1.34.1...v1.34.2) (2024-02-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* handling of upset as it is now defaulting to false ([5c1099e](https://github.com/CoCreate-app/CoCreate-elements/commit/5c1099e1b9a21734006b7f61b93865385d701e49))
|
|
7
|
+
|
|
1
8
|
## [1.34.1](https://github.com/CoCreate-app/CoCreate-elements/compare/v1.34.0...v1.34.1) (2024-02-14)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/elements",
|
|
3
|
-
"version": "1.34.
|
|
3
|
+
"version": "1.34.2",
|
|
4
4
|
"description": "Fetch content into any html element by using html5 attributes to query data stored in CoCreate headless CMS. If data is changed it will instantly reflect in html tags as changes are broadcasted in realtime",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"elements",
|
package/src/index.js
CHANGED
|
@@ -756,7 +756,7 @@ async function save(element) {
|
|
|
756
756
|
if (!element) return;
|
|
757
757
|
let data, value
|
|
758
758
|
let upsert = element.getAttribute('upsert')
|
|
759
|
-
if (upsert
|
|
759
|
+
if (upsert && upsert !== 'false')
|
|
760
760
|
upsert = true
|
|
761
761
|
if (element.tagName === "FORM") {
|
|
762
762
|
data = await element.getData()
|