@xterm/xterm 5.6.0-beta.125 → 5.6.0-beta.126
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xterm/xterm",
|
|
3
3
|
"description": "Full xterm terminal, in your browser",
|
|
4
|
-
"version": "5.6.0-beta.
|
|
4
|
+
"version": "5.6.0-beta.126",
|
|
5
5
|
"main": "lib/xterm.js",
|
|
6
6
|
"module": "lib/xterm.mjs",
|
|
7
7
|
"style": "css/xterm.css",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"ws": "^8.2.3",
|
|
108
108
|
"xterm-benchmark": "^0.3.1"
|
|
109
109
|
},
|
|
110
|
-
"commit": "
|
|
110
|
+
"commit": "b12a9393f1cbb994877404ae0ebf62d6250f83ba"
|
|
111
111
|
}
|
|
@@ -124,7 +124,7 @@ export function raceTimeout<T>(promise: Promise<T>, timeout: number, onTimeout?:
|
|
|
124
124
|
]);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
export function asPromise<T>(callback: () => T |
|
|
127
|
+
export function asPromise<T>(callback: () => T | PromiseLike<T>): Promise<T> {
|
|
128
128
|
return new Promise<T>((resolve, reject) => {
|
|
129
129
|
const item = callback();
|
|
130
130
|
if (isThenable<T>(item)) {
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Thenable is a common denominator between ES6 promises, Q, jquery.Deferred, WinJS.Promise,
|
|
8
|
-
* and others. This API makes no assumption about what promise library is being used which
|
|
9
|
-
* enables reusing existing code without migrating to a specific promise implementation. Still,
|
|
10
|
-
* we recommend the use of native promises which are available in VS Code.
|
|
11
|
-
*/
|
|
12
|
-
interface Thenable<T> extends PromiseLike<T> { }
|