@krx3d/tizentube2 1.31.630 → 1.31.640

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@krx3d/tizentube2",
3
3
  "appName": "TizenTube",
4
- "version": "1.31.630",
4
+ "version": "1.31.640",
5
5
  "description": "TizenTube is an ad-free and sponsor-free solution for your favourite streaming website on your Tizen (Samsung) TVs.",
6
6
  "packageType": "mods",
7
7
  "websiteURL": "https://youtube.com/tv?additionalDataUrl=http%3A%2F%2Flocalhost%3A8085%2Fdial%2Fapps%2FYouTube",
@@ -1,9 +1,16 @@
1
1
  #!/usr/bin/env node
2
+ 'use strict';
3
+ // process.stdout/stderr rather than console: CodeQL ties console.* here to the TV's
4
+ // console hook in mods/features/visualConsole.js and reports file data reaching the
5
+ // log senders (js/file-access-to-http), though this script never runs on the TV.
6
+ const writeOut = (line) => process.stdout.write(`${line}\n`);
7
+ const writeErr = (line) => process.stderr.write(`${line}\n`);
8
+
2
9
  // Checks that the English and German translations stay in step.
3
10
  // Plain Node, no dependencies, so it runs in any CI job that has actions/checkout.
4
11
  //
5
12
  // Usage:
6
- // node scripts/check-i18n.cjs --en <en.json> --de <de.json> [--src <dir>]... [--go <file.go>]
13
+ // node scripts/i18n-check/check-i18n.cjs --en <en.json> --de <de.json> [--src <dir>]... [--go <file.go>]
7
14
  //
8
15
  // Fails on:
9
16
  // - a key in one language file but not the other (nested JSON is flattened to a.b.c)
@@ -14,7 +21,6 @@
14
21
  // Keys built at runtime (t('state.' + x)) are skipped, they cannot be checked statically.
15
22
  // Keys starting with "__" (metadata such as __contributors) are ignored.
16
23
 
17
- 'use strict';
18
24
  const fs = require('fs');
19
25
  const path = require('path');
20
26
 
@@ -30,8 +36,8 @@ for (let i = 2; i < process.argv.length; i += 2) {
30
36
  if (!args.en || !args.de) usage('--en and --de are required');
31
37
 
32
38
  function usage(msg) {
33
- console.error(`check-i18n: ${msg}`);
34
- console.error('usage: check-i18n.cjs --en <en.json> --de <de.json> [--src <dir>]... [--go <file.go>]');
39
+ writeErr(`check-i18n: ${msg}`);
40
+ writeErr('usage: check-i18n.cjs --en <en.json> --de <de.json> [--src <dir>]... [--go <file.go>]');
35
41
  process.exit(2);
36
42
  }
37
43
 
@@ -136,8 +142,8 @@ if (args.go) {
136
142
  }
137
143
 
138
144
  if (errors.length) {
139
- console.error(`check-i18n: ${errors.length} problem(s)`);
140
- for (const e of errors) console.error(` ${e}`);
145
+ writeErr(`check-i18n: ${errors.length} problem(s)`);
146
+ for (const e of errors) writeErr(` ${e}`);
141
147
  process.exit(1);
142
148
  }
143
- console.log(`check-i18n: ok (${Object.keys(en).length} keys${args.go ? ' + Go map' : ''})`);
149
+ writeOut(`check-i18n: ok (${Object.keys(en).length} keys${args.go ? ' + Go map' : ''})`);