From ce8761b2ed3ea9fe35faebe7d0ab5848064d3a63 Mon Sep 17 00:00:00 2001 From: Christian Bewernitz Date: Sat, 25 Dec 2021 10:43:54 +0100 Subject: [PATCH] chore: Bump xmldom from 0.6.0 to 0.8.0 Actually just a switch from package `xmldom` to `@xmldom/xmldom`, as in https://github.com/appium/appium-chromedriver/pull/228. The reason is that the maintainers were forced to switch to a scoped package since 0.7.0: https://github.com/xmldom/xmldom/issues/271 --- lib/commands/find.js | 2 +- package.json | 2 +- test/e2e/testapp/source-specs.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/commands/find.js b/lib/commands/find.js index c6d7539e..5be6b86d 100644 --- a/lib/commands/find.js +++ b/lib/commands/find.js @@ -3,7 +3,7 @@ import { util } from 'appium-support'; import { errors } from 'appium-base-driver'; import _ from 'lodash'; import js2xml from 'js2xmlparser2'; -import XMLDom from 'xmldom'; +import XMLDom from '@xmldom/xmldom'; import xpath from 'xpath'; import B from 'bluebird'; import { unwrapEl } from '../utils'; diff --git a/package.json b/package.json index 8f86bd92..0217e597 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "source-map-support": "^0.x", "teen_process": "^1.6.0", "through": "^2.3.8", - "xmldom": "^0.x", + "@xmldom/xmldom": "^0.x", "xpath": "^0.x" }, "scripts": { diff --git a/test/e2e/testapp/source-specs.js b/test/e2e/testapp/source-specs.js index 6d6c1dd9..579c1f16 100644 --- a/test/e2e/testapp/source-specs.js +++ b/test/e2e/testapp/source-specs.js @@ -1,6 +1,6 @@ import setup from '../setup-base'; import desired from './desired'; -import { DOMParser as XMLDom } from 'xmldom'; +import { DOMParser as XMLDom } from '@xmldom/xmldom'; import xpath from 'xpath'; describe('testapp - source', function () {