@trigger.dev/sdk 2.3.12 → 2.3.15

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
@@ -266,7 +266,7 @@ __name(_Job, "Job");
266
266
  var Job = _Job;
267
267
 
268
268
  // package.json
269
- var version = "2.3.12";
269
+ var version = "2.3.15";
270
270
 
271
271
  // src/errors.ts
272
272
  var _ResumeWithTaskError = class _ResumeWithTaskError {
@@ -1563,6 +1563,7 @@ var _IO = class _IO {
1563
1563
  await this._apiClient.failTask(this._id, task.id, {
1564
1564
  error: error.cause.output
1565
1565
  });
1566
+ throw error;
1566
1567
  }
1567
1568
  const parsedError = core.ErrorWithStackSchema.safeParse(error);
1568
1569
  if (options?.retry && !skipRetrying) {
@@ -2826,7 +2827,7 @@ var _CronTrigger = class _CronTrigger {
2826
2827
  get event() {
2827
2828
  const humanReadable = cronstrue__default.default.toString(this.options.cron, {
2828
2829
  throwExceptionOnParseError: false
2829
- });
2830
+ }).concat(" (UTC)");
2830
2831
  return {
2831
2832
  name: "trigger.scheduled",
2832
2833
  title: "Cron Schedule",
@@ -3414,7 +3415,7 @@ var _TriggerClient = class _TriggerClient {
3414
3415
  }
3415
3416
  defineJob(options) {
3416
3417
  const existingRegisteredJob = __privateGet(this, _registeredJobs)[options.id];
3417
- if (existingRegisteredJob) {
3418
+ if (existingRegisteredJob && options.__internal !== true) {
3418
3419
  console.warn(`[@trigger.dev/sdk] Warning: The Job "${existingRegisteredJob.id}" you're attempting to define has already been defined. Please assign a different ID to the job.`);
3419
3420
  }
3420
3421
  const job = new Job(options);