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

@alwatr/logger

Package Overview
Dependencies
Maintainers
1
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 1.0.1 to 1.1.0

61

CHANGELOG.md

@@ -6,6 +6,63 @@ # Change Log

## [1.0.1](https://github.com/AliMD/alwatr/compare/v1.0.0...v1.0.1) (2023-06-21)
# 1.1.0 (2023-09-11)
**Note:** Version bump only for package @alwatr/logger
### Features
- **logger:** add logModule ([2e37bef](https://github.com/AliMD/alwatr/commit/2e37befd5f66094c5a521424e2a9d60796384f88))
# 1.0.0 (2023-06-14)
# 0.32.0 (2023-05-27)
# 0.31.0 (2023-05-08)
### Bug Fixes
- **logger:** logMethod args type ([66338b7](https://github.com/AliMD/alwatr/commit/66338b7ba1d4b15af78f9f604f7be0a7e483413d))
- **logger:** logMethod args type ([1983b3d](https://github.com/AliMD/alwatr/commit/1983b3d2fe260226ca2660e33b9bd924facdf776))
- new logger api ([9d83a7d](https://github.com/AliMD/alwatr/commit/9d83a7dc5c103bc3bb4282dacfd85fa998915300))
### Features
- **logger:** add `duration time` to logger time label ([ef188c4](https://github.com/AliMD/alwatr/commit/ef188c41a02789e1b35ab424bab24a393a03a3b0))
- **logger:** add `time` & `timeEnd` ([0bd4ec5](https://github.com/AliMD/alwatr/commit/0bd4ec5dbd185b17cfb8656a84a782e848ade138))
- **logger:** optional devMode per package ([cc1eb87](https://github.com/AliMD/alwatr/commit/cc1eb879832807d55ad4cf268a54b2d5e4346fff))
# 0.30.0 (2023-03-06)
### Features
- **logger:** export isBrowser ([5b5be8b](https://github.com/AliMD/alwatr/commit/5b5be8b2312ca67f186d1614506423f1fdb90877))
# 0.29.0 (2023-02-10)
# 0.28.0 (2023-01-20)
### Bug Fixes
- **logger:** _ALWATR_VERSION_ ([9cf8f20](https://github.com/AliMD/alwatr/commit/9cf8f208e8adbfa2e2c622a8465453d5554cbd37))
# 0.27.0 (2022-12-29)
### Bug Fixes
- **logger:** version ([2295fee](https://github.com/AliMD/alwatr/commit/2295fee74e8eebd9db399129de31f2b0d6d6b168))
### Features
- **type:** define alwatrRegistredList ([25406c2](https://github.com/AliMD/alwatr/commit/25406c268f39cf3e055ea05c9fc7b50bd3dd0a17))
# 0.26.0 (2022-12-22)
### Bug Fixes
- set correct path ([d01ce6f](https://github.com/AliMD/alwatr/commit/d01ce6ffa749a5e3e0e11e35b4ed61d75d61fec9))
- tsconfig ([e96dcd3](https://github.com/AliMD/alwatr/commit/e96dcd30774a9f06f7d051e0504192cbbe019e35))
### Features
- improve error debugging ([1fba504](https://github.com/AliMD/alwatr/commit/1fba50400a1e8ececc10bbe8ea11cc8dcea2289c))
- **logger:** add root version ([2ac01c1](https://github.com/AliMD/alwatr/commit/2ac01c1d12323a6c8591b3dd4826d08a55647dc1))
- **logger:** move incident to deployment mode ([4ee8dac](https://github.com/AliMD/alwatr/commit/4ee8dac5c54ce8a897382d3d4fb5bb852d24cf24))
# [1.0.0](https://github.com/AliMD/alwatr/compare/v0.32.0...v1.0.0) (2023-06-14)

@@ -12,0 +69,0 @@

4

logger.js

@@ -1,2 +0,1 @@

var _a;
import { globalAlwatr } from './global-alwatr.js';

@@ -11,3 +10,3 @@ export { globalAlwatr };

? process.env.ALWATR_DEBUG === '1'
: ((_a = globalThis.localStorage) === null || _a === void 0 ? void 0 : _a.getItem('ALWATR_DEBUG')) === '1';
: globalThis.localStorage?.getItem('ALWATR_DEBUG') === '1';
/**

@@ -95,2 +94,3 @@ * Color list storage for logger.

logMethod: console.debug.bind(console, _keySection + '.%s();', styleScope, domain, _style.reset),
logModule: console.debug.bind(console, _keySection + '/%s.js;', styleScope, domain, _style.reset),
logMethodArgs: console.debug.bind(console, _keySection + '.%s(%o);', styleScope, domain, _style.reset),

@@ -97,0 +97,0 @@ logMethodFull: console.debug.bind(console, _keySection + '.%s(%o) => %o', styleScope, domain, _style.reset),

{
"name": "@alwatr/logger",
"version": "1.0.1",
"version": "1.1.0",
"description": "Fancy colorful console debugger with custom scope written in tiny TypeScript, ES module.",

@@ -35,6 +35,6 @@ "keywords": [

"dependencies": {
"@alwatr/type": "^1.0.1",
"tslib": "^2.5.3"
"@alwatr/type": "^1.1.0",
"tslib": "^2.6.2"
},
"gitHead": "10b9734389e27538ba4fa4ac7871ec0354ca9285"
"gitHead": "953ace94f564a606b60762433bd14dbde0912698"
}

@@ -21,2 +21,12 @@ export interface AlwatrLogger {

/**
* `console.debug` module name.
*
* Example:
*
* ```ts
* logger.logModule?.('app');
* ```
*/
logModule?(name: string): void;
/**
* `console.debug` function or method calls.

@@ -23,0 +33,0 @@ *

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