mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #21284 from overleaf/ls-scripts-to-esm-6
Migrate scripts/ukamf to esm GitOrigin-RevId: e7318d9fb112304153912303649fc597ef7a19db
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
'use strict'
|
||||
|
||||
/**
|
||||
* Run with: node metadata-processor /path/ukamf.xml http://idp/entity/id
|
||||
*
|
||||
@@ -11,14 +9,9 @@
|
||||
* The entity id should be provided by the university.
|
||||
*/
|
||||
|
||||
const { Certificate } = require('@fidm/x509')
|
||||
const moment = require('moment')
|
||||
|
||||
const UKAMFDB = require('./ukamf-db')
|
||||
|
||||
main().catch(err => {
|
||||
console.error(err.stack)
|
||||
})
|
||||
import { Certificate } from '@fidm/x509'
|
||||
import moment from 'moment'
|
||||
import UKAMFDB from './ukamf-db.js'
|
||||
|
||||
async function main() {
|
||||
const [, , file, entityId] = process.argv
|
||||
@@ -71,3 +64,9 @@ async function main() {
|
||||
console.log('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
await main()
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user