Update dependencies

Signed-off-by: Richie Bendall <richiebendall@gmail.com>
This commit is contained in:
Richie Bendall
2020-05-19 21:59:02 +12:00
parent 4a46def452
commit 6fabfce52f
4 changed files with 12 additions and 9 deletions
+3
View File
@@ -1,10 +1,13 @@
language: node_js
node_js:
- "lts/*"
- "node"
script:
- npm run lint
- npm run coverage
cache:
directories:
- node_modules
Vendored
+4 -4
View File
@@ -3,10 +3,10 @@
/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
declare interface FetchBlob extends Blob {
[Symbol.toStringTag]: 'Blob';
stream(): ReadableStream;
text(): Promise<string>;
arrayBuffer(): Promise<ArrayBuffer>;
toString(): '[object Blob]';
stream: () => ReadableStream;
text: () => Promise<string>;
arrayBuffer: () => Promise<ArrayBuffer>;
toString: () => '[object Blob]';
}
+2 -2
View File
@@ -1,7 +1,7 @@
// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js
// (MIT licensed)
const {Readable} = require('stream');
const {Readable: ReadableStream} = require('stream');
const BUFFER = Symbol('buffer');
const TYPE = Symbol('type');
@@ -68,7 +68,7 @@ class Blob {
}
stream() {
const readable = new Readable();
const readable = new ReadableStream();
readable._read = () => { };
readable.push(this[BUFFER]);
readable.push(null);
+3 -3
View File
@@ -28,12 +28,12 @@
},
"homepage": "https://github.com/node-fetch/fetch-blob#readme",
"devDependencies": {
"ava": "^3.7.0",
"codecov": "^3.6.5",
"ava": "^3.8.2",
"codecov": "^3.7.0",
"get-stream": "^5.1.0",
"node-fetch": "^2.6.0",
"nyc": "^15.0.1",
"xo": "^0.29.1"
"xo": "^0.30.0"
},
"xo": {
"overrides": [