@jupyterlab/services
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -217,2 +217,5 @@ import { ModelDB } from '@jupyterlab/observables'; | ||
* file path on the server. | ||
* | ||
* #### Notes | ||
* The returned URL may include a query parameter. | ||
*/ | ||
@@ -347,2 +350,5 @@ getDownloadUrl(path: string): Promise<string>; | ||
* file path on the server. | ||
* | ||
* #### Notes | ||
* The returned URL may include a query parameter. | ||
*/ | ||
@@ -527,2 +533,4 @@ getDownloadUrl(localPath: string): Promise<string>; | ||
* It is expected that the path contains no relative paths. | ||
* | ||
* The returned URL may include a query parameter. | ||
*/ | ||
@@ -709,2 +717,4 @@ getDownloadUrl(path: string): Promise<string>; | ||
* It is expected that the path contains no relative paths. | ||
* | ||
* The returned URL may include a query parameter. | ||
*/ | ||
@@ -711,0 +721,0 @@ getDownloadUrl(localPath: string): Promise<string>; |
@@ -189,2 +189,4 @@ "use strict"; | ||
* It is expected that the path contains no relative paths. | ||
* | ||
* The returned URL may include a query parameter. | ||
*/ | ||
@@ -493,2 +495,4 @@ getDownloadUrl(path) { | ||
* It is expected that the path contains no relative paths. | ||
* | ||
* The returned URL may include a query parameter. | ||
*/ | ||
@@ -500,3 +504,5 @@ getDownloadUrl(localPath) { | ||
if (xsrfTokenMatch) { | ||
url = coreutils_1.URLExt.join(url, `?_xsrf=${xsrfTokenMatch[1]}`); | ||
const fullurl = new URL(url); | ||
fullurl.searchParams.append('_xsrf', xsrfTokenMatch[1]); | ||
url = fullurl.toString(); | ||
} | ||
@@ -503,0 +509,0 @@ return Promise.resolve(url); |
@@ -619,3 +619,3 @@ import { nbformat } from '@jupyterlab/coreutils'; | ||
/** | ||
* An `execute_request` message on the ` | ||
* An `execute_request` message on the `'shell'` channel. | ||
*/ | ||
@@ -622,0 +622,0 @@ interface IExecuteRequestMsg extends IShellMessage<'execute_request'> { |
{ | ||
"name": "@jupyterlab/services", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "Client APIs for the Jupyter services REST APIs", | ||
@@ -66,3 +66,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "b5f2c50eda10332be812658b23ad649eca22bf80" | ||
"gitHead": "879d00168755fdab1c067d078221073458899c53" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1436599
15450