diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-05-28 19:16:44 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-05-28 19:16:44 +0100 |
| commit | e12c1e59acd5fc66ec274395f3c0f88713daf5b4 (patch) | |
| tree | eb034934fee35f0885fccc65d64a6580ed45f2e3 /lib/zipfile.js | |
| parent | 84fffea3212510a7b0b1d33b8dad4a9660675c8b (diff) | |
Add toArrayBuffer when embedding a style map
Diffstat (limited to 'lib/zipfile.js')
| -rw-r--r-- | lib/zipfile.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/zipfile.js b/lib/zipfile.js index 85dde81..2129193 100644 --- a/lib/zipfile.js +++ b/lib/zipfile.js @@ -28,15 +28,15 @@ function openArrayBuffer(arrayBuffer) { zipFile.file(name, contents); } - function toBuffer() { - return zipFile.generateAsync({type: "nodebuffer"}); + function toArrayBuffer() { + return zipFile.generateAsync({type: "arraybuffer"}); } return { exists: exists, read: read, write: write, - toBuffer: toBuffer + toArrayBuffer: toArrayBuffer }; }); } |
