@@ -76,7 +76,7 @@ function urlParse(url, parseQueryString, slashesDenoteHost) {
76
76
return u ;
77
77
}
78
78
79
- Url . prototype . parse = function ( url , parseQueryString , slashesDenoteHost ) {
79
+ Url . prototype . parse = function parse ( url , parseQueryString , slashesDenoteHost ) {
80
80
if ( typeof url !== 'string' ) {
81
81
throw new TypeError ( 'Parameter "url" must be a string, not ' + typeof url ) ;
82
82
}
@@ -557,7 +557,7 @@ function urlFormat(obj, options) {
557
557
return obj . format ( ) ;
558
558
}
559
559
560
- Url . prototype . format = function ( ) {
560
+ Url . prototype . format = function format ( ) {
561
561
var auth = this . auth || '' ;
562
562
if ( auth ) {
563
563
auth = encodeAuth ( auth ) ;
@@ -642,7 +642,7 @@ function urlResolve(source, relative) {
642
642
return urlParse ( source , false , true ) . resolve ( relative ) ;
643
643
}
644
644
645
- Url . prototype . resolve = function ( relative ) {
645
+ Url . prototype . resolve = function resolve ( relative ) {
646
646
return this . resolveObject ( urlParse ( relative , false , true ) ) . format ( ) ;
647
647
} ;
648
648
@@ -651,7 +651,7 @@ function urlResolveObject(source, relative) {
651
651
return urlParse ( source , false , true ) . resolveObject ( relative ) ;
652
652
}
653
653
654
- Url . prototype . resolveObject = function ( relative ) {
654
+ Url . prototype . resolveObject = function resolveObject ( relative ) {
655
655
if ( typeof relative === 'string' ) {
656
656
var rel = new Url ( ) ;
657
657
rel . parse ( relative , false , true ) ;
@@ -929,7 +929,7 @@ Url.prototype.resolveObject = function(relative) {
929
929
return result ;
930
930
} ;
931
931
932
- Url . prototype . parseHost = function ( ) {
932
+ Url . prototype . parseHost = function parseHost ( ) {
933
933
var host = this . host ;
934
934
var port = portPattern . exec ( host ) ;
935
935
if ( port ) {
0 commit comments