@slipmatio/logger
Advanced tools
Comparing version 0.1.0 to 0.1.1
# Changelog | ||
### 0.1.1 - N/A | ||
- Fix: type exports work properly now. | ||
- Chore: bumped all deps. | ||
### 0.1.0 - 2023-07-06 | ||
@@ -4,0 +9,0 @@ |
@@ -1,4 +0,2 @@ | ||
import { LogLevel, type LoggerFunction } from './types'; | ||
import { VueLogFn } from './vue'; | ||
declare class Logger { | ||
export declare class Logger { | ||
logLevel: LogLevel; | ||
@@ -23,4 +21,22 @@ loggerName: string; | ||
} | ||
declare const useLogger: (name?: string, debug?: boolean) => Logger; | ||
declare const useVueLogger: (name?: string, debug?: boolean) => Logger; | ||
export { LogLevel, Logger, useLogger, useVueLogger, type LoggerFunction, VueLogFn }; | ||
export declare interface LoggerFunction { | ||
(method: 'log' | 'debug' | 'info' | 'warn' | 'error' | 'success' | 'critical', message: any, ...optionalParams: any[]): void; | ||
} | ||
export declare enum LogLevel { | ||
DEBUG = 0, | ||
INFO = 1, | ||
WARN = 2, | ||
ERROR = 3, | ||
CRITICAL = 4, | ||
OFF = 5 | ||
} | ||
export declare const useLogger: (name?: string, debug?: boolean) => Logger; | ||
export declare const useVueLogger: (name?: string, debug?: boolean) => Logger; | ||
export declare const VueLogFn: LoggerFunction; | ||
export { } |
{ | ||
"name": "@slipmatio/logger", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Better console logging with TypScript support", | ||
"main": "./dist/logger.js", | ||
"module": "./dist/logger.mjs", | ||
"types": "./dist/index.d.ts", | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/logger.mjs", | ||
"require": "./dist/logger.js" | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js" | ||
} | ||
@@ -41,14 +42,14 @@ }, | ||
"devDependencies": { | ||
"@playwright/test": "1.35.1", | ||
"@types/node": "20.3.3", | ||
"@playwright/test": "1.36.0", | ||
"@types/node": "20.4.2", | ||
"@vitejs/plugin-vue": "4.2.3", | ||
"@vitest/coverage-v8": "0.32.4", | ||
"@vitest/coverage-v8": "0.33.0", | ||
"@vue/test-utils": "2.4.0", | ||
"happy-dom": "9.20.3", | ||
"happy-dom": "10.3.2", | ||
"typescript": "5.1.6", | ||
"vite": "4.3.9", | ||
"vite-plugin-dts": "3.0.3", | ||
"vitest": "0.32.4", | ||
"vite": "4.4.3", | ||
"vite-plugin-dts": "3.2.0", | ||
"vitest": "0.33.0", | ||
"vue": "3.3.4", | ||
"vue-tsc": "1.8.3" | ||
"vue-tsc": "1.8.4" | ||
}, | ||
@@ -55,0 +56,0 @@ "peerDependencies": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14409
7
189
2
6