@mitre/inspec-objects 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -188,7 +188,16 @@ class Control {
188
188
  }
189
189
  }
190
190
  else {
191
- result += ` tag ${tag}: nil\n`;
191
+ const nilTagList = ['severity', 'satisfies'];
192
+ if (nilTagList.includes(tag)) {
193
+ result += ` tag ${tag}: nil\n`;
194
+ }
195
+ else {
196
+ result += ` tag '${tag}'\n`;
197
+ }
198
+ if (verbose) {
199
+ logger.info(`${this.id} does not have a value for tag: ${tag}`);
200
+ }
192
201
  }
193
202
  });
194
203
  if (this.describe) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitre/inspec-objects",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Typescript objects for normalizing between InSpec profiles and XCCDF benchmarks",
5
5
  "main": "lib/index.js",
6
6
  "publishConfig": {