@quvel-kit/core 1.2.0 → 1.3.1

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.
@@ -5,12 +5,12 @@ import { LogLevel as LogLevelEnum, LoggerType as LoggerTypeEnum } from '../types
5
5
  * Create a logger instance based on configuration
6
6
  */
7
7
  export function createLogger(config) {
8
- const loggerType = import.meta.env.VITE_LOGGER || LoggerTypeEnum.NULL;
8
+ const loggerType = import.meta.env?.VITE_LOGGER || LoggerTypeEnum.NULL;
9
9
  const logLevel = getLogLevel();
10
10
  const traceInfo = config?.trace ?? {
11
11
  id: '',
12
12
  timestamp: new Date().toISOString(),
13
- environment: import.meta.env.MODE || 'development',
13
+ environment: import.meta.env?.MODE || 'development',
14
14
  tenant: null,
15
15
  runtime: 'client',
16
16
  };
@@ -40,7 +40,7 @@ export const LOG_LEVEL_PRIORITY = {
40
40
  * Defaults to INFO if not specified or invalid
41
41
  */
42
42
  export function getLogLevel() {
43
- const configLevel = import.meta.env.VITE_LOG_LEVEL?.toLowerCase();
43
+ const configLevel = import.meta.env?.VITE_LOG_LEVEL?.toLowerCase();
44
44
  if (configLevel && Object.values(LogLevelEnum).includes(configLevel)) {
45
45
  return configLevel;
46
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quvel-kit/core",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "description": "Core utilities for Quvel UI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -39,10 +39,6 @@
39
39
  "import": "./dist/composables/index.js",
40
40
  "types": "./dist/composables/index.d.ts"
41
41
  },
42
- "./pages": {
43
- "import": "./dist/pages/index.js",
44
- "types": "./dist/pages/index.d.ts"
45
- },
46
42
  "./global": {
47
43
  "types": "./global.d.ts"
48
44
  }
@@ -1,7 +0,0 @@
1
- /**
2
- * Core Pages
3
- *
4
- * Reusable page components for the Quvel UI framework
5
- */
6
- export { default as ErrorNotFound } from './ErrorNotFound.vue';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pages/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Core Pages
3
- *
4
- * Reusable page components for the Quvel UI framework
5
- */
6
- export { default as ErrorNotFound } from './ErrorNotFound.vue';