import * as xml from 'fast-xml-parser' ; import { Response } from 'node-fetch' ; import { camelCaseObject } from './util' ; export async function parseBody ( resp ) { const xmlString = await resp . text ( ) ; return camelCaseObject ( xml . parse ( xmlString , { parseTrueNumberOnly : true , } ) ) ; }