@lark-apaas/fullstack-cli 1.1.66-alpha.20260903130240 → 1.1.66-alpha.20260903163512
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
CHANGED
|
@@ -10384,10 +10384,7 @@ function reservePort() {
|
|
|
10384
10384
|
});
|
|
10385
10385
|
});
|
|
10386
10386
|
}
|
|
10387
|
-
async function
|
|
10388
|
-
const probeRoot = fs30.mkdtempSync(
|
|
10389
|
-
path26.join(os3.tmpdir(), "miaoda-server-generation-probe-")
|
|
10390
|
-
);
|
|
10387
|
+
async function runIsolatedProbe(projectRoot, payloadRoot, entry, timeoutMs, expectedCapabilityIds, probeRoot) {
|
|
10391
10388
|
const probeWorkspaceRoot = path26.join(probeRoot, "workspace");
|
|
10392
10389
|
const probeProjectRoot = path26.join(probeWorkspaceRoot, "code");
|
|
10393
10390
|
copyProbeWorkspace(projectRoot, probeProjectRoot);
|
|
@@ -10593,6 +10590,22 @@ ${stdout()}`.trim();
|
|
|
10593
10590
|
});
|
|
10594
10591
|
} finally {
|
|
10595
10592
|
await stopProbe(child);
|
|
10593
|
+
}
|
|
10594
|
+
}
|
|
10595
|
+
async function isolatedProbe(projectRoot, payloadRoot, entry, timeoutMs, expectedCapabilityIds) {
|
|
10596
|
+
const probeRoot = fs30.mkdtempSync(
|
|
10597
|
+
path26.join(os3.tmpdir(), "miaoda-server-generation-probe-")
|
|
10598
|
+
);
|
|
10599
|
+
try {
|
|
10600
|
+
await runIsolatedProbe(
|
|
10601
|
+
projectRoot,
|
|
10602
|
+
payloadRoot,
|
|
10603
|
+
entry,
|
|
10604
|
+
timeoutMs,
|
|
10605
|
+
expectedCapabilityIds,
|
|
10606
|
+
probeRoot
|
|
10607
|
+
);
|
|
10608
|
+
} finally {
|
|
10596
10609
|
fs30.rmSync(probeRoot, { recursive: true, force: true });
|
|
10597
10610
|
}
|
|
10598
10611
|
}
|
package/package.json
CHANGED
|
@@ -257,7 +257,14 @@ function sourceStartDelayForRuntime() {
|
|
|
257
257
|
return value;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
function validateRuntimeConfiguration(
|
|
260
|
+
export function validateRuntimeConfiguration(
|
|
261
|
+
runtimePlatform = process.platform
|
|
262
|
+
) {
|
|
263
|
+
if (runtimePlatform === 'win32') {
|
|
264
|
+
throw new Error(
|
|
265
|
+
`MIAODA_NEST_BUNDLE_HANDOFF_PLATFORM_UNSUPPORTED:${runtimePlatform}`
|
|
266
|
+
);
|
|
267
|
+
}
|
|
261
268
|
if (process.env.MIAODA_NEST_BUNDLE_HANDOFF_ENABLED !== 'true') {
|
|
262
269
|
throw new Error('MIAODA_NEST_BUNDLE_HANDOFF_DISABLED');
|
|
263
270
|
}
|
|
@@ -1051,6 +1058,13 @@ function createProxy() {
|
|
|
1051
1058
|
headers: request.headers,
|
|
1052
1059
|
},
|
|
1053
1060
|
upstreamResponse => {
|
|
1061
|
+
const abortDownstream = error => {
|
|
1062
|
+
if (!response.destroyed) response.destroy(error);
|
|
1063
|
+
};
|
|
1064
|
+
upstreamResponse.once('aborted', () =>
|
|
1065
|
+
abortDownstream(new Error('MIAODA_NEST_UPSTREAM_RESPONSE_ABORTED'))
|
|
1066
|
+
);
|
|
1067
|
+
upstreamResponse.once('error', abortDownstream);
|
|
1054
1068
|
observeFirstCacheHtmlTransfer(request, response, upstreamResponse);
|
|
1055
1069
|
response.writeHead(
|
|
1056
1070
|
upstreamResponse.statusCode || 502,
|