File tree 4 files changed +209
-387
lines changed
4 files changed +209
-387
lines changed Original file line number Diff line number Diff line change 18
18
},
19
19
"devDependencies" : {
20
20
"@types/aws-lambda" : " ^8.10.146" ,
21
+ "@types/node" : " ^22.13.10" ,
21
22
"@vercel/ncc" : " ^0.38.3" ,
22
23
"aws-sdk-client-mock" : " ^4.1.0" ,
23
24
"aws-sdk-client-mock-jest" : " ^4.1.0" ,
34
35
"@aws-sdk/client-sqs" : " ^3.758.0" ,
35
36
"@aws-sdk/types" : " ^3.734.0" ,
36
37
"@middy/core" : " ^4.7.0" ,
37
- "@octokit/auth-app" : " 6 .1.3 " ,
38
- "@octokit/core" : " 5.2.0 " ,
39
- "@octokit/plugin-throttling" : " 8.2 .0" ,
40
- "@octokit/rest" : " 20 .1.2 " ,
38
+ "@octokit/auth-app" : " 7 .1.5 " ,
39
+ "@octokit/core" : " 6.1.4 " ,
40
+ "@octokit/plugin-throttling" : " 9.4 .0" ,
41
+ "@octokit/rest" : " 21 .1.1 " ,
41
42
"@octokit/types" : " ^13.8.0" ,
42
43
"cron-parser" : " ^4.9.0"
43
44
},
Original file line number Diff line number Diff line change 1
- import { createAppAuth } from '@octokit/auth-app' ;
2
- import {
3
- AppAuthOptions ,
4
- AppAuthentication ,
5
- AuthInterface ,
6
- InstallationAccessTokenAuthentication ,
7
- InstallationAuthOptions ,
8
- StrategyOptions ,
9
- } from '@octokit/auth-app/dist-types/types' ;
10
- import { OctokitOptions } from '@octokit/core/dist-types/types' ;
1
+ import { createAppAuth , type AppAuthentication , type InstallationAccessTokenAuthentication } from '@octokit/auth-app' ;
2
+ import type { OctokitOptions } from '@octokit/core' ;
3
+ import type { RequestInterface } from '@octokit/types' ;
4
+
5
+ // Define types that are not directly exported
6
+ type AppAuthOptions = { type : 'app' } ;
7
+ type InstallationAuthOptions = { type : 'installation' ; installationId ?: number } ;
8
+ // Use a more generalized AuthInterface to match what createAppAuth returns
9
+ type AuthInterface = {
10
+ ( options : AppAuthOptions ) : Promise < AppAuthentication > ;
11
+ ( options : InstallationAuthOptions ) : Promise < InstallationAccessTokenAuthentication > ;
12
+ } ;
13
+ type StrategyOptions = {
14
+ appId : number ;
15
+ privateKey : string ;
16
+ installationId ?: number ;
17
+ request ?: RequestInterface ;
18
+ } ;
11
19
import { request } from '@octokit/request' ;
12
20
import { Octokit } from '@octokit/rest' ;
13
21
import { throttling } from '@octokit/plugin-throttling' ;
Original file line number Diff line number Diff line change 33
33
"@aws-github-runner/aws-ssm-util" : " *" ,
34
34
"@aws-sdk/client-sqs" : " ^3.758.0" ,
35
35
"@middy/core" : " ^4.7.0" ,
36
- "@octokit/rest" : " 20 .1.2 " ,
36
+ "@octokit/rest" : " 21 .1.1 " ,
37
37
"@octokit/types" : " ^13.8.0" ,
38
- "@octokit/webhooks" : " ^12.3.1 " ,
38
+ "@octokit/webhooks" : " ^13.7.4 " ,
39
39
"aws-lambda" : " ^1.0.7"
40
40
},
41
41
"nx" : {
You can’t perform that action at this time.
0 commit comments