Socket
Socket
Sign inDemoInstall

tap-parser

Package Overview
Dependencies
Maintainers
2
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tap-parser - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

53

index.js

@@ -352,35 +352,4 @@ // Transforms a stream of TAP into a stream of result objects

var final = {
ok: this.ok,
count: this.count,
pass: this.pass
}
var final = new FinalResults(!!skipAll, this)
if (this.fail)
final.fail = this.fail
if (this.bailedOut)
final.bailout = this.bailedOut
if (this.todo)
final.todo = this.todo
if (this.skip)
final.skip = this.skip
if (this.planStart !== -1) {
final.plan = { start: this.planStart, end: this.planEnd }
if (skipAll) {
final.plan.skipAll = true
if (this.planComment)
final.plan.skipReason = this.planComment
}
}
if (this.failures.length) {
final.failures = this.failures
} else {
final.failures = []
}
this.emit('complete', final)

@@ -391,2 +360,22 @@

function FinalResults (skipAll, self) {
this.ok = self.ok
this.count = self.count
this.pass = self.pass
this.fail = self.fail || 0
this.bailout = self.bailedOut || false
this.todo = self.todo || 0
this.skip = skipAll ? self.count : self.skip || 0
this.plan = new FinalPlan(skipAll, self)
this.failures = self.failures
}
function FinalPlan (skipAll, self) {
this.start = self.planStart === -1 ? null : self.planStart
this.end = self.planStart === -1 ? null : self.planEnd
this.skipAll = skipAll
this.skipReason = skipAll ? self.planComment : ''
this.comment = self.planComment || ''
}
Parser.prototype.version = function (version, line) {

@@ -393,0 +382,0 @@ // If version is specified, must be at the very beginning.

{
"name": "tap-parser",
"version": "3.0.3",
"version": "3.0.4",
"description": "parse the test anything protocol",

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

"glob": "^7.0.5",
"tap": "^7.0.0"
"tap": "^8.0.1"
},

@@ -18,0 +18,0 @@ "scripts": {

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