@cocreate/unique 1.4.0 → 1.4.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 +23 -0
- package/package.json +4 -4
- package/src/server.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
## [1.4.3](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.4.2...v1.4.3) (2022-06-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update dependencies ([a363ce5](https://github.com/CoCreate-app/CoCreate-unique/commit/a363ce5ab2e00a0993c5665e5c5055a9cf0c9bfd))
|
|
7
|
+
* update docs css document_id ([2d5ac38](https://github.com/CoCreate-app/CoCreate-unique/commit/2d5ac3862f0e5cbf6ed3c0653729a60b39615524))
|
|
8
|
+
|
|
9
|
+
## [1.4.2](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.4.1...v1.4.2) (2022-05-23)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* bump all dependencies ([69eccf2](https://github.com/CoCreate-app/CoCreate-unique/commit/69eccf25b1f59c1355257d27b1fd392802596905))
|
|
15
|
+
|
|
16
|
+
## [1.4.1](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.4.0...v1.4.1) (2022-05-17)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* get orgId from socketInfo ([2edff44](https://github.com/CoCreate-app/CoCreate-unique/commit/2edff44369733c525c6cc1e4fd3881f8d3dc889b))
|
|
22
|
+
* update document_id on link index.css ([661d333](https://github.com/CoCreate-app/CoCreate-unique/commit/661d333a5af6dd272ff2f0d8d84f073ec9366dec))
|
|
23
|
+
|
|
1
24
|
# [1.4.0](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.3.2...v1.4.0) (2022-05-14)
|
|
2
25
|
|
|
3
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/unique",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.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",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"webpack-log": "^3.0.1"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@cocreate/crud-client": "^1.
|
|
65
|
-
"@cocreate/docs": "^1.2
|
|
66
|
-
"@cocreate/uuid": "^1.
|
|
64
|
+
"@cocreate/crud-client": "^1.7.0",
|
|
65
|
+
"@cocreate/docs": "^1.3.2",
|
|
66
|
+
"@cocreate/uuid": "^1.2.2"
|
|
67
67
|
}
|
|
68
68
|
}
|
package/src/server.js
CHANGED
|
@@ -13,7 +13,7 @@ class CoCreateUnique {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
async checkUnique(socket, req_data) {
|
|
16
|
+
async checkUnique(socket, req_data, socketInfo) {
|
|
17
17
|
const self = this
|
|
18
18
|
const db = this.dbClient.db(req_data['organization_id']);
|
|
19
19
|
const collection = db.collection(req_data["collection"]);
|
|
@@ -32,7 +32,7 @@ class CoCreateUnique {
|
|
|
32
32
|
if (result.length) {
|
|
33
33
|
response.unique = false;
|
|
34
34
|
}
|
|
35
|
-
self.wsManager.send(socket, 'checkedUnique', response,
|
|
35
|
+
self.wsManager.send(socket, 'checkedUnique', response, socketInfo);
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
} catch (error) {
|