@appium/universal-xml-plugin 1.0.6 → 1.0.7

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 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 JS Foundation and other contributors, https://js.foundation
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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.js"],"names":[],"mappings":"AAIA,6BAcC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.js"],"names":[],"mappings":"AAMA,6BAYC"}
@@ -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 = fs.readFileSync(xmlDataPath, 'utf8');
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib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,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.6",
3
+ "version": "1.0.7",
4
4
  "description": "Appium plugin for making XML source and XPath queries the same across iOS and Android",
5
5
  "keywords": [
6
6
  "automation",
@@ -57,7 +57,7 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "7b4935632222123a4fa7422461f6312f1f0dfbe4",
60
+ "gitHead": "d514ebdd7ebd27bb236509d0a3d580f0f18a34e5",
61
61
  "typedoc": {
62
62
  "entryPoint": "./lib/index.js"
63
63
  }