Merge pull request #21510 from overleaf/jpa-dependency-cleanup

[web] dependency cleanup

GitOrigin-RevId: 5b1e0ace2b0acfd7b1b839520f7c24acda8027e3
This commit is contained in:
Jakob Ackermann
2024-11-01 09:05:28 +00:00
committed by Copybot
parent 5bb90dc6cb
commit 9745c045ba
8 changed files with 57 additions and 112 deletions
@@ -7,7 +7,7 @@
import { Certificate } from '@fidm/x509'
import _ from 'lodash'
import moment from 'moment'
import fs from 'fs-extra'
import fs from 'fs'
import xml2js from 'xml2js'
function checkCertDates(signingKey) {
@@ -45,7 +45,7 @@ async function main() {
console.log('Checking SAML metadata')
const data = await fs.readFile(file, 'utf8')
const data = await fs.promises.readFile(file, 'utf8')
const parser = new xml2js.Parser()
const xml = await parser.parseStringPromise(data)
+2 -2
View File
@@ -1,4 +1,4 @@
import fs from 'fs-extra'
import fs from 'fs'
import xml2js from 'xml2js'
import UKAMFEntity from './ukamf-entity.js'
@@ -8,7 +8,7 @@ class UKAMFDB {
}
async init() {
const data = await fs.readFile(this.file, 'utf8')
const data = await fs.promises.readFile(this.file, 'utf8')
const parser = new xml2js.Parser()
const xml = await parser.parseStringPromise(data)