@cocreate/organizations 1.23.0 → 1.23.2
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 +14 -0
- package/package.json +5 -5
- package/src/client.js +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.23.2](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.23.1...v1.23.2) (2023-10-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* if no org returned from service worker fetch file and get org from header ([03de0dc](https://github.com/CoCreate-app/CoCreate-organizations/commit/03de0dcb0c7bd489d02f041537b6f5fbb7673b53))
|
|
7
|
+
|
|
8
|
+
## [1.23.1](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.23.0...v1.23.1) (2023-10-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* bump dependencies ([44ba953](https://github.com/CoCreate-app/CoCreate-organizations/commit/44ba953a2cd92dd4e0004030a291354381be4b87))
|
|
14
|
+
|
|
1
15
|
# [1.23.0](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.22.1...v1.23.0) (2023-10-22)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/organizations",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.2",
|
|
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",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"webpack-log": "^3.0.1"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@cocreate/actions": "^1.
|
|
62
|
-
"@cocreate/config": "^1.6.
|
|
63
|
-
"@cocreate/crud-client": "^1.28.
|
|
64
|
-
"@cocreate/elements": "^1.
|
|
61
|
+
"@cocreate/actions": "^1.12.0",
|
|
62
|
+
"@cocreate/config": "^1.6.5",
|
|
63
|
+
"@cocreate/crud-client": "^1.28.10",
|
|
64
|
+
"@cocreate/elements": "^1.25.1"
|
|
65
65
|
}
|
|
66
66
|
}
|
package/src/client.js
CHANGED
|
@@ -106,6 +106,12 @@ async function get() {
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
+
|
|
110
|
+
if (!organization_id) {
|
|
111
|
+
let file = await fetch('/')
|
|
112
|
+
organization_id = file.headers.get('organization');
|
|
113
|
+
}
|
|
114
|
+
|
|
109
115
|
if (!organization_id)
|
|
110
116
|
organization_id = await createOrganization()
|
|
111
117
|
|