@cocreate/unique 1.19.1 → 1.19.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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.19.3](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.19.2...v1.19.3) (2024-02-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * return isUnique ([c769307](https://github.com/CoCreate-app/CoCreate-unique/commit/c7693079ab0e6f9417ced95ec06fa48a25a2c244))
7
+
8
+ ## [1.19.2](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.19.1...v1.19.2) (2024-02-05)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Removed https://cdn.cocreate.app/latest/CoCreate.min.css ([226df7d](https://github.com/CoCreate-app/CoCreate-unique/commit/226df7de8a2bf66ea75e37c9548660561e99fd72))
14
+
1
15
  ## [1.19.1](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.19.0...v1.19.1) (2024-01-17)
2
16
 
3
17
 
package/docs/index.html CHANGED
@@ -21,11 +21,6 @@
21
21
  property="og:image"
22
22
  content="https://cdn.cocreate.app/docs/unique.png" />
23
23
 
24
- <!-- CoCreate CSS -->
25
- <link
26
- rel="stylesheet"
27
- href="https://cdn.cocreate.app/latest/CoCreate.min.css"
28
- type="text/css" />
29
24
  <link
30
25
  rel="stylesheet"
31
26
  href="../index.css"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/unique",
3
- "version": "1.19.1",
3
+ "version": "1.19.3",
4
4
  "description": "A simple unique component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "unique",
package/src/client.js CHANGED
@@ -73,10 +73,8 @@ async function isUnique(element) {
73
73
  }
74
74
 
75
75
  // Set unique attribute on the element
76
- if (response.unique)
77
- element.setAttribute('unique', true);
78
- else
79
- element.setAttribute('unique', false);
76
+ element.setAttribute('unique', response.unique);
77
+ return response.unique
80
78
 
81
79
  }
82
80