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

heroku-connect-plugin

Package Overview
Dependencies
Maintainers
1
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.0.1 to 0.0.2

.npmignore

59

index.js

@@ -1,58 +0,13 @@

var https = require('https');
var opts = {
hostname: 'connect.heroku.com',
port: 443,
method: 'GET'
}
var me_path = '/api/v2/users/me?deep=true';
function connection_info(conn) {
console.log("Overall: " + conn.state);
conn.mappings.forEach(function(mapping) {
if (mapping.state == 'DATA_SYNCED') {
console.log("--> ✓ " + mapping.object_name);
} else {
console.log("--> x " + mapping.object_name + ": " + mapping.state);
}
});
}
'use strict';
exports.topics = [{
name: 'connect',
description: 'a topic for the hello world plugin'
description: 'manage connections for heroku connect'
}];
exports.commands = [
{
topic: 'connect',
command: 'status',
description: 'Status of your Heroku Connect connection',
help: 'Status of your Heroku Connect connection',
flags: [
{name: 'user', char: 'u', description: 'user to say hello to', hasValue: true}
],
needsApp: true,
needsAuth: true,
run: function (context) {
opts.headers = {Authorization: 'Heroku ' + context.auth.password};
opts.path = me_path;
var req = https.request(opts, function(res) {
var body = '';
res.on('data', function(d) {
body += d;
});
res.on('end', function() {
body = JSON.parse(body);
body.instances.forEach(function(instance) {
if (instance.name == context.app) {
instance.connections.forEach(function(connection) {
connection_info(connection);
});
}
});
});
});
req.end();
}
}
require('./lib/commands/connect/status'),
require('./lib/commands/connect/preauth'),
require('./lib/commands/connect/setup'),
require('./lib/commands/connect/create-mapping'),
require('./lib/commands/connect/delete-mapping')
];
{
"name": "heroku-connect-plugin",
"description": "Minimal Heroku Connect plugin for Heroku Toolbelt",
"version": "0.0.1",
"version": "0.0.2",
"author": "Scott Persinger @persingerscott",

@@ -13,3 +13,9 @@ "bugs": {

"license": "ISC",
"main": "index.js"
"main": "index.js",
"dependencies": {
"heroku-cli-util": "^5.4.6",
"heroku-client": "^1.10.0",
"open": "0.0.5",
"q": "^1.3.0"
}
}
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