tap-parser
Advanced tools
Comparing version 7.0.0 to 8.0.0
@@ -84,3 +84,3 @@ #!/usr/bin/env node | ||
var yaml = require('js-yaml') | ||
var yaml = require('tap-yaml') | ||
function tapFormat (msg, indent) { | ||
@@ -122,3 +122,3 @@ return indent + msg.map(function (item) { | ||
' ---\n ' + | ||
yaml.safeDump(res.diag).split('\n').join('\n ').trim() + | ||
yaml.stringify(res.diag).split('\n').join('\n ').trim() + | ||
'\n ...\n' | ||
@@ -125,0 +125,0 @@ : '') |
@@ -7,3 +7,3 @@ 'use strict' | ||
const yaml = require('js-yaml') | ||
const yaml = require('tap-yaml') | ||
const util = require('util') | ||
@@ -311,3 +311,3 @@ const assert = require('assert') | ||
try { | ||
diags = yaml.safeLoad(yamlish) | ||
diags = yaml.parse(yamlish) | ||
} catch (er) { | ||
@@ -651,3 +651,3 @@ this.nonTap(this.yind + '---\n' + yamlish + this.yind + '...\n', true) | ||
try { | ||
dump = yaml.safeDump(extra).trimRight() | ||
dump = yaml.stringify(extra).trimRight() | ||
} catch (er) {} | ||
@@ -654,0 +654,0 @@ } |
{ | ||
"name": "tap-parser", | ||
"version": "7.0.0", | ||
"version": "8.0.0", | ||
"description": "parse the test anything protocol", | ||
@@ -12,9 +12,11 @@ "main": "index.js", | ||
"js-yaml": "^3.2.7", | ||
"minipass": "^2.2.0" | ||
"minipass": "^2.2.0", | ||
"tap-yaml": "0.0.1" | ||
}, | ||
"devDependencies": { | ||
"glob": "^7.0.5", | ||
"tap": "^10.3.3" | ||
"tap": "^12.5.3" | ||
}, | ||
"scripts": { | ||
"snap": "TAP_SNAPSHOT=1 tap test/*.js --100 -J", | ||
"test": "tap test/*.js --100 -J", | ||
@@ -57,5 +59,4 @@ "regen-fixtures": "node scripts/generate-test.js test/fixtures/*.tap", | ||
"index.js", | ||
"bin/cmd.js", | ||
"bin/usage.txt" | ||
"bin/cmd.js" | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42237
4
5
+ Addedtap-yaml@0.0.1
+ Addedtap-yaml@0.0.1(transitive)