Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alwatr/logger

Package Overview
Dependencies
Maintainers
2
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alwatr/logger - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

dist/define-package.d.ts

10

CHANGELOG.md

@@ -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 @@

19

dist/main.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc