(content: string | Blob)
| 29 | } |
| 30 | |
| 31 | async write(content: string | Blob): Promise<void> { |
| 32 | const opts = {} as JSZipFileOptions; |
| 33 | if (this.modifiedDate) { |
| 34 | opts.date = new Date(this.modifiedDate); |
| 35 | // jszipp does not require timezone adjustment to UTC Date |
| 36 | } |
| 37 | const fileData = typeof content === "string" ? content : new Uint8Array(await content.arrayBuffer()); |
| 38 | this.zip.file(this.path, fileData, opts); |
| 39 | } |
| 40 | } |
nothing calls this directly
no test coverage detected