Commit 1f25b0d
authored
Replaced fetch with node-fetch (#281)
* Replaced fetch with node-fetch
Fetch can be unavailable on some versions of node 18, this PR explicitly uses node-fetch for full backwards compatibility.
* Added changeset
* Syncronized package versions with types
* Downgraded node-fetch for CJS support
* Fixed tests for node-fetch changes
Fixed tests by mocking node-fetch instead of global fetch
* Fixed typescript warning on node-fetch mock1 parent ade22d6 commit 1f25b0d
7 files changed
Lines changed: 3188 additions & 3112 deletions
File tree
- .changeset
- .yarn
- packages/mcp-server
- src
- docs
- mintlify
- tests/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
0 commit comments