Skip to content

Commit 91a8b24

Browse files
committed
lint
1 parent 7180baa commit 91a8b24

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

index.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js
22
// (MIT licensed)
33

4-
const { Readable } = require('stream');
5-
const { types } = require('util');
4+
const {Readable} = require('stream');
5+
const {types} = require('util');
66

77
/**
88
* @type {WeakMap<Blob, { type: string, buffer: Buffer }}
@@ -15,7 +15,7 @@ class Blob {
1515
* @param {(ArrayBufferLike | ArrayBufferView | Blob | Buffer | string)[]} blobParts
1616
* @param {{ type?: string }} [options]
1717
*/
18-
constructor(blobParts = [], options = { type: '' }) {
18+
constructor(blobParts = [], options = {type: ''}) {
1919
const buffers = blobParts.map(element => {
2020
if (Buffer.isBuffer(element)) {
2121
return element;
@@ -96,13 +96,13 @@ class Blob {
9696

9797
/**
9898
* The Blob interface's slice() method creates and returns a new Blob object which contains data from a subset of the blob on which it's called.
99-
*
100-
* @param {number} [start]
101-
* @param {number} [end]
99+
*
100+
* @param {number} [start]
101+
* @param {number} [end]
102102
* @param {string} [contentType]
103103
*/
104104
slice(start, end, contentType) {
105-
const { size } = this;
105+
const {size} = this;
106106

107107
let relativeStart;
108108
let relativeEnd;
@@ -128,17 +128,17 @@ class Blob {
128128
relativeStart,
129129
relativeStart + span
130130
);
131-
const blob = new Blob([], { type: contentType });
131+
const blob = new Blob([], {type: contentType});
132132
const _ = wm.get(blob);
133133
_.buffer = slicedBuffer;
134134
return blob;
135135
}
136136
}
137137

138138
Object.defineProperties(Blob.prototype, {
139-
size: { enumerable: true },
140-
type: { enumerable: true },
141-
slice: { enumerable: true }
139+
size: {enumerable: true},
140+
type: {enumerable: true},
141+
slice: {enumerable: true}
142142
});
143143

144144
module.exports = Blob;

0 commit comments

Comments
 (0)