appium-ios-simulator
Advanced tools
Comparing version 6.1.11 to 6.1.12
@@ -9,7 +9,7 @@ /** | ||
* XML to string or to return raw HTMLElement instance | ||
* @returns {Node|string} Either string or raw node representation of | ||
* @returns {xmlDomElement|string} Either string or raw node representation of | ||
* the given value | ||
* @throws {TypeError} If it is not known how to serialize the given value | ||
*/ | ||
export function toXmlArg(value: any, serialize?: boolean): Node | string; | ||
export function toXmlArg(value: any, serialize?: boolean): xmlDomElement | string; | ||
/** | ||
@@ -53,2 +53,3 @@ * Generates command line args for the `defaults` | ||
} | ||
export type xmlDomElement = import("@xmldom/xmldom").Element; | ||
//# sourceMappingURL=defaults-utils.d.ts.map |
@@ -22,3 +22,3 @@ "use strict"; | ||
* XML to string or to return raw HTMLElement instance | ||
* @returns {Node|string} Either string or raw node representation of | ||
* @returns {xmlDomElement|string} Either string or raw node representation of | ||
* the given value | ||
@@ -35,6 +35,6 @@ * @throws {TypeError} If it is not known how to serialize the given value | ||
keyEl.appendChild(keyTextEl); | ||
xmlDoc.documentElement.appendChild(keyEl); | ||
/** @type{xmlDomElement} */ (xmlDoc.documentElement).appendChild(keyEl); | ||
// @ts-ignore The typecast here is fine | ||
const subValueEl = xmlDoc.importNode(toXmlArg(subValue, false), true); | ||
xmlDoc.documentElement.appendChild(subValueEl); | ||
/** @type{xmlDomElement} */ (xmlDoc.documentElement).appendChild(subValueEl); | ||
} | ||
@@ -47,3 +47,3 @@ } | ||
const subValueEl = xmlDoc.importNode(toXmlArg(subValue, false), true); | ||
xmlDoc.documentElement.appendChild(subValueEl); | ||
/** @type{xmlDomElement} */ (xmlDoc.documentElement).appendChild(subValueEl); | ||
} | ||
@@ -63,3 +63,3 @@ } | ||
const valueTextEl = xmlDoc.createTextNode(value); | ||
xmlDoc.documentElement.appendChild(valueTextEl); | ||
/** @type{xmlDomElement} */ (xmlDoc.documentElement).appendChild(valueTextEl); | ||
} | ||
@@ -71,4 +71,4 @@ if (!xmlDoc) { | ||
return serialize | ||
? new xmldom_1.XMLSerializer().serializeToString(xmlDoc.documentElement) | ||
: xmlDoc.documentElement; | ||
? new xmldom_1.XMLSerializer().serializeToString(/** @type{xmlDomElement} */ (xmlDoc.documentElement)) | ||
: /** @type{xmlDomElement} */ (xmlDoc.documentElement); | ||
} | ||
@@ -173,2 +173,5 @@ /** | ||
exports.NSUserDefaults = NSUserDefaults; | ||
/** | ||
* @typedef {import('@xmldom/xmldom').Element} xmlDomElement | ||
*/ | ||
//# sourceMappingURL=defaults-utils.js.map |
@@ -0,1 +1,7 @@ | ||
## [6.1.12](https://github.com/appium/appium-ios-simulator/compare/v6.1.11...v6.1.12) (2024-09-16) | ||
### Bug Fixes | ||
* type error by xmldom ([#437](https://github.com/appium/appium-ios-simulator/issues/437)) ([4d85282](https://github.com/appium/appium-ios-simulator/commit/4d85282ce6a5d89342fa20d96dd95d0fa3e25604)) | ||
## [6.1.11](https://github.com/appium/appium-ios-simulator/compare/v6.1.10...v6.1.11) (2024-07-29) | ||
@@ -2,0 +8,0 @@ |
@@ -15,3 +15,3 @@ import _ from 'lodash'; | ||
* XML to string or to return raw HTMLElement instance | ||
* @returns {Node|string} Either string or raw node representation of | ||
* @returns {xmlDomElement|string} Either string or raw node representation of | ||
* the given value | ||
@@ -29,6 +29,6 @@ * @throws {TypeError} If it is not known how to serialize the given value | ||
keyEl.appendChild(keyTextEl); | ||
xmlDoc.documentElement.appendChild(keyEl); | ||
/** @type{xmlDomElement} */ (xmlDoc.documentElement).appendChild(keyEl); | ||
// @ts-ignore The typecast here is fine | ||
const subValueEl = xmlDoc.importNode(toXmlArg(subValue, false), true); | ||
xmlDoc.documentElement.appendChild(subValueEl); | ||
/** @type{xmlDomElement} */ (xmlDoc.documentElement).appendChild(subValueEl); | ||
} | ||
@@ -40,3 +40,3 @@ } else if (_.isArray(value)) { | ||
const subValueEl = xmlDoc.importNode(toXmlArg(subValue, false), true); | ||
xmlDoc.documentElement.appendChild(subValueEl); | ||
/** @type{xmlDomElement} */ (xmlDoc.documentElement).appendChild(subValueEl); | ||
} | ||
@@ -52,3 +52,3 @@ } else if (_.isBoolean(value)) { | ||
const valueTextEl = xmlDoc.createTextNode(value); | ||
xmlDoc.documentElement.appendChild(valueTextEl); | ||
/** @type{xmlDomElement} */ (xmlDoc.documentElement).appendChild(valueTextEl); | ||
} | ||
@@ -62,4 +62,4 @@ | ||
return serialize | ||
? new XMLSerializer().serializeToString(xmlDoc.documentElement) | ||
: xmlDoc.documentElement; | ||
? new XMLSerializer().serializeToString(/** @type{xmlDomElement} */ (xmlDoc.documentElement)) | ||
: /** @type{xmlDomElement} */ (xmlDoc.documentElement); | ||
} | ||
@@ -162,1 +162,5 @@ | ||
} | ||
/** | ||
* @typedef {import('@xmldom/xmldom').Element} xmlDomElement | ||
*/ |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "6.1.11", | ||
"version": "6.1.12", | ||
"author": "Appium Contributors", | ||
@@ -13,0 +13,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
355624
6343