Socket
Socket
Sign inDemoInstall

eslint-tap

Package Overview
Dependencies
6
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

17

index.js
'use strict';
const path = require('path');
const yamlish = require('yamlish');
const jsYaml = require('js-yaml');
const indentString = require('indent-string');
module.exports = results => {
let ret = '\nTAP version 13\n';
let ret = 'TAP version 13\n';
let total = 0;
results.forEach(result => {
for (const result of results) {
const messages = result.messages;

@@ -14,3 +15,3 @@

ret += `ok ${++total} ` + path.relative(process.cwd(), result.filePath) + '\n';
return;
continue;
}

@@ -25,3 +26,3 @@

return `not ok ${++total}\n ---` + yamlish.encode({
const block = '---\n' + jsYaml.safeDump({
message: el.message,

@@ -32,5 +33,7 @@ severity,

name: el.ruleId
}) + '\n ...\n';
}) + '...';
return `not ok ${++total}\n${indentString(block, 2)}`;
}).join('\n') + '\n';
});
}

@@ -37,0 +40,0 @@ ret += `1..${total}`;

{
"name": "eslint-tap",
"version": "2.0.0",
"version": "2.0.1",
"description": "TAP formatter for ESLint",

@@ -33,2 +33,4 @@ "license": "MIT",

"dependencies": {
"indent-string": "^3.1.0",
"js-yaml": "^3.8.4",
"yamlish": "0.0.7"

@@ -35,0 +37,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