Socket
Socket
Sign inDemoInstall

heroku-data-api

Package Overview
Dependencies
49
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.2.0

9

commands/data_api.js

@@ -44,3 +44,10 @@ 'use strict'

if (['PATCH', 'PUT', 'POST'].includes(request.method)) {
request.body = yield fs.readFile('/dev/stdin', 'utf8')
let body = yield fs.readFile('/dev/stdin', 'utf8')
let parsedBody
try {
parsedBody = JSON.parse(body)
} catch(e) {
throw new Error("Request body must be valid JSON")
}
request.body = parsedBody
}

@@ -47,0 +54,0 @@ let response = yield heroku.request(request)

2

package.json
{
"name": "heroku-data-api",
"version": "0.1.0",
"version": "0.2.0",
"description": "A heroku plugin to communicate with the undocumented, internal, unstable data APIs.",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc