@esgettext/tools 1.3.5 → 1.3.6
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/dist/commands/init.js +2 -3
- package/dist/commands/potfiles.js +0 -2
- package/dist/configuration.js +3 -2
- package/dist/package.js +1 -1
- package/package.json +3 -3
package/dist/commands/init.js
CHANGED
|
@@ -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: '--
|
|
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',
|
package/dist/configuration.js
CHANGED
|
@@ -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 (
|
|
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 (
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esgettext/tools",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"description": "Gettext-like po creation and manipulation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gettext",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"dependencies": {
|
|
105
105
|
"@babel/parser": "^7.26.3",
|
|
106
106
|
"@babel/traverse": "^7.26.3",
|
|
107
|
-
"@esgettext/runtime": "^1.3.
|
|
107
|
+
"@esgettext/runtime": "^1.3.4",
|
|
108
108
|
"@inquirer/prompts": "^7.1.0",
|
|
109
109
|
"@npmcli/package-json": "^6.1.0",
|
|
110
110
|
"@valibot/i18n": "^0.17.0",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"valibot": "^0.42.1",
|
|
115
115
|
"yargs": "^17.7.2"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "5eab231f046e32d4a6484aa396520feeadb2cdd5"
|
|
118
118
|
}
|