@cocreate/unique 1.3.1 → 1.4.1
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 +22 -0
- package/CoCreate.config.js +1 -1
- package/docs/index.html +1 -1
- package/package.json +1 -1
- package/src/client.js +1 -1
- package/src/server.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## [1.4.1](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.4.0...v1.4.1) (2022-05-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* get orgId from socketInfo ([2edff44](https://github.com/CoCreate-app/CoCreate-unique/commit/2edff44369733c525c6cc1e4fd3881f8d3dc889b))
|
|
7
|
+
* update document_id on link index.css ([661d333](https://github.com/CoCreate-app/CoCreate-unique/commit/661d333a5af6dd272ff2f0d8d84f073ec9366dec))
|
|
8
|
+
|
|
9
|
+
# [1.4.0](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.3.2...v1.4.0) (2022-05-14)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* function readDocumentList has been renamed to readDocuments ([e353862](https://github.com/CoCreate-app/CoCreate-unique/commit/e353862b9288d70525918cae6921f5cc2092aa1b))
|
|
15
|
+
|
|
16
|
+
## [1.3.2](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.3.1...v1.3.2) (2022-05-06)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* update config organization_Id to organization_id ([20b4914](https://github.com/CoCreate-app/CoCreate-unique/commit/20b49147c2ec9510bca2fd447e7e4b78affc69b0))
|
|
22
|
+
|
|
1
23
|
## [1.3.1](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.3.0...v1.3.1) (2022-03-06)
|
|
2
24
|
|
|
3
25
|
|
package/CoCreate.config.js
CHANGED
package/docs/index.html
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
<!-- CoCreate CSS -->
|
|
15
15
|
<link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css"/>
|
|
16
|
-
<link rel="stylesheet" href="/docs/index.css" collection="files" document_id="
|
|
16
|
+
<link rel="stylesheet" href="/docs/index.css" collection="files" document_id="62827d7e8082ce05b081430b" name="src" type="text/css" save="true"/>
|
|
17
17
|
</head>
|
|
18
18
|
|
|
19
19
|
<body>
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -50,7 +50,7 @@ const CoCreateUnique = {
|
|
|
50
50
|
input.addEventListener('input', function(e) {
|
|
51
51
|
let request_data = {};
|
|
52
52
|
let value = input.getValue(input);
|
|
53
|
-
request_data['organization_id'] = window.config.
|
|
53
|
+
request_data['organization_id'] = window.config.organization_id;
|
|
54
54
|
request_data['apiKey'] = window.config.apiKey;
|
|
55
55
|
request_data['collection'] = input.getAttribute('collection');
|
|
56
56
|
request_data['name'] = input.getAttribute('name');
|
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) {
|