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 9.0.0 to 9.1.0

35

index.js

@@ -113,2 +113,3 @@ 'use strict'

this.name = options.name || ''
this.comments = []

@@ -118,2 +119,3 @@ this.results = null

this.parent = options.parent || null
this.root = options.parent ? this.parent.root : this
this.failures = []

@@ -137,2 +139,3 @@ if (options.passes)

this.child = null
this.previousChild = null
this.current = null

@@ -531,2 +534,3 @@ this.maybeSubtest = null

if (this.child && (!this.bailingOut || this.child.count)) {
this.previousChild = this.child
this.child.end()

@@ -569,3 +573,3 @@ this.child = null

this.emit('assert', res)
this.emitAssert(res)
if (this.bail && !res.ok && !res.todo && !res.skip && !this.bailingOut) {

@@ -696,2 +700,31 @@ this.maybeChild = null

emitAssert (res) {
res.fullname = this.fullname
this.emit('assert', res)
// see if we need to surface to the top level
if (this.child || this.previousChild) {
const c = this.child || this.previousChild
this.previousChild = null
if (res.name === c.name &&
res.ok === c.results.ok &&
!res.todo && !res.skip) {
// just procedural, ignore it
return
}
}
// surface result to the top level parser
this.root.emit('result', res)
if (res.skip)
this.root.emit('skip', res)
else if (res.todo)
this.root.emit('todo', res)
else if (!res.ok)
this.root.emit('fail', res)
else
this.root.emit('pass', res)
}
emitComment (line, skipLine, noDuplicate) {

@@ -698,0 +731,0 @@ if (line.trim().charAt(0) !== '#')

13

package.json
{
"name": "tap-parser",
"version": "9.0.0",
"version": "9.1.0",
"description": "parse the test anything protocol",

@@ -16,7 +16,7 @@ "main": "index.js",

"glob": "^7.0.5",
"tap": "^12.5.3"
"tap": "^13.0.0-rc.3"
},
"scripts": {
"snap": "TAP_SNAPSHOT=1 tap test/*.js --100 -J",
"test": "tap test/*.js --100 -J",
"snap": "tap",
"test": "tap",
"regen-fixtures": "node scripts/generate-test.js test/fixtures/*.tap",

@@ -59,3 +59,6 @@ "preversion": "npm test",

"bin/cmd.js"
]
],
"tap": {
"check-coverage": true
}
}
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