@cocreate/element-prototype 1.8.7 → 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 CHANGED
@@ -1,3 +1,17 @@
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
+
8
+ ## [1.8.8](https://github.com/CoCreate-app/CoCreate-element-prototype/compare/v1.8.7...v1.8.8) (2023-05-06)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bump [@cocreate](https://github.com/cocreate) dependencies ([0641e49](https://github.com/CoCreate-app/CoCreate-element-prototype/commit/0641e49aa6985978436439b7412b20c08bb1b932))
14
+
1
15
  ## [1.8.7](https://github.com/CoCreate-app/CoCreate-element-prototype/compare/v1.8.6...v1.8.7) (2023-05-01)
2
16
 
3
17
 
@@ -17,9 +17,10 @@ module.exports = {
17
17
  "general.cocreate.app"
18
18
  ],
19
19
  "directory": "/docs/element-prototype",
20
- "content-type": "text/html",
20
+ "parentDirectory": "{{parentDirectory}}",
21
+ "content-type": "{{content-type}}",
21
22
  "public": "true",
22
- "website_id": "5ffbceb7f11d2d00103c4535"
23
+ "website_id": "644d4bff8036fb9d1d1fd69c"
23
24
  }
24
25
  }
25
26
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/element-prototype",
3
- "version": "1.8.7",
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",
@@ -59,8 +59,8 @@
59
59
  "webpack-log": "^3.0.1"
60
60
  },
61
61
  "dependencies": {
62
- "@cocreate/docs": "^1.7.1",
63
- "@cocreate/hosting": "^1.9.2",
64
- "@cocreate/utils": "^1.20.1"
62
+ "@cocreate/docs": "^1.7.8",
63
+ "@cocreate/hosting": "^1.10.0",
64
+ "@cocreate/utils": "^1.20.6"
65
65
  }
66
66
  }
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 = __encryptPassword(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 };