@krx3d/tizentube2 1.31.770 → 1.31.790

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.770",
4
+ "version": "1.31.790",
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",
@@ -21,6 +21,14 @@ var vm = require('vm');
21
21
  var Module = require('module');
22
22
  var childProcess = require('child_process');
23
23
 
24
+ // process.stdout rather than console: CodeQL ties console.* here to the TV's
25
+ // console hook in mods/features/visualConsole.js and reports file data reaching
26
+ // the log senders (js/file-access-to-http), though this script never runs on
27
+ // the TV. Same fix as scripts/i18n-check/check-i18n.cjs.
28
+ function writeOut(line) {
29
+ process.stdout.write(line + '\n');
30
+ }
31
+
24
32
  var mode = null;
25
33
  var failed = 0;
26
34
  var checked = 0;
@@ -54,12 +62,12 @@ function check(file, asModule) {
54
62
  try {
55
63
  compile(file, asModule);
56
64
  checked++;
57
- console.log('OK ' + file);
65
+ writeOut('OK ' + file);
58
66
  } catch (err) {
59
67
  failed++;
60
- console.log('FAIL ' + file + ': ' + err);
68
+ writeOut('FAIL ' + file + ': ' + err);
61
69
  var where = locate(file, asModule);
62
- if (where) console.log(' at ' + where);
70
+ if (where) writeOut(' at ' + where);
63
71
  }
64
72
  }
65
73
 
@@ -74,12 +82,12 @@ process.argv.slice(2).forEach(function (arg) {
74
82
  return;
75
83
  }
76
84
  if (!mode) {
77
- console.log('Usage: check-syntax.js (--script|--module) file... [(--script|--module) file...]');
85
+ writeOut('Usage: check-syntax.js (--script|--module) file... [(--script|--module) file...]');
78
86
  process.exit(2);
79
87
  }
80
88
  check(arg, mode === '--module');
81
89
  });
82
90
 
83
- console.log('Node ' + process.version + ' (V8 ' + process.versions.v8 + '): ' +
91
+ writeOut('Node ' + process.version + ' (V8 ' + process.versions.v8 + '): ' +
84
92
  checked + ' passed, ' + failed + ' failed');
85
93
  process.exit(failed || !checked ? 1 : 0);