replace require with import to prepare dependency update
parent
7a83797d06
commit
798c282fd8
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue