feat!: upgrade webpack to 5 and add TS support

Breaking flag is because it may have some differences in the way the library is exported -
`module.exports = ` vs `module.exports.default = `. That would depend on the Webpack config,
so it should continue working, but just to be safe.
This commit is contained in:
Georgi Angelov 2024-10-10 11:45:50 +03:00
parent f4e7e908f5
commit 3d0b429526
30 changed files with 4507 additions and 5190 deletions

View file

@ -2,7 +2,7 @@ const TextDecoder = require('util').TextDecoder;
jest.mock('cross-fetch');
const mockFetch = require('cross-fetch');
const FetchTool = require('../../src/FetchTool.js');
const {FetchTool} = require('../../src/FetchTool');
test('send success returns response.text()', async () => {
const tool = new FetchTool();