Skip to content

Commit 8dc3ace

Browse files
committed
Add node-fetch
1 parent 811cf80 commit 8dc3ace

8 files changed

Lines changed: 60 additions & 30 deletions

File tree

packages/internal-cli/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"@aws-sdk/credential-providers": "^3.238.0",
99
"@trigger.dev/tsconfig": "workspace:*",
1010
"@types/node": "^18.11.9",
11+
"@types/node-fetch": "2.6",
1112
"commander": "^9.4.1",
1213
"internal-providers": "workspace:*",
1314
"tiny-invariant": "^1.2.0",
@@ -16,5 +17,8 @@
1617
},
1718
"scripts": {
1819
"cli": "tsx src/index.ts update"
20+
},
21+
"dependencies": {
22+
"node-fetch": "2.6"
1923
}
2024
}

packages/internal-cli/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
SecretsManagerClient,
99
GetSecretValueCommand,
1010
} from "@aws-sdk/client-secrets-manager";
11+
import fetch from "node-fetch";
1112

1213
const program = new Command();
1314

packages/internal-integrations/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"@trigger.dev/tsconfig": "workspace:*",
1010
"@types/debug": "^4.1.7",
1111
"@types/node": "^18.11.9",
12+
"@types/node-fetch": "2.6",
1213
"internal-providers": "workspace:*",
1314
"typescript": "^4.9.4"
1415
},
@@ -20,6 +21,7 @@
2021
"@urql/core": "^3.1.1",
2122
"debug": "^4.3.4",
2223
"graphql": "^16.6.0",
24+
"node-fetch": "2.6",
2325
"urql": "^3.0.3",
2426
"zod": "^3.20.2"
2527
}

packages/internal-integrations/src/github/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { Webhooks } from "@octokit/webhooks";
88
import { z } from "zod";
99
import { github } from "internal-providers";
1010
import { getAccessToken } from "../accessInfo";
11+
import fetch from "node-fetch";
1112

1213
export class GitHubWebhookIntegration implements WebhookIntegration {
1314
keyForSource(source: unknown): string {

packages/internal-integrations/src/services/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { z } from "zod";
22
import { normalizeHeaders } from "../headers";
3-
3+
import fetch from "node-fetch";
44
import debug from "debug";
55

66
const log = debug("trigger:integrations:services");

packages/internal-platform/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
"devDependencies": {
99
"@trigger.dev/tsconfig": "workspace:*",
1010
"@types/node": "^18.11.9",
11+
"@types/node-fetch": "2.6",
1112
"typescript": "^4.9.4",
1213
"undici": "^5.14.0"
1314
},
1415
"scripts": {},
1516
"dependencies": {
1617
"@trigger.dev/common-schemas": "workspace:*",
1718
"internal-pulsar": "workspace:*",
19+
"node-fetch": "2.6",
1820
"ulid": "^2.3.0",
1921
"zod": "^3.20.2"
2022
}

packages/internal-platform/src/api/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { z } from "zod";
22
import { UpdateWorkflowRun, WorkflowMetadata } from "../schemas";
3+
import fetch from "node-fetch";
34

45
export class InternalApiClient {
56
#apiKey: string;

0 commit comments

Comments
 (0)