electron-log
Advanced tools
Comparing version 1.0.19 to 1.1.0
10
index.js
@@ -180,3 +180,3 @@ 'use strict'; | ||
dir = prepareDir(process.env['APPDATA'], appName) | ||
.or(process.env['HOME'], 'AppData', appName) | ||
.or(process.env['USERPROFILE'], 'AppData', 'Roaming', appName) | ||
.result; | ||
@@ -257,4 +257,10 @@ break; | ||
find(process.cwd()); | ||
return packageFile ? require(packageFile) : null; | ||
if (packageFile) { | ||
var content = fs.readFileSync(packageFile, 'utf-8'); | ||
return JSON.parse(content); | ||
} else { | ||
return null; | ||
} | ||
function find(root) { | ||
@@ -261,0 +267,0 @@ var file; |
{ | ||
"name": "electron-log", | ||
"version": "1.0.19", | ||
"version": "1.1.0", | ||
"description": "Just a very simple logging module for your Electron application", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,3 +15,3 @@ # electron-log | ||
* **on OS X:** `~/Library/Logs/<app name>/log.log` | ||
* **on Windows:** `$HOME/AppData/Roaming/<app name>/log.log` | ||
* **on Windows:** `%USERPROFILE%/AppData/Roaming/<app name>/log.log` | ||
@@ -35,4 +35,4 @@ ## Installation | ||
Transport is a simple function which requires an object which describes a message. | ||
By default, two transports is active: console and file. The file path is | ||
depend on current platform. | ||
By default, two transports are active: console and file. The file path is | ||
dependent on current platform. | ||
@@ -109,2 +109,2 @@ #### Disable default transport: | ||
Licensed under MIT. | ||
Licensed under MIT. |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
13044
288
108
9