Skip to content

Commit

Permalink
fix: correct imports for node (fixes Airtable#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
studds committed Aug 26, 2020
1 parent 3d0ffc9 commit 3fa7c7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/abort-controller.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// istanbul ignore file
if (typeof window === 'undefined') {
module.exports = require('abort-controller');
module.exports = require('abort-controller').AbortController;
} else {
if ('signal' in new Request('')) {
module.exports = window.AbortController;
Expand Down
2 changes: 1 addition & 1 deletion lib/fetch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var fetch = require('node-fetch');
var fetch = require('node-fetch').default;

// istanbul ignore next
module.exports = typeof window === 'undefined' ? fetch : window.fetch;

0 comments on commit 3fa7c7b

Please sign in to comment.