chore: prep release
This commit is contained in:
@@ -23,7 +23,8 @@ export default defineNuxtModule<ModuleOptions>({
|
||||
},
|
||||
async setup(options, nuxt) {
|
||||
const resolver = createResolver(import.meta.url)
|
||||
const permissions = options.permissions ?? {}
|
||||
/* eslint-disable-next-line */
|
||||
const permissions = options.permissions ?? {} as any
|
||||
const canFunctionImport = options.canFunctionImport ?? DEFAULT_CAN_FUNCTION_IMPORT
|
||||
const reporter = options.reporter ?? false
|
||||
|
||||
|
||||
@@ -14,7 +14,8 @@ type NuxtCanChecker = (path: string[]) => boolean | Promise<boolean>
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
const runtimeConfig = useRuntimeConfig()
|
||||
const moduleConfig = (runtimeConfig.public as { nuxtCan?: NuxtCanRuntimeConfig }).nuxtCan
|
||||
const canProxy = createCanProxy()
|
||||
/* eslint-disable-next-line */
|
||||
const canProxy = createCanProxy() as any
|
||||
const canFunction = hostCan as NuxtCanChecker
|
||||
|
||||
if (import.meta.dev && !moduleConfig?.canFunctionImport) {
|
||||
|
||||
Reference in New Issue
Block a user