ctimmerm / axios-mock-adapter

Axios adapter that allows to easily mock requests
MIT License
3.44k stars 241 forks source link

fix: npm package is-blob has an arrow function #313

Closed linghucq1 closed 2 years ago

linghucq1 commented 2 years ago

Arrow function will not be transformed by babel when exclude node_modules. And it can't be recognized on low version Android phone webview.

ctimmerm commented 2 years ago

Thanks for the PR! Please note that when copying MIT-licensed code, the license and copyright notice need to be included with the code.

andrewaziz commented 2 years ago

@linghucq1 The "is-blob" package needs to be removed from package.json (and in turn the lock file) as well in order for this fix to be valid.

kiccer commented 2 years ago

I had the same problem while packaging and finally found that it was a problem with the arrow function in the is-blob package, please fix this.

ctimmerm commented 2 years ago

Handled in e1700fdcb7e483a21cc1654c1031fe591db27eac