Commit b062926 1 parent 92db81b commit b062926 Copy full SHA for b062926
File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ import {
10
10
CPU ,
11
11
APPLE_ARM_SUFFIXES ,
12
12
} from '../constants' ;
13
- import { DOMParser } from '@xmldom/xmldom' ;
14
- import path from 'path' ;
13
+ import { DOMParser , MIME_TYPE } from '@xmldom/xmldom' ;
14
+ import path from 'node: path' ;
15
15
16
16
17
17
const log = logger . getLogger ( 'ChromedriverGoogleapisStorageClient' ) ;
@@ -95,7 +95,7 @@ export function parseNotes(content) {
95
95
* @returns {Promise<ChromedriverDetailsMapping> }
96
96
*/
97
97
export async function parseGoogleapiStorageXml ( xml , shouldParseNotes = true ) {
98
- const doc = new DOMParser ( ) . parseFromString ( xml ) ;
98
+ const doc = new DOMParser ( ) . parseFromString ( xml , MIME_TYPE ?. XML_TEXT ?? 'text/xml' ) ;
99
99
const driverNodes = /** @type {Array<Node|Attr> } */ (
100
100
xpath . select ( `//*[local-name(.)='Contents']` , doc )
101
101
) ;
Original file line number Diff line number Diff line change 5
5
"types" : [ "node" ] ,
6
6
"outDir" : "build" ,
7
7
"checkJs" : true ,
8
+ "esModuleInterop" : true ,
8
9
"lib" : [ "es2020" , "dom" ]
9
10
} ,
10
11
"include" : [ "lib" ]
You can’t perform that action at this time.
0 commit comments