@ptkdev/logger
Advanced tools
Comparing version 1.7.1 to 1.7.2
@@ -0,7 +1,11 @@ | ||
# v1.7.2 (August 19, 2020) | ||
* Fix: Typescript export module | ||
[![](https://img.shields.io/badge/donate-paypal-005EA6.svg?logo=paypal)](https://www.paypal.me/ptkdev) [![](https://img.shields.io/badge/donate-patreon-F87668.svg?logo=patreon)](https://www.patreon.com/ptkdev) [![](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?logo=github)](https://github.com/sponsors/ptkdev/) [![](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?logo=ko-fi)](https://ko-fi.com/ptkdev) | ||
# v1.7.1 (August 19, 2020) | ||
* Fix: Typescript typization issues (#7) | ||
[![](https://img.shields.io/badge/donate-paypal-005EA6.svg?logo=paypal)](https://www.paypal.me/ptkdev) [![](https://img.shields.io/badge/donate-patreon-F87668.svg?logo=patreon)](https://www.patreon.com/ptkdev) [![](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?logo=github)](https://github.com/sponsors/ptkdev/) [![](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?logo=ko-fi)](https://ko-fi.com/ptkdev) | ||
# v1.7.0 (August 05, 2020) | ||
@@ -8,0 +12,0 @@ * Feature: typescript typization (Thanks: Giovanni Cardamone) |
@@ -30,3 +30,2 @@ /** | ||
let Types = require("./types"); | ||
class Log { | ||
@@ -36,12 +35,12 @@ constructor(options = new Object) { | ||
options.language = "en"; | ||
} else { | ||
Types.INFO.label = languages[options.language]["INFO"]; | ||
Types.WARNING.label = languages[options.language]["WARNING"]; | ||
Types.ERROR.label = languages[options.language]["ERROR"]; | ||
Types.DEBUG.label = languages[options.language]["DEBUG"]; | ||
Types.DOCS.label = languages[options.language]["DOCS"]; | ||
Types.STACKOVERFLOW.label = languages[options.language]["STACKOVERFLOW"]; | ||
Types.SPONSOR.label = languages[options.language]["SPONSOR"]; | ||
} | ||
Types.INFO.label = languages[options.language]["INFO"]; | ||
Types.WARNING.label = languages[options.language]["WARNING"]; | ||
Types.ERROR.label = languages[options.language]["ERROR"]; | ||
Types.DEBUG.label = languages[options.language]["DEBUG"]; | ||
Types.DOCS.label = languages[options.language]["DOCS"]; | ||
Types.STACKOVERFLOW.label = languages[options.language]["STACKOVERFLOW"]; | ||
Types.SPONSOR.label = languages[options.language]["SPONSOR"]; | ||
if (typeof options.palette === "undefined" || options.palette === null) { | ||
@@ -414,2 +413,3 @@ options.palette = null; | ||
module.exports = Log; | ||
module.exports = Log; | ||
module.exports.default = Log; |
@@ -19,3 +19,3 @@ /** | ||
id: "DEBUG", | ||
label: " | DEBUG " | ||
label: " | INFORMATION " | ||
}, | ||
@@ -26,3 +26,3 @@ DOCS: { | ||
id: "DOCS", | ||
label: " | DOCUMENTATION " | ||
label: " | DOCUMENTATION " | ||
}, | ||
@@ -33,3 +33,3 @@ ERROR: { | ||
id: "ERROR", | ||
label: " | ERROR " | ||
label: " | ERROR " | ||
}, | ||
@@ -40,3 +40,3 @@ INFO: { | ||
id: "INFO", | ||
label: " | INFORMATION " | ||
label: " | INFORMATION " | ||
}, | ||
@@ -47,3 +47,3 @@ SPONSOR: { | ||
id: "SPONSOR", | ||
label: " | SPONSOR " | ||
label: " | SPONSOR " | ||
}, | ||
@@ -54,3 +54,3 @@ STACKOVERFLOW: { | ||
id: "STACKOVERFLOW", | ||
label: " | STACKOVERFLOW " | ||
label: " | STACKOVERFLOW " | ||
}, | ||
@@ -61,3 +61,3 @@ TIME: { | ||
id: "TIME", | ||
label: " | TIME " | ||
label: " | TIME " | ||
}, | ||
@@ -68,4 +68,4 @@ WARNING: { | ||
id: "WARNING", | ||
label: " | WARNING " | ||
label: " | WARNING " | ||
} | ||
}; |
{ | ||
"name": "@ptkdev/logger", | ||
"description": "Beautiful Logger for Node.js: the best alternative to the console.log statement", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"main": "modules/logger.js", | ||
@@ -6,0 +6,0 @@ "author": "Patryk Rzucidło [@ptkdev] <support@ptkdev.io> (https://ptk.dev)", |
@@ -5,3 +5,3 @@ [![Beautiful Logger for Node.js: the best alternative to the console.log statement](https://raw.githubusercontent.com/ptkdev/ptkdev-logger/nightly/.github/assets/ptkdev-logger-logo.png)](https://www.npmjs.com/package/@ptkdev/logger) | ||
[![](https://img.shields.io/badge/version-v1.7.1-lightgrey.svg)](https://github.com/ptkdev/ptkdev-logger/releases) [![](https://img.shields.io/npm/v/@ptkdev/logger.svg)](https://www.npmjs.com/package/@ptkdev/logger) [![](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/ptkdev/ptkdev-logger/blob/master/LICENSE.md) [![](https://img.shields.io/badge/ES-9-F7DF1E.svg)](https://wikipedia.org/wiki/ECMAScript) [![](https://snyk.io/test/github/ptkdev/ptkdev-logger/badge.svg)](https://snyk.io/test/github/ptkdev/ptkdev-logger) [![](https://discordapp.com/api/guilds/383373985666301975/embed.png)](http://discord.ptkdev.io) | ||
[![](https://img.shields.io/badge/version-v1.7.2-lightgrey.svg)](https://github.com/ptkdev/ptkdev-logger/releases) [![](https://img.shields.io/npm/v/@ptkdev/logger.svg)](https://www.npmjs.com/package/@ptkdev/logger) [![](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/ptkdev/ptkdev-logger/blob/master/LICENSE.md) [![](https://img.shields.io/badge/ES-9-F7DF1E.svg)](https://wikipedia.org/wiki/ECMAScript) [![](https://snyk.io/test/github/ptkdev/ptkdev-logger/badge.svg)](https://snyk.io/test/github/ptkdev/ptkdev-logger) [![](https://discordapp.com/api/guilds/383373985666301975/embed.png)](http://discord.ptkdev.io) | ||
@@ -8,0 +8,0 @@ > The best alternative to the console.log statement |
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
58148