electron-html-to
Advanced tools
Comparing version 2.6.0 to 2.6.1
@@ -105,3 +105,3 @@ 'use strict'; | ||
// saving logs | ||
saveLogsInStore(global.windowsLogs[windowId], logLevel, logArgs); | ||
saveLogsInStore(global.windowsLogs[windowId], logLevel, logArgs, true); | ||
@@ -294,2 +294,4 @@ parentChannel.emit.apply(parentChannel, ['page-log'].concat(newArgs)); | ||
function saveLogsInStore(store, level, msg) { | ||
var userLevel = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3]; | ||
// eslint-disable-next-line prefer-rest-params | ||
@@ -302,10 +304,16 @@ var args = sliced(arguments); | ||
return _saveLogs(store, level, msg); | ||
return _saveLogs(store, level, msg, userLevel); | ||
function _saveLogs(_store, _level, _msg) { | ||
_store.push({ | ||
function _saveLogs(_store, _level, _msg, _userLevel) { | ||
var meta = { | ||
level: _level, | ||
message: trimMessage(_msg), | ||
timestamp: new Date().getTime() | ||
}); | ||
}; | ||
if (_userLevel) { | ||
meta.userLevel = true; | ||
} | ||
_store.push(meta); | ||
} | ||
@@ -312,0 +320,0 @@ } |
@@ -110,3 +110,3 @@ 'use strict'; | ||
// saving logs | ||
saveLogsInStore(global.windowsLogs[windowId], logLevel, logArgs); | ||
saveLogsInStore(global.windowsLogs[windowId], logLevel, logArgs, true); | ||
@@ -301,2 +301,4 @@ parentChannel.emit.apply(parentChannel, ['page-log'].concat(newArgs)); | ||
function saveLogsInStore(store, level, msg) { | ||
var userLevel = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3]; | ||
// eslint-disable-next-line prefer-rest-params | ||
@@ -309,10 +311,16 @@ var args = sliced(arguments); | ||
return _saveLogs(store, level, msg); | ||
return _saveLogs(store, level, msg, userLevel); | ||
function _saveLogs(_store, _level, _msg) { | ||
_store.push({ | ||
function _saveLogs(_store, _level, _msg, _userLevel) { | ||
var meta = { | ||
level: _level, | ||
message: trimMessage(_msg), | ||
timestamp: new Date().getTime() | ||
}); | ||
}; | ||
if (_userLevel) { | ||
meta.userLevel = true; | ||
} | ||
_store.push(meta); | ||
} | ||
@@ -319,0 +327,0 @@ } |
@@ -124,3 +124,3 @@ 'use strict'; | ||
// saving logs | ||
saveLogsInStore(windowLogs, logLevel, logArgs); | ||
saveLogsInStore(windowLogs, logLevel, logArgs, true); | ||
@@ -233,2 +233,4 @@ parentChannel.emit.apply(parentChannel, ['page-log'].concat(newArgs)); | ||
function saveLogsInStore(store, level, msg) { | ||
var userLevel = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3]; | ||
// eslint-disable-next-line prefer-rest-params | ||
@@ -241,10 +243,16 @@ var args = sliced(arguments); | ||
return _saveLogs(store, level, msg); | ||
return _saveLogs(store, level, msg, userLevel); | ||
function _saveLogs(_store, _level, _msg) { | ||
_store.push({ | ||
function _saveLogs(_store, _level, _msg, _userLevel) { | ||
var meta = { | ||
level: _level, | ||
message: trimMessage(_msg), | ||
timestamp: new Date().getTime() | ||
}); | ||
}; | ||
if (_userLevel) { | ||
meta.userLevel = true; | ||
} | ||
_store.push(meta); | ||
} | ||
@@ -251,0 +259,0 @@ } |
{ | ||
"name": "electron-html-to", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "Convert html to html/image using electron", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
82645
1641
30