docx-templates
Advanced tools
Comparing version 2.9.0 to 2.9.1
@@ -650,22 +650,14 @@ 'use strict'; | ||
case 0: | ||
relsXml = void 0; | ||
_context6.prev = 1; | ||
_context6.next = 4; | ||
_context6.next = 2; | ||
return (0, _zip.zipGetText)(zip, relsPath); | ||
case 4: | ||
case 2: | ||
relsXml = _context6.sent; | ||
_context6.next = 10; | ||
break; | ||
case 7: | ||
_context6.prev = 7; | ||
_context6.t0 = _context6['catch'](1); | ||
relsXml = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n </Relationships>'; | ||
case 10: | ||
if (!relsXml) { | ||
relsXml = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n </Relationships>'; | ||
} | ||
return _context6.abrupt('return', (0, _xml.parseXml)(relsXml)); | ||
case 11: | ||
case 5: | ||
case 'end': | ||
@@ -675,3 +667,3 @@ return _context6.stop(); | ||
} | ||
}, _callee6, undefined, [[1, 7]]); | ||
}, _callee6, undefined); | ||
})); | ||
@@ -678,0 +670,0 @@ |
{ | ||
"name": "docx-templates", | ||
"version": "2.9.0", | ||
"version": "2.9.1", | ||
"description": "Template-based docx report creation", | ||
@@ -5,0 +5,0 @@ "main": "lib/indexNode.js", |
Sorry, the diff of this file is not supported yet
168101
2259