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

fable-log

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fable-log - npm Package Compare versions

Comparing version 3.0.13 to 3.0.14

2

package.json
{
"name": "fable-log",
"version": "3.0.13",
"version": "3.0.14",
"description": "A simple logging wrapper.",

@@ -5,0 +5,0 @@ "main": "source/Fable-Log.js",

@@ -8,3 +8,3 @@ /**

if ((typeof(window) === 'object') && !window.hasOwnProperty('FableLog'))
if ((typeof(window) === 'object') && !('FableLog' in window))
{

@@ -11,0 +11,0 @@ window.FableLog = libNPMModuleWrapper;

@@ -9,12 +9,12 @@ let libBaseLogger = require('./Fable-Log-BaseLogger.js');

this._ShowTimeStamps = this._Settings.hasOwnProperty('showtimestamps') ? (this._Settings.showtimestamps == true) : true;
this._FormattedTimeStamps = this._Settings.hasOwnProperty('formattedtimestamps') ? (this._Settings.formattedtimestamps == true) : true;
this._ShowTimeStamps = ('showtimestamps' in this._Settings) ? (this._Settings.showtimestamps == true) : true;
this._FormattedTimeStamps = ('formattedtimestamps' in this._Settings) ? (this._Settings.formattedtimestamps == true) : true;
this._ContextMessage = this._Settings.hasOwnProperty('Context') ? `(${this._Settings.Context})` :
pFableLog._Settings.hasOwnProperty('Product') ? `(${pFableLog._Settings.Product})` :
this._ContextMessage = ('Context' in this._Settings) ? `(${this._Settings.Context})` :
('Product' in pFableLog._Settings) ? `(${pFableLog._Settings.Product})` :
'Unnamed_Log_Context';
// Allow the user to decide what gets output to the console
this._OutputLogLinesToConsole = this._Settings.hasOwnProperty('outputloglinestoconsole') ? this._Settings.outputloglinestoconsole : true;
this._OutputObjectsToConsole = this._Settings.hasOwnProperty('outputobjectstoconsole') ? this._Settings.outputobjectstoconsole : true;
this._OutputLogLinesToConsole = ('outputloglinestoconsole' in this._Settings) ? this._Settings.outputloglinestoconsole : true;
this._OutputObjectsToConsole = ('outputobjectstoconsole' in this._Settings) ? this._Settings.outputobjectstoconsole : true;

@@ -21,0 +21,0 @@ // Precompute the prefix for each level

@@ -20,3 +20,3 @@ /**

this._StreamDefinitions = (tmpSettings.hasOwnProperty('LogStreams')) ? tmpSettings.LogStreams : require('./Fable-Log-DefaultStreams.json');
this._StreamDefinitions = (('LogStreams' in tmpSettings)) ? tmpSettings.LogStreams : require('./Fable-Log-DefaultStreams.json');

@@ -47,3 +47,3 @@ this.logStreams = [];

// Bail out if we've already created one.
if (this.activeLogStreams.hasOwnProperty(pLogger.loggerUUID))
if (pLogger.loggerUUID in this.activeLogStreams)
{

@@ -151,3 +151,3 @@ return false;

if (!this._Providers.hasOwnProperty(tmpStreamDefinition.loggertype))
if (!(tmpStreamDefinition.loggertype in this._Providers))
{

@@ -154,0 +154,0 @@ console.log(`Error initializing log stream: bad loggertype in stream definition ${JSON.stringify(tmpStreamDefinition)}`);

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