node-sarif-builder
Advanced tools
Comparing version 0.1.1-alpha202201100714.0 to 0.1.1-alpha202201100723.0
{ | ||
"name": "node-sarif-builder", | ||
"version": "0.1.1-alpha202201100714.0", | ||
"version": "0.1.1-alpha202201100723.0", | ||
"description": "Module to help building SARIF log files", | ||
@@ -5,0 +5,0 @@ "main": "build/main/index.js", |
@@ -38,4 +38,6 @@ import * as fs from 'fs-extra'; | ||
buildSarifJsonString() { | ||
const sarifJson = JSON.stringify(this.log, null, 2); | ||
buildSarifJsonString(indent = false) { | ||
const sarifJson = indent | ||
? JSON.stringify(this.log, null, 2) | ||
: JSON.stringify(this.log); | ||
if (sarifJson.includes('SARIF_BUILDER_INVALID')) { | ||
@@ -42,0 +44,0 @@ throw new Error( |
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
292412
748