Skip to content

Commit e0ab121

Browse files
committed
build: bundle 3.3.4
1 parent c4f24ce commit e0ab121

6 files changed

+28
-16
lines changed

Diff for: dist/vue-router.common.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.3.3
2+
* vue-router v3.3.4
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -2185,10 +2185,13 @@ History.prototype.confirmTransition = function confirmTransition (route, onCompl
21852185
}
21862186
onAbort && onAbort(err);
21872187
};
2188+
var lastRouteIndex = route.matched.length - 1;
2189+
var lastCurrentIndex = current.matched.length - 1;
21882190
if (
21892191
isSameRoute(route, current) &&
21902192
// in the case the route map has been dynamically appended to
2191-
route.matched.length === current.matched.length
2193+
lastRouteIndex === lastCurrentIndex &&
2194+
route.matched[lastRouteIndex] === current.matched[lastCurrentIndex]
21922195
) {
21932196
this.ensureURL();
21942197
return abort(createNavigationDuplicatedError(current, route))
@@ -3006,7 +3009,7 @@ function createHref (base, fullPath, mode) {
30063009
}
30073010

30083011
VueRouter.install = install;
3009-
VueRouter.version = '3.3.3';
3012+
VueRouter.version = '3.3.4';
30103013

30113014
if (inBrowser && window.Vue) {
30123015
window.Vue.use(VueRouter);

Diff for: dist/vue-router.esm.browser.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.3.3
2+
* vue-router v3.3.4
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -2179,10 +2179,13 @@ class History {
21792179
}
21802180
onAbort && onAbort(err);
21812181
};
2182+
const lastRouteIndex = route.matched.length - 1;
2183+
const lastCurrentIndex = current.matched.length - 1;
21822184
if (
21832185
isSameRoute(route, current) &&
21842186
// in the case the route map has been dynamically appended to
2185-
route.matched.length === current.matched.length
2187+
lastRouteIndex === lastCurrentIndex &&
2188+
route.matched[lastRouteIndex] === current.matched[lastCurrentIndex]
21862189
) {
21872190
this.ensureURL();
21882191
return abort(createNavigationDuplicatedError(current, route))
@@ -2969,7 +2972,7 @@ function createHref (base, fullPath, mode) {
29692972
}
29702973

29712974
VueRouter.install = install;
2972-
VueRouter.version = '3.3.3';
2975+
VueRouter.version = '3.3.4';
29732976

29742977
if (inBrowser && window.Vue) {
29752978
window.Vue.use(VueRouter);

Diff for: dist/vue-router.esm.browser.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/vue-router.esm.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.3.3
2+
* vue-router v3.3.4
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -2183,10 +2183,13 @@ History.prototype.confirmTransition = function confirmTransition (route, onCompl
21832183
}
21842184
onAbort && onAbort(err);
21852185
};
2186+
var lastRouteIndex = route.matched.length - 1;
2187+
var lastCurrentIndex = current.matched.length - 1;
21862188
if (
21872189
isSameRoute(route, current) &&
21882190
// in the case the route map has been dynamically appended to
2189-
route.matched.length === current.matched.length
2191+
lastRouteIndex === lastCurrentIndex &&
2192+
route.matched[lastRouteIndex] === current.matched[lastCurrentIndex]
21902193
) {
21912194
this.ensureURL();
21922195
return abort(createNavigationDuplicatedError(current, route))
@@ -3004,7 +3007,7 @@ function createHref (base, fullPath, mode) {
30043007
}
30053008

30063009
VueRouter.install = install;
3007-
VueRouter.version = '3.3.3';
3010+
VueRouter.version = '3.3.4';
30083011

30093012
if (inBrowser && window.Vue) {
30103013
window.Vue.use(VueRouter);

Diff for: dist/vue-router.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.3.3
2+
* vue-router v3.3.4
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -2189,10 +2189,13 @@
21892189
}
21902190
onAbort && onAbort(err);
21912191
};
2192+
var lastRouteIndex = route.matched.length - 1;
2193+
var lastCurrentIndex = current.matched.length - 1;
21922194
if (
21932195
isSameRoute(route, current) &&
21942196
// in the case the route map has been dynamically appended to
2195-
route.matched.length === current.matched.length
2197+
lastRouteIndex === lastCurrentIndex &&
2198+
route.matched[lastRouteIndex] === current.matched[lastCurrentIndex]
21962199
) {
21972200
this.ensureURL();
21982201
return abort(createNavigationDuplicatedError(current, route))
@@ -3010,7 +3013,7 @@
30103013
}
30113014

30123015
VueRouter.install = install;
3013-
VueRouter.version = '3.3.3';
3016+
VueRouter.version = '3.3.4';
30143017

30153018
if (inBrowser && window.Vue) {
30163019
window.Vue.use(VueRouter);

Diff for: dist/vue-router.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)