Merge pull request #21510 from overleaf/jpa-dependency-cleanup
[web] dependency cleanup GitOrigin-RevId: 5b1e0ace2b0acfd7b1b839520f7c24acda8027e3
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user