ai-project-manage-cli 3.0.23 → 3.0.24
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.js +17 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -724,8 +724,12 @@ function runConnect(opts) {
|
|
|
724
724
|
console.error("[apm] apm upload-artifact \u5931\u8D25:", pullErr);
|
|
725
725
|
throw pullErr;
|
|
726
726
|
}
|
|
727
|
-
} catch {
|
|
728
|
-
console.error(
|
|
727
|
+
} catch (e) {
|
|
728
|
+
console.error(
|
|
729
|
+
"[apm] \u65E0\u6CD5\u89E3\u6790 WebSocket \u6D88\u606F:",
|
|
730
|
+
text,
|
|
731
|
+
e.message
|
|
732
|
+
);
|
|
729
733
|
}
|
|
730
734
|
});
|
|
731
735
|
ws.on("error", (err) => {
|
|
@@ -1310,6 +1314,16 @@ var createDockerodeClient = (config) => new DockerodeClient(config);
|
|
|
1310
1314
|
// src/commands/deploy/lib/backend-deploy/dockerode-client/env.ts
|
|
1311
1315
|
import { existsSync as existsSync5, readFileSync as readFileSync8, statSync as statSync3 } from "node:fs";
|
|
1312
1316
|
import path2 from "node:path";
|
|
1317
|
+
function stripSurroundingQuotes(value) {
|
|
1318
|
+
const t = value.trim();
|
|
1319
|
+
if (t.length >= 2) {
|
|
1320
|
+
const q = t[0];
|
|
1321
|
+
if ((q === '"' || q === "'") && t[t.length - 1] === q) {
|
|
1322
|
+
return t.slice(1, -1);
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
return t;
|
|
1326
|
+
}
|
|
1313
1327
|
function loadEnvFromFile(envFilePath) {
|
|
1314
1328
|
if (!envFilePath) {
|
|
1315
1329
|
return {};
|
|
@@ -1330,7 +1344,7 @@ function loadEnvFromFile(envFilePath) {
|
|
|
1330
1344
|
continue;
|
|
1331
1345
|
}
|
|
1332
1346
|
const key = normalized.slice(0, eqIndex).trim();
|
|
1333
|
-
const value = normalized.slice(eqIndex + 1);
|
|
1347
|
+
const value = stripSurroundingQuotes(normalized.slice(eqIndex + 1));
|
|
1334
1348
|
if (key !== "") {
|
|
1335
1349
|
result[key] = value;
|
|
1336
1350
|
}
|