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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kdu-router",
3
- "version": "3.6.0",
3
+ "version": "3.6.2",
4
4
  "description": "Official router for Kdu.js 2",
5
5
  "author": "NKDuy",
6
6
  "license": "MIT",
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
- // TODO: does this really work with the new keyword?
6
- export { RouterView, RouterLink }
5
+ export { RouterView, RouterLink, START_LOCATION }
7
6
 
8
7
  export type {
9
8
  RouterMode,