Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unplugin-vue-router

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unplugin-vue-router - npm Package Compare versions

Comparing version 0.10.5 to 0.10.6

dist/chunk-6INN7JET.cjs

8

dist/data-loaders/pinia-colada.d.ts

@@ -10,2 +10,8 @@ import { RouteMap, RouteLocationNormalizedLoaded, LocationQuery } from 'vue-router';

*
* The returned composable exposes a mix of Data Loaders state and Pinia
* Colada state.
* - `data`, `isLoading`, `error` are navigation dependent and follow data loaders behavior.
* - `status`, `asyncStatus`, `state` are Pinia Colada state and will immediately change and reflect the state of the
* query.
*
* @experimental

@@ -36,3 +42,3 @@ * Still under development and subject to change. See https://github.com/vuejs/rfcs/discussions/460

}
interface UseDataLoaderColadaResult<isLazy extends boolean, Data> extends UseDataLoaderResult<isLazy, Data>, Pick<UseQueryReturn<Data, any>, 'isPending' | 'refetch' | 'refresh' | 'status'> {
interface UseDataLoaderColadaResult<isLazy extends boolean, Data> extends UseDataLoaderResult<isLazy, Data>, Pick<UseQueryReturn<Data, any>, 'isPending' | 'refetch' | 'refresh' | 'status' | 'asyncStatus' | 'state'> {
}

@@ -39,0 +45,0 @@ /**

6

dist/data-loaders/pinia-colada.js

@@ -238,4 +238,6 @@ import {

),
isPending: ext.isPending,
status: ext.status
status: ext.status,
asyncStatus: ext.asyncStatus,
state: ext.state,
isPending: ext.isPending
};

@@ -242,0 +244,0 @@ const promise = entry.pendingLoad.then(() => {

import * as esbuild from 'esbuild';
import { O as Options } from './types-DYu_EM94.js';
import { O as Options } from './types-DBiN4-4c.js';
import 'vue-router';

@@ -4,0 +4,0 @@

import {
src_default
} from "./chunk-TMY6KFNQ.js";
import "./chunk-PMMXXAFC.js";
} from "./chunk-QGGTJJOU.js";
import "./chunk-GI4LFDHF.js";
import "./chunk-6F4PWJZI.js";

@@ -6,0 +6,0 @@

import * as unplugin from 'unplugin';
import { R as ResolvedOptions, S as ServerContext, O as Options } from './types-DYu_EM94.js';
export { D as DEFAULT_OPTIONS, E as EditableTreeNode, T as TreeNode, b as TreeNodeValueParam, d as TreeNodeValueStatic, c as createTreeNodeValue, g as getFileBasedRouteName, a as getPascalCaseRouteName } from './types-DYu_EM94.js';
import { R as ResolvedOptions, S as ServerContext, O as Options } from './types-DBiN4-4c.js';
export { D as DEFAULT_OPTIONS, E as EditableTreeNode, T as TreeNode, b as TreeNodeValueParam, d as TreeNodeValueStatic, c as createTreeNodeValue, g as getFileBasedRouteName, a as getPascalCaseRouteName } from './types-DBiN4-4c.js';
import * as magic_string from 'magic-string';
import * as rollup from 'rollup';
import 'vue-router';

@@ -16,2 +18,39 @@

/**
* {@link AutoExportLoaders} options.
*/
interface AutoExportLoadersOptions {
/**
* Filter page components to apply the auto-export (defined with `createFilter()` from `@rollup/pluginutils`) or array
* of globs.
*/
filterPageComponents: ((id: string) => boolean) | string[];
/**
* Globs to match the paths of the loaders.
*/
loadersPathsGlobs: string | string[];
/**
* Root of the project. All paths are resolved relatively to this one.
* @default `process.cwd()`
*/
root?: string;
}
/**
* Vite Plugin to automatically export loaders from page components.
*
* @param options Options
* @experimental - This API is experimental and can be changed in the future. It's used internally by `experimental.autoExportsDataLoaders`
*/
declare function AutoExportLoaders({ filterPageComponents: filterPagesOrGlobs, loadersPathsGlobs, root, }: AutoExportLoadersOptions): {
name: string;
transform: {
order: "post";
handler(this: rollup.TransformPluginContext, code: string, id: string): {
code: string;
map: magic_string.SourceMap;
} | undefined;
};
};
declare const _default: unplugin.UnpluginInstance<Options | undefined, boolean>;

@@ -32,2 +71,2 @@

export { Options, VueRouterAutoImports, createRoutesContext, _default as default };
export { AutoExportLoaders, type AutoExportLoadersOptions, Options, VueRouterAutoImports, createRoutesContext, _default as default };
import {
AutoExportLoaders,
EditableTreeNode,

@@ -7,3 +8,3 @@ VueRouterAutoImports,

src_default
} from "./chunk-TMY6KFNQ.js";
} from "./chunk-QGGTJJOU.js";
import {

@@ -13,5 +14,6 @@ DEFAULT_OPTIONS,

getPascalCaseRouteName
} from "./chunk-PMMXXAFC.js";
} from "./chunk-GI4LFDHF.js";
import "./chunk-6F4PWJZI.js";
export {
AutoExportLoaders,
DEFAULT_OPTIONS,

@@ -18,0 +20,0 @@ EditableTreeNode,

@@ -1,2 +0,2 @@

export { D as DEFAULT_OPTIONS, O as Options, R as ResolvedOptions, i as RoutesFolder, e as RoutesFolderOption, f as RoutesFolderOptionResolved, S as ServerContext, _ as _OverridableOption, h as _RoutesFolder, m as mergeAllExtensions, j as resolveOptions, r as resolveOverridableOption } from './types-DYu_EM94.js';
export { D as DEFAULT_OPTIONS, O as Options, R as ResolvedOptions, i as RoutesFolder, e as RoutesFolderOption, f as RoutesFolderOptionResolved, S as ServerContext, _ as _OverridableOption, h as _RoutesFolder, m as mergeAllExtensions, j as resolveOptions, r as resolveOverridableOption } from './types-DBiN4-4c.js';
import 'vue-router';

@@ -6,3 +6,3 @@ import {

resolveOverridableOption
} from "./chunk-PMMXXAFC.js";
} from "./chunk-GI4LFDHF.js";
export {

@@ -9,0 +9,0 @@ DEFAULT_OPTIONS,

import * as rollup from 'rollup';
import { O as Options } from './types-DYu_EM94.js';
import { O as Options } from './types-DBiN4-4c.js';
import 'vue-router';

@@ -4,0 +4,0 @@

import {
src_default
} from "./chunk-TMY6KFNQ.js";
import "./chunk-PMMXXAFC.js";
} from "./chunk-QGGTJJOU.js";
import "./chunk-GI4LFDHF.js";
import "./chunk-6F4PWJZI.js";

@@ -6,0 +6,0 @@

@@ -1,2 +0,2 @@

export { E as EditableTreeNode, O as Options, T as TreeNode, b as TreeNodeValueParam, d as TreeNodeValueStatic } from './types-DYu_EM94.js';
export { E as EditableTreeNode, O as Options, T as TreeNode, b as TreeNodeValueParam, d as TreeNodeValueStatic } from './types-DBiN4-4c.js';
import 'vue-router';
import * as vite from 'vite';
import { O as Options } from './types-DYu_EM94.js';
import { O as Options } from './types-DBiN4-4c.js';
import 'vue-router';

@@ -4,0 +4,0 @@

import {
src_default
} from "./chunk-TMY6KFNQ.js";
import "./chunk-PMMXXAFC.js";
} from "./chunk-QGGTJJOU.js";
import "./chunk-GI4LFDHF.js";
import "./chunk-6F4PWJZI.js";

@@ -6,0 +6,0 @@

import * as webpack from 'webpack';
import { O as Options } from './types-DYu_EM94.js';
import { O as Options } from './types-DBiN4-4c.js';
import 'vue-router';

@@ -4,0 +4,0 @@

import {
src_default
} from "./chunk-TMY6KFNQ.js";
import "./chunk-PMMXXAFC.js";
} from "./chunk-QGGTJJOU.js";
import "./chunk-GI4LFDHF.js";
import "./chunk-6F4PWJZI.js";

@@ -6,0 +6,0 @@

{
"name": "unplugin-vue-router",
"version": "0.10.5",
"version": "0.10.6",
"type": "module",

@@ -215,3 +215,3 @@ "description": "File based typed routing for Vue Router",

"yorkie": "^2.0.0",
"unplugin-vue-router": "0.10.5"
"unplugin-vue-router": "0.10.6"
},

@@ -218,0 +218,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc