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.3 to 4.3.4

4

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

@@ -44,3 +44,3 @@ "main": "src/index.js",

"eslint-plugin-import": "^2.22.1",
"humile": "^0.2.20",
"humile": "^0.3.2",
"nw": "0.42.3",

@@ -47,0 +47,0 @@ "typescript": "^4.0.5",

@@ -123,7 +123,14 @@ 'use strict';

function isDev() {
// based on sindresorhus/electron-is-dev
var app = getApp();
if (!app) return false;
return !app.isPackaged || process.env.ELECTRON_IS_DEV === '1';
if (app && app.isPackaged !== undefined) {
return app.isPackaged;
}
if (typeof process.execPath === 'string') {
return process.execPath.toLowerCase().endsWith('electron');
}
return process.env.NODE_ENV === 'development'
|| process.env.ELECTRON_IS_DEV === '1';
}

@@ -130,0 +137,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