@linxin666/dsh-ssh 0.4.17 → 0.4.19
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/README.i18n.yaml +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/lib/client.js +4 -4
- package/lib/client.js.map +1 -1
- package/lib/index.js +8 -8
- package/package.json +17 -17
- package/src/client/api.ts +3 -3
- package/src/engine/connection-pool.ts +1 -1
- package/src/routes.ts +11 -11
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# node scripts/verify-docs.mjs --write <dir>
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: a4043881c7387a39abd6f7aa8ed36f00d9521a00
|
|
6
|
+
README.zh.md: a932ab5b8d39b2101dc728b2ad8cb350a8d8dcbe
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ English | [中文](README.zh.md)
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<img src="https://img.shields.io/npm/v/@linxin666/dsh-ssh?style=flat-square" alt="Version">
|
|
7
7
|
|
|
8
|
-
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.
|
|
8
|
+
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.3-4c6ef5?style=flat-square&labelColor=454a54" alt="DSH">
|
|
9
9
|
|
|
10
10
|
<img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
|
|
11
11
|
</p>
|
package/README.zh.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<img src="https://img.shields.io/npm/v/@linxin666/dsh-ssh?style=flat-square" alt="Version">
|
|
7
7
|
|
|
8
|
-
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.
|
|
8
|
+
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.3-4c6ef5?style=flat-square&labelColor=454a54" alt="DSH">
|
|
9
9
|
|
|
10
10
|
<img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
|
|
11
11
|
</p>
|
package/lib/client.js
CHANGED
|
@@ -502,7 +502,7 @@ window.__ModuleLoader__.load({
|
|
|
502
502
|
* @returns the absolute `ws:`/`wss:` URL, or undefined when the page cannot carry one.
|
|
503
503
|
*/
|
|
504
504
|
function terminalSocketUrl(location, search, streamBaseUrl) {
|
|
505
|
-
if (WEB_PAGE_PROTOCOLS.
|
|
505
|
+
if (WEB_PAGE_PROTOCOLS.has(location.protocol)) return (location.protocol === "https:" ? "wss" : "ws") + "://" + location.host + SSH_API.terminal + search;
|
|
506
506
|
const base = hostAuthorityOf(streamBaseUrl);
|
|
507
507
|
if (base === void 0) return void 0;
|
|
508
508
|
return (base.protocol === "https:" ? "wss" : "ws") + "://" + base.authority + SSH_API.terminal + search;
|
|
@@ -546,14 +546,14 @@ window.__ModuleLoader__.load({
|
|
|
546
546
|
* an application on this machine, which is the same classification the remote
|
|
547
547
|
* channel and the update seat use (`isWebPageProtocol` / `isApplicationDeliveredPage`).
|
|
548
548
|
*/
|
|
549
|
-
const WEB_PAGE_PROTOCOLS = [
|
|
549
|
+
const WEB_PAGE_PROTOCOLS = /* @__PURE__ */ new Set([
|
|
550
550
|
"http:",
|
|
551
551
|
"https:",
|
|
552
552
|
"blob:",
|
|
553
553
|
"data:",
|
|
554
554
|
"about:",
|
|
555
555
|
"filesystem:"
|
|
556
|
-
];
|
|
556
|
+
]);
|
|
557
557
|
/**
|
|
558
558
|
* A terminal connection that never opened: it reports one failure once the
|
|
559
559
|
* view has attached its `onExit`, so the tab shows why instead of sitting on a
|
|
@@ -17030,7 +17030,7 @@ window.__ModuleLoader__.load({
|
|
|
17030
17030
|
/** The building package's version, when the bundle carries it. */
|
|
17031
17031
|
function bakedVersion() {
|
|
17032
17032
|
try {
|
|
17033
|
-
return "0.4.
|
|
17033
|
+
return "0.4.19";
|
|
17034
17034
|
} catch {
|
|
17035
17035
|
return;
|
|
17036
17036
|
}
|