diff options
| author | Michael Williamson <mike@zwobble.org> | 2021-08-27 19:42:39 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2021-08-27 19:42:39 +0100 |
| commit | b6ab371b1f004a627f7390c442b6406d1f2be499 (patch) | |
| tree | 046ea608e145bd7c27fb203d319a08f530375ead /lib/index.js | |
| parent | e0bb3d1cdac963f2c07ab782ad945d585a9babeb (diff) | |
Update JSZip to 3.2.0
Diffstat (limited to 'lib/index.js')
| -rw-r--r-- | lib/index.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/index.js b/lib/index.js index 683352b..ac9f634 100644 --- a/lib/index.js +++ b/lib/index.js @@ -92,8 +92,13 @@ function embedStyleMap(input, styleMap) { return docxStyleMap.writeStyleMap(docxFile, styleMap); }) .then(function(docxFile) { + return docxFile.toBuffer(); + }) + .then(function(buffer) { return { - toBuffer: docxFile.toBuffer + toBuffer: function() { + return buffer; + } }; }); } |
