@dsh-remote/relay 3.2.1 → 3.2.3

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.2.0/node_modules/@dsh-remote/protocol/dist/src/wire/limits.js
23446
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.1/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.2.0/node_modules/@dsh-remote/protocol/dist/src/wire/frames.js
23455
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.1/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);
@@ -23965,7 +23965,7 @@ var import_subprotocol = __toESM(require_subprotocol(), 1);
23965
23965
  var import_websocket = __toESM(require_websocket(), 1);
23966
23966
  var import_websocket_server = __toESM(require_websocket_server(), 1);
23967
23967
 
23968
- // node_modules/.pnpm/@dsh-remote+protocol@3.2.0/node_modules/@dsh-remote/protocol/dist/src/identity/ids.js
23968
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.1/node_modules/@dsh-remote/protocol/dist/src/identity/ids.js
23969
23969
  import { randomBytes, randomUUID } from "node:crypto";
23970
23970
  var CONVERSATION_ID_PREFIX = "c_";
23971
23971
  function newConversationId() {
@@ -23975,7 +23975,7 @@ function newHostId() {
23975
23975
  return randomBytes(4).toString("hex");
23976
23976
  }
23977
23977
 
23978
- // node_modules/.pnpm/@dsh-remote+protocol@3.2.0/node_modules/@dsh-remote/protocol/dist/src/wire/negotiate.js
23978
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.1/node_modules/@dsh-remote/protocol/dist/src/wire/negotiate.js
23979
23979
  function negotiateProtocol(peerProtocol, own2 = PROTOCOL_VERSION) {
23980
23980
  if (peerProtocol === void 0 || peerProtocol === null) {
23981
23981
  return {
@@ -24095,16 +24095,16 @@ function createMpCodeIssuer(options) {
24095
24095
  };
24096
24096
  }
24097
24097
 
24098
- // node_modules/.pnpm/@dsh-remote+protocol@3.2.0/node_modules/@dsh-remote/protocol/dist/src/wire/errors.js
24098
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.1/node_modules/@dsh-remote/protocol/dist/src/wire/errors.js
24099
24099
  var WAIT_HINTABLE = /* @__PURE__ */ new Set(["rate_limited", "pair_table_full"]);
24100
24100
  function wantsRetryAfter(code) {
24101
24101
  return typeof code === "string" && WAIT_HINTABLE.has(code);
24102
24102
  }
24103
24103
 
24104
- // node_modules/.pnpm/@dsh-remote+protocol@3.2.0/node_modules/@dsh-remote/protocol/dist/src/platform/sleep.js
24104
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.1/node_modules/@dsh-remote/protocol/dist/src/platform/sleep.js
24105
24105
  var SLEEP_BACKENDS = ["caffeinate", "systemd-inhibit", "unsupported"];
24106
24106
 
24107
- // node_modules/.pnpm/@dsh-remote+protocol@3.2.0/node_modules/@dsh-remote/protocol/dist/src/wire/payloads.js
24107
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.1/node_modules/@dsh-remote/protocol/dist/src/wire/payloads.js
24108
24108
  var SESSION_STATES = [
24109
24109
  "idle",
24110
24110
  "running",
@@ -24530,7 +24530,7 @@ var PAYLOAD_TYPES = {
24530
24530
  evSessionHistory: "ev.session_history"
24531
24531
  };
24532
24532
 
24533
- // node_modules/.pnpm/@dsh-remote+protocol@3.2.0/node_modules/@dsh-remote/protocol/dist/src/wire/outbound.js
24533
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.1/node_modules/@dsh-remote/protocol/dist/src/wire/outbound.js
24534
24534
  function helloOkForClient(clientId, protocol) {
24535
24535
  return { t: "hello-ok", role: "client", clientId, ...protocol === void 0 ? {} : { protocol } };
24536
24536
  }
@@ -24617,7 +24617,7 @@ function encBatchToRelay(sessionId, items) {
24617
24617
  return { t: "enc-batch", sessionId, items: items.map((item) => ({ ...item })) };
24618
24618
  }
24619
24619
 
24620
- // node_modules/.pnpm/@dsh-remote+protocol@3.2.0/node_modules/@dsh-remote/protocol/dist/src/wire/registry.js
24620
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.1/node_modules/@dsh-remote/protocol/dist/src/wire/registry.js
24621
24621
  var ENDPOINT_FRAME_NAMES = [
24622
24622
  "hello",
24623
24623
  "pair-begin",
@@ -24682,7 +24682,7 @@ var EV_TYPES = [
24682
24682
  ];
24683
24683
  var PAYLOAD_TYPE_SET = /* @__PURE__ */ new Set([...CMD_TYPES, ...EV_TYPES]);
24684
24684
 
24685
- // node_modules/.pnpm/@dsh-remote+protocol@3.2.0/node_modules/@dsh-remote/protocol/dist/src/wire/classify.js
24685
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.1/node_modules/@dsh-remote/protocol/dist/src/wire/classify.js
24686
24686
  function frameTypeOf(value) {
24687
24687
  if (typeof value !== "object" || value === null || Array.isArray(value))
24688
24688
  return void 0;
@@ -26450,7 +26450,7 @@ function registerSignalHandlers(shutdown) {
26450
26450
 
26451
26451
  // src/main.ts
26452
26452
  function readVersion() {
26453
- if ("3.2.1") return "3.2.1";
26453
+ if ("3.2.3") return "3.2.3";
26454
26454
  try {
26455
26455
  const pkg = JSON.parse(readFileSync2(new URL("../../package.json", import.meta.url), "utf8"));
26456
26456
  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.2.1",
3
+ "version": "3.2.3",
4
4
  "description": "DSH Remote Control 的零知识 WebSocket 中继:只做路由,不碰载荷明文。可自托管的单文件产物。",
5
5
  "type": "module",
6
6
  "license": "MIT",