Skip to content

Commit 0c3838f

Browse files
authored
fix: build error with type of xmldom (#428)
* fix: build error with type * keep x
1 parent 780b6f1 commit 0c3838f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/storage-client/googleapis.js

+2
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ export function parseNotes(content) {
9797
export async function parseGoogleapiStorageXml(xml, shouldParseNotes = true) {
9898
const doc = new DOMParser().parseFromString(xml, MIME_TYPE?.XML_TEXT ?? 'text/xml');
9999
const driverNodes = /** @type {Array<Node|Attr>} */ (
100+
// @ts-expect-error Misssing Node properties are not needed.
101+
// https://github.com/xmldom/xmldom/issues/724
100102
xpath.select(`//*[local-name(.)='Contents']`, doc)
101103
);
102104
log.debug(`Parsed ${driverNodes.length} entries from storage XML`);

0 commit comments

Comments
 (0)