Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

envinfo

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

envinfo - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

3

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc