File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,5 @@ extends: "@jsdevtools"
77env :
88 node : true
99 browser : true
10+ rules :
11+ " @typescript-eslint/no-explicit-any " : ["off"]
Original file line number Diff line number Diff line change 11"use strict" ;
22
3- const http = require ( "http" ) ;
4- const https = require ( "https" ) ;
53const { ono } = require ( "@jsdevtools/ono" ) ;
64const url = require ( "../util/url" ) ;
75const { ResolverError } = require ( "../util/errors" ) ;
@@ -145,9 +143,9 @@ function get (u, httpOptions) {
145143 }
146144
147145 return fetch ( u , {
148- method : ' GET' ,
146+ method : " GET" ,
149147 headers : httpOptions . headers || { } ,
150- credentials : httpOptions . withCredentials ? ' include' : ' same-origin' ,
148+ credentials : httpOptions . withCredentials ? " include" : " same-origin" ,
151149 signal : controller ? controller . signal : null ,
152150 } ) . then ( response => {
153151 if ( timeoutId ) {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ let urlDecodePatterns = [
2222 / \% 4 0 / g, "@"
2323] ;
2424
25- exports . parse = ( url ) => new URL ( url ) ;
25+ exports . parse = ( u ) => new URL ( u ) ;
2626
2727/**
2828 * Returns resolved target URL relative to a base URL in a manner similar to that of a Web browser resolving an anchor tag HREF.
You can’t perform that action at this time.
0 commit comments