File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -42,18 +42,15 @@ export const HELPER = {
4242 * @returns {Promise<boolean> } true if NPM is accessible
4343 */
4444 async isNpmUp ( { timeoutMs = 10000 } = { } , env ) {
45+ console . log ( "COUCOU" ) ;
4546 const [ controller , id ] = createTimeoutController ( timeoutMs ) ;
4647 try {
4748 const response = await fetchWithMethodFallback ( env . NPM_HEALTH_URL , { signal : controller . signal } ) ;
4849 if ( this . isCloudflareError ( response ) && response . status >= 520 && response . status <= 529 ) {
49- console . log ( "COUCOU NPM is down ERROR1 NPM_HEALTH_URL: " + env . NPM_HEALTH_URL ) ;
50- console . log ( "COUCOU NPM is down ERROR2 NPM_HEALTH_URL: " ) ;
5150 return false ;
5251 }
5352 return response . status > 0 && response . status < 500 ;
5453 } catch {
55- console . log ( "COUCOU NPM is down CATCH NPM_HEALTH_URL: " + env . NPM_HEALTH_URL ) ;
56- console . log ( "COUCOU NPM is down CATCH2 NPM_HEALTH_URL: " ) ;
5754 return false ;
5855 } finally {
5956 clearTimeout ( id ) ;
You can’t perform that action at this time.
0 commit comments