appium-android-driver 5.13.0 → 5.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/build/index.js +43 -40
- package/build/lib/android-helpers.d.ts +136 -0
- package/build/lib/android-helpers.d.ts.map +1 -0
- package/build/lib/android-helpers.js +760 -679
- package/build/lib/android-helpers.js.map +1 -1
- package/build/lib/bootstrap.d.ts +29 -0
- package/build/lib/bootstrap.d.ts.map +1 -0
- package/build/lib/bootstrap.js +192 -179
- package/build/lib/bootstrap.js.map +1 -1
- package/build/lib/commands/actions.d.ts +209 -0
- package/build/lib/commands/actions.d.ts.map +1 -0
- package/build/lib/commands/actions.js +327 -265
- package/build/lib/commands/actions.js.map +1 -1
- package/build/lib/commands/alert.d.ts +10 -0
- package/build/lib/commands/alert.d.ts.map +1 -0
- package/build/lib/commands/alert.js +12 -18
- package/build/lib/commands/alert.js.map +1 -1
- package/build/lib/commands/app-management.d.ts +314 -0
- package/build/lib/commands/app-management.d.ts.map +1 -0
- package/build/lib/commands/app-management.js +278 -110
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/context.d.ts +94 -0
- package/build/lib/commands/context.d.ts.map +1 -0
- package/build/lib/commands/context.js +412 -260
- package/build/lib/commands/context.js.map +1 -1
- package/build/lib/commands/coverage.d.ts +5 -0
- package/build/lib/commands/coverage.d.ts.map +1 -0
- package/build/lib/commands/coverage.js +14 -17
- package/build/lib/commands/coverage.js.map +1 -1
- package/build/lib/commands/element.d.ts +36 -0
- package/build/lib/commands/element.d.ts.map +1 -0
- package/build/lib/commands/element.js +97 -127
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/emu-console.d.ts +49 -0
- package/build/lib/commands/emu-console.d.ts.map +1 -0
- package/build/lib/commands/emu-console.js +36 -25
- package/build/lib/commands/emu-console.js.map +1 -1
- package/build/lib/commands/execute.d.ts +6 -0
- package/build/lib/commands/execute.d.ts.map +1 -0
- package/build/lib/commands/execute.js +68 -69
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/file-actions.d.ts +129 -0
- package/build/lib/commands/file-actions.d.ts.map +1 -0
- package/build/lib/commands/file-actions.js +321 -178
- package/build/lib/commands/file-actions.js.map +1 -1
- package/build/lib/commands/find.d.ts +13 -0
- package/build/lib/commands/find.d.ts.map +1 -0
- package/build/lib/commands/find.js +69 -51
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/general.d.ts +133 -0
- package/build/lib/commands/general.d.ts.map +1 -0
- package/build/lib/commands/general.js +275 -216
- package/build/lib/commands/general.js.map +1 -1
- package/build/lib/commands/ime.d.ts +11 -0
- package/build/lib/commands/ime.d.ts.map +1 -0
- package/build/lib/commands/ime.js +27 -33
- package/build/lib/commands/ime.js.map +1 -1
- package/build/lib/commands/index.d.ts +3 -0
- package/build/lib/commands/index.d.ts.map +1 -0
- package/build/lib/commands/index.js +32 -35
- package/build/lib/commands/index.js.map +1 -1
- package/build/lib/commands/intent.d.ts +418 -0
- package/build/lib/commands/intent.d.ts.map +1 -0
- package/build/lib/commands/intent.js +281 -151
- package/build/lib/commands/intent.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts +6 -0
- package/build/lib/commands/keyboard.d.ts.map +1 -0
- package/build/lib/commands/keyboard.js +6 -14
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/log.d.ts +45 -0
- package/build/lib/commands/log.d.ts.map +1 -0
- package/build/lib/commands/log.js +117 -103
- package/build/lib/commands/log.js.map +1 -1
- package/build/lib/commands/media-projection.d.ts +144 -0
- package/build/lib/commands/media-projection.d.ts.map +1 -0
- package/build/lib/commands/media-projection.js +228 -171
- package/build/lib/commands/media-projection.js.map +1 -1
- package/build/lib/commands/network.d.ts +139 -0
- package/build/lib/commands/network.d.ts.map +1 -0
- package/build/lib/commands/network.js +249 -181
- package/build/lib/commands/network.js.map +1 -1
- package/build/lib/commands/performance.d.ts +101 -0
- package/build/lib/commands/performance.d.ts.map +1 -0
- package/build/lib/commands/performance.js +390 -236
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/permissions.d.ts +93 -0
- package/build/lib/commands/permissions.d.ts.map +1 -0
- package/build/lib/commands/permissions.js +133 -93
- package/build/lib/commands/permissions.js.map +1 -1
- package/build/lib/commands/recordscreen.d.ts +194 -0
- package/build/lib/commands/recordscreen.d.ts.map +1 -0
- package/build/lib/commands/recordscreen.js +293 -224
- package/build/lib/commands/recordscreen.js.map +1 -1
- package/build/lib/commands/shell.d.ts +8 -0
- package/build/lib/commands/shell.d.ts.map +1 -0
- package/build/lib/commands/shell.js +38 -43
- package/build/lib/commands/shell.js.map +1 -1
- package/build/lib/commands/streamscreen.d.ts +104 -0
- package/build/lib/commands/streamscreen.d.ts.map +1 -0
- package/build/lib/commands/streamscreen.js +364 -305
- package/build/lib/commands/streamscreen.js.map +1 -1
- package/build/lib/commands/system-bars.d.ts +100 -0
- package/build/lib/commands/system-bars.d.ts.map +1 -0
- package/build/lib/commands/system-bars.js +148 -90
- package/build/lib/commands/system-bars.js.map +1 -1
- package/build/lib/commands/touch.d.ts +30 -0
- package/build/lib/commands/touch.d.ts.map +1 -0
- package/build/lib/commands/touch.js +311 -287
- package/build/lib/commands/touch.js.map +1 -1
- package/build/lib/desired-caps.d.ts +353 -0
- package/build/lib/desired-caps.d.ts.map +1 -0
- package/build/lib/desired-caps.js +291 -292
- package/build/lib/desired-caps.js.map +1 -1
- package/build/lib/driver.d.ts +430 -0
- package/build/lib/driver.d.ts.map +1 -0
- package/build/lib/driver.js +449 -384
- package/build/lib/driver.js.map +1 -1
- package/build/lib/logger.d.ts +3 -0
- package/build/lib/logger.d.ts.map +1 -0
- package/build/lib/logger.js +5 -11
- package/build/lib/logger.js.map +1 -1
- package/build/lib/method-map.d.ts +389 -0
- package/build/lib/method-map.d.ts.map +1 -0
- package/build/lib/method-map.js +220 -394
- package/build/lib/method-map.js.map +1 -1
- package/build/lib/stubs.d.ts +8 -0
- package/build/lib/stubs.d.ts.map +1 -0
- package/build/lib/stubs.js +5 -0
- package/build/lib/stubs.js.map +1 -0
- package/build/lib/uiautomator.d.ts +24 -0
- package/build/lib/uiautomator.d.ts.map +1 -0
- package/build/lib/uiautomator.js +86 -82
- package/build/lib/uiautomator.js.map +1 -1
- package/build/lib/unlock-helpers.d.ts +38 -0
- package/build/lib/unlock-helpers.d.ts.map +1 -0
- package/build/lib/unlock-helpers.js +228 -204
- package/build/lib/unlock-helpers.js.map +1 -1
- package/build/lib/utils.d.ts +11 -0
- package/build/lib/utils.d.ts.map +1 -0
- package/build/lib/utils.js +23 -18
- package/build/lib/utils.js.map +1 -1
- package/build/lib/webview-helpers.d.ts +223 -0
- package/build/lib/webview-helpers.d.ts.map +1 -0
- package/build/lib/webview-helpers.js +476 -298
- package/build/lib/webview-helpers.js.map +1 -1
- package/index.js +3 -1
- package/lib/android-helpers.js +2 -1
- package/lib/stubs.ts +8 -0
- package/lib/unlock-helpers.js +2 -2
- package/package.json +23 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-actions.js","names":["_lodash","_interopRequireDefault","require","_support","_path","_driver","_utils","CONTAINER_PATH_MARKER","CONTAINER_PATH_PATTERN","RegExp","ANDROID_MEDIA_RESCAN_INTENT","commands","exports","parseContainerPath","remotePath","match","exec","Error","path","posix","resolve","scanMedia","adb","log","debug","getApiLevel","shell","e","warn","stderr","message","escapePath","p","replace","pullFile","endsWith","errors","InvalidArgumentError","tmpDestination","startsWith","packageId","pathInContainer","basename","errorAndThrow","localFile","tempDir","prefix","suffix","pull","util","toInMemoryBase64","toString","fs","exists","unlink","mobilePullFile","opts","requireArgs","pushFile","base64Data","_","isArray","Buffer","from","content","writeFile","dirname","push","mobilePushFile","payload","pullFolder","tmpRoot","openDir","zip","toInMemoryZip","encodeToBase64","rimraf","mobilePullFolder","deleteFileOrFolder","performRemoteFsCheck","op","runAs","passFlag","checkCmd","fullCmd","includes","ign","isFile","isDir","isPresent","dstPath","pkgId","info","expectsFile","mobileDeleteFile","_default","default"],"sources":["../../../lib/commands/file-actions.js"],"sourcesContent":["import _ from 'lodash';\nimport { fs, util, zip, tempDir } from '@appium/support';\nimport path from 'path';\nimport { errors } from 'appium/driver';\nimport { requireArgs } from '../utils';\n\n\nconst CONTAINER_PATH_MARKER = '@';\n// https://regex101.com/r/PLdB0G/2\nconst CONTAINER_PATH_PATTERN = new RegExp(`^${CONTAINER_PATH_MARKER}([^/]+)/(.+)`);\nconst ANDROID_MEDIA_RESCAN_INTENT = 'android.intent.action.MEDIA_SCANNER_SCAN_FILE';\n\n\nconst commands = {};\n\n/**\n * Parses the actual destination path from the given value\n *\n * @param {string} remotePath The preformatted remote path, which looks like\n * `@my.app.id/my/path`\n * @returns {Array<string>} An array, where the first item is the parsed package\n * identifier and the second one is the actual destination path inside the package.\n * @throws {Error} If the given string cannot be parsed\n */\nfunction parseContainerPath (remotePath) {\n const match = CONTAINER_PATH_PATTERN.exec(remotePath);\n if (!match) {\n throw new Error(`It is expected that package identifier is separated from the relative path with a single slash. ` +\n `'${remotePath}' is given instead`);\n }\n return [match[1], path.posix.resolve(`/data/data/${match[1]}`, match[2])];\n}\n\n/**\n * Scans the given file/folder on the remote device\n * and adds matching items to the device's media library.\n * Exceptions are ignored and written into the log.\n *\n * @param {ADB} adb ADB instance\n * @param {Object?} log Logger instance\n * @param {string} remotePath The file/folder path on the remote device\n */\nasync function scanMedia (adb, remotePath, log = null) {\n log?.debug(`Performing media scan of '${remotePath}'`);\n try {\n // https://github.com/appium/appium/issues/16184\n if (await adb.getApiLevel() >= 29) {\n await adb.scanMedia(remotePath);\n } else {\n await adb.shell([\n 'am', 'broadcast',\n '-a', ANDROID_MEDIA_RESCAN_INTENT,\n '-d', `file://${remotePath}`\n ]);\n }\n } catch (e) {\n log?.warn(`Ignoring an unexpected error upon media scanning of '${remotePath}': ${e.stderr || e.message}`);\n }\n}\n\n/**\n * A small helper, which escapes single quotes in paths,\n * so they are safe to be passed as arguments of shell commands\n *\n * @param {string} p The initial remote path\n * @returns {string} The escaped path value\n */\nfunction escapePath (p) {\n return p.replace(/'/g, `\\\\'`);\n}\n\n/**\n * Pulls a remote file from the device.\n * It is required, that a package has debugging flag enabled\n * in order to access its files.\n *\n * @param {string} remotePath The full path to the remote file\n * or a specially formatted path, which points to an item inside app bundle\n * @returns {string} Base64 encoded content of the pulled file\n * @throws {Error} If the pull operation failed\n */\ncommands.pullFile = async function pullFile (remotePath) {\n if (remotePath.endsWith('/')) {\n throw new errors.InvalidArgumentError(`It is expected that remote path points to a file and not to a folder. ` +\n `'${remotePath}' is given instead`);\n }\n let tmpDestination = null;\n if (remotePath.startsWith(CONTAINER_PATH_MARKER)) {\n const [packageId, pathInContainer] = parseContainerPath(remotePath);\n this.log.debug(`Parsed package identifier '${packageId}' from '${remotePath}'. Will get the data from '${pathInContainer}'`);\n tmpDestination = `/data/local/tmp/${path.posix.basename(pathInContainer)}`;\n try {\n await this.adb.shell(['run-as', packageId, `chmod 777 '${escapePath(pathInContainer)}'`]);\n await this.adb.shell([\n 'run-as', packageId,\n `cp -f '${escapePath(pathInContainer)}' '${escapePath(tmpDestination)}'`\n ]);\n } catch (e) {\n this.log.errorAndThrow(`Cannot access the container of '${packageId}' application. ` +\n `Is the application installed and has 'debuggable' build option set to true? ` +\n `Original error: ${e.message}`);\n }\n }\n const localFile = await tempDir.path({prefix: 'appium', suffix: '.tmp'});\n try {\n await this.adb.pull(tmpDestination || remotePath, localFile);\n return (await util.toInMemoryBase64(localFile)).toString();\n } finally {\n if (await fs.exists(localFile)) {\n await fs.unlink(localFile);\n }\n if (tmpDestination) {\n await this.adb.shell(['rm', '-f', tmpDestination]);\n }\n }\n};\n\n/**\n * @typedef {Object} PullFileOptions\n * @property {string} remotePath The full path to the remote file\n * or a specially formatted path, which points to an item inside an app bundle,\n * for example `@my.app.id/my/path`. It is mandatory for the app bundle to have\n * debugging enabled in order to use the latter remotePath format.\n */\n\n/**\n * Pulls a remote file from the device.\n *\n * @param {PullFileOptions} opts\n * @returns {string} The same as `pullFile`\n */\ncommands.mobilePullFile = async function mobilePullFile (opts = {}) {\n const { remotePath } = requireArgs('remotePath', opts);\n return await this.pullFile(remotePath);\n};\n\n/**\n * Pushes the given data to a file on the remote device\n * It is required, that a package has debugging flag enabled\n * in order to access its files.\n * After a file is pushed it gets automatically scanned for possible\n * media occurrences. If the scan succeeds then the file is added to the\n * media library.\n *\n * @param {string} remotePath The full path to the remote file or\n * a file inside a package bundle\n * @param {string} base64Data Base64 encoded data to be written to the\n * remote file. The remote file will be silently overridden if it already exists.\n * @throws {Error} If there was an error while pushing the data\n */\ncommands.pushFile = async function pushFile (remotePath, base64Data) {\n if (remotePath.endsWith('/')) {\n throw new errors.InvalidArgumentError(\n `It is expected that remote path points to a file and not to a folder. ` +\n `'${remotePath}' is given instead`\n );\n }\n const localFile = await tempDir.path({prefix: 'appium', suffix: '.tmp'});\n if (_.isArray(base64Data)) {\n // some clients (ahem) java, send a byte array encoding utf8 characters\n // instead of a string, which would be infinitely better!\n base64Data = Buffer.from(base64Data).toString('utf8');\n }\n const content = Buffer.from(base64Data, 'base64');\n let tmpDestination = null;\n try {\n await fs.writeFile(localFile, content.toString('binary'), 'binary');\n if (remotePath.startsWith(CONTAINER_PATH_MARKER)) {\n const [packageId, pathInContainer] = parseContainerPath(remotePath);\n this.log.debug(`Parsed package identifier '${packageId}' from '${remotePath}'. ` +\n `Will put the data into '${pathInContainer}'`);\n tmpDestination = `/data/local/tmp/${path.posix.basename(pathInContainer)}`;\n try {\n await this.adb.shell(\n ['run-as', packageId, `mkdir -p '${escapePath(path.posix.dirname(pathInContainer))}'`]\n );\n await this.adb.shell(['run-as', packageId, `touch '${escapePath(pathInContainer)}'`]);\n await this.adb.shell(['run-as', packageId, `chmod 777 '${escapePath(pathInContainer)}'`]);\n await this.adb.push(localFile, tmpDestination);\n await this.adb.shell([\n 'run-as', packageId,\n `cp -f '${escapePath(tmpDestination)}' '${escapePath(pathInContainer)}'`\n ]);\n } catch (e) {\n this.log.errorAndThrow(`Cannot access the container of '${packageId}' application. ` +\n `Is the application installed and has 'debuggable' build option set to true? ` +\n `Original error: ${e.message}`);\n }\n } else {\n // adb push creates folders and overwrites existing files.\n await this.adb.push(localFile, remotePath);\n\n // if we have pushed a file, it might be a media file, so ensure that\n // apps know about it\n await scanMedia(this.adb, remotePath, this.log);\n }\n } finally {\n if (await fs.exists(localFile)) {\n await fs.unlink(localFile);\n }\n if (tmpDestination) {\n await this.adb.shell(['rm', '-f', tmpDestination]);\n }\n }\n};\n\n/**\n * @typedef {Object} PushFileOptions\n * @property {string} remotePath The full path to the remote file\n * or a specially formatted path, which points to an item inside an app bundle,\n * for example `@my.app.id/my/path`. It is mandatory for the app bundle to have\n * debugging enabled in order to use the latter remotePath format.\n * @property {string} payload Base64-encoded content of the file to be pushed.\n */\n\n/**\n * Pushes the given data to a file on the remote device.\n *\n * @param {PushFileOptions} opts\n */\ncommands.mobilePushFile = async function mobilePushFile (opts = {}) {\n const { remotePath, payload } = requireArgs(['remotePath', 'payload'], opts);\n return await this.pushFile(remotePath, payload);\n};\n\n/**\n * Pulls the whole folder from the remote device\n *\n * @param {string} remotePath The full path to a folder on the\n * remote device or a folder inside an application bundle\n * @returns {string} Base64-encoded and zipped content of the folder\n * @throws {Error} If there was a failure while getting the folder content\n */\ncommands.pullFolder = async function pullFolder (remotePath) {\n const tmpRoot = await tempDir.openDir();\n try {\n await this.adb.pull(remotePath, tmpRoot);\n return (await zip.toInMemoryZip(tmpRoot, {\n encodeToBase64: true,\n })).toString();\n } finally {\n await fs.rimraf(tmpRoot);\n }\n};\n\n/**\n * @typedef {Object} PullFolderOptions\n * @property {string} remotePath The full path to the remote folder.\n */\n\n/**\n * Pulls the whole folder from the device under test.\n *\n * @param {PullFolderOptions} opts\n * @returns {string} The same as `pullFolder`\n */\ncommands.mobilePullFolder = async function mobilePullFolder (opts = {}) {\n const { remotePath } = requireArgs('remotePath', opts);\n return await this.pullFolder(remotePath);\n};\n\n/**\n * Deletes the given folder or file from the remote device\n *\n * @param {ADB} adb\n * @param {string} remotePath The full path to the remote folder\n * or file (folder names must end with a single slash)\n * @throws {Error} If the provided remote path is invalid or\n * the package content cannot be accessed\n * @returns {boolean} `true` if the remote item has been successfully deleted.\n * If the remote path is valid, but the remote path does not exist\n * this function return `false`.\n */\nasync function deleteFileOrFolder (adb, remotePath) {\n const performRemoteFsCheck = async (p, op, runAs = null) => {\n const passFlag = '__PASS__';\n const checkCmd = `[ -${op} '${escapePath(p)}' ] && echo ${passFlag}`;\n const fullCmd = runAs ? `run-as ${runAs} ${checkCmd}` : checkCmd;\n try {\n return _.includes(await adb.shell([fullCmd]), passFlag);\n } catch (ign) {\n return false;\n }\n };\n const isFile = async (p, runAs = null) => await performRemoteFsCheck(p, 'f', runAs);\n const isDir = async (p, runAs = null) => await performRemoteFsCheck(p, 'd', runAs);\n const isPresent = async (p, runAs = null) => await performRemoteFsCheck(p, 'e', runAs);\n\n let dstPath = remotePath;\n let pkgId = null;\n if (remotePath.startsWith(CONTAINER_PATH_MARKER)) {\n const [packageId, pathInContainer] = parseContainerPath(remotePath);\n this.log.debug(`Parsed package identifier '${packageId}' from '${remotePath}'`);\n dstPath = pathInContainer;\n pkgId = packageId;\n }\n\n if (pkgId) {\n try {\n await adb.shell(['run-as', pkgId, 'ls']);\n } catch (e) {\n this.log.errorAndThrow(`Cannot access the container of '${pkgId}' application. ` +\n `Is the application installed and has 'debuggable' build option set to true? ` +\n `Original error: ${e.message}`);\n }\n }\n\n if (!await isPresent(dstPath, pkgId)) {\n this.log.info(`The item at '${dstPath}' does not exist. Perhaps, already deleted?`);\n return false;\n }\n\n const expectsFile = !remotePath.endsWith('/');\n if (expectsFile && !await isFile(dstPath, pkgId)) {\n this.log.errorAndThrow(`The item at '${dstPath}' is not a file`);\n } else if (!expectsFile && !await isDir(dstPath, pkgId)) {\n this.log.errorAndThrow(`The item at '${dstPath}' is not a folder`);\n }\n\n if (pkgId) {\n await adb.shell(\n ['run-as', pkgId, `rm -f${expectsFile ? '' : 'r'} '${escapePath(dstPath)}'`]);\n } else {\n await adb.shell(['rm', `-f${expectsFile ? '' : 'r'}`, dstPath]);\n }\n if (await isPresent(dstPath, pkgId)) {\n this.log.errorAndThrow(`The item at '${dstPath}' still exists after being deleted. ` +\n `Is it writable?`);\n }\n return true;\n}\n\n/**\n * @typedef {Object} DeleteFileOpts\n * @property {!string} remotePath The full path to the remote file\n * or a file inside an application bundle (for example `@my.app.id/path/in/bundle`)\n */\n\n/**\n * Deletes a file on the remote device\n *\n * @param {DeleteFileOpts} opts\n * @returns {boolean} `true` if the remote file has been successfully deleted.\n * If the path to a remote file is valid, but the file itself does not exist\n * then `false` is returned.\n * @throws {Error} If the argument is invalid or there was an error while\n * deleting the file\n */\ncommands.mobileDeleteFile = async function mobileDeleteFile (opts = {}) {\n const {remotePath} = opts;\n if (!remotePath) {\n throw new errors.InvalidArgumentError(`The 'remotePath' argument is mandatory`);\n }\n if (remotePath.endsWith('/')) {\n throw new errors.InvalidArgumentError(\n `It is expected that remote path points to a folder and not to a file. ` +\n `'${remotePath}' is given instead`\n );\n }\n return await deleteFileOrFolder(this.adb, remotePath);\n};\n\nexport { commands };\nexport default commands;\n"],"mappings":";;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAGA,MAAMK,qBAAqB,GAAG,GAAG;AAEjC,MAAMC,sBAAsB,GAAG,IAAIC,MAAM,CAAE,IAAGF,qBAAsB,cAAa,CAAC;AAClF,MAAMG,2BAA2B,GAAG,+CAA+C;AAGnF,MAAMC,QAAQ,GAAG,CAAC,CAAC;AAACC,OAAA,CAAAD,QAAA,GAAAA,QAAA;AAWpB,SAASE,kBAAkBA,CAAEC,UAAU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Ae+C,OAAQ,mBAAkB,CAAC;EACpE;EAEA,IAAIC,KAAK,EAAE;IACT,MAAMrE,GAAG,CAACI,KAAK,CACb,CAAC,QAAQ,EAAEiE,KAAK,EAAG,QAAOE,WAAW,GAAG,EAAE,GAAG,GAAI,KAAI9D,UAAU,CAAC2D,OAAO,CAAE,GAAE,CAAC,CAAC;EACjF,CAAC,MAAM;IACL,MAAMpE,GAAG,CAACI,KAAK,CAAC,CAAC,IAAI,EAAG,KAAImE,WAAW,GAAG,EAAE,GAAG,GAAI,EAAC,EAAEH,OAAO,CAAC,CAAC;EACjE;EACA,IAAI,MAAMD,SAAS,CAACC,OAAO,EAAEC,KAAK,CAAC,EAAE;IACnC,IAAI,CAACpE,GAAG,CAACoB,aAAa,CAAE,gBAAe+C,OAAQ,sCAAqC,GACjF,iBAAgB,CAAC;EACtB;EACA,OAAO,IAAI;AACb;AAkBA/E,QAAQ,CAACmF,gBAAgB,GAAG,eAAeA,gBAAgBA,CAAEtC,IAAI,GAAG,CAAC,CAAC,EAAE;EACtE,MAAM;IAAC1C;EAAU,CAAC,GAAG0C,IAAI;EACzB,IAAI,CAAC1C,UAAU,EAAE;IACf,MAAM,IAAIsB,cAAM,CAACC,oBAAoB,CAAE,wCAAuC,CAAC;EACjF;EACA,IAAIvB,UAAU,CAACqB,QAAQ,CAAC,GAAG,CAAC,EAAE;IAC5B,MAAM,IAAIC,cAAM,CAACC,oBAAoB,CAClC,wEAAuE,GACvE,IAAGvB,UAAW,oBACjB,CAAC;EACH;EACA,OAAO,MAAMgE,kBAAkB,CAAC,IAAI,CAACxD,GAAG,EAAER,UAAU,CAAC;AACvD,CAAC;AAAC,IAAAiF,QAAA,GAGapF,QAAQ;AAAAC,OAAA,CAAAoF,OAAA,GAAAD,QAAA"}
|
|
1
|
+
{"version":3,"file":"file-actions.js","sourceRoot":"","sources":["../../../lib/commands/file-actions.js"],"names":[],"mappings":";;;;;;AAAA,oDAAuB;AACvB,6CAAyD;AACzD,gDAAwB;AAC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UAAU,gBAAgB,CAAE,IAAI,GAAG,EAAE;IACpE,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;IAC1B,IAAI,CAAC,UAAU,EAAE;QACf,MAAM,IAAI,eAAM,CAAC,oBAAoB,CAAC,wCAAwC,CAAC,CAAC;KACjF;IACD,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QAC5B,MAAM,IAAI,eAAM,CAAC,oBAAoB,CACnC,wEAAwE;YACxE,IAAI,UAAU,oBAAoB,CACnC,CAAC;KACH;IACD,OAAO,MAAM,kBAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;AACxD,CAAC,CAAC;AAGF,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default extensions;
|
|
2
|
+
export namespace helpers {
|
|
3
|
+
/**
|
|
4
|
+
* Reason for isolating doFindElementOrEls from findElOrEls is for reusing findElOrEls
|
|
5
|
+
* across android-drivers (like appium-uiautomator2-driver) to avoid code duplication.
|
|
6
|
+
* Other android-drivers (like appium-uiautomator2-driver) need to override doFindElementOrEls
|
|
7
|
+
* to facilitate findElOrEls.
|
|
8
|
+
*/
|
|
9
|
+
function doFindElementOrEls(params: any): Promise<any>;
|
|
10
|
+
function findElOrEls(strategy: any, selector: any, mult: any, context?: string): Promise<any[] | undefined>;
|
|
11
|
+
}
|
|
12
|
+
declare let extensions: {};
|
|
13
|
+
//# sourceMappingURL=find.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../lib/commands/find.js"],"names":[],"mappings":";;IAMA;;;;;OAKG;IACH,uDAEC;IAMD,4GAyDC;;AAzEiB,2BAAe"}
|
|
@@ -1,62 +1,80 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
require("
|
|
9
|
-
|
|
10
|
-
var _driver = require("appium/driver");
|
|
11
|
-
let helpers = {},
|
|
12
|
-
extensions = {};
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.helpers = void 0;
|
|
7
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
8
|
+
const driver_1 = require("appium/driver");
|
|
9
|
+
let helpers = {}, extensions = {};
|
|
13
10
|
exports.helpers = helpers;
|
|
11
|
+
/**
|
|
12
|
+
* Reason for isolating doFindElementOrEls from findElOrEls is for reusing findElOrEls
|
|
13
|
+
* across android-drivers (like appium-uiautomator2-driver) to avoid code duplication.
|
|
14
|
+
* Other android-drivers (like appium-uiautomator2-driver) need to override doFindElementOrEls
|
|
15
|
+
* to facilitate findElOrEls.
|
|
16
|
+
*/
|
|
14
17
|
helpers.doFindElementOrEls = async function doFindElementOrEls(params) {
|
|
15
|
-
|
|
18
|
+
return await this.bootstrap.sendAction('find', params);
|
|
16
19
|
};
|
|
20
|
+
// stategy: locator strategy
|
|
21
|
+
// selector: the actual selector for finding an element
|
|
22
|
+
// mult: multiple elements or just one?
|
|
23
|
+
// context: finding an element from the root context? or starting from another element
|
|
17
24
|
helpers.findElOrEls = async function findElOrEls(strategy, selector, mult, context = '') {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
if (!selector) {
|
|
26
|
+
throw new Error('Must provide a selector when finding elements');
|
|
27
|
+
}
|
|
28
|
+
let params = {
|
|
29
|
+
strategy,
|
|
30
|
+
selector,
|
|
31
|
+
context,
|
|
32
|
+
multiple: mult
|
|
33
|
+
};
|
|
34
|
+
let element;
|
|
35
|
+
let doFind = async () => {
|
|
36
|
+
try {
|
|
37
|
+
element = await this.doFindElementOrEls(params);
|
|
38
|
+
}
|
|
39
|
+
catch (err) {
|
|
40
|
+
// if the error that comes back is from a proxied request, we need to
|
|
41
|
+
// unwrap it to its actual protocol error first
|
|
42
|
+
if ((0, driver_1.isErrorType)(err, driver_1.errors.ProxyRequestError)) {
|
|
43
|
+
err = err.getActualError(); // eslint-disable-line no-ex-assign
|
|
44
|
+
}
|
|
45
|
+
// now we have to inspect the error to determine if it is a no such
|
|
46
|
+
// element error, based on the shape of the error object from
|
|
47
|
+
// appium/driver
|
|
48
|
+
if ((0, driver_1.isErrorType)(err, driver_1.errors.NoSuchElementError)) {
|
|
49
|
+
// we are fine with this, just indicate a retry
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
throw err;
|
|
53
|
+
}
|
|
54
|
+
// we want to return false if we want to potentially try again
|
|
55
|
+
return !lodash_1.default.isEmpty(element);
|
|
56
|
+
};
|
|
29
57
|
try {
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
err
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
58
|
+
await this.implicitWaitForCondition(doFind);
|
|
59
|
+
}
|
|
60
|
+
catch (err) {
|
|
61
|
+
if (err.message && err.message.match(/Condition unmet/)) {
|
|
62
|
+
// only get here if we are looking for multiple elements
|
|
63
|
+
// condition was not met setting res to empty array
|
|
64
|
+
element = [];
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
throw err;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
if (mult) {
|
|
71
|
+
return element;
|
|
39
72
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
try {
|
|
43
|
-
await this.implicitWaitForCondition(doFind);
|
|
44
|
-
} catch (err) {
|
|
45
|
-
if (err.message && err.message.match(/Condition unmet/)) {
|
|
46
|
-
element = [];
|
|
47
|
-
} else {
|
|
48
|
-
throw err;
|
|
73
|
+
if (lodash_1.default.isEmpty(element)) {
|
|
74
|
+
throw new driver_1.errors.NoSuchElementError();
|
|
49
75
|
}
|
|
50
|
-
}
|
|
51
|
-
if (mult) {
|
|
52
76
|
return element;
|
|
53
|
-
}
|
|
54
|
-
if (_lodash.default.isEmpty(element)) {
|
|
55
|
-
throw new _driver.errors.NoSuchElementError();
|
|
56
|
-
}
|
|
57
|
-
return element;
|
|
58
77
|
};
|
|
59
78
|
Object.assign(extensions, helpers);
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfbG9kYXNoIiwiX2ludGVyb3BSZXF1aXJlRGVmYXVsdCIsInJlcXVpcmUiLCJfZHJpdmVyIiwiaGVscGVycyIsImV4dGVuc2lvbnMiLCJleHBvcnRzIiwiZG9GaW5kRWxlbWVudE9yRWxzIiwicGFyYW1zIiwiYm9vdHN0cmFwIiwic2VuZEFjdGlvbiIsImZpbmRFbE9yRWxzIiwic3RyYXRlZ3kiLCJzZWxlY3RvciIsIm11bHQiLCJjb250ZXh0IiwiRXJyb3IiLCJtdWx0aXBsZSIsImVsZW1lbnQiLCJkb0ZpbmQiLCJlcnIiLCJpc0Vycm9yVHlwZSIsImVycm9ycyIsIlByb3h5UmVxdWVzdEVycm9yIiwiZ2V0QWN0dWFsRXJyb3IiLCJOb1N1Y2hFbGVtZW50RXJyb3IiLCJfIiwiaXNFbXB0eSIsImltcGxpY2l0V2FpdEZvckNvbmRpdGlvbiIsIm1lc3NhZ2UiLCJtYXRjaCIsIk9iamVjdCIsImFzc2lnbiIsIl9kZWZhdWx0IiwiZGVmYXVsdCJdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9jb21tYW5kcy9maW5kLmpzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBfIGZyb20gJ2xvZGFzaCc7XG5pbXBvcnQgeyBlcnJvcnMsIGlzRXJyb3JUeXBlIH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URL=find.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.js","
|
|
1
|
+
{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../lib/commands/find.js"],"names":[],"mappings":";;;;;;AAAA,oDAAuB;AACvB,0CAAoD;AAGpD,IAAI,OAAO,GAAG,EAAE,EAAE,UAAU,GAAG,EAAE,CAAC;AA4EzB,0BAAO;AA1EhB;;;;;GAKG;AACH,OAAO,CAAC,kBAAkB,GAAG,KAAK,UAAU,kBAAkB,CAAE,MAAM;IACpE,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AACzD,CAAC,CAAC;AAEF,4BAA4B;AAC5B,uDAAuD;AACvD,uCAAuC;AACvC,sFAAsF;AACtF,OAAO,CAAC,WAAW,GAAG,KAAK,UAAU,WAAW,CAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,GAAG,EAAE;IACtF,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;KAClE;IAED,IAAI,MAAM,GAAG;QACX,QAAQ;QACR,QAAQ;QACR,OAAO;QACP,QAAQ,EAAE,IAAI;KACf,CAAC;IAEF,IAAI,OAAO,CAAC;IACZ,IAAI,MAAM,GAAG,KAAK,IAAI,EAAE;QACtB,IAAI;YACF,OAAO,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;SACjD;QAAC,OAAO,GAAG,EAAE;YAEZ,qEAAqE;YACrE,+CAA+C;YAC/C,IAAI,IAAA,oBAAW,EAAC,GAAG,EAAE,eAAM,CAAC,iBAAiB,CAAC,EAAE;gBAC9C,GAAG,GAAG,GAAG,CAAC,cAAc,EAAE,CAAC,CAAC,mCAAmC;aAChE;YAED,mEAAmE;YACnE,6DAA6D;YAC7D,gBAAgB;YAChB,IAAI,IAAA,oBAAW,EAAC,GAAG,EAAE,eAAM,CAAC,kBAAkB,CAAC,EAAE;gBAC/C,+CAA+C;gBAC/C,OAAO,KAAK,CAAC;aACd;YACD,MAAM,GAAG,CAAC;SACX;QAED,8DAA8D;QAC9D,OAAO,CAAC,gBAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,IAAI;QACF,MAAM,IAAI,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;KAC7C;IAAC,OAAO,GAAG,EAAE;QACZ,IAAI,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE;YACvD,wDAAwD;YACxD,mDAAmD;YACnD,OAAO,GAAG,EAAE,CAAC;SACd;aAAM;YACL,MAAM,GAAG,CAAC;SACX;KACF;IAED,IAAI,IAAI,EAAE;QACR,OAAO,OAAO,CAAC;KAChB;IACD,IAAI,gBAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QACtB,MAAM,IAAI,eAAM,CAAC,kBAAkB,EAAE,CAAC;KACvC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAEnC,kBAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
export default extensions;
|
|
2
|
+
export type DeviceTimeOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* [YYYY-MM-DDTHH:mm:ssZ] - See getDeviceTime#format
|
|
5
|
+
*/
|
|
6
|
+
format: string;
|
|
7
|
+
};
|
|
8
|
+
export type SmsListOptions = {
|
|
9
|
+
/**
|
|
10
|
+
* [100] - The maximum count of recent SMS messages
|
|
11
|
+
* to retrieve
|
|
12
|
+
*/
|
|
13
|
+
max: number;
|
|
14
|
+
};
|
|
15
|
+
export type UnlockOptions = {
|
|
16
|
+
/**
|
|
17
|
+
* The unlock key. The value of this key depends
|
|
18
|
+
* on the actual unlock type and could be a pin/password/pattern value or
|
|
19
|
+
* a biometric finger id.
|
|
20
|
+
* If not provided then the corresponding value from session capabilities is used.
|
|
21
|
+
*/
|
|
22
|
+
key: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* The unlock type. The following unlock types
|
|
25
|
+
* are supported: `pin`, `pinWithKeyEvent`, `password`, `pattern` and `fingerprint`.
|
|
26
|
+
* If not provided then the corresponding value from session capabilities is used.
|
|
27
|
+
*/
|
|
28
|
+
type: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* Either 'locksettings' (default) or 'uiautomator'.
|
|
31
|
+
* Setting it to 'uiautomator' will enforce the driver to avoid using special
|
|
32
|
+
* ADB shortcuts in order to speed up the unlock procedure.
|
|
33
|
+
*/
|
|
34
|
+
strategy: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* [2000] The maximum time in milliseconds
|
|
37
|
+
* to wait until the screen gets unlocked
|
|
38
|
+
*/
|
|
39
|
+
timeoutMs: number | null;
|
|
40
|
+
};
|
|
41
|
+
export namespace commands {
|
|
42
|
+
function keys(keys: any): Promise<void>;
|
|
43
|
+
function doSendKeys(params: any): Promise<any>;
|
|
44
|
+
/**
|
|
45
|
+
* Retrieves the current device's timestamp.
|
|
46
|
+
*
|
|
47
|
+
* @param {string} format - The set of format specifiers. Read
|
|
48
|
+
* https://momentjs.com/docs/ to get the full list of supported
|
|
49
|
+
* datetime format specifiers. The default format is
|
|
50
|
+
* `YYYY-MM-DDTHH:mm:ssZ`, which complies to ISO-8601
|
|
51
|
+
* @return {string} Formatted datetime string or the raw command output if formatting fails
|
|
52
|
+
*/
|
|
53
|
+
function getDeviceTime(format?: string): string;
|
|
54
|
+
/**
|
|
55
|
+
* @typedef {Object} DeviceTimeOptions
|
|
56
|
+
* @property {string} format [YYYY-MM-DDTHH:mm:ssZ] - See getDeviceTime#format
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves the current device time
|
|
60
|
+
*
|
|
61
|
+
* @param {DeviceTimeOptions} opts
|
|
62
|
+
* @return {string} Formatted datetime string or the raw command output if formatting fails
|
|
63
|
+
*/
|
|
64
|
+
function mobileGetDeviceTime(opts?: DeviceTimeOptions): string;
|
|
65
|
+
function getPageSource(): Promise<any>;
|
|
66
|
+
function back(): Promise<any>;
|
|
67
|
+
function openSettingsActivity(setting: any): Promise<void>;
|
|
68
|
+
function getWindowSize(): Promise<any>;
|
|
69
|
+
function getWindowRect(): Promise<{
|
|
70
|
+
width: any;
|
|
71
|
+
height: any;
|
|
72
|
+
x: number;
|
|
73
|
+
y: number;
|
|
74
|
+
}>;
|
|
75
|
+
function getCurrentActivity(): Promise<any>;
|
|
76
|
+
function getCurrentPackage(): Promise<any>;
|
|
77
|
+
function background(seconds: any): Promise<any>;
|
|
78
|
+
function getStrings(language: any): Promise<{}>;
|
|
79
|
+
function launchApp(): Promise<void>;
|
|
80
|
+
function startActivity(appPackage: any, appActivity: any, appWaitPackage: any, appWaitActivity: any, intentAction: any, intentCategory: any, intentFlags: any, optionalIntentArguments: any, dontStopAppOnReset: any): Promise<void>;
|
|
81
|
+
function reset(): Promise<any>;
|
|
82
|
+
function startAUT(): Promise<void>;
|
|
83
|
+
function setUrl(uri: any): Promise<void>;
|
|
84
|
+
function closeApp(): Promise<void>;
|
|
85
|
+
function getDisplayDensity(): Promise<number | undefined>;
|
|
86
|
+
function mobilePerformEditorAction(opts?: {}): Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
* Retrieves the list of recent system notifications.
|
|
89
|
+
*
|
|
90
|
+
* @returns {Object} See the documentation on `adb.getNotifications` for
|
|
91
|
+
* more details
|
|
92
|
+
*/
|
|
93
|
+
function mobileGetNotifications(): any;
|
|
94
|
+
/**
|
|
95
|
+
* @typedef {Object} SmsListOptions
|
|
96
|
+
* @property {number} max [100] - The maximum count of recent SMS messages
|
|
97
|
+
* to retrieve
|
|
98
|
+
*/
|
|
99
|
+
/**
|
|
100
|
+
* Retrieves the list of recent SMS messages with their properties.
|
|
101
|
+
*
|
|
102
|
+
* @param {SmsListOptions} opts
|
|
103
|
+
* @returns {Object} See the documentation on `adb.getSmsList` for
|
|
104
|
+
* more details
|
|
105
|
+
*/
|
|
106
|
+
function mobileListSms(opts?: SmsListOptions): any;
|
|
107
|
+
/**
|
|
108
|
+
* @typedef {Object} UnlockOptions
|
|
109
|
+
* @property {string?} key The unlock key. The value of this key depends
|
|
110
|
+
* on the actual unlock type and could be a pin/password/pattern value or
|
|
111
|
+
* a biometric finger id.
|
|
112
|
+
* If not provided then the corresponding value from session capabilities is used.
|
|
113
|
+
* @property {string?} type The unlock type. The following unlock types
|
|
114
|
+
* are supported: `pin`, `pinWithKeyEvent`, `password`, `pattern` and `fingerprint`.
|
|
115
|
+
* If not provided then the corresponding value from session capabilities is used.
|
|
116
|
+
* @property {string?} strategy Either 'locksettings' (default) or 'uiautomator'.
|
|
117
|
+
* Setting it to 'uiautomator' will enforce the driver to avoid using special
|
|
118
|
+
* ADB shortcuts in order to speed up the unlock procedure.
|
|
119
|
+
* @property {number?} timeoutMs [2000] The maximum time in milliseconds
|
|
120
|
+
* to wait until the screen gets unlocked
|
|
121
|
+
*/
|
|
122
|
+
/**
|
|
123
|
+
* Unlocks the device if it is locked. Noop if the device's screen is not locked.
|
|
124
|
+
*
|
|
125
|
+
* @param {UnlockOptions} opts
|
|
126
|
+
* @throws {Error} if unlock operation fails or the provided
|
|
127
|
+
* arguments are not valid
|
|
128
|
+
*/
|
|
129
|
+
function mobileUnlock(opts?: UnlockOptions): Promise<void>;
|
|
130
|
+
}
|
|
131
|
+
export let helpers: {};
|
|
132
|
+
declare let extensions: {};
|
|
133
|
+
//# sourceMappingURL=general.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../lib/commands/general.js"],"names":[],"mappings":";;;;;YAoDc,MAAM;;;;;;;SA8PN,MAAM;;;;;;;;;SAiBN,MAAM;;;;;;UAIN,MAAM;;;;;;cAGN,MAAM;;;;;eAGN,MAAM;;;IAlUpB,wCAWC;IAED,+CAEC;IAED;;;;;;;;OAQG;IACH,gDAWC;IAED;;;OAGG;IAEH;;;;;OAKG;IACH,+DAEC;IAED,uCAEC;IAED,8BAEC;IAED,2DAIC;IAED,uCAEC;IAGD;;;;;OAQC;IAED,4CAEC;IAED,2CAEC;IAED,gDA0DC;IAED,gDA4BC;IAED,oCAGC;IAED,qOAyBC;IAED,+BAKC;IAED,mCAeC;IAID,yCAEC;IAGD,mCAIC;IAED,0DAsBC;IAED,6DAOC;IAED;;;;;OAKG;IACH,uCAEC;IAED;;;;OAIG;IAEH;;;;;;OAMG;IACH,mDAEC;IAED;;;;;;;;;;;;;;OAcG;IAEH;;;;;;OAMG;IACH,2DAYC;;AA3VkB,uBAAY;AAAE,2BAAe"}
|