@cocreate/organizations 1.13.3 → 1.13.4

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.13.4](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.13.3...v1.13.4) (2023-05-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * socket.status renamed to socket.organization ([6eb9919](https://github.com/CoCreate-app/CoCreate-organizations/commit/6eb9919f1b41da5dc1891f3801c6dcf93301cdb5))
7
+
1
8
  ## [1.13.3](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.13.2...v1.13.3) (2023-05-11)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/organizations",
3
- "version": "1.13.3",
3
+ "version": "1.13.4",
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",
package/src/client.js CHANGED
@@ -21,8 +21,8 @@ const CoCreateOrganization = {
21
21
  let organization_id = org._id
22
22
  let key = org.key
23
23
 
24
- if (!crud.socket.status) {
25
- crud.socket.status = true
24
+ if (crud.socket.organization !== true) {
25
+ crud.socket.organization = true
26
26
  crud.socket.create({organization_id, key})
27
27
  }
28
28