replace require with import to prepare dependency update

main
Dennis Wielepsky 2024-09-24 15:28:30 +02:00
parent 7a83797d06
commit 798c282fd8
1 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,6 @@
const {Octokit} = require('@octokit/rest'); import {Octokit} from "@octokit/rest";
const request = require('superagent'); import * as request from 'superagent'
const {default: PQueue} = require('p-queue'); import PQueue from "p-queue";
async function getGithubRepositories(username, token, mirrorPrivateRepositories, mirrorForks) { async function getGithubRepositories(username, token, mirrorPrivateRepositories, mirrorForks) {
const octokit = new Octokit({ const octokit = new Octokit({