From 798c282fd814afb748d387989c9a48a7ac0416c1 Mon Sep 17 00:00:00 2001 From: Dennis Wielepsky Date: Tue, 24 Sep 2024 15:28:30 +0200 Subject: [PATCH] replace require with import to prepare dependency update --- src/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index e3a1df7..eb4b9a0 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,6 @@ -const {Octokit} = require('@octokit/rest'); -const request = require('superagent'); -const {default: PQueue} = require('p-queue'); - +import {Octokit} from "@octokit/rest"; +import * as request from 'superagent' +import PQueue from "p-queue"; async function getGithubRepositories(username, token, mirrorPrivateRepositories, mirrorForks) { const octokit = new Octokit({