(content, name, options = {})
| 75653 | } |
| 75654 | function getRawContent(blob) { |
| 75655 | if (hasRawContent(blob)) { |
| 75656 | return blob[rawContent](); |
| 75657 | } else { |
| 75658 | return blob.stream(); |
| 75659 | } |
| 75660 | } |
| 75661 | function createFile(content, name, options = {}) { |
| 75662 | var _a5, _b2, _c2; |
| 75663 | if (isNode) { |
| 75664 | return Object.assign(Object.assign({}, unimplementedMethods), { type: (_a5 = options.type) !== null && _a5 !== void 0 ? _a5 : "", lastModified: (_b2 = options.lastModified) !== null && _b2 !== void 0 ? _b2 : (/* @__PURE__ */ new Date()).getTime(), webkitRelativePath: (_c2 = options.webkitRelativePath) !== null && _c2 !== void 0 ? _c2 : "", size: content.byteLength, name, arrayBuffer: async () => content.buffer, stream: () => new Blob([content]).stream(), [rawContent]: () => content }); |
| 75665 | } else { |
no test coverage detected
searching dependent graphs…