diff --git a/package-lock.json b/package-lock.json index 32aacd75..130f66bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -840,6 +840,19 @@ "kuler": "^2.0.0" } }, + "node_modules/@devicefarmer/adbkit-apkreader": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@devicefarmer/adbkit-apkreader/-/adbkit-apkreader-3.2.4.tgz", + "integrity": "sha512-WtVmPuirX3/lBN9Z2AC/4DnK7XrXcMi0h3yhxNogxgp6+GVbO6W4RqmuCKlNm1PjyI2GRbw4XwGRQ8cR/IRN6A==", + "dependencies": { + "bluebird": "^3.4.7", + "debug": "~4.3.1", + "yauzl": "^2.7.0" + }, + "engines": { + "node": ">= 4" + } + }, "node_modules/@eslint-community/eslint-utils": { "version": "4.2.0", "dev": true, @@ -3772,28 +3785,6 @@ "node": ">=0.4.0" } }, - "node_modules/adbkit-apkreader": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/adbkit-apkreader/-/adbkit-apkreader-3.2.0.tgz", - "integrity": "sha512-QwsxPYCqWSmCAiW/A4gq0eytb4jtZc7WNbECIhLCRfGEB38oXzIV/YkTpkOTQFKSg3S4Svb6y///qOUH7UrWWw==", - "dependencies": { - "bluebird": "^3.4.7", - "debug": "~4.1.1", - "yauzl": "^2.7.0" - }, - "engines": { - "node": ">= 4" - } - }, - "node_modules/adbkit-apkreader/node_modules/debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)", - "dependencies": { - "ms": "^2.1.1" - } - }, "node_modules/add-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/add-stream/-/add-stream-1.0.0.tgz", @@ -3982,51 +3973,70 @@ } }, "node_modules/appium-adb": { - "version": "9.14.1", - "resolved": "https://registry.npmjs.org/appium-adb/-/appium-adb-9.14.1.tgz", - "integrity": "sha512-FNI641kzCLTm/KC1mMeASYeaphmp+H4kbjH07dei1+jyu1zlcEhRncv8xzJU8td4ZUQMwq0pP1ScKkzDzK2QvQ==", + "version": "12.0.4", + "resolved": "https://registry.npmjs.org/appium-adb/-/appium-adb-12.0.4.tgz", + "integrity": "sha512-ayCqGg8ptd95eSCNX445xyY+nvUAXqqW85EREQ5uc6Dr63slSgxiStgDW5+BnSEALZgkO5SDoes3c55xbD+Yzw==", "dependencies": { "@appium/support": "^4.0.0", - "adbkit-apkreader": "^3.1.2", + "@devicefarmer/adbkit-apkreader": "^3.2.4", "async-lock": "^1.0.0", - "asyncbox": "^2.6.0", + "asyncbox": "^3.0.0", "bluebird": "^3.4.7", - "ini": "^3.0.0", + "ini": "^4.1.1", "lodash": "^4.0.0", - "lru-cache": "^7.3.0", + "lru-cache": "^10.0.0", "semver": "^7.0.0", "source-map-support": "^0.x", - "teen_process": "^2.0.1", - "utf7": "^1.0.2" + "teen_process": "^2.0.1" }, "engines": { "node": ">=14", "npm": ">=8" } }, + "node_modules/appium-adb/node_modules/asyncbox": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/asyncbox/-/asyncbox-3.0.0.tgz", + "integrity": "sha512-X7U0nedUMKV3nn9c4R0Zgvdvv6cw97tbDlHSZicq1snGPi/oX9DgGmFSURWtxDdnBWd3V0YviKhqAYAVvoWQ/A==", + "dependencies": { + "bluebird": "^3.5.1", + "lodash": "^4.17.4", + "source-map-support": "^0.x" + }, + "engines": { + "node": ">=16" + } + }, "node_modules/appium-adb/node_modules/ini": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ini/-/ini-3.0.1.tgz", - "integrity": "sha512-it4HyVAUTKBc6m8e1iXWvXSTdndF7HbdN713+kvLrymxTaU4AUBWrJ4vEooP+V7fexnVD3LKcBshjGGPefSMUQ==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/ini/-/ini-4.1.2.tgz", + "integrity": "sha512-AMB1mvwR1pyBFY/nSevUX6y8nJWS63/SzUKD3JyQn97s4xgIdgQPT75IRouIiBAN4yLQBUShNYVW0+UG25daCw==", "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/appium-adb/node_modules/lru-cache": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", + "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", + "engines": { + "node": "14 || >=16.14" } }, "node_modules/appium-chromedriver": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/appium-chromedriver/-/appium-chromedriver-5.5.1.tgz", - "integrity": "sha512-EJeJbpzRug2Nlz7kAoHbqxuKM1E5oEmjdfjV6BHL8y4mbQ25emj68cgcEbfUfhbx+UdMtff6bLz4co+a/PwtZA==", + "version": "5.6.38", + "resolved": "https://registry.npmjs.org/appium-chromedriver/-/appium-chromedriver-5.6.38.tgz", + "integrity": "sha512-thG7eV99DmroGrrmzfRMGSjxsbEQ1a8rEsum/yeb5ky5TNwq+bMA5wqnPOys+FuxrC7VOU72SzKYKQt3fLodPQ==", "hasInstallScript": true, "dependencies": { "@appium/base-driver": "^9.1.0", "@appium/support": "^4.0.0", - "@babel/runtime": "^7.0.0", "@xmldom/xmldom": "^0.x", - "appium-adb": "^9.14.1", - "asyncbox": "^2.0.2", - "axios": "^1.x", + "appium-adb": "^12.0.0", + "asyncbox": "^3.0.0", + "axios": "^1.6.5", "bluebird": "^3.5.1", - "compare-versions": "^5.0.0", + "compare-versions": "^6.0.0", "fancy-log": "^2.0.0", "lodash": "^4.17.4", "semver": "^7.0.0", @@ -4039,6 +4049,29 @@ "npm": ">=8" } }, + "node_modules/appium-chromedriver/node_modules/asyncbox": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/asyncbox/-/asyncbox-3.0.0.tgz", + "integrity": "sha512-X7U0nedUMKV3nn9c4R0Zgvdvv6cw97tbDlHSZicq1snGPi/oX9DgGmFSURWtxDdnBWd3V0YviKhqAYAVvoWQ/A==", + "dependencies": { + "bluebird": "^3.5.1", + "lodash": "^4.17.4", + "source-map-support": "^0.x" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/appium-chromedriver/node_modules/axios": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", + "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", + "dependencies": { + "follow-redirects": "^1.15.4", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/appium-tizen-tv-driver": { "resolved": "packages/appium-tizen-tv-driver", "link": true @@ -5382,8 +5415,9 @@ "license": "ISC" }, "node_modules/compare-versions": { - "version": "5.0.1", - "license": "MIT" + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-6.1.0.tgz", + "integrity": "sha512-LNZQXhqUvqUTotpZ00qLSaify3b4VFD588aRr8MKFw4CMUr98ytzCW5wDH5qx/DEY5kCDXcbcRuCqL0szEf2tg==" }, "node_modules/compress-commons": { "version": "4.1.1", @@ -7698,14 +7732,15 @@ "license": "MIT" }, "node_modules/follow-redirects": { - "version": "1.15.1", + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", + "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", "funding": [ { "type": "individual", "url": "https://github.com/sponsors/RubenVerborgh" } ], - "license": "MIT", "engines": { "node": ">=4.0" }, @@ -17481,22 +17516,6 @@ "node": ">= 0.8.0" } }, - "node_modules/utf7": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/utf7/-/utf7-1.0.2.tgz", - "integrity": "sha512-qQrPtYLLLl12NF4DrM9CvfkxkYI97xOb5dsnGZHE3teFr0tWiEZ9UdgMPczv24vl708cYMpe6mGXGHrotIp3Bw==", - "dependencies": { - "semver": "~5.3.0" - } - }, - "node_modules/utf7/node_modules/semver": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", - "integrity": "sha512-mfmm3/H9+67MCVix1h+IXTpDwL6710LyHuk7+cWC9T1mE0qz4iHhh6r4hU2wrIT9iTsAAC2XQRvfblL028cpLw==", - "bin": { - "semver": "bin/semver" - } - }, "node_modules/utf8-byte-length": { "version": "1.0.4", "license": "WTFPL" @@ -19559,7 +19578,7 @@ "dependencies": { "@appium/types": "0.13.4", "@headspinio/tizen-remote": "^0.5.1", - "appium-chromedriver": "5.5.1", + "appium-chromedriver": "5.6.38", "asyncbox": "2.9.4", "bluebird": "3.7.2", "get-port": "5.1.1", diff --git a/packages/appium-tizen-tv-driver/lib/driver.js b/packages/appium-tizen-tv-driver/lib/driver.js index 55a4752d..3a18ba8a 100644 --- a/packages/appium-tizen-tv-driver/lib/driver.js +++ b/packages/appium-tizen-tv-driver/lib/driver.js @@ -430,6 +430,7 @@ class TizenTVDriver extends BaseDriver { if (!this.#chromedriver) { throw new Error('Chromedriver is not running'); } + // @ts-ignore return await this.#chromedriver.sendCommand(endpointPath, 'POST', { script: wrappedScript, args: args ?? [], @@ -458,6 +459,7 @@ class TizenTVDriver extends BaseDriver { } log.debug(`Stopping chromedriver`); // stop listening for the stopped state event + // @ts-ignore this.#chromedriver.removeAllListeners(Chromedriver.EVENT_CHANGED); try { await this.#chromedriver.stop(); diff --git a/packages/appium-tizen-tv-driver/package.json b/packages/appium-tizen-tv-driver/package.json index 1d418d95..9b7c7b27 100644 --- a/packages/appium-tizen-tv-driver/package.json +++ b/packages/appium-tizen-tv-driver/package.json @@ -36,7 +36,7 @@ "dependencies": { "@appium/types": "0.13.4", "@headspinio/tizen-remote": "^0.5.1", - "appium-chromedriver": "5.5.1", + "appium-chromedriver": "5.6.38", "asyncbox": "2.9.4", "bluebird": "3.7.2", "get-port": "5.1.1",