Comparing version 4.0.0-beta.7 to 4.0.0-beta.8
{ | ||
"name": "envinfo", | ||
"version": "4.0.0-beta.7", | ||
"version": "4.0.0-beta.8", | ||
"description": "Info about your dev environment for debugging purposes", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/tabrindle/envinfo", |
103
README.md
@@ -64,41 +64,3 @@ # envinfo | ||
installed: 4.16.0 | ||
eslint-config-airbnb-base: | ||
wanted: ^12.1.0 | ||
installed: 12.1.0 | ||
eslint-config-prettier: | ||
wanted: ^2.7.0 | ||
installed: 2.9.0 | ||
eslint-plugin-import: | ||
wanted: ^2.8.0 | ||
installed: 2.8.0 | ||
eslint-plugin-prettier: | ||
wanted: ^2.3.1 | ||
installed: 2.5.0 | ||
prettier-eslint-cli: | ||
wanted: ^4.1.1 | ||
installed: 4.7.0 | ||
array-includes: | ||
wanted: ^3.0.3 | ||
installed: 3.0.3 | ||
clipboardy: | ||
wanted: ^1.2.2 | ||
installed: 1.2.2 | ||
glob: | ||
wanted: ^7.1.2 | ||
installed: 7.1.2 | ||
minimist: | ||
wanted: ^1.2.0 | ||
installed: 1.2.0 | ||
object.entries: | ||
wanted: ^1.0.4 | ||
installed: 1.0.4 | ||
object.values: | ||
wanted: ^1.0.4 | ||
installed: 1.0.4 | ||
os-name: | ||
wanted: ^2.0.1 | ||
installed: 2.0.1 | ||
which: | ||
wanted: ^1.2.14 | ||
installed: 1.3.0 | ||
... | ||
yamlify-object: | ||
@@ -109,4 +71,2 @@ wanted: ^0.4.5 | ||
create-react-native-app: 1.0.0 | ||
docker-registry-cli: 1.0.0 | ||
envinfo: 4.0.0-beta.6 | ||
exp: 49.2.2 | ||
@@ -125,24 +85,12 @@ lerna: 2.7.1 | ||
`envinfo --system --binaries --npmPackages=minimist,which` | ||
`envinfo --npmPackages=minimist,which` | ||
```sh | ||
System: | ||
OS: macOS High Sierra 10.13 | ||
CPU: x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz | ||
Free Memory: 3.93 GB | ||
Total Memory: 16.00 GB | ||
Shell: /usr/local/bin/bash - 4.4.12 | ||
Binaries: | ||
Node: 8.9.4 | ||
Yarn: 1.3.2 | ||
npm: 5.6.0 | ||
... | ||
npmPackages: | ||
eslint: | ||
wanted: ^4.10.0 | ||
installed: 4.16.0 | ||
... | ||
yamlify-object: | ||
wanted: ^0.4.5 | ||
installed: 0.4.5 | ||
npmPackages: | ||
minimist: | ||
wanted: ^1.2.0 | ||
installed: 1.2.0 | ||
which: | ||
wanted: ^1.2.14 | ||
installed: 1.3.0 | ||
``` | ||
@@ -155,18 +103,5 @@ | ||
```sh | ||
System: | ||
OS: macOS High Sierra 10.13 | ||
CPU: x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz | ||
Free Memory: 4.01 GB | ||
Total Memory: 16.00 GB | ||
Binaries: | ||
Node: 8.9.4 | ||
Yarn: 1.3.2 | ||
npm: 5.6.0 | ||
... | ||
npmGlobalPackages: | ||
envinfo: 4.0.0-beta.1 | ||
exp: 48.0.2 | ||
lerna: 2.7.1 | ||
npm: 5.6.0 | ||
npm-check-updates: 2.14.0 | ||
react-native-cli: 2.0.1 | ||
@@ -178,12 +113,2 @@ ``` | ||
```sh | ||
System: | ||
OS: macOS High Sierra 10.13 | ||
CPU: x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz | ||
Free Memory: 4.01 GB | ||
Total Memory: 16.00 GB | ||
Binaries: | ||
Node: 8.9.4 | ||
Yarn: 1.3.2 | ||
npm: 5.6.0 | ||
... | ||
Packages: | ||
@@ -196,12 +121,2 @@ minimist: ^1.2.0 => 1.2.0 (1.2.0, 0.0.8) | ||
```sh | ||
System: | ||
OS: macOS High Sierra 10.13 | ||
CPU: x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz | ||
Free Memory: 4.01 GB | ||
Total Memory: 16.00 GB | ||
Binaries: | ||
Node: 8.9.4 | ||
Yarn: 1.3.2 | ||
npm: 5.6.0 | ||
... | ||
Packages: | ||
@@ -208,0 +123,0 @@ ... |
@@ -34,3 +34,3 @@ #!/usr/bin/env node | ||
npmPackages: null, | ||
npmGlobalPackages: null, | ||
npmGlobalPackages: true, | ||
}; | ||
@@ -75,4 +75,7 @@ | ||
// Example usage: | ||
// $ envinfo --system --npmPackages | ||
function cli(options) { | ||
// if all option is passed, do not pass go, do not collect 200 dollars, go straight to main | ||
if (options.all) return main(Object.assign({}, capabilities, { npmPackages: true }), options); | ||
// generic function to make sure passed option exists in capability list | ||
@@ -93,3 +96,3 @@ // TODO: This will eventually be replaced with a better fuzzy finder. | ||
// call the main function with the filtered props, and cli options | ||
main(props, options); | ||
return main(props, options); | ||
} | ||
@@ -96,0 +99,0 @@ |
@@ -6,3 +6,3 @@ const yamlify = require('yamlify-object'); | ||
return Object.keys(data).reduce((acc, prop) => { | ||
if (data[prop] === 'N/A') return acc; | ||
if (data[prop] === 'N/A' || Object.keys(data[prop]).length === 0) return acc; | ||
if (utils.isObject(data[prop])) { | ||
@@ -9,0 +9,0 @@ return Object.assign(acc, { [prop]: clean(data[prop]) }); |
@@ -186,3 +186,3 @@ const glob = require('glob'); | ||
const info = dep[1]; | ||
if (packages.some(p => p.toLowerCase() === name.toLowerCase())) | ||
if (!Array.isArray(packages) || packages.some(p => p.toLowerCase() === name.toLowerCase())) | ||
return Object.assign(acc, { | ||
@@ -189,0 +189,0 @@ [name]: info.version, |
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
964
88485
138