edgeone 1.0.28 → 1.0.30

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.
@@ -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.28",
142952
+ version: "1.0.30",
142953
142953
  description: "Command-line interface for TencentCloud Pages Functions",
142954
142954
  bin: {
142955
142955
  edgeone: "./edgeone-bin/edgeone.js"
@@ -152211,6 +152211,7 @@ var BuildFunctionGenerator = class {
152211
152211
  let routeParams = {};
152212
152212
  let pagesFunctionResponse = null;
152213
152213
  const request = context.request;
152214
+ const waitUntil = context.waitUntil;
152214
152215
  const urlInfo = new URL(request.url);
152215
152216
 
152216
152217
  if (urlInfo.pathname !== '/' && urlInfo.pathname.endsWith('/')) {
@@ -152249,8 +152250,8 @@ var BuildFunctionGenerator = class {
152249
152250
  });
152250
152251
  }
152251
152252
  }
152252
- return pagesFunctionResponse({request, params, env: ${this.env ? JSON.stringify(this.env) : "{}"} });
152253
- }addEventListener('fetch',event=>{return event.respondWith(handleRequest({request:event.request,params: {}, env: ${this.env ? JSON.stringify(this.env) : "{}"} }))});`;
152253
+ return pagesFunctionResponse({request, params, env: ${this.env ? JSON.stringify(this.env) : "{}"}, waitUntil });
152254
+ }addEventListener('fetch',event=>{return event.respondWith(handleRequest({request:event.request,params: {}, env: ${this.env ? JSON.stringify(this.env) : "{}"}, waitUntil: event.waitUntil }))});`;
152254
152255
  writeFileSync(OUTPUTPATH, this.bundleText);
152255
152256
  normalLog("\u2728Compiled pages functions successfully");
152256
152257
  }
@@ -154028,11 +154029,7 @@ var deployFolderOrZipToEdgeOne = async (localPath, env3 = "Production") => {
154028
154029
  projectId,
154029
154030
  env3
154030
154031
  );
154031
- okLog(`Deployment successful!`);
154032
- okLog(`Temporary URL: ${structuredResult.url}`);
154033
- console.log(`EDGEONE_DEPLOY_URL=${structuredResult.url}`);
154034
- console.log(`EDGEONE_DEPLOY_TYPE=${structuredResult.type}`);
154035
- console.log(`EDGEONE_PROJECT_ID=${structuredResult.projectId}`);
154032
+ okLog(`Deployment to EdgeOne Pages completed successfully! To view your project's live URL, please visit the EdgeOne Pages Console.`);
154036
154033
  return structuredResult;
154037
154034
  } catch (error3) {
154038
154035
  throw error3;
@@ -154094,7 +154091,6 @@ var PagesDeploy = async (argv) => {
154094
154091
  `Deploying ${folderOrZipPath} to project ${projectName} (${deployEnv} environment)...`
154095
154092
  );
154096
154093
  const result = await deployFolderOrZipToEdgeOne(folderOrZipPath, deployEnv);
154097
- okLog(`Successfully deployed to ${result.url}`);
154098
154094
  } catch (error3) {
154099
154095
  errorLog(`Deployment failed: ${error3.message}`);
154100
154096
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edgeone",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "Command-line interface for TencentCloud Pages Functions",
5
5
  "bin": {
6
6
  "edgeone": "./edgeone-bin/edgeone.js"