UNPKG

@minespider/core-bundles

Version:

A high-level SDK for Minespider Core. It abstract the low-level features from the core SDK for a more high-level usage such as DAPPs. Some of the features are 1:1 with the SDK some others abstract some low-level interactions or multiple actions

21 lines 720 B
define(["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Blob = void 0; class Blob { constructor(content, options) { this.content = content; this.type = options.type || "text/plain"; this.encoding = options.encoding; this.size = options.size || content.byteLength; } slice(start, end, contentType) { return new Blob(this.content.slice(start, end), { type: contentType || this.type, encoding: this.encoding }); } } exports.Blob = Blob; }); //# sourceMappingURL=Blob.js.map