@cocreate/element-prototype 1.8.8 → 1.8.9
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/getValue.js +1 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.8.9](https://github.com/CoCreate-app/CoCreate-element-prototype/compare/v1.8.8...v1.8.9) (2023-05-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* removed __encryptPassword ([115c4b4](https://github.com/CoCreate-app/CoCreate-element-prototype/commit/115c4b4a2ded83f67012a071cdfebaf0903abc45))
|
|
7
|
+
|
|
1
8
|
## [1.8.8](https://github.com/CoCreate-app/CoCreate-element-prototype/compare/v1.8.7...v1.8.8) (2023-05-06)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/element-prototype",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.9",
|
|
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",
|
package/src/getValue.js
CHANGED
|
@@ -56,7 +56,7 @@ const getValue = (element) => {
|
|
|
56
56
|
value = [Number(element.min), Number(element.value)];
|
|
57
57
|
}
|
|
58
58
|
else if (element.type === "password") {
|
|
59
|
-
value =
|
|
59
|
+
value = btoa(value);
|
|
60
60
|
}
|
|
61
61
|
else if (element.tagName == "SELECT" && element.hasAttribute('multiple')) {
|
|
62
62
|
let options = element.selectedOptions;
|
|
@@ -98,9 +98,4 @@ const getValue = (element) => {
|
|
|
98
98
|
return value;
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
function __encryptPassword(str) {
|
|
102
|
-
let encodedString = btoa(str);
|
|
103
|
-
return encodedString;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
101
|
export { getValue };
|