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 5.0.0 to 5.0.1

32

index.js

@@ -208,3 +208,3 @@ // Transforms a stream of TAP into a stream of result objects

Parser.prototype.nonTap = function (data) {
Parser.prototype.nonTap = function (data, didLine) {
if (this.bailingOut && /^( {4})*\}\n$/.test(data))

@@ -223,9 +223,10 @@ return

// emit each line, then the extra as a whole
data.split('\n').slice(0, -1).forEach(function (line) {
line += '\n'
if (this.current || this.extraQueue.length)
this.extraQueue.push(['line', line])
else
this.emit('line', line)
}, this)
if (!didLine)
data.split('\n').slice(0, -1).forEach(function (line) {
line += '\n'
if (this.current || this.extraQueue.length)
this.extraQueue.push(['line', line])
else
this.emit('line', line)
}, this)

@@ -298,3 +299,3 @@ if (this.current || this.extraQueue.length)

return
this.nonTap(yamlGarbage)
this.nonTap(yamlGarbage, true)
}

@@ -318,3 +319,3 @@

} catch (er) {
this.nonTap(yamlish)
this.nonTap(this.yind + '---\n' + yamlish + this.yind + '...\n', true)
return

@@ -369,3 +370,3 @@ }

if (this.yamlish)
this.nonTap(this.yamlish)
this.yamlGarbage()

@@ -413,5 +414,4 @@ this.emitResult()

Writable.prototype.end.call(this, null, null, cb)
this.emitComplete(skipAll)
Writable.prototype.end.call(this, null, null, cb)
}

@@ -502,5 +502,6 @@

this.emit('bailout', reason)
this.emitComplete(false)
if (this.parent)
if (this.parent) {
this.end()
this.parent.bailout(reason, true)
}
}

@@ -888,3 +889,2 @@

// at this point, it's either a non-subtest comment, or garbage.
this.emit('line', line)

@@ -891,0 +891,0 @@ if (lineTypes.comment.test(line)) {

{
"name": "tap-parser",
"version": "5.0.0",
"version": "5.0.1",
"description": "parse the test anything protocol",

@@ -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