unplugin-vue-router
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -380,5 +380,7 @@ var __create = Object.create; | ||
var VIRTUAL_PREFIX = "virtual:"; | ||
var ROUTE_BLOCK_ID = `${VIRTUAL_PREFIX}/@vue-router/route-block`; | ||
function getVirtualId(id) { | ||
return id.startsWith(VIRTUAL_PREFIX) ? id.slice(VIRTUAL_PREFIX.length) : null; | ||
} | ||
var routeBlockQueryRE = /\?vue&type=route/; | ||
function asVirtualId(id) { | ||
@@ -754,2 +756,5 @@ return VIRTUAL_PREFIX + id; | ||
} | ||
if (routeBlockQueryRE.test(id)) { | ||
return ROUTE_BLOCK_ID; | ||
} | ||
return null; | ||
@@ -774,2 +779,8 @@ }, | ||
} | ||
if (id === ROUTE_BLOCK_ID) { | ||
return { | ||
code: `export default {}`, | ||
map: null | ||
}; | ||
} | ||
return null; | ||
@@ -776,0 +787,0 @@ }, |
@@ -403,5 +403,7 @@ var __create = Object.create; | ||
var VIRTUAL_PREFIX = "virtual:"; | ||
var ROUTE_BLOCK_ID = `${VIRTUAL_PREFIX}/@vue-router/route-block`; | ||
function getVirtualId(id) { | ||
return id.startsWith(VIRTUAL_PREFIX) ? id.slice(VIRTUAL_PREFIX.length) : null; | ||
} | ||
var routeBlockQueryRE = /\?vue&type=route/; | ||
function asVirtualId(id) { | ||
@@ -777,2 +779,5 @@ return VIRTUAL_PREFIX + id; | ||
} | ||
if (routeBlockQueryRE.test(id)) { | ||
return ROUTE_BLOCK_ID; | ||
} | ||
return null; | ||
@@ -797,2 +802,8 @@ }, | ||
} | ||
if (id === ROUTE_BLOCK_ID) { | ||
return { | ||
code: `export default {}`, | ||
map: null | ||
}; | ||
} | ||
return null; | ||
@@ -799,0 +810,0 @@ }, |
@@ -380,5 +380,7 @@ var __create = Object.create; | ||
var VIRTUAL_PREFIX = "virtual:"; | ||
var ROUTE_BLOCK_ID = `${VIRTUAL_PREFIX}/@vue-router/route-block`; | ||
function getVirtualId(id) { | ||
return id.startsWith(VIRTUAL_PREFIX) ? id.slice(VIRTUAL_PREFIX.length) : null; | ||
} | ||
var routeBlockQueryRE = /\?vue&type=route/; | ||
function asVirtualId(id) { | ||
@@ -754,2 +756,5 @@ return VIRTUAL_PREFIX + id; | ||
} | ||
if (routeBlockQueryRE.test(id)) { | ||
return ROUTE_BLOCK_ID; | ||
} | ||
return null; | ||
@@ -774,2 +779,8 @@ }, | ||
} | ||
if (id === ROUTE_BLOCK_ID) { | ||
return { | ||
code: `export default {}`, | ||
map: null | ||
}; | ||
} | ||
return null; | ||
@@ -776,0 +787,0 @@ }, |
@@ -380,5 +380,7 @@ var __create = Object.create; | ||
var VIRTUAL_PREFIX = "virtual:"; | ||
var ROUTE_BLOCK_ID = `${VIRTUAL_PREFIX}/@vue-router/route-block`; | ||
function getVirtualId(id) { | ||
return id.startsWith(VIRTUAL_PREFIX) ? id.slice(VIRTUAL_PREFIX.length) : null; | ||
} | ||
var routeBlockQueryRE = /\?vue&type=route/; | ||
function asVirtualId(id) { | ||
@@ -754,2 +756,5 @@ return VIRTUAL_PREFIX + id; | ||
} | ||
if (routeBlockQueryRE.test(id)) { | ||
return ROUTE_BLOCK_ID; | ||
} | ||
return null; | ||
@@ -774,2 +779,8 @@ }, | ||
} | ||
if (id === ROUTE_BLOCK_ID) { | ||
return { | ||
code: `export default {}`, | ||
map: null | ||
}; | ||
} | ||
return null; | ||
@@ -776,0 +787,0 @@ }, |
@@ -380,5 +380,7 @@ var __create = Object.create; | ||
var VIRTUAL_PREFIX = "virtual:"; | ||
var ROUTE_BLOCK_ID = `${VIRTUAL_PREFIX}/@vue-router/route-block`; | ||
function getVirtualId(id) { | ||
return id.startsWith(VIRTUAL_PREFIX) ? id.slice(VIRTUAL_PREFIX.length) : null; | ||
} | ||
var routeBlockQueryRE = /\?vue&type=route/; | ||
function asVirtualId(id) { | ||
@@ -754,2 +756,5 @@ return VIRTUAL_PREFIX + id; | ||
} | ||
if (routeBlockQueryRE.test(id)) { | ||
return ROUTE_BLOCK_ID; | ||
} | ||
return null; | ||
@@ -774,2 +779,8 @@ }, | ||
} | ||
if (id === ROUTE_BLOCK_ID) { | ||
return { | ||
code: `export default {}`, | ||
map: null | ||
}; | ||
} | ||
return null; | ||
@@ -776,0 +787,0 @@ }, |
{ | ||
"name": "unplugin-vue-router", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"packageManager": "pnpm@7.5.0", | ||
@@ -5,0 +5,0 @@ "description": "File based typed routing for Vue Router", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
196504
5064