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 2.3.3 to 2.4.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [2.4.0](https://github.com/Alwatr/alwatr-es-sdk/compare/@alwatr/logger@2.3.3...@alwatr/logger@2.4.0) (2023-12-19)
### Bug Fixes
* **logger:** duplicate package definition and throw error ([640ce6a](https://github.com/Alwatr/alwatr-es-sdk/commit/640ce6acff999205569d978e8c32c458834d85ed)) by @AliMD
* **logger:** styleScope.replace in createLogger function ([d209a9b](https://github.com/Alwatr/alwatr-es-sdk/commit/d209a9ba770a4e939726e80731c08a4bc00c6202)) by @AliMD
### Features
* use globalScope instead globalThis ([94342bb](https://github.com/Alwatr/alwatr-es-sdk/commit/94342bb7b467376173a65d8cdf6bb106338f425b)) by @njfamirm
## [2.3.3](https://github.com/Alwatr/alwatr-es-sdk/compare/@alwatr/logger@2.3.2...@alwatr/logger@2.3.3) (2023-12-11)

@@ -8,0 +19,0 @@

5

define-package.js

@@ -8,2 +8,3 @@ import './global.js';

logger.accident?.('define-package', 'duplicate_old_package_defined', Alwatr.registeredList);
throw new Error('duplicate_old_package_defined');
}

@@ -14,3 +15,3 @@ }, 2000);

if (packageName in Alwatr.packages) {
logger.error('define-package', 'duplicate_package_defined', {
logger.accident('define-package', 'duplicate_package_defined', {
packageName,

@@ -23,3 +24,3 @@ new: version,

if (packageName.indexOf('@alwatr') === -1) {
logger.error('define-package', 'package_name_starts_with_alwatr_scope', {
logger.accident('define-package', 'package_name_starts_with_alwatr_scope', {
packageName,

@@ -26,0 +27,0 @@ });

2

logger.js

@@ -61,3 +61,3 @@ import { DEV_MODE, NODE_MODE } from './global.js';

const color = _getNextColor();
const styleScope = _style.scope.replaceAll('{{color}}', color);
const styleScope = _style.scope.replace('{{color}}', color);
domain = _sanitizeDomain(domain);

@@ -64,0 +64,0 @@ /**

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

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

"devDependencies": {
"@types/node": "^20.10.4"
"@types/node": "^20.10.5"
},
"gitHead": "1f1dfe322510fb2057ba243156b48ccd247be88b"
"gitHead": "4ed3a3f1528a1e3742990083b60fa55f35850f9e"
}

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