Updated dependencies

Gosh i hate linters. Want to remove them...
This commit is contained in:
Jimmy Wärting
2021-04-20 16:32:18 +02:00
parent 149030ddbe
commit 0d2cd8b9b7
3 changed files with 19 additions and 17 deletions
+2 -1
View File
@@ -24,7 +24,7 @@ class Blob {
* @param {(ArrayBufferLike | ArrayBufferView | Blob | Buffer | string)[]} blobParts
* @param {{ type?: string }} [options]
*/
constructor(blobParts = [], options = {type: ''}) {
constructor(blobParts = [], options = {}) {
let size = 0;
const parts = blobParts.map(element => {
@@ -41,6 +41,7 @@ class Blob {
buffer = Buffer.from(typeof element === 'string' ? element : String(element));
}
// eslint-disable-next-line unicorn/explicit-length-check
size += buffer.length || buffer.size || 0;
return buffer;
});
+13 -14
View File
@@ -30,23 +30,15 @@
"url": "https://github.com/node-fetch/fetch-blob/issues"
},
"homepage": "https://github.com/node-fetch/fetch-blob#readme",
"devDependencies": {
"ava": "^3.8.2",
"c8": "^7.2.0",
"codecov": "^3.7.0",
"domexception": "^2.0.1",
"get-stream": "^5.1.0",
"node-fetch": "^2.6.0",
"typescript": "^3.9.5",
"xo": "^0.32.0"
},
"xo": {
"rules": {
"unicorn/import-index": "off",
"import/extensions": [
"error",
"always",
{ "ignorePackages": true }
{
"ignorePackages": true
}
]
},
"overrides": [
@@ -59,12 +51,19 @@
}
]
},
"peerDependencies": {
"domexception": "^2.0.1"
},
"peerDependenciesMeta": {
"domexception": {
"optional": true
}
},
"devDependencies": {
"ava": "^3.15.0",
"c8": "^7.7.1",
"codecov": "^3.8.1",
"domexception": "^2.0.1",
"get-stream": "^6.0.1",
"node-fetch": "^2.6.1",
"typescript": "^4.2.4",
"xo": "^0.38.2"
}
}
+4 -2
View File
@@ -153,7 +153,9 @@ test('blob part backed up by filesystem', async t => {
test('Reading after modified should fail', async t => {
const blob = blobFrom('./LICENSE');
await new Promise(resolve => setTimeout(resolve, 100));
await new Promise(resolve => {
setTimeout(resolve, 100);
});
const now = new Date();
// Change modified time
fs.utimesSync('./LICENSE', now, now);
@@ -163,7 +165,7 @@ test('Reading after modified should fail', async t => {
test('Blob-ish class is an instance of Blob', t => {
class File {
stream() { }
stream() {}
get [Symbol.toStringTag]() {
return 'File';