@cocreate/organizations 1.7.16 → 1.7.18
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 +15 -0
- package/package.json +5 -5
- package/src/client.js +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [1.7.18](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.7.17...v1.7.18) (2022-12-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump dependencies ([1f85bbb](https://github.com/CoCreate-app/CoCreate-organizations/commit/1f85bbb3e853fb8daff19d732232e395426bfacf))
|
|
7
|
+
|
|
8
|
+
## [1.7.17](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.7.16...v1.7.17) (2022-12-04)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* bump dependencies ([dbb361e](https://github.com/CoCreate-app/CoCreate-organizations/commit/dbb361e025b00df08eda821f5660cfd9ec57b902))
|
|
14
|
+
* crud.ObjectId ([61f2158](https://github.com/CoCreate-app/CoCreate-organizations/commit/61f2158abc23c00c5116386b82ceda9b25130f34))
|
|
15
|
+
|
|
1
16
|
## [1.7.16](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.7.15...v1.7.16) (2022-12-02)
|
|
2
17
|
|
|
3
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/organizations",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.18",
|
|
4
4
|
"description": "A simple organizations component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"organizations",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"webpack-log": "^3.0.1"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@cocreate/actions": "^1.5.
|
|
65
|
-
"@cocreate/crud-client": "^1.
|
|
66
|
-
"@cocreate/docs": "^1.4.
|
|
67
|
-
"@cocreate/element-prototype": "^1.1.
|
|
64
|
+
"@cocreate/actions": "^1.5.30",
|
|
65
|
+
"@cocreate/crud-client": "^1.16.1",
|
|
66
|
+
"@cocreate/docs": "^1.4.13",
|
|
67
|
+
"@cocreate/element-prototype": "^1.1.18",
|
|
68
68
|
"mongodb": "^4.4.0"
|
|
69
69
|
}
|
|
70
70
|
}
|
package/src/client.js
CHANGED
|
@@ -35,7 +35,7 @@ const CoCreateOrganization = {
|
|
|
35
35
|
const socket = crud.socket.getSockets()
|
|
36
36
|
if (!socket[0] || !socket[0].connected || window && !window.navigator.onLine) {
|
|
37
37
|
data.collection = 'organizations'
|
|
38
|
-
data.document['_id'] = ObjectId()
|
|
38
|
+
data.document['_id'] = crud.ObjectId()
|
|
39
39
|
data.document['name'] = 'untitled'
|
|
40
40
|
window.localStorage.setItem('apiKey', uuid(32));
|
|
41
41
|
window.localStorage.setItem('organization_id', data['_id']);
|
|
@@ -128,9 +128,6 @@ const CoCreateOrganization = {
|
|
|
128
128
|
|
|
129
129
|
};
|
|
130
130
|
|
|
131
|
-
const ObjectId = (rnd = r16 => Math.floor(r16).toString(16)) =>
|
|
132
|
-
rnd(Date.now()/1000) + ' '.repeat(16).replace(/./g, () => rnd(Math.random()*16));
|
|
133
|
-
|
|
134
131
|
action.init({
|
|
135
132
|
name: "createOrg",
|
|
136
133
|
endEvent: "createdOrg",
|