Skip to content

Commit

Permalink
Merge pull request #78 from manchenkoff/const-resolving-problem-fix
Browse files Browse the repository at this point in the history
fix: resolved constant visibility issue
  • Loading branch information
manchenkoff authored Apr 18, 2024
2 parents f7813b2 + 5cbd7a3 commit 45fbe54
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@
"vue-tsc": "^1.8.26"
},
"packageManager": "[email protected]"
}
}
1 change: 0 additions & 1 deletion src/constants.ts

This file was deleted.

3 changes: 2 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import {
} from '@nuxt/kit';
import { defu } from 'defu';
import type { SanctumModuleOptions } from './types';
import { LOGGER_NAME } from './constants';

type DeepPartial<T> = {
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
};

const LOGGER_NAME = 'nuxt-auth-sanctum';

export default defineNuxtModule<DeepPartial<SanctumModuleOptions>>({
meta: {
name: 'nuxt-auth-sanctum',
Expand Down
3 changes: 2 additions & 1 deletion src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { createHttpClient } from './httpFactory';
import { useSanctumUser } from './composables/useSanctumUser';
import { useSanctumConfig } from './composables/useSanctumConfig';
import { createConsola, type ConsolaInstance } from 'consola';
import { LOGGER_NAME } from '../constants';

const LOGGER_NAME = 'nuxt-auth-sanctum';

function createSanctumLogger(logLevel: number) {
const envSuffix = import.meta.env.SSR ? 'ssr' : 'csr';
Expand Down

0 comments on commit 45fbe54

Please sign in to comment.