@alwatr/logger
Advanced tools
Comparing version 1.1.5 to 1.2.0
@@ -6,2 +6,8 @@ # Change Log | ||
# [1.2.0](https://github.com/AliMD/alwatr-eslib/compare/@alwatr/logger@1.1.5...@alwatr/logger@1.2.0) (2023-10-23) | ||
### Features | ||
* **logger:** banner method ([3e3af6d](https://github.com/AliMD/alwatr-eslib/commit/3e3af6d71ccecaaf14ca9d63a8a14c7239afe697)) by @ | ||
## [1.1.5](https://github.com/AliMD/alwatr-eslib/compare/@alwatr/logger@1.1.4...@alwatr/logger@1.1.5) (2023-09-19) | ||
@@ -11,3 +17,3 @@ | ||
* package repo urls ([466cbe9](https://github.com/AliMD/alwatr-eslib/commit/466cbe9188f24e1a1bc36d879a95b52538a58f16)) by @AliMD | ||
- package repo urls ([466cbe9](https://github.com/AliMD/alwatr-eslib/commit/466cbe9188f24e1a1bc36d879a95b52538a58f16)) by @AliMD | ||
@@ -14,0 +20,0 @@ ## [1.1.4](https://github.com/AliMD/alwatr-eslib/compare/@alwatr/logger@1.1.3...@alwatr/logger@1.1.4) (2023-09-19) |
@@ -78,2 +78,5 @@ import { globalAlwatr } from './global-alwatr.js'; | ||
domain, | ||
banner: NODE_MODE | ||
? console.log.bind(console, `\x1b[1;37;45m\n\n %s${_style.reset}`) | ||
: console.log.bind(console, '%c%s', 'font-size: 2rem; background-color: #5858e8; color: #fff; padding: 1rem 4rem; border-radius: 0.5rem;'), | ||
accident: NODE_MODE | ||
@@ -80,0 +83,0 @@ ? console.warn.bind(console, `${styleScope}⚠️\n%s\x1b[33m.%s() Accident \`%s\` %s!${_style.reset}`, domain) |
{ | ||
"name": "@alwatr/logger", | ||
"version": "1.1.5", | ||
"version": "1.2.0", | ||
"description": "Fancy colorful console debugger with custom scope written in tiny TypeScript, ES module.", | ||
@@ -38,3 +38,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "f223974f90666c18eab94dfefcc6b01d7c9e8f63" | ||
"gitHead": "26313bbc24641dcfdaa3a0f94159218e634f390d" | ||
} |
@@ -134,3 +134,13 @@ export interface AlwatrLogger { | ||
timeEnd?(label: string): void; | ||
/** | ||
* log big banner | ||
* | ||
* Example: | ||
* | ||
* ```ts | ||
* logger.banner('Alwatr PWA v2'); | ||
* ``` | ||
*/ | ||
banner?(message: string): void; | ||
} | ||
//# sourceMappingURL=type.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
40141
287