Comparing version 1.0.0 to 1.0.1
'use strict'; | ||
const fs = require('fs'); | ||
const { execSync } = require('child_process'); | ||
@@ -10,3 +10,6 @@ const isMinGW = () => { | ||
try { | ||
return fs.readFileSync('/proc/version', 'utf8').toLowerCase.includes('mingw'); | ||
// Reference: | ||
// http://man7.org/linux/man-pages/man1/uname.1.html | ||
// https://en.wikipedia.org/wiki/Uname | ||
return execSync('uname', {encoding: 'utf-8'}).toLowerCase().includes('mingw'); | ||
} catch (err) { | ||
@@ -13,0 +16,0 @@ return false; |
{ | ||
"name": "is-mingw", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Check if the process is running inside MinGW", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
2285
16
1
1