@trigger.dev/sdk 3.0.0-beta.49 → 3.0.0-beta.50

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/v3/index.mjs CHANGED
@@ -18,7 +18,7 @@ var __publicField = (obj, key, value) => {
18
18
  };
19
19
 
20
20
  // package.json
21
- var version = "3.0.0-beta.49";
21
+ var version = "3.0.0-beta.50";
22
22
 
23
23
  // src/v3/tracer.ts
24
24
  var tracer = new TriggerTracer({
@@ -1496,8 +1496,14 @@ __export(schedules_exports, {
1496
1496
  });
1497
1497
  function task2(params) {
1498
1498
  const task3 = createTask(params);
1499
+ const cron = params.cron ? typeof params.cron === "string" ? params.cron : params.cron.pattern : void 0;
1500
+ const timezone = (params.cron && typeof params.cron !== "string" ? params.cron.timezone : "UTC") ?? "UTC";
1499
1501
  taskCatalog.updateTaskMetadata(task3.id, {
1500
- triggerSource: "schedule"
1502
+ triggerSource: "schedule",
1503
+ schedule: cron ? {
1504
+ cron,
1505
+ timezone
1506
+ } : void 0
1501
1507
  });
1502
1508
  return task3;
1503
1509
  }