Comparing version 4.2.0 to 4.2.1
{ | ||
"name": "envinfo", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "Info about your dev environment for debugging purposes", | ||
@@ -16,2 +16,3 @@ "repository": "https://github.com/tabrindle/envinfo", | ||
"scripts": { | ||
"start": "node src/cli.js", | ||
"lint": "eslint src", | ||
@@ -18,0 +19,0 @@ "format": "prettier --write 'src/**/*.js'", |
@@ -210,4 +210,7 @@ <p align="center"> | ||
* [Solidarity](https://github.com/infinitered/solidarity) (`solidarity report`) | ||
* [styled-components](https://github.com/styled-components/styled-components) ((ISSUE_TEMPLATE.md)) | ||
envinfo is used in the ISSUE_TEMPLATE of: | ||
* [styled-components](https://github.com/styled-components/styled-components) | ||
* [Jest](https://github.com/facebook/jest) | ||
## Contributing | ||
@@ -214,0 +217,0 @@ |
@@ -6,3 +6,4 @@ const yamlify = require('yamlify-object'); | ||
return Object.keys(data).reduce((acc, prop) => { | ||
if (data[prop] === 'N/A' || Object.keys(data[prop]).length === 0) return acc; | ||
if (data[prop] === 'N/A' || data[prop] === undefined || Object.keys(data[prop]).length === 0) | ||
return acc; | ||
if (utils.isObject(data[prop])) { | ||
@@ -9,0 +10,0 @@ return Object.assign(acc, { [prop]: clean(data[prop]) }); |
@@ -183,14 +183,17 @@ const glob = require('glob'); | ||
npmGlobalPackages = JSON.parse(npmGlobalPackages); | ||
npmGlobalPackages = Object.entries(npmGlobalPackages.dependencies).reduce((acc, dep) => { | ||
const name = dep[0]; | ||
const info = dep[1]; | ||
if (!Array.isArray(packages) || packages.some(p => p.toLowerCase() === name.toLowerCase())) | ||
return Object.assign(acc, { | ||
[name]: info.version, | ||
}); | ||
return acc; | ||
}, {}); | ||
} catch (error) { | ||
npmGlobalPackages = 'Not Found'; | ||
if (error.stdout) npmGlobalPackages = JSON.parse(error.stdout.toString()); | ||
if (!npmGlobalPackages) return 'Not Found'; | ||
} | ||
npmGlobalPackages = Object.entries(npmGlobalPackages.dependencies).reduce((acc, dep) => { | ||
const name = dep[0]; | ||
const info = dep[1]; | ||
if (!Array.isArray(packages) || packages.some(p => p.toLowerCase() === name.toLowerCase())) | ||
return Object.assign(acc, { | ||
[name]: info.version, | ||
}); | ||
return acc; | ||
}, {}); | ||
return npmGlobalPackages; | ||
@@ -197,0 +200,0 @@ } |
@@ -7,2 +7,16 @@ module.exports = { | ||
}, | ||
'react-native': { | ||
System: ['OS', 'CPU'], | ||
Binaries: ['Node', 'Yarn', 'npm', 'Watchman'], | ||
SDKs: ['iOS', 'Android'], | ||
IDEs: ['Android Studio', 'Xcode'], | ||
npmPackages: ['react', 'react-native'], | ||
npmGlobalPackages: ['react-native-cli'], | ||
}, | ||
webpack: { | ||
System: ['OS', 'CPU'], | ||
Binaries: ['Node', 'Yarn', 'npm'], | ||
npmPackages: ['webpack', 'webpack-cli'], | ||
npmGlobalPackages: ['webpack', 'webpack-cli'], | ||
}, | ||
}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
415282
987
220