nuxt-typed-router 3.1.1 → 3.1.3

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/module.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "nuxt": "^3.0.0",
6
6
  "bridge": false
7
7
  },
8
- "version": "3.1.1"
8
+ "version": "3.1.3"
9
9
  }
package/dist/module.mjs CHANGED
@@ -662,7 +662,8 @@ function createIndexFile() {
662
662
  )}
663
663
  ${returnIfTrue(
664
664
  i18n,
665
- `export {useLocalePath, useLocaleRoute, TypedToLocalePath, TypedLocaleRoute} from './__i18n-router';`
665
+ `export {useLocalePath, useLocaleRoute} from './__i18n-router';
666
+ export type {TypedToLocalePath, TypedLocaleRoute} from './__i18n-router';`
666
667
  )}
667
668
 
668
669
 
@@ -1681,7 +1682,7 @@ async function removeNuxtDefinitions({
1681
1682
  }
1682
1683
  if (autoImport) {
1683
1684
  const importsFilePath = resolve(buildDir, "types/imports.d.ts");
1684
- if (importsFilePath) {
1685
+ if (existsSync(importsFilePath)) {
1685
1686
  let globalDefinitions = await readFile(importsFilePath, {
1686
1687
  encoding: "utf8"
1687
1688
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-typed-router",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "description": "Provide autocompletion for routes paths, names and params in Nuxt apps",
5
5
  "type": "module",
6
6
  "main": "./dist/module.cjs",