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

heroku-connect-plugin

Package Overview
Dependencies
Maintainers
45
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroku-connect-plugin - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

13

commands/connect/diagnose.js

@@ -8,6 +8,7 @@ 'use strict'

function displayResults (results, flags) {
results.errors.forEach(displayResult('red'))
results.warnings.forEach(displayResult('yellow'))
results.errors.forEach(displayResult('RED', 'red'))
results.warnings.forEach(displayResult('YELLOW', 'yellow'))
if (flags.verbose) {
results.passes.forEach(displayResult('green', false))
results.passes.forEach(displayResult('GREEN', 'green', false))
results.skips.forEach(displayResult('SKIPPED', 'dim', false))
}

@@ -20,3 +21,3 @@ }

function displayResult (color, displayMessages) {
function displayResult (label, color, displayMessages) {
// Default to displaying messages, unless overridden

@@ -27,3 +28,3 @@ if (displayMessages === undefined) {

return function (result) {
cli.log(cli.color[color](`${color.toUpperCase()}: ${result.display_name}`))
cli.log(cli.color[color](`${label}: ${result.display_name}`))
if (displayMessages) {

@@ -45,3 +46,3 @@ cli.log(result.message)

{name: 'resource', description: 'specific connection resource name', hasValue: true},
{name: 'verbose', char: 'v', description: 'display passed check information as well'},
{name: 'verbose', char: 'v', description: 'display passed and skipped check information as well'},
regions.flag

@@ -48,0 +49,0 @@ ],

@@ -18,2 +18,3 @@ 'use strict'

{name: 'resource', description: 'specific connection resource name', hasValue: true},
{name: 'verbose', char: 'v', description: 'display passed and skipped check information as well'},
regions.flag

@@ -34,4 +35,4 @@ ],

cli.styledHeader(mapping.object_name)
diagnose.displayResults(results.json)
diagnose.displayResults(results.json, context.flags)
}))
}

@@ -114,3 +114,3 @@ 'use strict'

} else if (connections.length > 1) {
throw new Error("Multiple connections found. Please use '--resource' to specify a single connection by resource name.")
throw new Error("Multiple connections found. Please use '--resource' to specify a single connection by resource name. Use 'connect:info' to list the resource names.")
} else {

@@ -117,0 +117,0 @@ return yield Promise.resolve(connections[0])

{
"name": "heroku-connect-plugin",
"description": "Heroku Connect plugin for Heroku CLI",
"version": "0.4.3",
"version": "0.4.4",
"author": "Heroku (@heroku)",

@@ -6,0 +6,0 @@ "repository": {

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