update deps
This commit is contained in:
12
node_modules/page/page.js
generated
vendored
12
node_modules/page/page.js
generated
vendored
@@ -406,7 +406,7 @@ pathToRegexp_1.tokensToRegExp = tokensToRegExp_1;
|
||||
* Module dependencies.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Short-cuts for global-object checks
|
||||
@@ -893,9 +893,15 @@ pathToRegexp_1.tokensToRegExp = tokensToRegExp_1;
|
||||
var window = this._window;
|
||||
|
||||
var loc = window.location;
|
||||
|
||||
/*
|
||||
when the port is the default http port 80, internet explorer 11
|
||||
returns an empty string for loc.port, so we need to compare loc.port
|
||||
with an empty string if url.port is the default port 80.
|
||||
*/
|
||||
return loc.protocol === url.protocol &&
|
||||
loc.hostname === url.hostname &&
|
||||
loc.port === url.port;
|
||||
(loc.port === url.port || loc.port === '' && url.port === 80);
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -1183,6 +1189,8 @@ pathToRegexp_1.tokensToRegExp = tokensToRegExp_1;
|
||||
m = this.regexp.exec(decodeURIComponent(pathname));
|
||||
|
||||
if (!m) return false;
|
||||
|
||||
delete params[0]
|
||||
|
||||
for (var i = 1, len = m.length; i < len; ++i) {
|
||||
var key = keys[i - 1];
|
||||
|
Reference in New Issue
Block a user