@cocreate/unique 1.19.2 → 1.19.4

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.4](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.19.3...v1.19.4) (2024-04-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bump cocreate dependencies ([375dcf3](https://github.com/CoCreate-app/CoCreate-unique/commit/375dcf32a9e5e22a242c055cf39e8ce87784f384))
7
+
8
+ ## [1.19.3](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.19.2...v1.19.3) (2024-02-17)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * return isUnique ([c769307](https://github.com/CoCreate-app/CoCreate-unique/commit/c7693079ab0e6f9417ced95ec06fa48a25a2c244))
14
+
1
15
  ## [1.19.2](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.19.1...v1.19.2) (2024-02-05)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/unique",
3
- "version": "1.19.2",
3
+ "version": "1.19.4",
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",
@@ -58,7 +58,7 @@
58
58
  "webpack-log": "^3.0.1"
59
59
  },
60
60
  "dependencies": {
61
- "@cocreate/crud-client": "^1.32.2",
62
- "@cocreate/uuid": "^1.10.0"
61
+ "@cocreate/crud-client": "^1.33.8",
62
+ "@cocreate/uuid": "^1.11.1"
63
63
  }
64
64
  }
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