@dsh-remote/relay 3.1.7 → 3.1.8

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.
Files changed (2) hide show
  1. package/dist/bundle/main.js +11 -11
  2. package/package.json +1 -1
@@ -23443,7 +23443,7 @@ function date4(params) {
23443
23443
  return _coercedDate(ZodDate, params);
23444
23444
  }
23445
23445
 
23446
- // node_modules/.pnpm/@dsh-remote+protocol@3.1.6/node_modules/@dsh-remote/protocol/dist/src/wire/limits.js
23446
+ // node_modules/.pnpm/@dsh-remote+protocol@3.1.5/node_modules/@dsh-remote/protocol/dist/src/wire/limits.js
23447
23447
  var MAX_RELAY_MESSAGE_BYTES = 1024 * 1024;
23448
23448
  var MAX_CIPHERTEXT_BYTES = MAX_RELAY_MESSAGE_BYTES - 8 * 1024;
23449
23449
  var MAX_IMAGE_ATTACHMENTS = 4;
@@ -23452,7 +23452,7 @@ var MAX_ATTACHMENT_BYTES = 512 * 1024;
23452
23452
  var MAX_ATTACHMENT_TOTAL_BYTES = 512 * 1024;
23453
23453
  var IDEMPOTENCY_WINDOW_MS = 5 * 60 * 1e3;
23454
23454
 
23455
- // node_modules/.pnpm/@dsh-remote+protocol@3.1.6/node_modules/@dsh-remote/protocol/dist/src/wire/frames.js
23455
+ // node_modules/.pnpm/@dsh-remote+protocol@3.1.5/node_modules/@dsh-remote/protocol/dist/src/wire/frames.js
23456
23456
  var PROTOCOL_VERSION = 1;
23457
23457
  var PAIRING_TOKEN_RE = /^\d{6}$/;
23458
23458
  var nonEmpty = external_exports.string().min(1);
@@ -23930,7 +23930,7 @@ var import_subprotocol = __toESM(require_subprotocol(), 1);
23930
23930
  var import_websocket = __toESM(require_websocket(), 1);
23931
23931
  var import_websocket_server = __toESM(require_websocket_server(), 1);
23932
23932
 
23933
- // node_modules/.pnpm/@dsh-remote+protocol@3.1.6/node_modules/@dsh-remote/protocol/dist/src/identity/ids.js
23933
+ // node_modules/.pnpm/@dsh-remote+protocol@3.1.5/node_modules/@dsh-remote/protocol/dist/src/identity/ids.js
23934
23934
  import { randomBytes, randomUUID } from "node:crypto";
23935
23935
  var CONVERSATION_ID_PREFIX = "c_";
23936
23936
  function newConversationId() {
@@ -23940,7 +23940,7 @@ function newHostId() {
23940
23940
  return randomBytes(4).toString("hex");
23941
23941
  }
23942
23942
 
23943
- // node_modules/.pnpm/@dsh-remote+protocol@3.1.6/node_modules/@dsh-remote/protocol/dist/src/wire/negotiate.js
23943
+ // node_modules/.pnpm/@dsh-remote+protocol@3.1.5/node_modules/@dsh-remote/protocol/dist/src/wire/negotiate.js
23944
23944
  function negotiateProtocol(peerProtocol, own2 = PROTOCOL_VERSION) {
23945
23945
  if (peerProtocol === void 0 || peerProtocol === null) {
23946
23946
  return {
@@ -23976,16 +23976,16 @@ function negotiateProtocol(peerProtocol, own2 = PROTOCOL_VERSION) {
23976
23976
  return { ok: true, version: peerProtocol };
23977
23977
  }
23978
23978
 
23979
- // node_modules/.pnpm/@dsh-remote+protocol@3.1.6/node_modules/@dsh-remote/protocol/dist/src/wire/errors.js
23979
+ // node_modules/.pnpm/@dsh-remote+protocol@3.1.5/node_modules/@dsh-remote/protocol/dist/src/wire/errors.js
23980
23980
  var WAIT_HINTABLE = /* @__PURE__ */ new Set(["rate_limited", "pair_table_full"]);
23981
23981
  function wantsRetryAfter(code) {
23982
23982
  return typeof code === "string" && WAIT_HINTABLE.has(code);
23983
23983
  }
23984
23984
 
23985
- // node_modules/.pnpm/@dsh-remote+protocol@3.1.6/node_modules/@dsh-remote/protocol/dist/src/platform/sleep.js
23985
+ // node_modules/.pnpm/@dsh-remote+protocol@3.1.5/node_modules/@dsh-remote/protocol/dist/src/platform/sleep.js
23986
23986
  var SLEEP_BACKENDS = ["caffeinate", "systemd-inhibit", "unsupported"];
23987
23987
 
23988
- // node_modules/.pnpm/@dsh-remote+protocol@3.1.6/node_modules/@dsh-remote/protocol/dist/src/wire/payloads.js
23988
+ // node_modules/.pnpm/@dsh-remote+protocol@3.1.5/node_modules/@dsh-remote/protocol/dist/src/wire/payloads.js
23989
23989
  var SESSION_STATES = [
23990
23990
  "idle",
23991
23991
  "running",
@@ -24411,7 +24411,7 @@ var PAYLOAD_TYPES = {
24411
24411
  evSessionHistory: "ev.session_history"
24412
24412
  };
24413
24413
 
24414
- // node_modules/.pnpm/@dsh-remote+protocol@3.1.6/node_modules/@dsh-remote/protocol/dist/src/wire/outbound.js
24414
+ // node_modules/.pnpm/@dsh-remote+protocol@3.1.5/node_modules/@dsh-remote/protocol/dist/src/wire/outbound.js
24415
24415
  function helloOkForClient(clientId, protocol) {
24416
24416
  return { t: "hello-ok", role: "client", clientId, ...protocol === void 0 ? {} : { protocol } };
24417
24417
  }
@@ -24489,7 +24489,7 @@ function encBatchToRelay(sessionId, items) {
24489
24489
  return { t: "enc-batch", sessionId, items: items.map((item) => ({ ...item })) };
24490
24490
  }
24491
24491
 
24492
- // node_modules/.pnpm/@dsh-remote+protocol@3.1.6/node_modules/@dsh-remote/protocol/dist/src/wire/registry.js
24492
+ // node_modules/.pnpm/@dsh-remote+protocol@3.1.5/node_modules/@dsh-remote/protocol/dist/src/wire/registry.js
24493
24493
  var ENDPOINT_FRAME_NAMES = [
24494
24494
  "hello",
24495
24495
  "pair-begin",
@@ -24551,7 +24551,7 @@ var EV_TYPES = [
24551
24551
  ];
24552
24552
  var PAYLOAD_TYPE_SET = /* @__PURE__ */ new Set([...CMD_TYPES, ...EV_TYPES]);
24553
24553
 
24554
- // node_modules/.pnpm/@dsh-remote+protocol@3.1.6/node_modules/@dsh-remote/protocol/dist/src/wire/classify.js
24554
+ // node_modules/.pnpm/@dsh-remote+protocol@3.1.5/node_modules/@dsh-remote/protocol/dist/src/wire/classify.js
24555
24555
  function frameTypeOf(value) {
24556
24556
  if (typeof value !== "object" || value === null || Array.isArray(value))
24557
24557
  return void 0;
@@ -26264,7 +26264,7 @@ function registerSignalHandlers(shutdown) {
26264
26264
 
26265
26265
  // src/main.ts
26266
26266
  function readVersion() {
26267
- if ("3.1.7") return "3.1.7";
26267
+ if ("3.1.8") return "3.1.8";
26268
26268
  try {
26269
26269
  const pkg = JSON.parse(readFileSync2(new URL("../../package.json", import.meta.url), "utf8"));
26270
26270
  if (typeof pkg.version === "string") return pkg.version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-remote/relay",
3
- "version": "3.1.7",
3
+ "version": "3.1.8",
4
4
  "description": "DSH Remote Control 的零知识 WebSocket 中继:只做路由,不碰载荷明文。可自托管的单文件产物。",
5
5
  "type": "module",
6
6
  "license": "MIT",