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

electron-html-to

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-html-to - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1

18

lib/scripts/ipcScript.js

@@ -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",

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