@cocreate/element-prototype 1.22.1 → 1.22.3
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 +14 -0
- package/package.json +2 -2
- package/src/setValue.js +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.22.3](https://github.com/CoCreate-app/CoCreate-element-prototype/compare/v1.22.2...v1.22.3) (2024-04-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump cocreate dependencies ([a2bc71e](https://github.com/CoCreate-app/CoCreate-element-prototype/commit/a2bc71e888dc14d45f6600874ae66412163b228a))
|
|
7
|
+
|
|
8
|
+
## [1.22.2](https://github.com/CoCreate-app/CoCreate-element-prototype/compare/v1.22.1...v1.22.2) (2024-04-27)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* try catch block for script insert ([eff2887](https://github.com/CoCreate-app/CoCreate-element-prototype/commit/eff2887588e5a89ac4cb384cc17242ae29ad2363))
|
|
14
|
+
|
|
1
15
|
## [1.22.1](https://github.com/CoCreate-app/CoCreate-element-prototype/compare/v1.22.0...v1.22.1) (2024-03-18)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/element-prototype",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.3",
|
|
4
4
|
"description": "A simple element-prototype component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"element-prototype",
|
|
@@ -58,6 +58,6 @@
|
|
|
58
58
|
"webpack-log": "^3.0.1"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@cocreate/utils": "^1.
|
|
61
|
+
"@cocreate/utils": "^1.33.6"
|
|
62
62
|
}
|
|
63
63
|
}
|
package/src/setValue.js
CHANGED
|
@@ -191,7 +191,11 @@ function setScript(script, value) {
|
|
|
191
191
|
else
|
|
192
192
|
newScript.innerHTML = value;
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
try {
|
|
195
|
+
script.replaceWith(newScript);
|
|
196
|
+
} catch (error) {
|
|
197
|
+
console.log(error)
|
|
198
|
+
}
|
|
195
199
|
}
|
|
196
200
|
|
|
197
201
|
function __decryptPassword(str) {
|