New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bugsnag/cli

Package Overview
Dependencies
Maintainers
10
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bugsnag/cli - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

32

install.js

@@ -103,32 +103,2 @@ const axios = require('axios');

const writeToPackageJson = (packageJsonPath) => {
fs.readFile(packageJsonPath, 'utf8', (err, data) => {
if (err) {
console.error(`Error reading package.json: ${err}`);
return;
}
try {
const packageJson = JSON.parse(data);
packageJson.scripts = {
...packageJson.scripts,
"bugsnag:create-build": "./node_modules/.bin/bugsnag-cli create-build",
"bugsnag:upload-android": "./node_modules/.bin/bugsnag-cli upload react-native-android"
};
const updatedPackageJson = JSON.stringify(packageJson, null, 2);
fs.writeFile(packageJsonPath, updatedPackageJson, 'utf8', (err) => {
if (err) {
console.error(`Error writing package.json: ${err}`);
return;
}
});
} catch (err) {
console.error(`Error parsing package.json: ${err}`);
}
})
}
const platformMetadata = getPlatformMetadata();

@@ -138,5 +108,3 @@ const repoUrl = removeGitPrefixAndSuffix(repository.url);

const binaryOutputPath = path.join(process.cwd(),'..','..','.bin', platformMetadata.BINARY_NAME);
const projectPackageJsonPath = path.join(process.cwd(),'..','..', '..','package.json');
downloadBinaryFromGitHub(binaryUrl, binaryOutputPath);
writeToPackageJson(projectPackageJsonPath)

2

package.json
{
"name": "@bugsnag/cli",
"version": "1.2.1",
"version": "1.2.2",
"description": "BugSnag CLI",

@@ -5,0 +5,0 @@ "main": "install.js",

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