@appium/universal-xml-plugin 1.0.6 → 1.0.8
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/LICENSE +1 -1
- package/build/lib/index.d.ts.map +1 -1
- package/build/lib/index.js +4 -4
- package/build/lib/index.js.map +1 -1
- package/lib/index.js +2 -2
- package/package.json +3 -3
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/build/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.js"],"names":[],"mappings":"AAMA,6BAYC"}
|
package/build/lib/index.js
CHANGED
|
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.main = exports.UniversalXMLPlugin = void 0;
|
|
7
7
|
const plugin_1 = __importDefault(require("./plugin"));
|
|
8
8
|
exports.UniversalXMLPlugin = plugin_1.default;
|
|
9
|
+
const source_1 = require("./source");
|
|
10
|
+
const fs_1 = __importDefault(require("fs"));
|
|
9
11
|
exports.default = plugin_1.default;
|
|
10
12
|
function main() {
|
|
11
|
-
const { transformSourceXml } = require('./source');
|
|
12
|
-
const fs = require('fs');
|
|
13
13
|
const [, , xmlDataPath, platform, optsJson] = process.argv;
|
|
14
|
-
const xmlData =
|
|
14
|
+
const xmlData = fs_1.default.readFileSync(xmlDataPath, 'utf8');
|
|
15
15
|
let opts = {};
|
|
16
16
|
if (optsJson) {
|
|
17
17
|
opts = JSON.parse(optsJson);
|
|
18
18
|
}
|
|
19
|
-
const { xml, unknowns } = transformSourceXml(xmlData, platform, opts);
|
|
19
|
+
const { xml, unknowns } = (0, source_1.transformSourceXml)(xmlData, platform, opts);
|
|
20
20
|
console.log(xml); // eslint-disable-line no-console
|
|
21
21
|
if (unknowns.nodes.length || unknowns.attrs.length) {
|
|
22
22
|
console.error(unknowns); // eslint-disable-line no-console
|
package/build/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.js"],"names":[],"mappings":";;;;;;AAAA,sDAA0C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.js"],"names":[],"mappings":";;;;;;AAAA,sDAA0C;AAIlC,6BAJD,gBAAkB,CAIC;AAH1B,qCAA4C;AAC5C,4CAAoB;AACpB,kBAAe,gBAAkB,CAAC;AAGlC,SAAgB,IAAI;IAClB,MAAM,CAAC,EAAE,AAAD,EAAG,WAAW,EAAE,QAAQ,EAAE,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAC3D,MAAM,OAAO,GAAG,YAAE,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACrD,IAAI,IAAI,GAAG,EAAE,CAAC;IACd,IAAI,QAAQ,EAAE;QACZ,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;KAC7B;IACD,MAAM,EAAC,GAAG,EAAE,QAAQ,EAAC,GAAG,IAAA,2BAAkB,EAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;IACpE,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,iCAAiC;IACnD,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE;QAClD,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,iCAAiC;KAC3D;AACH,CAAC;AAZD,oBAYC"}
|
package/lib/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import UniversalXMLPlugin from './plugin';
|
|
2
|
+
import {transformSourceXml} from './source';
|
|
3
|
+
import fs from 'fs';
|
|
2
4
|
export default UniversalXMLPlugin;
|
|
3
5
|
export {UniversalXMLPlugin};
|
|
4
6
|
|
|
5
7
|
export function main() {
|
|
6
|
-
const {transformSourceXml} = require('./source');
|
|
7
|
-
const fs = require('fs');
|
|
8
8
|
const [, , xmlDataPath, platform, optsJson] = process.argv;
|
|
9
9
|
const xmlData = fs.readFileSync(xmlDataPath, 'utf8');
|
|
10
10
|
let opts = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/universal-xml-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Appium plugin for making XML source and XPath queries the same across iOS and Android",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@types/xmldom": "0.1.31",
|
|
40
|
-
"@xmldom/xmldom": "0.8.
|
|
40
|
+
"@xmldom/xmldom": "0.8.7",
|
|
41
41
|
"fast-xml-parser": "3.21.1",
|
|
42
42
|
"lodash": "4.17.21",
|
|
43
43
|
"source-map-support": "0.5.21",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "a11a6ede3320c0a58aad82fd7fc4c8b8ba75ae95",
|
|
61
61
|
"typedoc": {
|
|
62
62
|
"entryPoint": "./lib/index.js"
|
|
63
63
|
}
|