Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chain-smoker

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chain-smoker - npm Package Compare versions

Comparing version 0.2.6 to 0.2.7

10

lib/step.js

@@ -94,8 +94,10 @@ var request = require('request');

var body;
var body, jsonSearch;
var jsonRegex = new RegExp("application/json");
var jsonSearch = res.headers['content-type'].search(/application\/json/);
if (res.headers) {
var jsonRegex = new RegExp("application/json");
jsonSearch = res.headers['content-type'].search(/application\/json/);
}
if (jsonSearch >= 0) {
if (jsonSearch && jsonSearch >= 0) {
body = JSON.stringify(res.body);

@@ -102,0 +104,0 @@ } else {

2

package.json
{
"name": "chain-smoker",
"version": "0.2.6",
"version": "0.2.7",
"description": "Smokes a suite of tests a day (at least)",

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

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