File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -9,22 +9,3 @@ export const resolveRemoteApiSpec = async (): Promise<DeRefedOpenAPI> => {
99 ) ;
1010 return response . json ( ) as Promise < DeRefedOpenAPI > ;
1111} ;
12-
13- export const resolveSpecWithXHR = new Promise < DeRefedOpenAPI > ( ( resolve , reject ) => {
14- const xhr = new XMLHttpRequest ( ) ;
15- xhr . onreadystatechange = ( ) => {
16- if ( xhr . readyState === XMLHttpRequest . DONE ) {
17- return resolve ( JSON . parse ( xhr . responseText ) as DeRefedOpenAPI ) ;
18- }
19- if ( xhr . readyState === XMLHttpRequest . UNSENT ) {
20- return reject ( 'Failed to fetch schema' ) ;
21- }
22- return undefined ;
23- } ;
24- xhr . open (
25- 'GET' ,
26- `https://raw.githubusercontent.com/getsentry/sentry-api-schema/${ SENTRY_API_SCHEMA_SHA } /openapi-derefed.json` ,
27- true
28- ) ;
29- xhr . send ( null ) ;
30- } ) ;
You can’t perform that action at this time.
0 commit comments