@@ -97,7 +97,7 @@ function urlParse(url, parseQueryString, slashesDenoteHost) {
97
97
return u ;
98
98
}
99
99
100
- Url . prototype . parse = function ( url , parseQueryString , slashesDenoteHost ) {
100
+ Url . prototype . parse = function parse ( url , parseQueryString , slashesDenoteHost ) {
101
101
if ( typeof url !== 'string' ) {
102
102
throw new TypeError ( 'Parameter "url" must be a string, not ' + typeof url ) ;
103
103
}
@@ -567,7 +567,7 @@ function urlFormat(obj, options) {
567
567
return obj . format ( ) ;
568
568
}
569
569
570
- Url . prototype . format = function ( ) {
570
+ Url . prototype . format = function format ( ) {
571
571
var auth = this . auth || '' ;
572
572
if ( auth ) {
573
573
auth = encodeAuth ( auth ) ;
@@ -652,7 +652,7 @@ function urlResolve(source, relative) {
652
652
return urlParse ( source , false , true ) . resolve ( relative ) ;
653
653
}
654
654
655
- Url . prototype . resolve = function ( relative ) {
655
+ Url . prototype . resolve = function resolve ( relative ) {
656
656
return this . resolveObject ( urlParse ( relative , false , true ) ) . format ( ) ;
657
657
} ;
658
658
@@ -661,7 +661,7 @@ function urlResolveObject(source, relative) {
661
661
return urlParse ( source , false , true ) . resolveObject ( relative ) ;
662
662
}
663
663
664
- Url . prototype . resolveObject = function ( relative ) {
664
+ Url . prototype . resolveObject = function resolveObject ( relative ) {
665
665
if ( typeof relative === 'string' ) {
666
666
var rel = new Url ( ) ;
667
667
rel . parse ( relative , false , true ) ;
@@ -939,7 +939,7 @@ Url.prototype.resolveObject = function(relative) {
939
939
return result ;
940
940
} ;
941
941
942
- Url . prototype . parseHost = function ( ) {
942
+ Url . prototype . parseHost = function parseHost ( ) {
943
943
var host = this . host ;
944
944
var port = portPattern . exec ( host ) ;
945
945
if ( port ) {
0 commit comments