Skip to content

Re-added support for loading Axios with require('axios').default; - #5225

Merged
jasonsaayman merged 2 commits into
axios:v1.xfrom
DigitalBrainJS:fix/require-default
Nov 7, 2022
Merged

jasonsaayman merged 2 commits into
axios:v1.xfrom
DigitalBrainJS:fix/require-default

Conversation

@DigitalBrainJS

@DigitalBrainJS DigitalBrainJS commented Nov 3, 2022 •

Copy link
Copy Markdown
Collaborator
  • Re-added the ability to load the module using require().default
const axios = require('axios').default;
  • Added tests;

Comment thread test/module/test.js
});
});

describe('TS require(\'axios\').default', ()=> {

Check warning

Code scanning / CodeQL

Shell command built from environment values

This shell command depends on an uncontrolled [absolute path](1).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants