@linxin666/dsh-ssh 0.4.16 → 0.4.18

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 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: d8a241c2d055625b1a6dd5ec7339e53985f9abd7
6
- README.zh.md: cd5ab0ab6521a77844c2da34913a8d75f62c2c67
5
+ README.md: 716d0c18087aa498b939f9e80acfb80666444aef
6
+ README.zh.md: 439f42a772a7627ee562cebd98598ea24e2f7ea5
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
  &nbsp;
8
- <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.1-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
8
+ <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.2-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
9
9
  &nbsp;
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
  &nbsp;
8
- <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.1-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
8
+ <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.2-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
9
9
  &nbsp;
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.includes(location.protocol)) return (location.protocol === "https:" ? "wss" : "ws") + "://" + location.host + SSH_API.terminal + search;
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.16";
17033
+ return "0.4.18";
17034
17034
  } catch {
17035
17035
  return;
17036
17036
  }