UNPKG

unenv

Version:

`unenv` is a framework-agnostic system that allows converting JavaScript code to be platform agnostic and work in any environment including Browsers, Workers, Node.js, or JavaScript runtime.

30 lines (29 loc) 571 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.File = void 0; class File extends Blob { __unenv__ = true; size = 0; type = ""; name = ""; lastModified = 0; constructor(...args) { super(...args); throw new Error("[unenv] buffer.File is not implemented"); } arrayBuffer() { throw new Error("Not implemented"); } slice() { throw new Error("Not implemented"); } text() { throw new Error("Not implemented"); } stream() { throw new Error("Not implemented"); } } exports.File = File;