Comparing version 3.0.13 to 3.0.14
{ | ||
"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)}`); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
43839