File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ,
1617 },
1718 "scripts" : {
1819 "cli" : " tsx src/index.ts update"
20+ },
21+ "dependencies" : {
22+ "node-fetch" : " 2.6"
1923 }
2024}
Original file line number Diff line number Diff line change 88 SecretsManagerClient ,
99 GetSecretValueCommand ,
1010} from "@aws-sdk/client-secrets-manager" ;
11+ import fetch from "node-fetch" ;
1112
1213const program = new Command ( ) ;
1314
Original file line number Diff line number Diff line change 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 },
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 }
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { Webhooks } from "@octokit/webhooks";
88import { z } from "zod" ;
99import { github } from "internal-providers" ;
1010import { getAccessToken } from "../accessInfo" ;
11+ import fetch from "node-fetch" ;
1112
1213export class GitHubWebhookIntegration implements WebhookIntegration {
1314 keyForSource ( source : unknown ) : string {
Original file line number Diff line number Diff line change 11import { z } from "zod" ;
22import { normalizeHeaders } from "../headers" ;
3-
3+ import fetch from "node-fetch" ;
44import debug from "debug" ;
55
66const log = debug ( "trigger:integrations:services" ) ;
Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff line change 11import { z } from "zod" ;
22import { UpdateWorkflowRun , WorkflowMetadata } from "../schemas" ;
3+ import fetch from "node-fetch" ;
34
45export class InternalApiClient {
56 #apiKey: string ;
You can’t perform that action at this time.
0 commit comments