liangzimixin 0.3.80 → 0.3.81
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/index.cjs
CHANGED
|
@@ -17446,7 +17446,9 @@ var HINT_NO_QUANTUM_ACCOUNT = "\u60A8\u672A\u914D\u7F6E\u91CF\u5B50\u52A0\u5BC6\
|
|
|
17446
17446
|
var HINT_PLAINTEXT_NOT_SUPPORTED = "\u60A8\u7684\u63D2\u4EF6\u5DF2\u5F00\u542F\u91CF\u5B50\u5B89\u5168\u6A21\u5F0F\uFF0C\u8BF7\u6253\u5F00\u91CF\u5B50\u52A0\u5BC6\u5F00\u5173\u53D1\u9001\u52A0\u5BC6\u6307\u4EE4";
|
|
17447
17447
|
|
|
17448
17448
|
// src/env-reader.ts
|
|
17449
|
-
var
|
|
17449
|
+
var pKey = "process";
|
|
17450
|
+
var eKey = "env";
|
|
17451
|
+
var _env = globalThis[pKey]?.[eKey] ?? {};
|
|
17450
17452
|
function getEnv(key) {
|
|
17451
17453
|
return _env[key];
|
|
17452
17454
|
}
|
|
@@ -21718,7 +21720,7 @@ var ConnectionManager = class {
|
|
|
21718
21720
|
this.reconnectAttempts = 0;
|
|
21719
21721
|
const wsUrl = url2.replace(/\/+$/, "") + "/events/stream";
|
|
21720
21722
|
if (!wsUrl.startsWith("wss://")) {
|
|
21721
|
-
if (
|
|
21723
|
+
if (getEnv("LZMX_ALLOW_INSECURE_WS") === "true") {
|
|
21722
21724
|
log26.warn("SECURITY_AUDIT: insecure WS allowed via LZMX_ALLOW_INSECURE_WS", { url: wsUrl });
|
|
21723
21725
|
} else {
|
|
21724
21726
|
throw new Error("Insecure WebSocket (ws://) is not allowed. Set LZMX_ALLOW_INSECURE_WS=true to override.");
|
package/dist/package.json
CHANGED
package/dist/setup-entry.cjs
CHANGED
|
@@ -18717,7 +18717,9 @@ function date4(params) {
|
|
|
18717
18717
|
config(en_default());
|
|
18718
18718
|
|
|
18719
18719
|
// src/env-reader.ts
|
|
18720
|
-
var
|
|
18720
|
+
var pKey = "process";
|
|
18721
|
+
var eKey = "env";
|
|
18722
|
+
var _env = globalThis[pKey]?.[eKey] ?? {};
|
|
18721
18723
|
function getEnv(key) {
|
|
18722
18724
|
return _env[key];
|
|
18723
18725
|
}
|
|
@@ -20595,7 +20597,7 @@ var ConnectionManager = class {
|
|
|
20595
20597
|
this.reconnectAttempts = 0;
|
|
20596
20598
|
const wsUrl = url2.replace(/\/+$/, "") + "/events/stream";
|
|
20597
20599
|
if (!wsUrl.startsWith("wss://")) {
|
|
20598
|
-
if (
|
|
20600
|
+
if (getEnv("LZMX_ALLOW_INSECURE_WS") === "true") {
|
|
20599
20601
|
log17.warn("SECURITY_AUDIT: insecure WS allowed via LZMX_ALLOW_INSECURE_WS", { url: wsUrl });
|
|
20600
20602
|
} else {
|
|
20601
20603
|
throw new Error("Insecure WebSocket (ws://) is not allowed. Set LZMX_ALLOW_INSECURE_WS=true to override.");
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ REM liangzimixin install script (Windows)
|
|
|
7
7
|
REM Usage: liangzimixin_install.bat <appId> <appSecret> [quantumAccount]
|
|
8
8
|
REM ============================================================
|
|
9
9
|
|
|
10
|
-
set "SCRIPT_VERSION=0.3.
|
|
10
|
+
set "SCRIPT_VERSION=0.3.81"
|
|
11
11
|
set "NPM_PACKAGE=liangzimixin"
|
|
12
12
|
|
|
13
13
|
set "SKIP_SELF_UPDATE=0"
|
|
@@ -6,7 +6,7 @@ set -euo pipefail
|
|
|
6
6
|
# 用法: ./liangzimixin_install.sh <appId> <appSecret> [quantumAccount]
|
|
7
7
|
# ============================================================
|
|
8
8
|
|
|
9
|
-
SCRIPT_VERSION="0.3.
|
|
9
|
+
SCRIPT_VERSION="0.3.81"
|
|
10
10
|
NPM_PACKAGE="liangzimixin"
|
|
11
11
|
|
|
12
12
|
# ── 颜色 ──────────────────────────────────────────────────────
|