kdu-router 3.6.0 → 3.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composables.js +1 -1
- package/dist/composables.mjs +1 -1
- package/dist/kdu-router.common.js +7 -7
- package/dist/kdu-router.esm.browser.js +8 -8
- package/dist/kdu-router.esm.browser.min.js +3 -3
- package/dist/kdu-router.esm.js +7 -10
- package/dist/kdu-router.js +7 -7
- package/dist/kdu-router.min.js +3 -3
- package/dist/kdu-router.mjs +3151 -0
- package/package.json +1 -1
- package/src/router.js +4 -4
- package/types/index.d.ts +2 -3
package/package.json
CHANGED
package/src/router.js
CHANGED
|
@@ -281,13 +281,13 @@ function createHref (base: string, fullPath: string, mode) {
|
|
|
281
281
|
return base ? cleanPath(base + '/' + path) : path
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
if (inBrowser && window.Kdu) {
|
|
285
|
-
window.Kdu.use(KduRouter)
|
|
286
|
-
}
|
|
287
|
-
|
|
288
284
|
// We cannot remove this as it would be a breaking change
|
|
289
285
|
KduRouter.install = install
|
|
290
286
|
KduRouter.version = '__VERSION__'
|
|
291
287
|
KduRouter.isNavigationFailure = isNavigationFailure
|
|
292
288
|
KduRouter.NavigationFailureType = NavigationFailureType
|
|
293
289
|
KduRouter.START_LOCATION = START
|
|
290
|
+
|
|
291
|
+
if (inBrowser && window.Kdu) {
|
|
292
|
+
window.Kdu.use(KduRouter)
|
|
293
|
+
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import './kdu'
|
|
2
|
-
import { KduRouter, RouterLink, RouterView } from './router'
|
|
2
|
+
import { KduRouter, RouterLink, RouterView, START_LOCATION } from './router'
|
|
3
3
|
|
|
4
4
|
export default KduRouter
|
|
5
|
-
|
|
6
|
-
export { RouterView, RouterLink }
|
|
5
|
+
export { RouterView, RouterLink, START_LOCATION }
|
|
7
6
|
|
|
8
7
|
export type {
|
|
9
8
|
RouterMode,
|