@fastkit/tiny-logger
Advanced tools
Comparing version 0.12.8 to 0.12.9
@@ -1,25 +0,9 @@ | ||
/// <reference types="node" /> | ||
import { ConsoleColorPaletteName } from '@fastkit/helpers'; | ||
export declare const COLOR_MAP: { | ||
declare const TINY_LOGGER_LOG_TYPES: readonly ["debug", "info", "warn", "error", "success"]; | ||
type TinyLoggerLogType = (typeof TINY_LOGGER_LOG_TYPES)[number]; | ||
declare const COLOR_MAP: { | ||
[K in TinyLoggerLogType]?: ConsoleColorPaletteName; | ||
}; | ||
export declare function createTinyError(name: string): { | ||
new (message: string | Error): { | ||
readonly _tiny_error_symbol: symbol; | ||
name: string; | ||
message: string; | ||
stack?: string | undefined; | ||
cause?: unknown; | ||
}; | ||
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; | ||
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; | ||
stackTraceLimit: number; | ||
}; | ||
declare const TINY_LOGGER_LOG_TYPES: readonly ["debug", "info", "warn", "error", "success"]; | ||
export declare interface TinyLogger { | ||
interface TinyLogger { | ||
debug(message: string, ...args: any[]): void; | ||
@@ -31,4 +15,3 @@ info(message: string, ...args: any[]): void; | ||
} | ||
export declare class TinyLogger { | ||
declare class TinyLogger { | ||
private _name; | ||
@@ -41,4 +24,15 @@ static colorEnable(enable: true): void; | ||
export declare type TinyLoggerLogType = typeof TINY_LOGGER_LOG_TYPES[number]; | ||
declare function createTinyError(name: string): { | ||
new (message: string | Error): { | ||
readonly _tiny_error_symbol: symbol; | ||
name: string; | ||
message: string; | ||
stack?: string | undefined; | ||
cause?: unknown; | ||
}; | ||
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; | ||
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; | ||
stackTraceLimit: number; | ||
}; | ||
export { } | ||
export { COLOR_MAP, TinyLogger, TinyLoggerLogType, createTinyError }; |
{ | ||
"name": "@fastkit/tiny-logger", | ||
"version": "0.12.8", | ||
"version": "0.12.9", | ||
"description": "A small logger to display the application logs just a little bit nicer.", | ||
"keywords": [ | ||
"fastkit", | ||
"logger", | ||
"log" | ||
], | ||
"homepage": "https://github.com/dadajam4/fastkit/tree/main/packages/tiny-logger#readme", | ||
"bugs": { | ||
"url": "https://github.com/dadajam4/fastkit/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dadajam4/fastkit.git" | ||
}, | ||
"license": "MIT", | ||
"author": "dadajam4", | ||
"type": "module", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"types": "./dist/tiny-logger.d.ts", | ||
"import": { | ||
"default": "./dist/tiny-logger.mjs" | ||
} | ||
}, | ||
"./*": "./dist/*" | ||
}, | ||
"main": "./dist/tiny-logger.mjs", | ||
"types": "./dist/tiny-logger.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
".": [ | ||
"./dist/tiny-logger.d.ts" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"dependencies": { | ||
"@fastkit/helpers": "0.12.9" | ||
}, | ||
"buildOptions": { | ||
@@ -16,30 +57,13 @@ "name": "TinyLogger" | ||
}, | ||
"main": "./dist/tiny-logger.mjs", | ||
"exports": { | ||
".": "./dist/tiny-logger.mjs", | ||
"./dist/*": "./dist/*", | ||
"./package.json": "./package.json" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"types": "dist/tiny-logger.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dadajam4/fastkit.git" | ||
}, | ||
"keywords": [ | ||
"fastkit", | ||
"logger", | ||
"log" | ||
], | ||
"author": "dadajam4", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/dadajam4/fastkit/issues" | ||
}, | ||
"homepage": "https://github.com/dadajam4/fastkit/tree/main/packages/tiny-logger#readme", | ||
"dependencies": { | ||
"@fastkit/helpers": "0.12.8" | ||
"scripts": { | ||
"build": "plugboy build", | ||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist", | ||
"eslint": "eslint . --ext ts,tsx,js,vue,html,yaml", | ||
"eslint:fix": "eslint . --ext ts,tsx,js,vue,html,yaml --fix", | ||
"format": "pnpm run eslint:fix", | ||
"lint": "pnpm run eslint", | ||
"stub": "plugboy stub", | ||
"test": "vitest run", | ||
"typecheck": "tsc --noEmit" | ||
} | ||
} | ||
} |
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
10886
7
159
Yes
+ Added@fastkit/helpers@0.12.9(transitive)
- Removed@fastkit/helpers@0.12.8(transitive)
Updated@fastkit/helpers@0.12.9