Files

Return to Package Diff Home.
Brought to you by Intrinsic.

Package Diff: tap @ 13.1.1 .. 13.1.2

lib/repl.js

@@ -1,7 +1,7 @@
const {Watch} = require('./watch.js')
const repl = require('repl')
const rimraf = require('rimraf').sync
-const {format} = require('util')
+const {stringify} = require('tap-yaml')
const path = require('path')
const fs = require('fs')
const mkdirp = require('mkdirp').sync
@@ -123,7 +123,7 @@
this._cb = null
cb(null, res)
} else {
- this.output.write(format(res) + '\n')
+ this.output.write(stringify(res))
this.repl.displayPrompt(true)
}
}

lib/watch.js

@@ -7,7 +7,7 @@
const rimraf = require('rimraf').sync
const onExit = require('signal-exit')
const {writeFileSync, readFileSync} = require('fs')
-const util = require('util')
+const {stringify} = require('tap-yaml')
class Watch extends Minipass {
constructor (options) {
@@ -88,7 +88,7 @@
const tests = this.testsFromChange(file)
this.queue.push(...tests)
- this.log(ev, file)
+ this.log(ev + ' ' + file)
if (this.proc)
return this.log('test in progress, queuing for next run')
@@ -140,8 +140,10 @@
this.emit('afterProcess', {code, signal})
}
- log (...args) {
- this.write(util.format(...args) + '\n')
+ log (msg, arg) {
+ if (arg && typeof arg !== 'string')
+ msg += '\n' + stringify(arg)
+ this.write(msg + '\n')
}
testsFromChange (file) {

package.json

@@ -1,6 +1,6 @@
{
"name": "tap",
- "version": "13.1.1",
+ "version": "13.1.2",
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
"description": "A Test-Anything-Protocol library",
"homepage": "http://node-tap.org/",