@mitre/inspec-objects 0.0.3 → 0.0.4

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.
@@ -43,7 +43,7 @@ function processXCCDF(xml, removeNewlines = false, ovalDefinitions) {
43
43
  extractedDescription = (0, xccdf_1.convertEncodedHTMLIntoJson)(rule.description);
44
44
  }
45
45
  const control = new control_1.default();
46
- control.id = rule.group['@_id'];
46
+ control.id = rule['@_id'];
47
47
  if (removeNewlines) {
48
48
  const title = (0, xccdf_1.removeXMLSpecialCharacters)(rule['@_severity'] ? rule.title : `[[[MISSING SEVERITY FROM STIG]]] ${rule.title}`);
49
49
  control.title = title.replace(/\n/g, '{{{{newlineHERE}}}}');
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitre/inspec-objects",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Typescript objects for normalizing between InSpec profiles and XCCDF benchmarks",
5
5
  "main": "lib/index.js",
6
6
  "publishConfig": {