Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const MAX_PARTS = 10000;
function request (options, condition = isNetworkOrIdempotentRequestError) {
const environment = config.getEnvironment();

const account = options.account || config.get(`${environment}.defaults.account`);
const account = options.account || process.env.PHC_ACCOUNT || config.get(`${environment}.defaults.account`);
if (!account) {
throw new Error(`Account needs to be set with 'lo defaults' or specified with the -a option.`);
}
Expand Down
3 changes: 0 additions & 3 deletions lo.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ const chalk = require('chalk');
const debug = require('debug')('lo');
const yargs = require('yargs');

// Needed because the cognito library tries to fetch the user-agent from the browser
global.navigator = () => null;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I can tell, the Cognito library referenced here was removed here. I suspect this was just never updated.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For context, this line breaks in Node 22 because global.navigator is immutable.


function handleError (msg, err) {
debug(`%j`, msg);
if (err && err.response) {
Expand Down
Loading