Skip to content

Commit

Permalink
fix: build error with type of xmldom (#428)
Browse files Browse the repository at this point in the history
* fix: build error with type

* keep x
  • Loading branch information
KazuCocoa authored Sep 13, 2024
1 parent 780b6f1 commit 0c3838f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/storage-client/googleapis.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ export function parseNotes(content) {
export async function parseGoogleapiStorageXml(xml, shouldParseNotes = true) {
const doc = new DOMParser().parseFromString(xml, MIME_TYPE?.XML_TEXT ?? 'text/xml');
const driverNodes = /** @type {Array<Node|Attr>} */ (
// @ts-expect-error Misssing Node properties are not needed.
// https://github.com/xmldom/xmldom/issues/724
xpath.select(`//*[local-name(.)='Contents']`, doc)
);
log.debug(`Parsed ${driverNodes.length} entries from storage XML`);
Expand Down

0 comments on commit 0c3838f

Please sign in to comment.