aboutsummaryrefslogtreecommitdiff
path: root/lib/index.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2021-08-27 19:42:39 +0100
committerMichael Williamson <mike@zwobble.org>2021-08-27 19:42:39 +0100
commitb6ab371b1f004a627f7390c442b6406d1f2be499 (patch)
tree046ea608e145bd7c27fb203d319a08f530375ead /lib/index.js
parente0bb3d1cdac963f2c07ab782ad945d585a9babeb (diff)
Update JSZip to 3.2.0
Diffstat (limited to 'lib/index.js')
-rw-r--r--lib/index.js7
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;
+ }
};
});
}