Socket
Socket
Sign inDemoInstall

common-fn

Package Overview
Dependencies
175
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.9 to 0.1.10

modules/captureError.js

21

index.js

@@ -15,5 +15,5 @@ const fs = require("fs")

const postData = ({ url, data, body }) => new Promise((resolve, reject) => {
const payload = data === undefined
? body
: data
const payload = data === undefined ?
body :
data

@@ -126,5 +126,5 @@ const options = {

const commandAsArr = R.split(" ", command)
const commandArguments = commandAsArr.length === 1
? []
: R.tail(commandAsArr)
const commandArguments = commandAsArr.length === 1 ?
[] :
R.tail(commandAsArr)

@@ -184,8 +184,4 @@ execFile(

const res = {}
res.send = result => {
return resolve(result)
}
res.sendStatus = result => {
return resolve(result)
}
res.send = result => resolve(result)
res.sendStatus = result => resolve(result)
if (!(reqBody === undefined)) {

@@ -201,2 +197,3 @@ req.body = R.merge(req.body, reqBody)

exports.codeLinesLessThan = require("./modules/codeLinesLessThan")
exports.captureError = require("./modules/captureError")
exports.normalizeGlobalPath = normalizeGlobalPath

@@ -203,0 +200,0 @@ exports.promisify = promisify

{
"name": "common-fn",
"version": "0.1.9",
"version": "0.1.10",
"description": "common",

@@ -15,3 +15,6 @@ "main": "index.js",

"fs-extra": "^3.0.1",
"rambda": "^0.5.9",
"json-stringify-pretty-compact": "^1.0.4",
"opbeat": "^4.14.0",
"rambda": "^0.6.1",
"rambdax": "^0.3.6",
"request-promise": "^4.2.1"

@@ -18,0 +21,0 @@ },

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