@cocreate/unique 1.18.1 → 1.19.0
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 +3 -3
- package/src/client.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [1.19.0](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.18.2...v1.19.0) (2024-01-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* bumped CoCreate dependencies to their latest versions ([75f4924](https://github.com/CoCreate-app/CoCreate-unique/commit/75f4924ad19f29023cd2e56ec8763fe8065c73e6))
|
|
7
|
+
|
|
8
|
+
## [1.18.2](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.18.1...v1.18.2) (2023-12-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* delete data storage and fix variable names ([9371e3b](https://github.com/CoCreate-app/CoCreate-unique/commit/9371e3b224f48e90d4c83dba48afa0ac3030d04c))
|
|
14
|
+
|
|
1
15
|
## [1.18.1](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.18.0...v1.18.1) (2023-12-18)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/unique",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0",
|
|
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.
|
|
62
|
-
"@cocreate/uuid": "^1.
|
|
61
|
+
"@cocreate/crud-client": "^1.32.2",
|
|
62
|
+
"@cocreate/uuid": "^1.10.0"
|
|
63
63
|
}
|
|
64
64
|
}
|
package/src/client.js
CHANGED
|
@@ -69,9 +69,9 @@ async function isUnique(element) {
|
|
|
69
69
|
|
|
70
70
|
// If indexedb response is unique is true, check server response
|
|
71
71
|
if (response.unique) {
|
|
72
|
-
delete data.
|
|
73
|
-
|
|
74
|
-
response = await crud.socket.send(
|
|
72
|
+
delete data.storage
|
|
73
|
+
data.method = 'isUnique'
|
|
74
|
+
response = await crud.socket.send(data)
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
// Set unique attribute on the element
|