@betterview/integration-toolkit 2.6.0 → 2.7.1

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.
@@ -0,0 +1,4 @@
1
+ import { OptionsV2 } from 'xml2js';
2
+ export declare type XmlConversionOptions = OptionsV2;
3
+ export declare function xml2js(xmlToConvert: string, options?: XmlConversionOptions): Promise<string>;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Parse/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,oBAAY,oBAAoB,GAAG,SAAS,CAAC;AAE7C,wBAAsB,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,CASlG"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.xml2js = void 0;
4
+ const xml2js_1 = require("xml2js");
5
+ async function xml2js(xmlToConvert, options) {
6
+ return new Promise((resolve, reject) => {
7
+ xml2js_1.parseString(xmlToConvert, options || {}, (err, result) => {
8
+ if (err) {
9
+ return reject(err);
10
+ }
11
+ return resolve(result);
12
+ });
13
+ });
14
+ }
15
+ exports.xml2js = xml2js;
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Parse/index.ts"],"names":[],"mappings":";;;AAAA,mCAAgD;AAIzC,KAAK,UAAU,MAAM,CAAC,YAAoB,EAAE,OAA8B;IAC/E,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,oBAAW,CAAC,YAAY,EAAE,OAAO,IAAI,EAAE,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;YACvD,IAAI,GAAG,EAAE;gBACP,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;aACpB;YACD,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AATD,wBASC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterview/integration-toolkit",
3
- "version": "2.6.0",
3
+ "version": "2.7.1",
4
4
  "description": "Supports integration packages. This should be the only import from our integrations",
5
5
  "scripts": {
6
6
  "prebuild": "rm -rf ./lib",
@@ -17,12 +17,14 @@
17
17
  "license": "UNLICENSED",
18
18
  "dependencies": {
19
19
  "async": "^3.2.2",
20
- "axios": "0.21.1",
20
+ "axios": "^0.24.0",
21
21
  "fs-extra": "^10.0.0",
22
22
  "json-colorizer": "2.2.2",
23
- "lodash": "4.17.21"
23
+ "lodash": "4.17.21",
24
+ "xml2js": "0.4.23"
24
25
  },
25
26
  "devDependencies": {
27
+ "@types/xml2js": "0.4.5",
26
28
  "@typescript-eslint/eslint-plugin": "4.26.1",
27
29
  "@typescript-eslint/eslint-plugin-tslint": "4.26.1",
28
30
  "@typescript-eslint/parser": "4.26.1",