Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
catscarlet committed Sep 17, 2021
2 parents a0dbd01 + 7d6bddb commit 0e8a443
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -19,6 +19,6 @@ jobs:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
2 changes: 1 addition & 1 deletion lib/adapters/xhr.js
Expand Up @@ -104,7 +104,7 @@ module.exports = function xhrAdapter(config) {

// Handle timeout
request.ontimeout = function handleTimeout() {
var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
if (config.timeoutErrorMessage) {
timeoutErrorMessage = config.timeoutErrorMessage;
}
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Expand Up @@ -11,7 +11,8 @@ function generateConfig(name) {
filename: name + '.js',
sourceMapFilename: name + '.map',
library: 'axios',
libraryTarget: 'umd'
libraryTarget: 'umd',
globalObject: 'this'
},
node: {
process: false
Expand Down

0 comments on commit 0e8a443

Please sign in to comment.