@esgettext/tools 1.3.5 → 1.3.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.
@@ -60,7 +60,6 @@ const package_1 = require("../package");
60
60
  const optspec_1 = require("../optspec");
61
61
  const gtx = runtime_1.Textdomain.getInstance('com.cantanea.esgettext-tools');
62
62
  class Init {
63
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
64
63
  constructor(configuration) {
65
64
  this.options = undefined;
66
65
  this.packageJson = undefined;
@@ -346,7 +345,7 @@ class Init {
346
345
  })
347
346
  .split(/[\r\n]+/);
348
347
  }
349
- catch (_) {
348
+ catch (_a) {
350
349
  return null;
351
350
  }
352
351
  }
@@ -679,7 +678,7 @@ class Init {
679
678
  message: gtx._x("(Boolean) options to invoke '{tool}' with", {
680
679
  tool: 'msgmerge',
681
680
  }),
682
- default: '--update --previous',
681
+ default: '--previous',
683
682
  }),
684
683
  msgfmt: yield (0, prompts_1.input)({
685
684
  message: gtx._x("The '{tool}' program to use:", { tool: 'msgfmt' }),
@@ -10,7 +10,6 @@ const package_1 = require("../package");
10
10
  const optspec_1 = require("../optspec");
11
11
  const gtx = runtime_1.Textdomain.getInstance('com.cantanea.esgettext-tools');
12
12
  class Potfiles {
13
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
14
13
  constructor(configuration) {
15
14
  this.GIT_DIRECTORY_NAME = '.git';
16
15
  this.options = undefined;
@@ -51,7 +50,6 @@ class Potfiles {
51
50
  },
52
51
  };
53
52
  }
54
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
55
53
  additional(argv) {
56
54
  argv.positional(gtx._('PATTERN'), {
57
55
  type: 'string',
@@ -299,7 +299,7 @@ class ConfigurationFactory {
299
299
  (0, normalize_package_data_1.default)(data.content);
300
300
  return data.content;
301
301
  }
302
- catch (error) {
302
+ catch (_a) {
303
303
  return {};
304
304
  }
305
305
  });
@@ -322,7 +322,8 @@ class ConfigurationFactory {
322
322
  try {
323
323
  return JSON.parse(fs.readFileSync(filePath, 'utf-8'));
324
324
  }
325
- catch (_a) {
325
+ catch (e) {
326
+ console.error(`error reading configuration from '${filePath}': ${e}!`);
326
327
  return null;
327
328
  }
328
329
  }
package/dist/package.js CHANGED
@@ -9,7 +9,7 @@ class Package {
9
9
  return 'https://github.com/gflohr/esgettext/issues';
10
10
  }
11
11
  static getVersion() {
12
- return '1.3.5';
12
+ return '1.3.7';
13
13
  }
14
14
  static getNpmRunAllVersion() {
15
15
  return '^4.1.5';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esgettext/tools",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "description": "Gettext-like po creation and manipulation",
5
5
  "keywords": [
6
6
  "gettext",
@@ -81,38 +81,38 @@
81
81
  ]
82
82
  },
83
83
  "devDependencies": {
84
- "@babel/types": "^7.26.3",
84
+ "@babel/types": "^7.29.0",
85
85
  "@esgettext/tools": "^1.3.4",
86
- "@eslint/config-array": "^0.19.0",
87
- "@humanwhocodes/retry": "^0.4.1",
88
- "@tsconfig/recommended": "^1.0.8",
89
- "@types/glob": "^8.1.0",
90
- "@types/jest": "^29.5.14",
86
+ "@eslint/config-array": "^0.23.1",
87
+ "@humanwhocodes/retry": "^0.4.3",
88
+ "@tsconfig/recommended": "^1.0.13",
89
+ "@types/glob": "^9.0.0",
90
+ "@types/jest": "^30.0.0",
91
91
  "@types/jsonfile": "^6.1.4",
92
- "@types/node": "^22.10.1",
92
+ "@types/node": "^25.2.2",
93
93
  "@types/npmcli__package-json": "^4.0.4",
94
- "@types/yargs": "^17.0.33",
95
- "eslint": "^9.16.0",
96
- "jest": "^29.7.0",
94
+ "@types/yargs": "^17.0.35",
95
+ "eslint": "^9.39.2",
96
+ "jest": "^30.2.0",
97
97
  "npm-run-all": "^4.1.5",
98
- "prettier": "^3.4.2",
99
- "rimraf": "^6.0.1",
100
- "tsx": "^4.19.2",
101
- "typescript": "^5.7.2",
102
- "typescript-eslint": "^8.17.0"
98
+ "prettier": "^3.8.1",
99
+ "rimraf": "^6.1.2",
100
+ "tsx": "^4.21.0",
101
+ "typescript": "^5.9.3",
102
+ "typescript-eslint": "^8.54.0"
103
103
  },
104
104
  "dependencies": {
105
- "@babel/parser": "^7.26.3",
106
- "@babel/traverse": "^7.26.3",
107
- "@esgettext/runtime": "^1.3.5",
108
- "@inquirer/prompts": "^7.1.0",
109
- "@npmcli/package-json": "^6.1.0",
110
- "@valibot/i18n": "^0.17.0",
111
- "iconv-lite": "^0.6.3",
112
- "jsonfile": "^6.1.0",
105
+ "@babel/parser": "^7.29.0",
106
+ "@babel/traverse": "^7.29.0",
107
+ "@esgettext/runtime": "^1.3.7",
108
+ "@inquirer/prompts": "^8.2.0",
109
+ "@npmcli/package-json": "^7.0.4",
110
+ "@valibot/i18n": "^1.0.0",
111
+ "iconv-lite": "^0.7.2",
112
+ "jsonfile": "^6.2.0",
113
113
  "mkdirp": "^3.0.1",
114
- "valibot": "^0.42.1",
115
- "yargs": "^17.7.2"
114
+ "valibot": "^1.2.0",
115
+ "yargs": "^18.0.0"
116
116
  },
117
- "gitHead": "4c46e2cc5863aa63635ea5e3580c9b041bcd0bc1"
117
+ "gitHead": "d0b5fd5b3741acd6ba6ee4cc9bca6767f92279d1"
118
118
  }