Socket
Socket
Sign inDemoInstall

electron-log

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-log - npm Package Compare versions

Comparing version 4.3.5 to 4.4.0

src/__specs__/catchErrors.spec.js

2

package.json
{
"name": "electron-log",
"version": "4.3.5",
"version": "4.4.0",
"description": "Just a very simple logging module for your Electron application",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -96,2 +96,5 @@ # electron-log

If you don't use electron-log in the main process but want to show renderer
logs in the console, add `require('electron-log')` somewhere in the main code.
##### Options

@@ -98,0 +101,0 @@

@@ -82,10 +82,2 @@ 'use strict';

function getRemote() {
if (electron && electron.remote) {
return electron.remote;
}
return null;
}
function getVersion() {

@@ -127,3 +119,3 @@ var app = getApp();

if (app && app.isPackaged !== undefined) {
return app.isPackaged;
return !app.isPackaged;
}

@@ -169,7 +161,4 @@

} else if (process.type === 'renderer') {
try {
getRemote().require(moduleName);
} catch (e) {
// Can't be required. Webpack?
}
// Previously, it was electron.remote.require(moduleName)
// but now the remote module is deprecated
}

@@ -176,0 +165,0 @@ }

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