🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

sparc-commons

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sparc-commons - npm Package Compare versions

Comparing version

to
0.2.28

7

libs/resources.js

@@ -109,6 +109,11 @@ /*jshint multistr: true */

if(logStrategy === 'ALWAYS'){
log.info(`Got response ${JSON.stringify(_.get(resp, 'body'), null, 2)}`)
log.info(`REQUEST: ${JSON.stringify(data, null, 2)}`)
log.info(`RESPONSE: ${JSON.stringify(_.get(resp, 'body'), null, 2)}`)
}
res(resp.body);
} else {
if(_.contains(['ALWAYS', 'ON_ERROR'], logStrategy)){
log.error(`REQUEST: ${JSON.stringify(data, null, 2)}`)
}
if(logStrategy !== 'NEVER'){

@@ -115,0 +120,0 @@ log.error(_.get(resp, 'body'))

2

package.json
{
"name": "sparc-commons",
"version": "0.2.27",
"version": "0.2.28",
"description": "Library with all small time common stuff used across the SPARC echosystem",

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