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

be-api-client

Package Overview
Dependencies
Maintainers
11
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

be-api-client - npm Package Compare versions

Comparing version 0.0.67 to 0.0.68

15

index.js

@@ -0,1 +1,2 @@

const httpContext = require('express-http-context')
const rp = require('request-promise-native')

@@ -20,2 +21,5 @@ const defaultConfig = {

}
const userId = httpContext.get('userId') || 'unset'
const requestId = httpContext.get('requestId') || 'unset'
const correlationId = httpContext.get('correlationId') || 'unset'
const options = {

@@ -26,3 +30,6 @@ method: 'GET',

headers: {
'Content-Type': 'application/x-www-form-urlencoded'
'Content-Type': 'application/x-www-form-urlencoded',
'X-UserId': userId,
'X-CorrelationId': correlationId,
'X-RequestId': requestId
}

@@ -42,2 +49,5 @@ }

async function doPost(route, form={}){
const userId = httpContext.get('userId') || 'unset'
const requestId = httpContext.get('requestId') || 'unset'
const correlationId = httpContext.get('correlationId') || 'unset'
const options = {

@@ -50,2 +60,5 @@ method: 'POST',

'Content-Type': 'application/x-www-form-urlencoded',
'X-UserId': userId,
'X-CorrelationId': correlationId,
'X-RequestId': requestId
}

@@ -52,0 +65,0 @@ }

5

package.json
{
"name": "be-api-client",
"version": "0.0.67",
"version": "0.0.68",
"description": "A node.js client for the be-api.",
"engines": {
"node": "10.15.3"
},
"main": "index.js",

@@ -6,0 +9,0 @@ "scripts": {

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