@cocreate/organizations 1.10.4 → 1.10.6

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,18 @@
1
+ ## [1.10.6](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.10.5...v1.10.6) (2023-04-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bump [@cocreate](https://github.com/cocreate) dependencies ([06443c7](https://github.com/CoCreate-app/CoCreate-organizations/commit/06443c7da1d0774752edc1f3ca007e111b304832))
7
+
8
+ ## [1.10.5](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.10.4...v1.10.5) (2023-04-11)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * comment code that adds org as a db in platform ([8d92605](https://github.com/CoCreate-app/CoCreate-organizations/commit/8d92605b628da738c829e69ebf38c07c0aa1d3fe))
14
+ * renamed domans to hosts ([68a0252](https://github.com/CoCreate-app/CoCreate-organizations/commit/68a0252c7705768814ddb3474bdb954eae47105b))
15
+
1
16
  ## [1.10.4](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.10.3...v1.10.4) (2023-03-30)
2
17
 
3
18
 
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  "config": {
3
- "apiKey": "2061acef-0451-4545-f754-60cf8160",
4
3
  "organization_id": "5ff747727005da1c272740ab",
4
+ "apiKey": "2061acef-0451-4545-f754-60cf8160",
5
5
  "host": "general.cocreate.app"
6
6
  },
7
7
  "sources": [
@@ -12,7 +12,7 @@ module.exports = {
12
12
  "name": "index.html",
13
13
  "path": "/docs/organizations/index.html",
14
14
  "src": "{{./docs/index.html}}",
15
- "domains": [
15
+ "hosts": [
16
16
  "*",
17
17
  "general.cocreate.app"
18
18
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/organizations",
3
- "version": "1.10.4",
3
+ "version": "1.10.6",
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",
@@ -60,10 +60,10 @@
60
60
  "webpack-log": "^3.0.1"
61
61
  },
62
62
  "dependencies": {
63
- "@cocreate/actions": "^1.6.2",
64
- "@cocreate/crud-client": "^1.19.2",
65
- "@cocreate/docs": "^1.6.2",
66
- "@cocreate/element-prototype": "^1.6.2",
67
- "@cocreate/local-storage": "^1.5.2"
63
+ "@cocreate/actions": "^1.6.4",
64
+ "@cocreate/crud-client": "^1.19.4",
65
+ "@cocreate/docs": "^1.6.4",
66
+ "@cocreate/element-prototype": "^1.6.4",
67
+ "@cocreate/local-storage": "^1.5.4"
68
68
  }
69
69
  }
package/src/server.js CHANGED
@@ -22,13 +22,13 @@ class CoCreateOrganization {
22
22
  try{
23
23
  // create new org in config db organization collection
24
24
  this.crud.createDocument(data).then((data) => {
25
- const orgId = `${data.document[0]._id}`
25
+ // const orgId = `${data.document[0]._id}`
26
26
 
27
27
  // Create new org db and insert organization
28
- self.crud.createDocument({...data, database: orgId, organization_id: orgId}).then((data) => {
29
- self.wsManager.send(socket, 'createOrg', data);
30
- self.wsManager.broadcast(socket, 'createDocument', data);
31
- })
28
+ // self.crud.createDocument({...data, database: orgId, organization_id: orgId}).then((data) => {
29
+ // self.wsManager.send(socket, 'createOrg', data);
30
+ // self.wsManager.broadcast(socket, 'createDocument', data);
31
+ // })
32
32
 
33
33
  // add new org to platformDB
34
34
  if (data.organization_id != process.env.organization_id) {