@lvce-editor/pty-host 8.1.0 → 8.2.0
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/dist/ptyHostMain.js +15 -23
- package/package.json +1 -1
package/dist/ptyHostMain.js
CHANGED
|
@@ -36,7 +36,7 @@ const Object$1 = 1;
|
|
|
36
36
|
const Number$1 = 2;
|
|
37
37
|
const Array$1 = 3;
|
|
38
38
|
const String$1 = 4;
|
|
39
|
-
const Boolean = 5;
|
|
39
|
+
const Boolean$1 = 5;
|
|
40
40
|
const Function = 6;
|
|
41
41
|
const Null = 7;
|
|
42
42
|
const Unknown = 8;
|
|
@@ -57,7 +57,7 @@ const getType = value => {
|
|
|
57
57
|
}
|
|
58
58
|
return Object$1;
|
|
59
59
|
case 'boolean':
|
|
60
|
-
return Boolean;
|
|
60
|
+
return Boolean$1;
|
|
61
61
|
default:
|
|
62
62
|
return Unknown;
|
|
63
63
|
}
|
|
@@ -1455,7 +1455,7 @@ class Pty extends EventTarget {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
const toPath = pathOrUri => {
|
|
1457
1457
|
if (pathOrUri && pathOrUri.startsWith('file://')) {
|
|
1458
|
-
return fileURLToPath(pathOrUri)
|
|
1458
|
+
return fileURLToPath(pathOrUri);
|
|
1459
1459
|
}
|
|
1460
1460
|
return pathOrUri;
|
|
1461
1461
|
};
|
|
@@ -1605,15 +1605,7 @@ const isConnected = () => {
|
|
|
1605
1605
|
};
|
|
1606
1606
|
|
|
1607
1607
|
const isIgnoredError = error => {
|
|
1608
|
-
|
|
1609
|
-
// parent process is disposed, ignore
|
|
1610
|
-
return true;
|
|
1611
|
-
}
|
|
1612
|
-
if (error && error.code === ERR_IPC_CHANNEL_CLOSED && !isConnected()) {
|
|
1613
|
-
// parent process is disposed, ignore
|
|
1614
|
-
return true;
|
|
1615
|
-
}
|
|
1616
|
-
return false;
|
|
1608
|
+
return Boolean(error && (error.code === EPIPE && !process.connected || error.code === ERR_IPC_CHANNEL_CLOSED && !isConnected()));
|
|
1617
1609
|
};
|
|
1618
1610
|
|
|
1619
1611
|
// TODO mock this module when used in unit tests
|
|
@@ -1879,54 +1871,54 @@ var hasRequiredLib$1;
|
|
|
1879
1871
|
function requireLib$1 () {
|
|
1880
1872
|
if (hasRequiredLib$1) return lib;
|
|
1881
1873
|
hasRequiredLib$1 = 1;
|
|
1882
|
-
(function (exports
|
|
1874
|
+
(function (exports) {
|
|
1883
1875
|
|
|
1884
|
-
Object.defineProperty(exports
|
|
1876
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1885
1877
|
value: true
|
|
1886
1878
|
});
|
|
1887
|
-
Object.defineProperty(exports
|
|
1879
|
+
Object.defineProperty(exports, "isIdentifierChar", {
|
|
1888
1880
|
enumerable: true,
|
|
1889
1881
|
get: function () {
|
|
1890
1882
|
return _identifier.isIdentifierChar;
|
|
1891
1883
|
}
|
|
1892
1884
|
});
|
|
1893
|
-
Object.defineProperty(exports
|
|
1885
|
+
Object.defineProperty(exports, "isIdentifierName", {
|
|
1894
1886
|
enumerable: true,
|
|
1895
1887
|
get: function () {
|
|
1896
1888
|
return _identifier.isIdentifierName;
|
|
1897
1889
|
}
|
|
1898
1890
|
});
|
|
1899
|
-
Object.defineProperty(exports
|
|
1891
|
+
Object.defineProperty(exports, "isIdentifierStart", {
|
|
1900
1892
|
enumerable: true,
|
|
1901
1893
|
get: function () {
|
|
1902
1894
|
return _identifier.isIdentifierStart;
|
|
1903
1895
|
}
|
|
1904
1896
|
});
|
|
1905
|
-
Object.defineProperty(exports
|
|
1897
|
+
Object.defineProperty(exports, "isKeyword", {
|
|
1906
1898
|
enumerable: true,
|
|
1907
1899
|
get: function () {
|
|
1908
1900
|
return _keyword.isKeyword;
|
|
1909
1901
|
}
|
|
1910
1902
|
});
|
|
1911
|
-
Object.defineProperty(exports
|
|
1903
|
+
Object.defineProperty(exports, "isReservedWord", {
|
|
1912
1904
|
enumerable: true,
|
|
1913
1905
|
get: function () {
|
|
1914
1906
|
return _keyword.isReservedWord;
|
|
1915
1907
|
}
|
|
1916
1908
|
});
|
|
1917
|
-
Object.defineProperty(exports
|
|
1909
|
+
Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
|
|
1918
1910
|
enumerable: true,
|
|
1919
1911
|
get: function () {
|
|
1920
1912
|
return _keyword.isStrictBindOnlyReservedWord;
|
|
1921
1913
|
}
|
|
1922
1914
|
});
|
|
1923
|
-
Object.defineProperty(exports
|
|
1915
|
+
Object.defineProperty(exports, "isStrictBindReservedWord", {
|
|
1924
1916
|
enumerable: true,
|
|
1925
1917
|
get: function () {
|
|
1926
1918
|
return _keyword.isStrictBindReservedWord;
|
|
1927
1919
|
}
|
|
1928
1920
|
});
|
|
1929
|
-
Object.defineProperty(exports
|
|
1921
|
+
Object.defineProperty(exports, "isStrictReservedWord", {
|
|
1930
1922
|
enumerable: true,
|
|
1931
1923
|
get: function () {
|
|
1932
1924
|
return _keyword.isStrictReservedWord;
|
|
@@ -2368,7 +2360,7 @@ const firstErrorLine = error => {
|
|
|
2368
2360
|
if (error.message) {
|
|
2369
2361
|
return error.message;
|
|
2370
2362
|
}
|
|
2371
|
-
return
|
|
2363
|
+
return String(error);
|
|
2372
2364
|
};
|
|
2373
2365
|
const handleUncaughtExceptionMonitor$1 = error$1 => {
|
|
2374
2366
|
info(`[pty host] uncaught exception: ${firstErrorLine(error$1)}`);
|