mirror of
https://github.com/appium/appium.git
synced 2026-02-20 10:20:05 -06:00
chore(universal-xml-plugin): remove dead code; typecheck all js sources
This commit is contained in:
@@ -1,20 +1,12 @@
|
||||
/* eslint-disable no-case-declarations */
|
||||
|
||||
import BasePlugin from 'appium/plugin';
|
||||
import {BasePlugin} from 'appium/plugin';
|
||||
import {errors} from 'appium/driver';
|
||||
import {transformSourceXml} from './source';
|
||||
import {transformQuery} from './xpath';
|
||||
import log from './logger';
|
||||
|
||||
export default class UniversalXMLPlugin extends BasePlugin {
|
||||
commands = [
|
||||
'getPageSource',
|
||||
'findElement',
|
||||
'findElements',
|
||||
'findElementFromElement',
|
||||
'findElementsFromElement',
|
||||
];
|
||||
|
||||
async getPageSource(next, driver, sessId, addIndexPath = false) {
|
||||
const source = next ? await next() : await driver.getPageSource();
|
||||
const metadata = {};
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "build"
|
||||
"outDir": "build",
|
||||
"checkJs": true
|
||||
},
|
||||
"extends": "@appium/tsconfig/tsconfig.plugin.json",
|
||||
"include": ["lib"]
|
||||
|
||||
Reference in New Issue
Block a user