electron-log
Advanced tools
Comparing version 4.4.6 to 4.4.7
{ | ||
"name": "electron-log", | ||
"version": "4.4.6", | ||
"version": "4.4.7", | ||
"description": "Just a very simple logging module for your Electron application", | ||
@@ -19,4 +19,4 @@ "main": "src/index.js", | ||
"files": [ | ||
"src/*", | ||
"!__specs__" | ||
"!**/__specs__", | ||
"src/*" | ||
], | ||
@@ -23,0 +23,0 @@ "keywords": [ |
@@ -7,2 +7,3 @@ 'use strict'; | ||
var path = require('path'); | ||
var url = require('url'); | ||
var util = require('util'); | ||
@@ -306,3 +307,4 @@ | ||
function mkDir(dirPath) { | ||
if (checkNodeJsVersion(10.12)) { | ||
var isNode1012 = Boolean(url.fileURLToPath); | ||
if (isNode1012) { | ||
fs.mkdirSync(dirPath, { recursive: true }); | ||
@@ -334,14 +336,2 @@ return true; | ||
function checkNodeJsVersion(version) { | ||
if (!process.versions) { | ||
return false; | ||
} | ||
var nodeVersion = Number( | ||
process.version.match(/^v(\d+\.\d+)/)[1].replace(/\.(\d)$/, '.0$1') | ||
); | ||
return nodeVersion >= version; | ||
} | ||
function readFileSyncFromEnd(filePath, bytesCount) { | ||
@@ -348,0 +338,0 @@ var buffer = Buffer.alloc(bytesCount); |
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
103182
3110