mirror of
https://github.com/badges/shields.git
synced 2025-07-05 13:41:14 +03:00
Migrate from CommonJS to ESM (#6651)
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
'use strict'
|
||||
|
||||
const Joi = require('joi')
|
||||
const t = (module.exports = require('../tester').createServiceTester())
|
||||
import Joi from 'joi'
|
||||
import { createServiceTester } from '../tester.js'
|
||||
export const t = await createServiceTester()
|
||||
|
||||
const isPipeSeparatedPythonVersions = Joi.string().regex(
|
||||
/^([1-9]\.[0-9]+(?: \| )?)+$/
|
||||
|
Reference in New Issue
Block a user