Skip to content

Commit

Permalink
fetch.js: migrate to import
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcarroty authored Oct 9, 2024
1 parent a7b1d58 commit f261c67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fetch.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fs = require('fs');
const timersPromises = require('timers/promises');
import fs from 'fs';
import timersPromises from 'timers/promises';
const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));


Expand Down

0 comments on commit f261c67

Please sign in to comment.