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

api-supertest

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-supertest - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

44

output/console.js
"use strict";
var colors = require("colors/safe");
var colors = process.env.NO_COLORS ? {
gray: passText,
bold: passText,
red: passText,
green: passText
} : require("colors/safe");
function passText(text) {
return text;
}
function processStack(error) {
if (error.stack) {
if (process.env.NO_STACK) {
return error.message;
}
return error.stack.replace(/^(\s+at\s+.*)$/mig, function (match) {
return colors.gray(match);
});
}
return error;
}
function indent(text, indent) {
return indent + text.split("\n").join("\n" + indent);
}
function renderPrefix(item) {
var result = colors.bold(item.path);
if (item.data) {
result += colors.gray(" (" + item.method + " " + item.data + ")");
} else if (item.method !== "GET") {
result += colors.gray(" (" + item.method + ")")
}
return result + ": ";
}
function indent(text, indent) {
return indent + text.split("\n").join("\n" + indent);

@@ -41,7 +77,3 @@ }

console.log(colors.red("ERROR"));
if (error.stack) {
error = error.stack.replace(/^(\s+at\s+.*)$/mig, function (match) {
return colors.dim.gray(match);
});
}
error = processStack(error);
console.log("\n" + indent(error, " ") + "\n");

@@ -48,0 +80,0 @@ } else {

2

package.json
{
"name": "api-supertest",
"version": "0.1.0",
"version": "0.1.1",
"description": "Beautiful test suite & runner for api tests.",

@@ -5,0 +5,0 @@ "main": "lib/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