Skip to content

Commit

Permalink
fix: build error with type
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Sep 13, 2024
1 parent 780b6f1 commit 94a7958
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"dependencies": {
"@appium/base-driver": "^9.1.0",
"@appium/support": "^5.1.1",
"@xmldom/xmldom": "^0.x",
"@xmldom/xmldom": "^0.9.0",
"appium-adb": "^12.0.0",
"asyncbox": "^3.0.0",
"axios": "^1.6.5",
Expand Down

0 comments on commit 94a7958

Please sign in to comment.