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

rfx-logger

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rfx-logger - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

15

bundles/rfx-logger.umd.js

@@ -425,3 +425,4 @@ (function (global, factory) {

RfxLoggerService.prototype.success = function (message, data) {
if (!this.configuration.disableLogger) {
var _a;
if (!((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.disableLogger)) {
var logStyle = this.getMessageStyle(LogTypeEnum.SUCCESS);

@@ -435,3 +436,4 @@ var httpCode = this.getHttpCode(data);

RfxLoggerService.prototype.warning = function (message, data) {
if (!this.configuration.disableLogger) {
var _a;
if (!((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.disableLogger)) {
var logStyle = this.getMessageStyle(LogTypeEnum.WARNING);

@@ -445,3 +447,4 @@ var httpCode = this.getHttpCode(data);

RfxLoggerService.prototype.error = function (message, data) {
if (!this.configuration.disableLogger) {
var _a;
if (!((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.disableLogger)) {
var logStyle = this.getMessageStyle(LogTypeEnum.ERROR);

@@ -455,3 +458,4 @@ var httpCode = this.getHttpCode(data);

RfxLoggerService.prototype.trace = function (message, data) {
if (!this.configuration.disableLogger) {
var _a;
if (!((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.disableLogger)) {
var logStyle = this.getMessageStyle(LogTypeEnum.TRACE);

@@ -487,3 +491,4 @@ var httpCode = this.getHttpCode(data);

RfxLoggerService.prototype.consoleMessage = function (formattedMessage, data) {
if (this.configuration.disableVerbose || data === undefined) {
var _a;
if (((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.disableVerbose) || data === undefined) {
console.log.apply(console, __spreadArray([], __read(formattedMessage)));

@@ -490,0 +495,0 @@ }

@@ -12,3 +12,4 @@ import { Injectable, Optional } from '@angular/core';

success(message, data) {
if (!this.configuration.disableLogger) {
var _a;
if (!((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.disableLogger)) {
const logStyle = this.getMessageStyle(LogTypeEnum.SUCCESS);

@@ -22,3 +23,4 @@ const httpCode = this.getHttpCode(data);

warning(message, data) {
if (!this.configuration.disableLogger) {
var _a;
if (!((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.disableLogger)) {
const logStyle = this.getMessageStyle(LogTypeEnum.WARNING);

@@ -32,3 +34,4 @@ const httpCode = this.getHttpCode(data);

error(message, data) {
if (!this.configuration.disableLogger) {
var _a;
if (!((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.disableLogger)) {
const logStyle = this.getMessageStyle(LogTypeEnum.ERROR);

@@ -42,3 +45,4 @@ const httpCode = this.getHttpCode(data);

trace(message, data) {
if (!this.configuration.disableLogger) {
var _a;
if (!((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.disableLogger)) {
const logStyle = this.getMessageStyle(LogTypeEnum.TRACE);

@@ -74,3 +78,4 @@ const httpCode = this.getHttpCode(data);

consoleMessage(formattedMessage, data) {
if (this.configuration.disableVerbose || data === undefined) {
var _a;
if (((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.disableVerbose) || data === undefined) {
console.log(...formattedMessage);

@@ -94,2 +99,2 @@ }

];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmZ4LWxvZ2dlci5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvcmZ4LWxvZ2dlci9zcmMvbGliL3JmeC1sb2dnZXIuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNyRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsWUFBWSxFQUFFLE1BQU0s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IHJldHVybiBbXHJcbiAgICAgIGAlYyAke21lc3NhZ2VUYWd9ICVjICR7dGhpcy5nZXRDdXJyZW50RGF0ZSgpfSAtICVjJHttZXNzYWdlfWAsXHJcbiAgICAgIG1lc3NhZ2VTdHlsZS50YWdTdHlsZSxcclxuICAgICAgbWVzc2FnZVN0eWxlLnRpbWVTdHlsZSxcclxuICAgICAgbWVzc2FnZVN0eWxlLnRleHRTdHlsZVxyXG4gICAgXTtcclxuICB9XHJcblxyXG4gIHByaXZhdGUgY29uc29sZU1lc3NhZ2UoZm9ybWF0dGVkTWVzc2FnZTogc3RyaW5nW10sIGRhdGE6IGFueSk6IHZvaWQge1xyXG4gICAgaWYgKHRoaXMuY29uZmlndXJhdGlvbj8uZGlzYWJsZVZlcmJvc2UgfHwgZGF0YSA9PT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgIGNvbnNvbGUubG9nKC4uLmZvcm1hdHRlZE1lc3NhZ2UpO1xyXG4gICAgfSBlbHNlIHtcclxuICAgICAgY29uc29sZS5ncm91cENvbGxhcHNlZCguLi5mb3JtYXR0ZWRNZXNzYWdlKTtcclxuICAgICAgY29uc29sZS5sb2coZGF0YSk7XHJcbiAgICAgIGNvbnNvbGUuZ3JvdXBFbmQoKTtcclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19

@@ -79,3 +79,4 @@ import * as i0 from '@angular/core';

success(message, data) {
if (!this.configuration.disableLogger) {
var _a;
if (!((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.disableLogger)) {
const logStyle = this.getMessageStyle(LogTypeEnum.SUCCESS);

@@ -89,3 +90,4 @@ const httpCode = this.getHttpCode(data);

warning(message, data) {
if (!this.configuration.disableLogger) {
var _a;
if (!((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.disableLogger)) {
const logStyle = this.getMessageStyle(LogTypeEnum.WARNING);

@@ -99,3 +101,4 @@ const httpCode = this.getHttpCode(data);

error(message, data) {
if (!this.configuration.disableLogger) {
var _a;
if (!((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.disableLogger)) {
const logStyle = this.getMessageStyle(LogTypeEnum.ERROR);

@@ -109,3 +112,4 @@ const httpCode = this.getHttpCode(data);

trace(message, data) {
if (!this.configuration.disableLogger) {
var _a;
if (!((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.disableLogger)) {
const logStyle = this.getMessageStyle(LogTypeEnum.TRACE);

@@ -141,3 +145,4 @@ const httpCode = this.getHttpCode(data);

consoleMessage(formattedMessage, data) {
if (this.configuration.disableVerbose || data === undefined) {
var _a;
if (((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.disableVerbose) || data === undefined) {
console.log(...formattedMessage);

@@ -144,0 +149,0 @@ }

{
"name": "rfx-logger",
"version": "4.2.0",
"version": "4.2.1",
"description": "RfxLogger - upgrade your browser console messages",

@@ -5,0 +5,0 @@ "author": {

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