edgeone 1.0.24 → 1.0.26
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/edgeone-dist/cli.js +7 -5
- package/package.json +1 -1
package/edgeone-dist/cli.js
CHANGED
|
@@ -142949,7 +142949,7 @@ var yargs_default = Yargs;
|
|
|
142949
142949
|
// package.json
|
|
142950
142950
|
var package_default = {
|
|
142951
142951
|
name: "edgeone",
|
|
142952
|
-
version: "1.0.
|
|
142952
|
+
version: "1.0.26",
|
|
142953
142953
|
description: "Command-line interface for TencentCloud Pages Functions",
|
|
142954
142954
|
bin: {
|
|
142955
142955
|
edgeone: "./edgeone-bin/edgeone.js"
|
|
@@ -153111,10 +153111,14 @@ async function remoteDevServer(jscontent, projectId, metaJSON) {
|
|
|
153111
153111
|
ProjectId: projectId,
|
|
153112
153112
|
MetaData: metaJSON
|
|
153113
153113
|
});
|
|
153114
|
-
if (!res) {
|
|
153114
|
+
if (!res || !res.WsLogUrl || !res.DebugUrl || !res.SessionId) {
|
|
153115
153115
|
errorLog("remote dev server start failed:" + JSON.stringify(res));
|
|
153116
153116
|
throw new Error("Start remote dev server failed.");
|
|
153117
153117
|
}
|
|
153118
|
+
if (res == null ? void 0 : res.Error) {
|
|
153119
|
+
errorLog("remote dev server start failed:" + res.Error.Message);
|
|
153120
|
+
throw new Error("Start remote dev server failed.");
|
|
153121
|
+
}
|
|
153118
153122
|
return res;
|
|
153119
153123
|
}
|
|
153120
153124
|
function getAllFilesInDir(dirPath) {
|
|
@@ -153381,7 +153385,7 @@ async function PagesDev(yargs) {
|
|
|
153381
153385
|
normalLog("Dev server running in raw mode...");
|
|
153382
153386
|
}
|
|
153383
153387
|
if (yargs.fePort) {
|
|
153384
|
-
devConfig.
|
|
153388
|
+
devConfig.port = yargs.fePort;
|
|
153385
153389
|
}
|
|
153386
153390
|
return await PagesDevServer(devConfig).then(() => {
|
|
153387
153391
|
setTimeout(
|
|
@@ -154242,10 +154246,8 @@ async function PagesLink(yargs) {
|
|
|
154242
154246
|
|
|
154243
154247
|
// src/pages/index.ts
|
|
154244
154248
|
process.on("uncaughtException", function(err2) {
|
|
154245
|
-
console.error("ERROR", err2);
|
|
154246
154249
|
});
|
|
154247
154250
|
process.on("unhandledRejection", function(err2) {
|
|
154248
|
-
console.error("ERROR", err2);
|
|
154249
154251
|
});
|
|
154250
154252
|
var PagesOptions = (yargs) => {
|
|
154251
154253
|
return yargs.positional("command", {
|