@jupyter/collaboration 4.1.1 → 4.2.0-alpha.0

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/lib/sharedlink.js CHANGED
@@ -29,11 +29,11 @@ export async function showSharedLinkDialog({ translator }) {
29
29
  serverOwner = PageConfig.getOption('hubServerUser');
30
30
  serverName = PageConfig.getOption('hubServerName');
31
31
  // Prepare the Hub API URL
32
- const protocol = window.location.protocol;
33
- const hostname = PageConfig.getOption('hubHost') || window.location.hostname;
34
- const port = window.location.port;
32
+ // hubHost is the full Origin (`proto://hostname:port`)
33
+ // or an empty string, making hubApiUrl an absolute path on the current origin
34
+ const hubHost = PageConfig.getOption('hubHost') || '';
35
35
  const prefix = PageConfig.getOption('hubPrefix');
36
- hubApiUrl = `${protocol}//${hostname}:${port}${prefix}api`;
36
+ hubApiUrl = `${hubHost}${prefix}api`;
37
37
  // Check Hub version for share compatibility (>= 5.0)
38
38
  const response = await fetch(hubApiUrl, {
39
39
  // A GET request on base API url returns the Hub version
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter/collaboration",
3
- "version": "4.1.1",
3
+ "version": "4.2.0-alpha.0",
4
4
  "description": "JupyterLab - Real-Time Collaboration Widgets",
5
5
  "homepage": "https://github.com/jupyterlab/jupyter-collaboration",
6
6
  "bugs": {
@@ -41,12 +41,12 @@
41
41
  "dependencies": {
42
42
  "@codemirror/state": "^6.2.0",
43
43
  "@codemirror/view": "^6.7.0",
44
- "@jupyterlab/apputils": "^4.4.0",
45
- "@jupyterlab/coreutils": "^6.4.0",
46
- "@jupyterlab/docregistry": "^4.4.0",
44
+ "@jupyterlab/apputils": "^4.5.0",
45
+ "@jupyterlab/coreutils": "^6.5.0",
46
+ "@jupyterlab/docregistry": "^4.5.0",
47
47
  "@jupyterlab/rendermime-interfaces": "^3.12.0",
48
- "@jupyterlab/services": "^7.4.0",
49
- "@jupyterlab/ui-components": "^4.4.0",
48
+ "@jupyterlab/services": "^7.5.0",
49
+ "@jupyterlab/ui-components": "^4.5.0",
50
50
  "@lumino/coreutils": "^2.2.1",
51
51
  "@lumino/signaling": "^2.1.4",
52
52
  "@lumino/virtualdom": "^2.0.3",