@alwatr/logger
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -6,2 +6,12 @@ # Change Log | ||
# [3.1.0](https://github.com/Alwatr/nanolib/compare/@alwatr/logger@3.0.1...@alwatr/logger@3.1.0) (2024-01-06) | ||
### Features | ||
* **logger:** definePackage ([dfd090e](https://github.com/Alwatr/nanolib/commit/dfd090ebd691c9a589370094d49f950524f71369)) by @AliMD | ||
## [3.0.1](https://github.com/Alwatr/nanolib/compare/@alwatr/logger@3.0.0...@alwatr/logger@3.0.1) (2024-01-03) | ||
**Note:** Version bump only for package @alwatr/logger | ||
# 3.0.0 (2024-01-03) | ||
@@ -8,0 +18,0 @@ |
@@ -1,17 +0,4 @@ | ||
import type { AlwatrLogger } from './type.js'; | ||
export declare const debugMode: boolean; | ||
/** | ||
* Create a logger function for fancy console debug with custom scope. | ||
* | ||
* - **color** is optional and automatically select from internal fancy color list. | ||
* - **debug** is optional and automatically detect from localStorage `ALWATR_DEBUG` item or `process.env.ALWATR_DEBUG` | ||
* | ||
* Example: | ||
* | ||
* ```ts | ||
* import {createLogger} from 'https://esm.run/@alwatr/logger'; | ||
* const logger = createLogger('logger/demo'); | ||
* ``` | ||
*/ | ||
export declare const createLogger: (domain: string, debugMode_?: boolean) => AlwatrLogger; | ||
export * from './logger'; | ||
export * from './define-package'; | ||
export * from './type'; | ||
//# sourceMappingURL=main.d.ts.map |
@@ -0,3 +1,11 @@ | ||
/** | ||
* Represents the AlwatrLogger interface. | ||
* The AlwatrLogger provides methods for logging various types of information. | ||
*/ | ||
export interface AlwatrLogger { | ||
/** | ||
* Debug state for current scope base on localStorage `ALWATR_LOG` pattern. | ||
*/ | ||
debugMode: boolean; | ||
/** | ||
* `console.debug` property change. | ||
@@ -4,0 +12,0 @@ * |
{ | ||
"name": "@alwatr/logger", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Fancy colorful console debugger with custom scope written in tiny TypeScript, ES module.", | ||
@@ -69,3 +69,3 @@ "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>", | ||
"dependencies": { | ||
"@alwatr/dedupe": "^0.1.0", | ||
"@alwatr/dedupe": "^1.0.0", | ||
"@alwatr/platform-info": "^1.1.0" | ||
@@ -80,3 +80,3 @@ }, | ||
}, | ||
"gitHead": "f33492f47adda814385e51f38be86eeef9629e62" | ||
"gitHead": "b7ed169733e8a1e50973a1cff5a64d4a5e0515ae" | ||
} |
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
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
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
33274
16
206
0
+ Added@alwatr/dedupe@1.1.8(transitive)
+ Added@alwatr/global-this@1.0.3(transitive)
+ Added@alwatr/polyfill-has-own@1.1.8(transitive)
Updated@alwatr/dedupe@^1.0.0