Commit dab0aef
[superagent] Fix
At the moment, some users' builds fail, because `Blob` isn't defined as
a global in Node.js - it sits in the [`buffer`][1] package.
This change adds an import from `buffer` to fix this issue.
Note that I think the build was incorrectly passing before because of
a [leaky interface in `stream/consumers`][2].
Note that I've had to disable the linter's `no-outside-dependencies`
because of a [known false positive on `buffer`][3].
[1]: https://nodejs.org/api/buffer.html#class-blob
[2]: DefinitelyTyped#55311 (comment)
[3]: microsoft/dtslint#315Blob error (DefinitelyTyped#58312)1 parent 37e33d8 commit dab0aef
3 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
222 | | - | |
| 223 | + | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments