Comparing version 2.0.1 to 2.0.2
@@ -36,5 +36,5 @@ 'use strict'; | ||
* Shim for | ||
* {@link https://developer.mozilla.org/en-US/docs/Web/API/Blob.Blob | <code>new Blob()</code>} | ||
* [`new Blob()`](https://developer.mozilla.org/en-US/docs/Web/API/Blob.Blob) | ||
* to support | ||
* {@link http://caniuse.com/blob | older browsers that use the deprecated <code>BlobBuilder</code> API}. | ||
* [older browsers that use the deprecated `BlobBuilder` API](http://caniuse.com/blob). | ||
* | ||
@@ -47,4 +47,4 @@ * Example: | ||
* | ||
* @param parts - content of the <code>Blob</code> | ||
* @param properties - usually <code>{type: myContentType}</code>, | ||
* @param parts - content of the Blob | ||
* @param properties - usually `{type: myContentType}`, | ||
* you can also pass a string for the content type | ||
@@ -79,5 +79,5 @@ * @returns Blob | ||
* Shim for | ||
* {@link https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL | <code>URL.createObjectURL()</code>} | ||
* [`URL.createObjectURL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL) | ||
* to support browsers that only have the prefixed | ||
* <code>webkitURL</code> (e.g. Android <4.4). | ||
* `webkitURL` (e.g. Android <4.4). | ||
* | ||
@@ -98,5 +98,5 @@ * Example: | ||
* Shim for | ||
* {@link https://developer.mozilla.org/en-US/docs/Web/API/URL.revokeObjectURL | <code>URL.revokeObjectURL()</code>} | ||
* [`URL.revokeObjectURL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL.revokeObjectURL) | ||
* to support browsers that only have the prefixed | ||
* <code>webkitURL</code> (e.g. Android <4.4). | ||
* `webkitURL` (e.g. Android <4.4). | ||
* | ||
@@ -115,3 +115,3 @@ * Example: | ||
/** | ||
* Convert a <code>Blob</code> to a binary string. | ||
* Convert a `Blob` to a binary string. | ||
* | ||
@@ -152,3 +152,3 @@ * Example: | ||
/** | ||
* Convert a base64-encoded string to a <code>Blob</code>. | ||
* Convert a base64-encoded string to a `Blob`. | ||
* | ||
@@ -169,3 +169,3 @@ * Example: | ||
/** | ||
* Convert a binary string to a <code>Blob</code>. | ||
* Convert a binary string to a `Blob`. | ||
* | ||
@@ -186,3 +186,3 @@ * Example: | ||
/** | ||
* Convert a <code>Blob</code> to a binary string. | ||
* Convert a `Blob` to a binary string. | ||
* | ||
@@ -207,4 +207,4 @@ * Example: | ||
* Convert a data URL string | ||
* (e.g. <code>'data:image/png;base64,iVBORw0KG...'</code>) | ||
* to a <code>Blob</code>. | ||
* (e.g. `'data:image/png;base64,iVBORw0KG...'`) | ||
* to a `Blob`. | ||
* | ||
@@ -227,4 +227,4 @@ * Example: | ||
/** | ||
* Convert a <code>Blob</code> to a data URL string | ||
* (e.g. <code>'data:image/png;base64,iVBORw0KG...'</code>). | ||
* Convert a `Blob` to a data URL string | ||
* (e.g. `'data:image/png;base64,iVBORw0KG...'`). | ||
* | ||
@@ -246,4 +246,4 @@ * Example: | ||
/** | ||
* Convert an image's <code>src</code> URL to a data URL by loading the image and painting | ||
* it to a <code>canvas</code>. | ||
* Convert an image's `src` URL to a data URL by loading the image and painting | ||
* it to a `canvas`. | ||
* | ||
@@ -287,3 +287,3 @@ * Note: this will coerce the image to the desired content type, and it | ||
/** | ||
* Convert a <code>canvas</code> to a <code>Blob</code>. | ||
* Convert a `canvas` to a `Blob`. | ||
* | ||
@@ -315,3 +315,3 @@ * Examples: | ||
* if the requested type is 'image/jpeg' or 'image/webp' | ||
* @returns Promise that resolves with the <code>Blob</code> | ||
* @returns Promise that resolves with the `Blob` | ||
*/ | ||
@@ -327,4 +327,4 @@ function canvasToBlob(canvas, type, quality) { | ||
/** | ||
* Convert an image's <code>src</code> URL to a <code>Blob</code> by loading the image and painting | ||
* it to a <code>canvas</code>. | ||
* Convert an image's `src` URL to a `Blob` by loading the image and painting | ||
* it to a `canvas`. | ||
* | ||
@@ -359,3 +359,3 @@ * Note: this will coerce the image to the desired content type, and it | ||
* if the requested type is 'image/jpeg' or 'image/webp' | ||
* @returns Promise that resolves with the <code>Blob</code> | ||
* @returns Promise that resolves with the `Blob` | ||
*/ | ||
@@ -369,3 +369,3 @@ function imgSrcToBlob(src, type, crossOrigin, quality) { | ||
/** | ||
* Convert an <code>ArrayBuffer</code> to a <code>Blob</code>. | ||
* Convert an `ArrayBuffer` to a `Blob`. | ||
* | ||
@@ -386,3 +386,3 @@ * Example: | ||
/** | ||
* Convert a <code>Blob</code> to an <code>ArrayBuffer</code>. | ||
* Convert a `Blob` to an `ArrayBuffer`. | ||
* | ||
@@ -400,3 +400,3 @@ * Example: | ||
* @param blob | ||
* @returns Promise that resolves with the <code>ArrayBuffer</code> | ||
* @returns Promise that resolves with the `ArrayBuffer` | ||
*/ | ||
@@ -415,3 +415,3 @@ function blobToArrayBuffer(blob) { | ||
/** | ||
* Convert an <code>ArrayBuffer</code> to a binary string. | ||
* Convert an `ArrayBuffer` to a binary string. | ||
* | ||
@@ -438,3 +438,3 @@ * Example: | ||
/** | ||
* Convert a binary string to an <code>ArrayBuffer</code>. | ||
* Convert a binary string to an `ArrayBuffer`. | ||
* | ||
@@ -441,0 +441,0 @@ * ```js |
/** | ||
* Shim for | ||
* {@link https://developer.mozilla.org/en-US/docs/Web/API/Blob.Blob | <code>new Blob()</code>} | ||
* [`new Blob()`](https://developer.mozilla.org/en-US/docs/Web/API/Blob.Blob) | ||
* to support | ||
* {@link http://caniuse.com/blob | older browsers that use the deprecated <code>BlobBuilder</code> API}. | ||
* [older browsers that use the deprecated `BlobBuilder` API](http://caniuse.com/blob). | ||
* | ||
@@ -13,4 +13,4 @@ * Example: | ||
* | ||
* @param parts - content of the <code>Blob</code> | ||
* @param properties - usually <code>{type: myContentType}</code>, | ||
* @param parts - content of the Blob | ||
* @param properties - usually `{type: myContentType}`, | ||
* you can also pass a string for the content type | ||
@@ -22,5 +22,5 @@ * @returns Blob | ||
* Shim for | ||
* {@link https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL | <code>URL.createObjectURL()</code>} | ||
* [`URL.createObjectURL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL) | ||
* to support browsers that only have the prefixed | ||
* <code>webkitURL</code> (e.g. Android <4.4). | ||
* `webkitURL` (e.g. Android <4.4). | ||
* | ||
@@ -39,5 +39,5 @@ * Example: | ||
* Shim for | ||
* {@link https://developer.mozilla.org/en-US/docs/Web/API/URL.revokeObjectURL | <code>URL.revokeObjectURL()</code>} | ||
* [`URL.revokeObjectURL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL.revokeObjectURL) | ||
* to support browsers that only have the prefixed | ||
* <code>webkitURL</code> (e.g. Android <4.4). | ||
* `webkitURL` (e.g. Android <4.4). | ||
* | ||
@@ -54,3 +54,3 @@ * Example: | ||
/** | ||
* Convert a <code>Blob</code> to a binary string. | ||
* Convert a `Blob` to a binary string. | ||
* | ||
@@ -72,3 +72,3 @@ * Example: | ||
/** | ||
* Convert a base64-encoded string to a <code>Blob</code>. | ||
* Convert a base64-encoded string to a `Blob`. | ||
* | ||
@@ -86,3 +86,3 @@ * Example: | ||
/** | ||
* Convert a binary string to a <code>Blob</code>. | ||
* Convert a binary string to a `Blob`. | ||
* | ||
@@ -101,3 +101,3 @@ * Example: | ||
/** | ||
* Convert a <code>Blob</code> to a binary string. | ||
* Convert a `Blob` to a binary string. | ||
* | ||
@@ -120,4 +120,4 @@ * Example: | ||
* Convert a data URL string | ||
* (e.g. <code>'data:image/png;base64,iVBORw0KG...'</code>) | ||
* to a <code>Blob</code>. | ||
* (e.g. `'data:image/png;base64,iVBORw0KG...'`) | ||
* to a `Blob`. | ||
* | ||
@@ -135,4 +135,4 @@ * Example: | ||
/** | ||
* Convert a <code>Blob</code> to a data URL string | ||
* (e.g. <code>'data:image/png;base64,iVBORw0KG...'</code>). | ||
* Convert a `Blob` to a data URL string | ||
* (e.g. `'data:image/png;base64,iVBORw0KG...'`). | ||
* | ||
@@ -150,4 +150,4 @@ * Example: | ||
/** | ||
* Convert an image's <code>src</code> URL to a data URL by loading the image and painting | ||
* it to a <code>canvas</code>. | ||
* Convert an image's `src` URL to a data URL by loading the image and painting | ||
* it to a `canvas`. | ||
* | ||
@@ -186,3 +186,3 @@ * Note: this will coerce the image to the desired content type, and it | ||
/** | ||
* Convert a <code>canvas</code> to a <code>Blob</code>. | ||
* Convert a `canvas` to a `Blob`. | ||
* | ||
@@ -214,8 +214,8 @@ * Examples: | ||
* if the requested type is 'image/jpeg' or 'image/webp' | ||
* @returns Promise that resolves with the <code>Blob</code> | ||
* @returns Promise that resolves with the `Blob` | ||
*/ | ||
export declare function canvasToBlob(canvas: HTMLCanvasElement, type?: string, quality?: number): Promise<Blob>; | ||
/** | ||
* Convert an image's <code>src</code> URL to a <code>Blob</code> by loading the image and painting | ||
* it to a <code>canvas</code>. | ||
* Convert an image's `src` URL to a `Blob` by loading the image and painting | ||
* it to a `canvas`. | ||
* | ||
@@ -250,7 +250,7 @@ * Note: this will coerce the image to the desired content type, and it | ||
* if the requested type is 'image/jpeg' or 'image/webp' | ||
* @returns Promise that resolves with the <code>Blob</code> | ||
* @returns Promise that resolves with the `Blob` | ||
*/ | ||
export declare function imgSrcToBlob(src: string, type?: string, crossOrigin?: string, quality?: number): Promise<Blob>; | ||
/** | ||
* Convert an <code>ArrayBuffer</code> to a <code>Blob</code>. | ||
* Convert an `ArrayBuffer` to a `Blob`. | ||
* | ||
@@ -269,3 +269,3 @@ * Example: | ||
/** | ||
* Convert a <code>Blob</code> to an <code>ArrayBuffer</code>. | ||
* Convert a `Blob` to an `ArrayBuffer`. | ||
* | ||
@@ -283,7 +283,7 @@ * Example: | ||
* @param blob | ||
* @returns Promise that resolves with the <code>ArrayBuffer</code> | ||
* @returns Promise that resolves with the `ArrayBuffer` | ||
*/ | ||
export declare function blobToArrayBuffer(blob: Blob): Promise<ArrayBuffer>; | ||
/** | ||
* Convert an <code>ArrayBuffer</code> to a binary string. | ||
* Convert an `ArrayBuffer` to a binary string. | ||
* | ||
@@ -301,3 +301,3 @@ * Example: | ||
/** | ||
* Convert a binary string to an <code>ArrayBuffer</code>. | ||
* Convert a binary string to an `ArrayBuffer`. | ||
* | ||
@@ -304,0 +304,0 @@ * ```js |
@@ -32,5 +32,5 @@ // TODO: including these in blob-util.ts causes typedoc to generate docs for them, | ||
* Shim for | ||
* {@link https://developer.mozilla.org/en-US/docs/Web/API/Blob.Blob | <code>new Blob()</code>} | ||
* [`new Blob()`](https://developer.mozilla.org/en-US/docs/Web/API/Blob.Blob) | ||
* to support | ||
* {@link http://caniuse.com/blob | older browsers that use the deprecated <code>BlobBuilder</code> API}. | ||
* [older browsers that use the deprecated `BlobBuilder` API](http://caniuse.com/blob). | ||
* | ||
@@ -43,4 +43,4 @@ * Example: | ||
* | ||
* @param parts - content of the <code>Blob</code> | ||
* @param properties - usually <code>{type: myContentType}</code>, | ||
* @param parts - content of the Blob | ||
* @param properties - usually `{type: myContentType}`, | ||
* you can also pass a string for the content type | ||
@@ -75,5 +75,5 @@ * @returns Blob | ||
* Shim for | ||
* {@link https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL | <code>URL.createObjectURL()</code>} | ||
* [`URL.createObjectURL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL) | ||
* to support browsers that only have the prefixed | ||
* <code>webkitURL</code> (e.g. Android <4.4). | ||
* `webkitURL` (e.g. Android <4.4). | ||
* | ||
@@ -94,5 +94,5 @@ * Example: | ||
* Shim for | ||
* {@link https://developer.mozilla.org/en-US/docs/Web/API/URL.revokeObjectURL | <code>URL.revokeObjectURL()</code>} | ||
* [`URL.revokeObjectURL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL.revokeObjectURL) | ||
* to support browsers that only have the prefixed | ||
* <code>webkitURL</code> (e.g. Android <4.4). | ||
* `webkitURL` (e.g. Android <4.4). | ||
* | ||
@@ -111,3 +111,3 @@ * Example: | ||
/** | ||
* Convert a <code>Blob</code> to a binary string. | ||
* Convert a `Blob` to a binary string. | ||
* | ||
@@ -148,3 +148,3 @@ * Example: | ||
/** | ||
* Convert a base64-encoded string to a <code>Blob</code>. | ||
* Convert a base64-encoded string to a `Blob`. | ||
* | ||
@@ -165,3 +165,3 @@ * Example: | ||
/** | ||
* Convert a binary string to a <code>Blob</code>. | ||
* Convert a binary string to a `Blob`. | ||
* | ||
@@ -182,3 +182,3 @@ * Example: | ||
/** | ||
* Convert a <code>Blob</code> to a binary string. | ||
* Convert a `Blob` to a binary string. | ||
* | ||
@@ -203,4 +203,4 @@ * Example: | ||
* Convert a data URL string | ||
* (e.g. <code>'data:image/png;base64,iVBORw0KG...'</code>) | ||
* to a <code>Blob</code>. | ||
* (e.g. `'data:image/png;base64,iVBORw0KG...'`) | ||
* to a `Blob`. | ||
* | ||
@@ -223,4 +223,4 @@ * Example: | ||
/** | ||
* Convert a <code>Blob</code> to a data URL string | ||
* (e.g. <code>'data:image/png;base64,iVBORw0KG...'</code>). | ||
* Convert a `Blob` to a data URL string | ||
* (e.g. `'data:image/png;base64,iVBORw0KG...'`). | ||
* | ||
@@ -242,4 +242,4 @@ * Example: | ||
/** | ||
* Convert an image's <code>src</code> URL to a data URL by loading the image and painting | ||
* it to a <code>canvas</code>. | ||
* Convert an image's `src` URL to a data URL by loading the image and painting | ||
* it to a `canvas`. | ||
* | ||
@@ -283,3 +283,3 @@ * Note: this will coerce the image to the desired content type, and it | ||
/** | ||
* Convert a <code>canvas</code> to a <code>Blob</code>. | ||
* Convert a `canvas` to a `Blob`. | ||
* | ||
@@ -311,3 +311,3 @@ * Examples: | ||
* if the requested type is 'image/jpeg' or 'image/webp' | ||
* @returns Promise that resolves with the <code>Blob</code> | ||
* @returns Promise that resolves with the `Blob` | ||
*/ | ||
@@ -323,4 +323,4 @@ function canvasToBlob(canvas, type, quality) { | ||
/** | ||
* Convert an image's <code>src</code> URL to a <code>Blob</code> by loading the image and painting | ||
* it to a <code>canvas</code>. | ||
* Convert an image's `src` URL to a `Blob` by loading the image and painting | ||
* it to a `canvas`. | ||
* | ||
@@ -355,3 +355,3 @@ * Note: this will coerce the image to the desired content type, and it | ||
* if the requested type is 'image/jpeg' or 'image/webp' | ||
* @returns Promise that resolves with the <code>Blob</code> | ||
* @returns Promise that resolves with the `Blob` | ||
*/ | ||
@@ -365,3 +365,3 @@ function imgSrcToBlob(src, type, crossOrigin, quality) { | ||
/** | ||
* Convert an <code>ArrayBuffer</code> to a <code>Blob</code>. | ||
* Convert an `ArrayBuffer` to a `Blob`. | ||
* | ||
@@ -382,3 +382,3 @@ * Example: | ||
/** | ||
* Convert a <code>Blob</code> to an <code>ArrayBuffer</code>. | ||
* Convert a `Blob` to an `ArrayBuffer`. | ||
* | ||
@@ -396,3 +396,3 @@ * Example: | ||
* @param blob | ||
* @returns Promise that resolves with the <code>ArrayBuffer</code> | ||
* @returns Promise that resolves with the `ArrayBuffer` | ||
*/ | ||
@@ -411,3 +411,3 @@ function blobToArrayBuffer(blob) { | ||
/** | ||
* Convert an <code>ArrayBuffer</code> to a binary string. | ||
* Convert an `ArrayBuffer` to a binary string. | ||
* | ||
@@ -434,3 +434,3 @@ * Example: | ||
/** | ||
* Convert a binary string to an <code>ArrayBuffer</code>. | ||
* Convert a binary string to an `ArrayBuffer`. | ||
* | ||
@@ -437,0 +437,0 @@ * ```js |
@@ -38,5 +38,5 @@ (function (global, factory) { | ||
* Shim for | ||
* {@link https://developer.mozilla.org/en-US/docs/Web/API/Blob.Blob | <code>new Blob()</code>} | ||
* [`new Blob()`](https://developer.mozilla.org/en-US/docs/Web/API/Blob.Blob) | ||
* to support | ||
* {@link http://caniuse.com/blob | older browsers that use the deprecated <code>BlobBuilder</code> API}. | ||
* [older browsers that use the deprecated `BlobBuilder` API](http://caniuse.com/blob). | ||
* | ||
@@ -49,4 +49,4 @@ * Example: | ||
* | ||
* @param parts - content of the <code>Blob</code> | ||
* @param properties - usually <code>{type: myContentType}</code>, | ||
* @param parts - content of the Blob | ||
* @param properties - usually `{type: myContentType}`, | ||
* you can also pass a string for the content type | ||
@@ -81,5 +81,5 @@ * @returns Blob | ||
* Shim for | ||
* {@link https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL | <code>URL.createObjectURL()</code>} | ||
* [`URL.createObjectURL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL) | ||
* to support browsers that only have the prefixed | ||
* <code>webkitURL</code> (e.g. Android <4.4). | ||
* `webkitURL` (e.g. Android <4.4). | ||
* | ||
@@ -100,5 +100,5 @@ * Example: | ||
* Shim for | ||
* {@link https://developer.mozilla.org/en-US/docs/Web/API/URL.revokeObjectURL | <code>URL.revokeObjectURL()</code>} | ||
* [`URL.revokeObjectURL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL.revokeObjectURL) | ||
* to support browsers that only have the prefixed | ||
* <code>webkitURL</code> (e.g. Android <4.4). | ||
* `webkitURL` (e.g. Android <4.4). | ||
* | ||
@@ -117,3 +117,3 @@ * Example: | ||
/** | ||
* Convert a <code>Blob</code> to a binary string. | ||
* Convert a `Blob` to a binary string. | ||
* | ||
@@ -154,3 +154,3 @@ * Example: | ||
/** | ||
* Convert a base64-encoded string to a <code>Blob</code>. | ||
* Convert a base64-encoded string to a `Blob`. | ||
* | ||
@@ -171,3 +171,3 @@ * Example: | ||
/** | ||
* Convert a binary string to a <code>Blob</code>. | ||
* Convert a binary string to a `Blob`. | ||
* | ||
@@ -188,3 +188,3 @@ * Example: | ||
/** | ||
* Convert a <code>Blob</code> to a binary string. | ||
* Convert a `Blob` to a binary string. | ||
* | ||
@@ -209,4 +209,4 @@ * Example: | ||
* Convert a data URL string | ||
* (e.g. <code>'data:image/png;base64,iVBORw0KG...'</code>) | ||
* to a <code>Blob</code>. | ||
* (e.g. `'data:image/png;base64,iVBORw0KG...'`) | ||
* to a `Blob`. | ||
* | ||
@@ -229,4 +229,4 @@ * Example: | ||
/** | ||
* Convert a <code>Blob</code> to a data URL string | ||
* (e.g. <code>'data:image/png;base64,iVBORw0KG...'</code>). | ||
* Convert a `Blob` to a data URL string | ||
* (e.g. `'data:image/png;base64,iVBORw0KG...'`). | ||
* | ||
@@ -248,4 +248,4 @@ * Example: | ||
/** | ||
* Convert an image's <code>src</code> URL to a data URL by loading the image and painting | ||
* it to a <code>canvas</code>. | ||
* Convert an image's `src` URL to a data URL by loading the image and painting | ||
* it to a `canvas`. | ||
* | ||
@@ -289,3 +289,3 @@ * Note: this will coerce the image to the desired content type, and it | ||
/** | ||
* Convert a <code>canvas</code> to a <code>Blob</code>. | ||
* Convert a `canvas` to a `Blob`. | ||
* | ||
@@ -317,3 +317,3 @@ * Examples: | ||
* if the requested type is 'image/jpeg' or 'image/webp' | ||
* @returns Promise that resolves with the <code>Blob</code> | ||
* @returns Promise that resolves with the `Blob` | ||
*/ | ||
@@ -329,4 +329,4 @@ function canvasToBlob(canvas, type, quality) { | ||
/** | ||
* Convert an image's <code>src</code> URL to a <code>Blob</code> by loading the image and painting | ||
* it to a <code>canvas</code>. | ||
* Convert an image's `src` URL to a `Blob` by loading the image and painting | ||
* it to a `canvas`. | ||
* | ||
@@ -361,3 +361,3 @@ * Note: this will coerce the image to the desired content type, and it | ||
* if the requested type is 'image/jpeg' or 'image/webp' | ||
* @returns Promise that resolves with the <code>Blob</code> | ||
* @returns Promise that resolves with the `Blob` | ||
*/ | ||
@@ -371,3 +371,3 @@ function imgSrcToBlob(src, type, crossOrigin, quality) { | ||
/** | ||
* Convert an <code>ArrayBuffer</code> to a <code>Blob</code>. | ||
* Convert an `ArrayBuffer` to a `Blob`. | ||
* | ||
@@ -388,3 +388,3 @@ * Example: | ||
/** | ||
* Convert a <code>Blob</code> to an <code>ArrayBuffer</code>. | ||
* Convert a `Blob` to an `ArrayBuffer`. | ||
* | ||
@@ -402,3 +402,3 @@ * Example: | ||
* @param blob | ||
* @returns Promise that resolves with the <code>ArrayBuffer</code> | ||
* @returns Promise that resolves with the `ArrayBuffer` | ||
*/ | ||
@@ -417,3 +417,3 @@ function blobToArrayBuffer(blob) { | ||
/** | ||
* Convert an <code>ArrayBuffer</code> to a binary string. | ||
* Convert an `ArrayBuffer` to a binary string. | ||
* | ||
@@ -440,3 +440,3 @@ * Example: | ||
/** | ||
* Convert a binary string to an <code>ArrayBuffer</code>. | ||
* Convert a binary string to an `ArrayBuffer`. | ||
* | ||
@@ -443,0 +443,0 @@ * ```js |
{ | ||
"name": "blob-util", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Utilities for working with Blob objects in the browser", | ||
@@ -5,0 +5,0 @@ "main": "dist/blob-util.cjs.js", |
@@ -291,3 +291,3 @@ blob-util [![Build Status](https://travis-ci.org/nolanlawson/blob-util.svg)](https://travis-ci.org/nolanlawson/blob-util) [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-typescript-blue.svg)](http://www.typescriptlang.org/) | ||
**Returns:** `Promise`<`ArrayBuffer`> | ||
Promise that resolves with the <code>ArrayBuffer</code> | ||
Promise that resolves with the `ArrayBuffer` | ||
@@ -412,3 +412,3 @@ ___ | ||
**Returns:** `Promise`<`Blob`> | ||
Promise that resolves with the <code>Blob</code> | ||
Promise that resolves with the `Blob` | ||
@@ -422,3 +422,3 @@ ___ | ||
Shim for [`new Blob()`](https://developer.mozilla.org/en-US/docs/Web/API/Blob.Blob ) to support [older browsers that use the deprecated `BlobBuilder` API](http://caniuse.com/blob ). | ||
Shim for [`new Blob()`](https://developer.mozilla.org/en-US/docs/Web/API/Blob.Blob) to support [older browsers that use the deprecated `BlobBuilder` API](http://caniuse.com/blob). | ||
@@ -435,4 +435,4 @@ Example: | ||
| ------ | ------ | ------ | | ||
| parts | `Array`<`any`> | content of the <code>Blob</code> | | ||
| `Optional` properties | `BlobPropertyBag` | `string`| usually <code>{type: myContentType}</code>, you can also pass a string for the content type | | ||
| parts | `Array`<`any`> | content of the Blob | | ||
| `Optional` properties | `BlobPropertyBag` | `string`| usually `{type: myContentType}`, you can also pass a string for the content type | | ||
@@ -449,3 +449,3 @@ **Returns:** `Blob` | ||
Shim for [`URL.createObjectURL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL ) to support browsers that only have the prefixed `webkitURL` (e.g. Android <4.4). | ||
Shim for [`URL.createObjectURL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL) to support browsers that only have the prefixed `webkitURL` (e.g. Android <4.4). | ||
@@ -530,3 +530,3 @@ Example: | ||
**Returns:** `Promise`<`Blob`> | ||
Promise that resolves with the <code>Blob</code> | ||
Promise that resolves with the `Blob` | ||
@@ -581,3 +581,3 @@ ___ | ||
Shim for [`URL.revokeObjectURL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL.revokeObjectURL ) to support browsers that only have the prefixed `webkitURL` (e.g. Android <4.4). | ||
Shim for [`URL.revokeObjectURL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL.revokeObjectURL) to support browsers that only have the prefixed `webkitURL` (e.g. Android <4.4). | ||
@@ -584,0 +584,0 @@ Example: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79030