@ni/xliff-to-json-converter 1.1.6 → 1.1.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.
@@ -5,10 +5,10 @@ const fs_1 = require("fs");
5
5
  const xliff_1 = require("xliff");
6
6
  async function loadXliff(path) {
7
7
  const xliff = (0, fs_1.readFileSync)(path);
8
- return parseXliff(xliff.toString());
8
+ return await parseXliff(xliff.toString());
9
9
  }
10
10
  exports.loadXliff = loadXliff;
11
11
  async function parseXliff(contents) {
12
- return (0, xliff_1.xliff12ToJs)(contents, { captureSpacesBetweenElements: true });
12
+ return await (0, xliff_1.xliff12ToJs)(contents, { captureSpacesBetweenElements: true });
13
13
  }
14
14
  exports.parseXliff = parseXliff;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/xliff-to-json-converter",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "A utility to convert translation files from XLIFF to JSON for Angular localization",
5
5
  "main": "dist/commonjs/cli.js",
6
6
  "bin": {
@@ -28,13 +28,12 @@
28
28
  "author": "National Instruments",
29
29
  "license": "MIT",
30
30
  "devDependencies": {
31
- "@ni/eslint-config-javascript": "^4.2.0",
32
- "@ni/eslint-config-typescript": "^4.2.0",
31
+ "@ni-private/eslint-config-nimble": "*",
33
32
  "@types/jasmine": "^5.1.4",
34
33
  "@types/yargs": "^17.0.10",
35
34
  "jasmine": "^5.1.0",
36
35
  "jasmine-core": "^5.1.2",
37
- "typescript": "~5.1.6"
36
+ "typescript": "~5.4.5"
38
37
  },
39
38
  "dependencies": {
40
39
  "xliff": "^6.1.0",