@cocreate/organizations 1.7.7 → 1.7.8

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,10 @@
1
+ ## [1.7.8](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.7.7...v1.7.8) (2022-11-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bumped [@cocreate](https://github.com/cocreate) dependencies ([440f3d3](https://github.com/CoCreate-app/CoCreate-organizations/commit/440f3d3bb806a590bcb4a47debdef88a213abd19))
7
+
1
8
  ## [1.7.7](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.7.6...v1.7.7) (2022-11-22)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/organizations",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
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.19",
65
- "@cocreate/crud-client": "^1.13.6",
66
- "@cocreate/docs": "^1.4.1",
67
- "@cocreate/element-prototype": "^1.1.4",
64
+ "@cocreate/actions": "^1.5.20",
65
+ "@cocreate/crud-client": "^1.14.0",
66
+ "@cocreate/docs": "^1.4.2",
67
+ "@cocreate/element-prototype": "^1.1.5",
68
68
  "mongodb": "^4.4.0"
69
69
  }
70
70
  }
package/src/client.js CHANGED
@@ -4,7 +4,7 @@ import action from '@cocreate/actions';
4
4
  import uuid from '@cocreate/uuid';
5
5
 
6
6
  let crud
7
- if(CRUD && CRUD.default)
7
+ if (CRUD && CRUD.default)
8
8
  crud = CRUD.default
9
9
  else
10
10
  crud = CRUD
@@ -82,7 +82,7 @@ const CoCreateOrganization = {
82
82
  const { collection, document_id } = crud.getAttributes(btn);
83
83
  const organization_id = document_id;
84
84
 
85
- if(crud.checkValue(collection) && crud.checkValue(document_id)) {
85
+ if (crud.checkValue(collection) && crud.checkValue(document_id)) {
86
86
 
87
87
  crud.socket.send('deleteOrg', {
88
88
  collection,
@@ -103,9 +103,9 @@ const CoCreateOrganization = {
103
103
 
104
104
  deleteOrgs: async function(btn) {
105
105
  const collection = btn.getAttribute('collection');
106
- if(crud.checkValue(collection)) {
106
+ if (crud.checkValue(collection)) {
107
107
  const dataTemplateid = btn.getAttribute('template_id');
108
- if(!dataTemplateid) return;
108
+ if (!dataTemplateid) return;
109
109
 
110
110
  const selectedEls = document.querySelectorAll(`.selected[templateid="${dataTemplateid}"]`);
111
111
 
@@ -113,7 +113,7 @@ const CoCreateOrganization = {
113
113
  const document_id = el.getAttribute('document_id');
114
114
  const organization_id = document_id;
115
115
 
116
- if(crud.checkValue(document_id)) {
116
+ if (crud.checkValue(document_id)) {
117
117
  crud.socket.send('deleteOrg', {
118
118
  collection,
119
119
  document_id,