@jupyterlab/services
Advanced tools
Comparing version 0.35.1 to 0.36.0
@@ -164,5 +164,6 @@ import { JSONObject } from 'phosphor/lib/algorithm/json'; | ||
* | ||
* @param path - An absolute POSIX file path on the server. | ||
* @param A promise which resolves with the absolute POSIX | ||
* file path on the server. | ||
*/ | ||
getDownloadUrl(path: string): string; | ||
getDownloadUrl(path: string): Promise<string>; | ||
/** | ||
@@ -319,3 +320,3 @@ * Create a new untitled file or directory in the specified directory path. | ||
*/ | ||
getDownloadUrl(path: string): string; | ||
getDownloadUrl(path: string): Promise<string>; | ||
/** | ||
@@ -322,0 +323,0 @@ * Create a new untitled file or directory in the specified directory path. |
@@ -131,3 +131,3 @@ // Copyright (c) Jupyter Development Team. | ||
ContentsManager.prototype.getDownloadUrl = function (path) { | ||
return utils.urlPathJoin(this._baseUrl, FILES_URL, utils.urlEncodeParts(path)); | ||
return Promise.resolve(utils.urlPathJoin(this._baseUrl, FILES_URL, utils.urlEncodeParts(path))); | ||
}; | ||
@@ -134,0 +134,0 @@ /** |
{ | ||
"name": "@jupyterlab/services", | ||
"version": "0.35.1", | ||
"version": "0.36.0", | ||
"description": "Client APIs for the Jupyter services REST APIs", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
741626
21708