@trigger.dev/core 3.0.0-beta.19 → 3.0.0-beta.20
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.js +14 -14
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +14 -13
- package/dist/v3/index.mjs.map +1 -1
- package/dist/v3/workers/index.js +2 -1
- package/dist/v3/workers/index.js.map +1 -1
- package/dist/v3/workers/index.mjs +2 -1
- package/dist/v3/workers/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/v3/index.js
CHANGED
|
@@ -5,13 +5,11 @@ var zodValidationError = require('zod-validation-error');
|
|
|
5
5
|
var zod = require('zod');
|
|
6
6
|
var async_hooks = require('async_hooks');
|
|
7
7
|
var preciseDate = require('@google-cloud/precise-date');
|
|
8
|
-
var nodePath = require('path');
|
|
9
8
|
var apiLogs = require('@opentelemetry/api-logs');
|
|
10
9
|
var humanizeDuration = require('humanize-duration');
|
|
11
10
|
|
|
12
11
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
12
|
|
|
14
|
-
var nodePath__default = /*#__PURE__*/_interopDefault(nodePath);
|
|
15
13
|
var humanizeDuration__default = /*#__PURE__*/_interopDefault(humanizeDuration);
|
|
16
14
|
|
|
17
15
|
var __defProp = Object.defineProperty;
|
|
@@ -2291,6 +2289,8 @@ var ClockAPI = _ClockAPI;
|
|
|
2291
2289
|
|
|
2292
2290
|
// src/v3/clock-api.ts
|
|
2293
2291
|
var clock = ClockAPI.getInstance();
|
|
2292
|
+
|
|
2293
|
+
// src/v3/errors.ts
|
|
2294
2294
|
function parseError(error) {
|
|
2295
2295
|
if (error instanceof Error) {
|
|
2296
2296
|
return {
|
|
@@ -2347,23 +2347,23 @@ function correctErrorStackTrace(stackTrace, projectDir, options) {
|
|
|
2347
2347
|
].filter(Boolean).join("\n");
|
|
2348
2348
|
}
|
|
2349
2349
|
__name(correctErrorStackTrace, "correctErrorStackTrace");
|
|
2350
|
+
var LINES_TO_IGNORE = [
|
|
2351
|
+
/ConsoleInterceptor/,
|
|
2352
|
+
/TriggerTracer/,
|
|
2353
|
+
/TaskExecutor/,
|
|
2354
|
+
/EXECUTE_TASK_RUN/,
|
|
2355
|
+
/@trigger.dev\/core/,
|
|
2356
|
+
/safeJsonProcess/,
|
|
2357
|
+
/__entryPoint.ts/
|
|
2358
|
+
];
|
|
2350
2359
|
function correctStackTraceLine(line, projectDir) {
|
|
2351
|
-
|
|
2352
|
-
const match = regex.exec(line);
|
|
2353
|
-
if (!match) {
|
|
2354
|
-
return;
|
|
2355
|
-
}
|
|
2356
|
-
const [_, identifier, path, lineNum, colNum] = match;
|
|
2357
|
-
if (!path) {
|
|
2358
|
-
return;
|
|
2359
|
-
}
|
|
2360
|
-
if (nodePath__default.default.basename(path) === "__entryPoint.ts") {
|
|
2360
|
+
if (LINES_TO_IGNORE.some((regex) => regex.test(line))) {
|
|
2361
2361
|
return;
|
|
2362
2362
|
}
|
|
2363
|
-
if (projectDir && !
|
|
2363
|
+
if (projectDir && !line.includes(projectDir)) {
|
|
2364
2364
|
return;
|
|
2365
2365
|
}
|
|
2366
|
-
return line;
|
|
2366
|
+
return line.trim();
|
|
2367
2367
|
}
|
|
2368
2368
|
__name(correctStackTraceLine, "correctStackTraceLine");
|
|
2369
2369
|
function groupTaskMetadataIssuesByTask(tasks, issues) {
|