Skip to content

Commit

Permalink
fix: explicitly require axios/dist/node/axios.cjs because pkg fails
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Nov 17, 2023
1 parent fa1a218 commit 41954e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/metrics.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const _ = require('lodash');
const axios = require('axios');
const axios = require('axios/dist/node/axios.cjs');
const cleanStack = require('clean-stacktrace');
const Log = require('./logger');
const path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion lib/scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Promise = require('./promise');
* via require when we new Lando()
*/
const requestClient = () => {
const axios = require('axios');
const axios = require('axios/dist/node/axios.cjs');
// @todo: is it ok to turn redirects off here?
// if we don't we get an error every time http tries to redirect to https
return axios.create({
Expand Down

0 comments on commit 41954e4

Please sign in to comment.