You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

update-gatsby-dependencies

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

update-gatsby-dependencies - npm Package Compare versions

Comparing version

to
2.0.0-beta-1

12

bin/index.js

@@ -13,8 +13,18 @@ #!/usr/bin/env node

if (argv.install !== undefined || argv.i !== undefined) {
console.log(`installing dependencies...`);
await updater.installDependencies();
} else if (argv.package !== undefined || argv.p !== undefined) {
console.log(`updating your package.json file...`);
await updater.updatePackageJSON();
} else {
console.log(
`\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ install command ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
);
updater.outputInstallCommand();
console.log(`add -i or --install to install the dependencies`);
console.log(
`\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
);
console.log(
`\n Pro Tip: add -i or --install to install the dependencies automatically`
);
}

@@ -21,0 +31,0 @@ } catch (error) {

2

package.json
{
"name": "update-gatsby-dependencies",
"version": "2.0.0-beta",
"version": "2.0.0-beta-1",
"description": "A package that will update gatsby v4 dependencies from alpha to beta",

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

@@ -79,5 +79,5 @@ const NpmApi = require("npm-api");

subprocess.on("close", (code) => {
let message = `installation finished`;
let message = `\n~installation complete :)~`;
if (code)
message = `it looks like there may have been some problems in the installation process, check your config and try again`;
message = `\n~it looks like there may have been some problems in the installation process: \n - check your config and try again`;
console.log(message);

@@ -84,0 +84,0 @@ });

@@ -24,3 +24,3 @@ const { PACKAGE_FILE } = require("./constants");

console.log(`updating based on ${version} version`);
console.log(`updating based on ${version}tag`);
const isfindingPackage = Boolean(

@@ -27,0 +27,0 @@ process.env.PACKAGE_NAME || process.env.PACKAGE_TYPE