Skip to content

Commit

Permalink
fix: crash on node v21 (dropbox#1130)
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser authored Mar 16, 2024
1 parent 6bfaf89 commit 4f114de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class DropboxAuth {
crypto = self.crypto;
/* eslint-enable no-restricted-globals */
} else {
fetch = require('node-fetch'); // eslint-disable-line global-require
fetch = options.fetch || require('node-fetch'); // eslint-disable-line global-require
crypto = require('crypto'); // eslint-disable-line global-require
}

Expand Down

0 comments on commit 4f114de

Please sign in to comment.