Skip to content

Commit

Permalink
build: bundle 3.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jun 21, 2021
1 parent 260f737 commit d4a493d
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 36 deletions.
14 changes: 10 additions & 4 deletions dist/vue-router.common.js
@@ -1,5 +1,5 @@
/*!
* vue-router v3.5.1
* vue-router v3.5.2
* (c) 2021 Evan You
* @license MIT
*/
Expand Down Expand Up @@ -1564,7 +1564,7 @@ function createMatcher (
createRouteMap([route || parentOrRoute], pathList, pathMap, nameMap, parent);

// add aliases of parent
if (parent) {
if (parent && parent.alias.length) {
createRouteMap(
// $flow-disable-line route is defined if parent is
parent.alias.map(function (alias) { return ({ path: alias, children: [route] }); }),
Expand Down Expand Up @@ -2635,7 +2635,13 @@ var HTML5History = /*@__PURE__*/(function (History) {

function getLocation (base) {
var path = window.location.pathname;
if (base && path.toLowerCase().indexOf(base.toLowerCase()) === 0) {
var pathLowerCase = path.toLowerCase();
var baseLowerCase = base.toLowerCase();
// base="/a" shouldn't turn path="/app" into "/a/pp"
// https://github.com/vuejs/vue-router/issues/3555
// so we ensure the trailing slash in the base
if (base && ((pathLowerCase === baseLowerCase) ||
(pathLowerCase.indexOf(cleanPath(baseLowerCase + '/')) === 0))) {
path = path.slice(base.length);
}
return (path || '/') + window.location.search + window.location.hash
Expand Down Expand Up @@ -3128,7 +3134,7 @@ function createHref (base, fullPath, mode) {
}

VueRouter.install = install;
VueRouter.version = '3.5.1';
VueRouter.version = '3.5.2';
VueRouter.isNavigationFailure = isNavigationFailure;
VueRouter.NavigationFailureType = NavigationFailureType;
VueRouter.START_LOCATION = START;
Expand Down
29 changes: 17 additions & 12 deletions dist/vue-router.esm.browser.js
@@ -1,5 +1,5 @@
/*!
* vue-router v3.5.1
* vue-router v3.5.2
* (c) 2021 Evan You
* @license MIT
*/
Expand All @@ -12,7 +12,7 @@ function assert (condition, message) {
}

function warn (condition, message) {
if ( !condition) {
if (!condition) {
typeof console !== 'undefined' && console.warn(`[vue-router] ${message}`);
}
}
Expand Down Expand Up @@ -59,7 +59,7 @@ function resolveQuery (
try {
parsedQuery = parse(query || '');
} catch (e) {
warn(false, e.message);
warn(false, e.message);
parsedQuery = {};
}
for (const key in extraQuery) {
Expand Down Expand Up @@ -1146,7 +1146,7 @@ var Link = {
});

if (scopedSlot) {
if ( !this.custom) {
if (!this.custom) {
!warnedCustomSlot && warn(false, 'In Vue Router 4, the v-slot API will by default wrap its content with an <a> element. Use the custom prop to remove this warning:\n<router-link v-slot="{ navigate, href }" custom></router-link>\n');
warnedCustomSlot = true;
}
Expand Down Expand Up @@ -1458,7 +1458,7 @@ function addRouteRecord (
const aliases = Array.isArray(route.alias) ? route.alias : [route.alias];
for (let i = 0; i < aliases.length; ++i) {
const alias = aliases[i];
if ( alias === path) {
if (alias === path) {
warn(
false,
`Found an alias with the same value as the path: "${path}". You have to remove that alias. It will be ignored in development.`
Expand All @@ -1485,7 +1485,7 @@ function addRouteRecord (
if (name) {
if (!nameMap[name]) {
nameMap[name] = record;
} else if ( !matchAs) {
} else if (!matchAs) {
warn(
false,
`Duplicate named routes definition: ` +
Expand Down Expand Up @@ -1544,7 +1544,7 @@ function createMatcher (
createRouteMap([route || parentOrRoute], pathList, pathMap, nameMap, parent);

// add aliases of parent
if (parent) {
if (parent && parent.alias.length) {
createRouteMap(
// $flow-disable-line route is defined if parent is
parent.alias.map(alias => ({ path: alias, children: [route] })),
Expand Down Expand Up @@ -2113,7 +2113,7 @@ function resolveAsyncComponents (matched) {

const reject = once(reason => {
const msg = `Failed to resolve async component ${key}: ${reason}`;
warn(false, msg);
warn(false, msg);
if (!error) {
error = isError(reason)
? reason
Expand Down Expand Up @@ -2616,7 +2616,13 @@ class HTML5History extends History {

function getLocation (base) {
let path = window.location.pathname;
if (base && path.toLowerCase().indexOf(base.toLowerCase()) === 0) {
const pathLowerCase = path.toLowerCase();
const baseLowerCase = base.toLowerCase();
// base="/a" shouldn't turn path="/app" into "/a/pp"
// https://github.com/vuejs/vue-router/issues/3555
// so we ensure the trailing slash in the base
if (base && ((pathLowerCase === baseLowerCase) ||
(pathLowerCase.indexOf(cleanPath(baseLowerCase + '/')) === 0))) {
path = path.slice(base.length);
}
return (path || '/') + window.location.search + window.location.hash
Expand Down Expand Up @@ -2905,8 +2911,7 @@ class VueRouter {
}

init (app /* Vue component instance */) {

assert(
assert(
install.installed,
`not installed. Make sure to call \`Vue.use(VueRouter)\` ` +
`before creating root instance.`
Expand Down Expand Up @@ -3095,7 +3100,7 @@ function createHref (base, fullPath, mode) {
}

VueRouter.install = install;
VueRouter.version = '3.5.1';
VueRouter.version = '3.5.2';
VueRouter.isNavigationFailure = isNavigationFailure;
VueRouter.NavigationFailureType = NavigationFailureType;
VueRouter.START_LOCATION = START;
Expand Down
9 changes: 7 additions & 2 deletions dist/vue-router.esm.browser.min.js

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions dist/vue-router.esm.js
@@ -1,5 +1,5 @@
/*!
* vue-router v3.5.1
* vue-router v3.5.2
* (c) 2021 Evan You
* @license MIT
*/
Expand Down Expand Up @@ -1562,7 +1562,7 @@ function createMatcher (
createRouteMap([route || parentOrRoute], pathList, pathMap, nameMap, parent);

// add aliases of parent
if (parent) {
if (parent && parent.alias.length) {
createRouteMap(
// $flow-disable-line route is defined if parent is
parent.alias.map(function (alias) { return ({ path: alias, children: [route] }); }),
Expand Down Expand Up @@ -2633,7 +2633,13 @@ var HTML5History = /*@__PURE__*/(function (History) {

function getLocation (base) {
var path = window.location.pathname;
if (base && path.toLowerCase().indexOf(base.toLowerCase()) === 0) {
var pathLowerCase = path.toLowerCase();
var baseLowerCase = base.toLowerCase();
// base="/a" shouldn't turn path="/app" into "/a/pp"
// https://github.com/vuejs/vue-router/issues/3555
// so we ensure the trailing slash in the base
if (base && ((pathLowerCase === baseLowerCase) ||
(pathLowerCase.indexOf(cleanPath(baseLowerCase + '/')) === 0))) {
path = path.slice(base.length);
}
return (path || '/') + window.location.search + window.location.hash
Expand Down Expand Up @@ -3126,7 +3132,7 @@ function createHref (base, fullPath, mode) {
}

VueRouter.install = install;
VueRouter.version = '3.5.1';
VueRouter.version = '3.5.2';
VueRouter.isNavigationFailure = isNavigationFailure;
VueRouter.NavigationFailureType = NavigationFailureType;
VueRouter.START_LOCATION = START;
Expand Down
29 changes: 17 additions & 12 deletions dist/vue-router.js
@@ -1,5 +1,5 @@
/*!
* vue-router v3.5.1
* vue-router v3.5.2
* (c) 2021 Evan You
* @license MIT
*/
Expand All @@ -18,7 +18,7 @@
}

function warn (condition, message) {
if ( !condition) {
if (!condition) {
typeof console !== 'undefined' && console.warn(("[vue-router] " + message));
}
}
Expand Down Expand Up @@ -66,7 +66,7 @@
try {
parsedQuery = parse(query || '');
} catch (e) {
warn(false, e.message);
warn(false, e.message);
parsedQuery = {};
}
for (var key in extraQuery) {
Expand Down Expand Up @@ -1170,7 +1170,7 @@
});

if (scopedSlot) {
if ( !this.custom) {
if (!this.custom) {
!warnedCustomSlot && warn(false, 'In Vue Router 4, the v-slot API will by default wrap its content with an <a> element. Use the custom prop to remove this warning:\n<router-link v-slot="{ navigate, href }" custom></router-link>\n');
warnedCustomSlot = true;
}
Expand Down Expand Up @@ -1479,7 +1479,7 @@
var aliases = Array.isArray(route.alias) ? route.alias : [route.alias];
for (var i = 0; i < aliases.length; ++i) {
var alias = aliases[i];
if ( alias === path) {
if (alias === path) {
warn(
false,
("Found an alias with the same value as the path: \"" + path + "\". You have to remove that alias. It will be ignored in development.")
Expand All @@ -1506,7 +1506,7 @@
if (name) {
if (!nameMap[name]) {
nameMap[name] = record;
} else if ( !matchAs) {
} else if (!matchAs) {
warn(
false,
"Duplicate named routes definition: " +
Expand Down Expand Up @@ -1568,7 +1568,7 @@
createRouteMap([route || parentOrRoute], pathList, pathMap, nameMap, parent);

// add aliases of parent
if (parent) {
if (parent && parent.alias.length) {
createRouteMap(
// $flow-disable-line route is defined if parent is
parent.alias.map(function (alias) { return ({ path: alias, children: [route] }); }),
Expand Down Expand Up @@ -2136,7 +2136,7 @@

var reject = once(function (reason) {
var msg = "Failed to resolve async component " + key + ": " + reason;
warn(false, msg);
warn(false, msg);
if (!error) {
error = isError(reason)
? reason
Expand Down Expand Up @@ -2639,7 +2639,13 @@

function getLocation (base) {
var path = window.location.pathname;
if (base && path.toLowerCase().indexOf(base.toLowerCase()) === 0) {
var pathLowerCase = path.toLowerCase();
var baseLowerCase = base.toLowerCase();
// base="/a" shouldn't turn path="/app" into "/a/pp"
// https://github.com/vuejs/vue-router/issues/3555
// so we ensure the trailing slash in the base
if (base && ((pathLowerCase === baseLowerCase) ||
(pathLowerCase.indexOf(cleanPath(baseLowerCase + '/')) === 0))) {
path = path.slice(base.length);
}
return (path || '/') + window.location.search + window.location.hash
Expand Down Expand Up @@ -2937,8 +2943,7 @@
VueRouter.prototype.init = function init (app /* Vue component instance */) {
var this$1 = this;


assert(
assert(
install.installed,
"not installed. Make sure to call `Vue.use(VueRouter)` " +
"before creating root instance."
Expand Down Expand Up @@ -3132,7 +3137,7 @@
}

VueRouter.install = install;
VueRouter.version = '3.5.1';
VueRouter.version = '3.5.2';
VueRouter.isNavigationFailure = isNavigationFailure;
VueRouter.NavigationFailureType = NavigationFailureType;
VueRouter.START_LOCATION = START;
Expand Down
9 changes: 7 additions & 2 deletions dist/vue-router.min.js

Large diffs are not rendered by default.

0 comments on commit d4a493d

Please sign in to comment.