@jupyterlab/coreutils
Advanced tools
Comparing version 3.0.0-alpha.8 to 3.0.0-alpha.9
@@ -6,11 +6,2 @@ /** | ||
/** | ||
* The tree URL construction options. | ||
*/ | ||
interface ITreeOptions { | ||
/** | ||
* If provided, the tree URL will include the current workspace, if any. | ||
*/ | ||
workspace?: string; | ||
} | ||
/** | ||
* Get global configuration data for the Jupyter application. | ||
@@ -49,6 +40,4 @@ * | ||
* Get the tree url for a JupyterLab application. | ||
* | ||
* @param options - The tree URL construction options. | ||
*/ | ||
function getTreeUrl(options?: ITreeOptions): string; | ||
function getTreeUrl(): string; | ||
/** | ||
@@ -55,0 +44,0 @@ * Get the base websocket url for a Jupyter application, or an empty string. |
@@ -10,3 +10,2 @@ "use strict"; | ||
const minimist_1 = __importDefault(require("minimist")); | ||
const path_1 = require("./path"); | ||
const url_1 = require("./url"); | ||
@@ -110,14 +109,5 @@ /** | ||
* Get the tree url for a JupyterLab application. | ||
* | ||
* @param options - The tree URL construction options. | ||
*/ | ||
function getTreeUrl(options = {}) { | ||
const base = getBaseUrl(); | ||
const tree = getOption('treeUrl'); | ||
const defaultWorkspace = getOption('defaultWorkspace'); | ||
const workspaces = getOption('workspacesUrl'); | ||
const workspace = options.workspace || ''; | ||
return workspace && workspace !== defaultWorkspace | ||
? url_1.URLExt.join(base, workspaces, path_1.PathExt.basename(workspace), 'tree') | ||
: url_1.URLExt.join(base, tree); | ||
function getTreeUrl() { | ||
return url_1.URLExt.join(getBaseUrl(), getOption('treeUrl')); | ||
} | ||
@@ -124,0 +114,0 @@ PageConfig.getTreeUrl = getTreeUrl; |
{ | ||
"name": "@jupyterlab/coreutils", | ||
"version": "3.0.0-alpha.8", | ||
"version": "3.0.0-alpha.9", | ||
"description": "JupyterLab - Core Utilities", | ||
@@ -49,3 +49,3 @@ "homepage": "https://github.com/jupyterlab/jupyterlab", | ||
"typedoc": "^0.14.2", | ||
"typescript": "~3.4.3" | ||
"typescript": "~3.5.1" | ||
}, | ||
@@ -58,3 +58,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "ac27c477b689240fe0e3e11ff2e3b4984687a899" | ||
"gitHead": "3ae93547a9b04453f82bbd883931ac1866f2a08b" | ||
} |
165721
4943