@jupyterlab/services
Advanced tools
Comparing version 0.37.0 to 0.38.0
@@ -44,3 +44,3 @@ import { ISignal } from 'phosphor/lib/core/signaling'; | ||
/** | ||
* A promise that fulfills when the manager is ready. | ||
* A promise that fulfills when the session is ready. | ||
*/ | ||
@@ -61,2 +61,8 @@ readonly ready: Promise<void>; | ||
/** | ||
* Reconnect to the terminal. | ||
* | ||
* @returns A promise that resolves when the terminal has reconnected. | ||
*/ | ||
reconnect(): Promise<void>; | ||
/** | ||
* Shut down the terminal session. | ||
@@ -63,0 +69,0 @@ */ |
@@ -91,3 +91,3 @@ // Copyright (c) Jupyter Development Team. | ||
/** | ||
* A promise that fulfills when the manager is ready. | ||
* A promise that fulfills when the session is ready. | ||
*/ | ||
@@ -143,2 +143,11 @@ get: function () { | ||
/** | ||
* Reconnect to the terminal. | ||
* | ||
* @returns A promise that resolves when the terminal has reconnected. | ||
*/ | ||
DefaultTerminalSession.prototype.reconnect = function () { | ||
this._readyPromise = this._initializeSocket(); | ||
return this._readyPromise; | ||
}; | ||
/** | ||
* Shut down the terminal session. | ||
@@ -159,2 +168,6 @@ */ | ||
var name = this._name; | ||
if (this._ws) { | ||
this._ws.close(); | ||
} | ||
this._isReady = false; | ||
this._url = Private.getTermUrl(this._baseUrl, this._name); | ||
@@ -161,0 +174,0 @@ Private.running[this._url] = this; |
@@ -52,2 +52,8 @@ import { IIterator } from 'phosphor/lib/algorithm/iteration'; | ||
/** | ||
* Reconnect to the terminal. | ||
* | ||
* @returns A promise that resolves when the terminal has reconnected. | ||
*/ | ||
reconnect(): Promise<void>; | ||
/** | ||
* Shut down the terminal session. | ||
@@ -54,0 +60,0 @@ */ |
{ | ||
"name": "@jupyterlab/services", | ||
"version": "0.37.0", | ||
"version": "0.38.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
743075
21754