@@ -25,7 +25,7 @@ for (const [scope, endpoints] of Object.entries(ENDPOINTS)) {
25
25
method,
26
26
url,
27
27
} ,
28
- defaults
28
+ defaults ,
29
29
) ;
30
30
31
31
if ( ! endpointMethodsMap . has ( scope ) ) {
@@ -63,7 +63,7 @@ const handler = {
63
63
scope ,
64
64
methodName ,
65
65
endpointDefaults ,
66
- decorations
66
+ decorations ,
67
67
) ;
68
68
} else {
69
69
cache [ methodName ] = octokit . request . defaults ( endpointDefaults ) ;
@@ -88,7 +88,7 @@ function decorate(
88
88
scope : string ,
89
89
methodName : string ,
90
90
defaults : EndpointOptions ,
91
- decorations : EndpointDecorations
91
+ decorations : EndpointDecorations ,
92
92
) {
93
93
const requestWithDefaults = octokit . request . defaults ( defaults ) ;
94
94
@@ -111,7 +111,7 @@ function decorate(
111
111
if ( decorations . renamed ) {
112
112
const [ newScope , newMethodName ] = decorations . renamed ;
113
113
octokit . log . warn (
114
- `octokit.${ scope } .${ methodName } () has been renamed to octokit.${ newScope } .${ newMethodName } ()`
114
+ `octokit.${ scope } .${ methodName } () has been renamed to octokit.${ newScope } .${ newMethodName } ()` ,
115
115
) ;
116
116
}
117
117
if ( decorations . deprecated ) {
@@ -123,11 +123,11 @@ function decorate(
123
123
const options = requestWithDefaults . endpoint . merge ( ...args ) ;
124
124
125
125
for ( const [ name , alias ] of Object . entries (
126
- decorations . renamedParameters
126
+ decorations . renamedParameters ,
127
127
) ) {
128
128
if ( name in options ) {
129
129
octokit . log . warn (
130
- `"${ name } " parameter is deprecated for "octokit.${ scope } .${ methodName } ()". Use "${ alias } " instead`
130
+ `"${ name } " parameter is deprecated for "octokit.${ scope } .${ methodName } ()". Use "${ alias } " instead` ,
131
131
) ;
132
132
if ( ! ( alias in options ) ) {
133
133
options [ alias ] = options [ name ] ;
0 commit comments