trigger.dev 3.0.0-beta.35 → 3.0.0-beta.36
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
|
@@ -799,7 +799,7 @@ import invariant from "tiny-invariant";
|
|
|
799
799
|
import { z as z4 } from "zod";
|
|
800
800
|
|
|
801
801
|
// package.json
|
|
802
|
-
var version = "3.0.0-beta.
|
|
802
|
+
var version = "3.0.0-beta.36";
|
|
803
803
|
var dependencies = {
|
|
804
804
|
"@anatine/esbuild-decorators": "^0.2.19",
|
|
805
805
|
"@clack/prompts": "^0.7.0",
|
|
@@ -816,7 +816,7 @@ var dependencies = {
|
|
|
816
816
|
"@opentelemetry/sdk-trace-base": "^1.22.0",
|
|
817
817
|
"@opentelemetry/sdk-trace-node": "^1.22.0",
|
|
818
818
|
"@opentelemetry/semantic-conventions": "^1.22.0",
|
|
819
|
-
"@trigger.dev/core": "workspace:3.0.0-beta.
|
|
819
|
+
"@trigger.dev/core": "workspace:3.0.0-beta.36",
|
|
820
820
|
"@types/degit": "^2.8.3",
|
|
821
821
|
chalk: "^5.2.0",
|
|
822
822
|
chokidar: "^3.5.3",
|
|
@@ -950,10 +950,9 @@ import {
|
|
|
950
950
|
GetProjectsResponseBody,
|
|
951
951
|
GetProjectResponseBody,
|
|
952
952
|
EnvironmentVariableResponseBody,
|
|
953
|
-
TaskRunExecution
|
|
954
|
-
APIError
|
|
953
|
+
TaskRunExecution
|
|
955
954
|
} from "@trigger.dev/core/v3";
|
|
956
|
-
import { zodfetch } from "@trigger.dev/core/v3/zodfetch";
|
|
955
|
+
import { zodfetch, ApiError } from "@trigger.dev/core/v3/zodfetch";
|
|
957
956
|
var CliApiClient = class {
|
|
958
957
|
constructor(apiURL, accessToken) {
|
|
959
958
|
this.accessToken = accessToken;
|
|
@@ -1151,7 +1150,7 @@ async function wrapZodFetch(schema, url, requestInit) {
|
|
|
1151
1150
|
data: response
|
|
1152
1151
|
};
|
|
1153
1152
|
} catch (error) {
|
|
1154
|
-
if (error instanceof
|
|
1153
|
+
if (error instanceof ApiError) {
|
|
1155
1154
|
return {
|
|
1156
1155
|
success: false,
|
|
1157
1156
|
error: error.message
|