"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.objectToJsonBlob = objectToJsonBlob;
/**
 * Convert an object to a Blob with type  'application/json'
 * @param {*} obj
 * @returns Blob
 */
function objectToJsonBlob(obj) {
    /* istanbul ignore else -- @preserve */
    if (typeof Blob !== "undefined") {
        return new Blob([JSON.stringify(obj)], { type: "application/json" });
    }
    else {
        throw new Error(`objectToJsonBlob is not currently supported on Node`);
    }
}
//# sourceMappingURL=object-to-json-blob.js.map