nadesiko3 3.7.21 → 3.7.22

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.
Files changed (155) hide show
  1. package/batch/command.txt +370 -334
  2. package/batch/jsplugin2text.nako3 +1 -1
  3. package/batch/pickup_command.nako3 +12 -0
  4. package/core/command/snako.mts +5 -1
  5. package/core/deno/snako.ts +5 -1
  6. package/core/package-lock.json +382 -21
  7. package/core/package.json +4 -4
  8. package/core/src/nako3.mts +178 -614
  9. package/core/src/nako_basic_plugins.mts +39 -0
  10. package/core/src/nako_core_version.mts +2 -2
  11. package/core/src/nako_csv.mts +0 -1
  12. package/core/src/nako_event.mts +49 -0
  13. package/core/src/nako_gen.mts +291 -202
  14. package/core/src/nako_indent_inline.mts +2 -2
  15. package/core/src/nako_lex_rules.mts +1 -1
  16. package/core/src/nako_parser3.mts +106 -165
  17. package/core/src/nako_parser_async.mts +97 -0
  18. package/core/src/nako_parser_base.mts +4 -55
  19. package/core/src/nako_parser_message.mts +105 -0
  20. package/core/src/nako_parser_operator.mts +93 -0
  21. package/core/src/nako_plugin_manager.mts +260 -0
  22. package/core/src/nako_require.mts +292 -0
  23. package/core/src/nako_runner.mts +191 -0
  24. package/core/src/nako_tokenizer.mts +221 -0
  25. package/core/src/plugin_csv.mts +1 -1
  26. package/core/src/plugin_system.mts +34 -3259
  27. package/core/src/plugin_system_array.mts +699 -0
  28. package/core/src/plugin_system_datetime.mts +368 -0
  29. package/core/src/plugin_system_debug.mts +403 -0
  30. package/core/src/plugin_system_dict.mts +85 -0
  31. package/core/src/plugin_system_json.mts +73 -0
  32. package/core/src/plugin_system_math.mts +383 -0
  33. package/core/src/plugin_system_regexp.mts +120 -0
  34. package/core/src/plugin_system_stdio.mts +86 -0
  35. package/core/src/plugin_system_string.mts +666 -0
  36. package/core/src/plugin_system_timer.mts +152 -0
  37. package/core/src/plugin_system_types.mts +151 -0
  38. package/core/src/plugin_system_url.mts +193 -0
  39. package/core/src/plugin_toml.mts +3 -3
  40. package/core/test/fixtures/README.md +39 -0
  41. package/core/test/fixtures/make_parser_ast_golden.mjs +31 -0
  42. package/core/test/fixtures/parser_ast_golden.json +8027 -0
  43. package/core/test/fixtures/parser_corpus.mjs +120 -0
  44. package/core/test/indent_test.mjs +6 -0
  45. package/core/test/nako_basic_plugins_test.mjs +44 -0
  46. package/core/test/nako_event_test.mjs +85 -0
  47. package/core/test/nako_gen_perf_test.mjs +178 -0
  48. package/core/test/nako_parser_async_test.mjs +112 -0
  49. package/core/test/nako_parser_test.mjs +160 -0
  50. package/core/test/nako_plugin_manager_test.mjs +185 -0
  51. package/core/test/nako_require_test.mjs +153 -0
  52. package/core/test/nako_runner_test.mjs +114 -0
  53. package/core/test/nako_tokenizer_test.mjs +115 -0
  54. package/core/test/plugin_system_debug_test.mjs +141 -0
  55. package/core/test/plugin_system_split_test.mjs +179 -0
  56. package/core/test/plugin_system_test.mjs +6 -0
  57. package/core/tsconfig.json +0 -1
  58. package/package.json +17 -21
  59. package/release/_hash.txt +36 -36
  60. package/release/_script-tags.txt +16 -16
  61. package/release/command.json +1 -1
  62. package/release/command.json.js +1 -1
  63. package/release/command_cnako3.json +1 -1
  64. package/release/command_list.json +1 -1
  65. package/release/edit_main.js +6 -6
  66. package/release/edit_main.js.map +3 -3
  67. package/release/editor.js +6 -6
  68. package/release/plugin_keigo.js.map +3 -3
  69. package/release/plugin_markup.js +46 -46
  70. package/release/plugin_markup.js.map +3 -3
  71. package/release/plugin_weykturtle3d.js +1 -1
  72. package/release/plugin_weykturtle3d.js.map +3 -3
  73. package/release/version.js +2 -2
  74. package/release/version_main.js +2 -2
  75. package/release/version_main.js.map +1 -1
  76. package/release/wnako3.js +186 -213
  77. package/release/wnako3.js.map +4 -4
  78. package/release/wnako3webworker.js +172 -199
  79. package/release/wnako3webworker.js.map +4 -4
  80. package/src/cnako3mod.mjs +7 -2
  81. package/src/cnako3mod.mts +7 -2
  82. package/src/nako_version.mjs +2 -2
  83. package/src/nako_version.mts +2 -2
  84. package/src/plugin_browser_ajax.mjs +4 -4
  85. package/src/plugin_browser_ajax.mts +4 -4
  86. package/src/plugin_browser_audio.mjs +10 -10
  87. package/src/plugin_browser_audio.mts +10 -10
  88. package/src/plugin_browser_camera.mjs +4 -4
  89. package/src/plugin_browser_camera.mts +4 -4
  90. package/src/plugin_browser_canvas.mjs +2 -2
  91. package/src/plugin_browser_canvas.mts +2 -2
  92. package/src/plugin_browser_crypto.mjs +3 -3
  93. package/src/plugin_browser_crypto.mts +3 -3
  94. package/src/plugin_browser_dom_event.mjs +1 -1
  95. package/src/plugin_browser_dom_event.mts +1 -1
  96. package/src/plugin_browser_geolocation.mjs +1 -1
  97. package/src/plugin_browser_geolocation.mts +1 -1
  98. package/src/plugin_browser_hotkey.mjs +1 -1
  99. package/src/plugin_browser_hotkey.mts +1 -1
  100. package/src/plugin_browser_html.mjs +1 -1
  101. package/src/plugin_browser_html.mts +1 -1
  102. package/src/plugin_browser_location.mjs +1 -1
  103. package/src/plugin_browser_location.mts +1 -1
  104. package/src/plugin_browser_speech.mjs +1 -1
  105. package/src/plugin_browser_speech.mts +1 -1
  106. package/src/plugin_browser_storage.mjs +2 -2
  107. package/src/plugin_browser_storage.mts +2 -2
  108. package/src/plugin_httpserver.mjs +3 -3
  109. package/src/plugin_httpserver.mts +3 -3
  110. package/src/plugin_keigo.mjs +2 -2
  111. package/src/plugin_keigo.mts +2 -2
  112. package/src/plugin_node.mjs +48 -48
  113. package/src/plugin_node.mts +53 -53
  114. package/src/plugin_weykturtle3d.mjs +56 -56
  115. package/src/plugin_weykturtle3d.mts +56 -56
  116. package/src/wnako3.mjs +1 -1
  117. package/src/wnako3.mts +1 -1
  118. package/src/wnako3_editor.mjs +5 -5
  119. package/src/wnako3_editor.mts +5 -5
  120. package/src/wnako3mod.mjs +2 -2
  121. package/src/wnako3mod.mts +2 -2
  122. package/core/src/nako3.mjs +0 -1021
  123. package/core/src/nako_ast.mjs +0 -4
  124. package/core/src/nako_colors.mjs +0 -77
  125. package/core/src/nako_core_version.mjs +0 -8
  126. package/core/src/nako_csv.mjs +0 -193
  127. package/core/src/nako_errors.mjs +0 -166
  128. package/core/src/nako_from_dncl.mjs +0 -285
  129. package/core/src/nako_from_dncl2.mjs +0 -347
  130. package/core/src/nako_gen.mjs +0 -2500
  131. package/core/src/nako_global.mjs +0 -138
  132. package/core/src/nako_indent.mjs +0 -442
  133. package/core/src/nako_indent_chars.mjs +0 -29
  134. package/core/src/nako_indent_inline.mjs +0 -361
  135. package/core/src/nako_josi_list.mjs +0 -47
  136. package/core/src/nako_lex_rules.mjs +0 -319
  137. package/core/src/nako_lexer.mjs +0 -794
  138. package/core/src/nako_logger.mjs +0 -221
  139. package/core/src/nako_parser3.mjs +0 -3250
  140. package/core/src/nako_parser_base.mjs +0 -403
  141. package/core/src/nako_parser_const.mjs +0 -37
  142. package/core/src/nako_prepare.mjs +0 -329
  143. package/core/src/nako_reserved_words.mjs +0 -42
  144. package/core/src/nako_source_mapping.mjs +0 -207
  145. package/core/src/nako_test.mjs +0 -37
  146. package/core/src/nako_token.mjs +0 -1
  147. package/core/src/nako_tools.mjs +0 -53
  148. package/core/src/nako_types.mjs +0 -14
  149. package/core/src/plugin_api.mjs +0 -4
  150. package/core/src/plugin_csv.mjs +0 -97
  151. package/core/src/plugin_math.mjs +0 -352
  152. package/core/src/plugin_promise.mjs +0 -102
  153. package/core/src/plugin_system.mjs +0 -3810
  154. package/core/src/plugin_test.mjs +0 -52
  155. package/core/src/plugin_toml.mjs +0 -39
@@ -12,7 +12,7 @@ class EasyURLItem {
12
12
  this.action = action;
13
13
  this.url = '';
14
14
  this.path = '';
15
- this.callback = (req, res) => { };
15
+ this.callback = (_req, _res) => { };
16
16
  }
17
17
  }
18
18
  class EasyURLDispather {
@@ -82,7 +82,7 @@ class EasyURLDispather {
82
82
  try {
83
83
  postData = JSON.parse(bodyStr);
84
84
  }
85
- catch (e) {
85
+ catch {
86
86
  postData = bodyStr;
87
87
  }
88
88
  }
@@ -309,7 +309,7 @@ function isDir(pathName) {
309
309
  return true;
310
310
  }
311
311
  }
312
- catch (err) {
312
+ catch {
313
313
  return false;
314
314
  }
315
315
  }
@@ -23,7 +23,7 @@ class EasyURLItem {
23
23
  this.action = action
24
24
  this.url = ''
25
25
  this.path = ''
26
- this.callback = (req, res) => {}
26
+ this.callback = (_req, _res) => {}
27
27
  }
28
28
  }
29
29
  class EasyURLDispather {
@@ -99,7 +99,7 @@ class EasyURLDispather {
99
99
  const bodyStr = bodyBuffer.toString('utf-8')
100
100
  try {
101
101
  postData = JSON.parse(bodyStr)
102
- } catch (e) {
102
+ } catch {
103
103
  postData = bodyStr
104
104
  }
105
105
  } else if (contentType.indexOf('application/x-www-form-urlencoded') >= 0) {
@@ -319,7 +319,7 @@ function isDir(pathName: string) {
319
319
  if (stats && stats.isDirectory()) {
320
320
  return true
321
321
  }
322
- } catch (err: any) {
322
+ } catch {
323
323
  return false
324
324
  }
325
325
  }
@@ -13,7 +13,7 @@ const PluginKeigo = {
13
13
  type: 'func',
14
14
  josi: [],
15
15
  pure: true,
16
- fn: function (sys) {
16
+ fn: function (_sys) {
17
17
  }
18
18
  },
19
19
  // @丁寧語
@@ -22,7 +22,7 @@ const PluginKeigo = {
22
22
  type: 'func',
23
23
  josi: [['に', 'へ']],
24
24
  pure: true,
25
- fn: function (a, sys) {
25
+ fn: function (a, _sys) {
26
26
  return a;
27
27
  }
28
28
  },
@@ -16,7 +16,7 @@ const PluginKeigo = {
16
16
  type: 'func',
17
17
  josi: [],
18
18
  pure: true,
19
- fn: function(sys: NakoSystem) {
19
+ fn: function(_sys: NakoSystem) {
20
20
  }
21
21
  },
22
22
  // @丁寧語
@@ -25,7 +25,7 @@ const PluginKeigo = {
25
25
  type: 'func',
26
26
  josi: [['に', 'へ']],
27
27
  pure: true,
28
- fn: function(a: any, sys: NakoSystem) {
28
+ fn: function(a: any, _sys: NakoSystem) {
29
29
  return a
30
30
  }
31
31
  },
@@ -23,7 +23,7 @@ function fileExists(f) {
23
23
  fs.statSync(f);
24
24
  return true;
25
25
  }
26
- catch (err) {
26
+ catch {
27
27
  return false;
28
28
  }
29
29
  }
@@ -32,7 +32,7 @@ function isDir(f) {
32
32
  const st = fs.statSync(f);
33
33
  return st.isDirectory();
34
34
  }
35
- catch (err) {
35
+ catch {
36
36
  return false;
37
37
  }
38
38
  }
@@ -41,7 +41,7 @@ function commandExists(command) {
41
41
  const r = spawnSync('which', [command], { stdio: 'ignore' });
42
42
  return r.status === 0;
43
43
  }
44
- catch (_err) {
44
+ catch {
45
45
  return false;
46
46
  }
47
47
  }
@@ -173,7 +173,7 @@ async function listFilesRecursive(baseDir, curPath) {
173
173
  try {
174
174
  stat = await fs.promises.stat(curPath);
175
175
  }
176
- catch (_e) {
176
+ catch {
177
177
  return [];
178
178
  }
179
179
  if (stat.isFile()) {
@@ -348,7 +348,7 @@ export default {
348
348
  try {
349
349
  h(line);
350
350
  }
351
- catch (e) { /* ignore */ }
351
+ catch { /* ignore */ }
352
352
  }
353
353
  // 一度きりの待機者(『尋』『文字尋』)へ優先的に配信、なければキュー
354
354
  if (sys.tags.__stdinWaiters.length > 0) {
@@ -366,7 +366,7 @@ export default {
366
366
  try {
367
367
  sys.tags.__stdinRaw += buf.toString();
368
368
  }
369
- catch (_err) { /* ignore */ }
369
+ catch { /* ignore */ }
370
370
  const bufStr = buf.toString();
371
371
  for (let i = 0; i < bufStr.length; i++) {
372
372
  const c = bufStr.charAt(i);
@@ -392,7 +392,7 @@ export default {
392
392
  try {
393
393
  w();
394
394
  }
395
- catch (_err) { /* ignore */ }
395
+ catch { /* ignore */ }
396
396
  }
397
397
  sys.tags.__endWaiters = [];
398
398
  }
@@ -444,7 +444,7 @@ export default {
444
444
  type: 'func',
445
445
  josi: [['を', 'から']],
446
446
  pure: true,
447
- fn: function (s, sys) {
447
+ fn: function (s, _sys) {
448
448
  return fs.readFileSync(s);
449
449
  }
450
450
  },
@@ -479,7 +479,7 @@ export default {
479
479
  type: 'func',
480
480
  josi: [['を', 'から']],
481
481
  pure: true,
482
- fn: function (s, sys) {
482
+ fn: function (s, _sys) {
483
483
  // iconv.skipDecodeWarning = true
484
484
  const buf = fs.readFileSync(s);
485
485
  const text = iconv.decode(Buffer.from(buf), 'sjis');
@@ -490,7 +490,7 @@ export default {
490
490
  type: 'func',
491
491
  josi: [['を'], ['へ', 'に']],
492
492
  pure: true,
493
- fn: function (s, f, sys) {
493
+ fn: function (s, f, _sys) {
494
494
  // iconv.skipDecodeWarning = true
495
495
  const buf = iconv.encode(s, 'Shift_JIS');
496
496
  fs.writeFileSync(f, buf);
@@ -501,7 +501,7 @@ export default {
501
501
  type: 'func',
502
502
  josi: [['を', 'から']],
503
503
  pure: true,
504
- fn: function (s, sys) {
504
+ fn: function (s, _sys) {
505
505
  const buf = fs.readFileSync(s);
506
506
  const text = iconv.decode(Buffer.from(buf), 'euc-jp');
507
507
  return text;
@@ -511,7 +511,7 @@ export default {
511
511
  type: 'func',
512
512
  josi: [['を'], ['へ', 'に']],
513
513
  pure: true,
514
- fn: function (s, f, sys) {
514
+ fn: function (s, f, _sys) {
515
515
  const buf = iconv.encode(s, 'euc-jp');
516
516
  fs.writeFileSync(f, buf);
517
517
  },
@@ -580,7 +580,7 @@ export default {
580
580
  type: 'func',
581
581
  josi: [['で'], ['を']],
582
582
  pure: true,
583
- fn: function (callback, s, sys) {
583
+ fn: function (callback, s, _sys) {
584
584
  exec(s, (err, stdout, stderr) => {
585
585
  if (err) {
586
586
  throw new Error(stderr);
@@ -686,7 +686,7 @@ export default {
686
686
  try {
687
687
  st = fs.statSync(fullpath);
688
688
  }
689
- catch (e) {
689
+ catch {
690
690
  continue;
691
691
  }
692
692
  if (st.isDirectory()) {
@@ -758,7 +758,7 @@ export default {
758
758
  type: 'func',
759
759
  josi: [['で'], ['から', 'を'], ['に', 'へ']],
760
760
  pure: true,
761
- fn: function (callback, a, b, sys) {
761
+ fn: function (callback, a, b, _sys) {
762
762
  return fse.copy(a, b, (err) => {
763
763
  if (err) {
764
764
  throw new Error('ファイルコピー時:' + err);
@@ -827,7 +827,7 @@ export default {
827
827
  type: 'func',
828
828
  josi: [['で'], ['から', 'を'], ['に', 'へ']],
829
829
  pure: true,
830
- fn: function (callback, a, b, sys) {
830
+ fn: function (callback, a, b, _sys) {
831
831
  fse.move(a, b, (err) => {
832
832
  if (err) {
833
833
  throw new Error('ファイル移動時:' + err);
@@ -841,7 +841,7 @@ export default {
841
841
  type: 'func',
842
842
  josi: [['の', 'を']],
843
843
  pure: true,
844
- fn: function (path, sys) {
844
+ fn: function (path, _sys) {
845
845
  return fse.removeSync(path);
846
846
  }
847
847
  },
@@ -849,7 +849,7 @@ export default {
849
849
  type: 'func',
850
850
  josi: [['で'], ['の', 'を']],
851
851
  pure: true,
852
- fn: function (callback, path, sys) {
852
+ fn: function (callback, path, _sys) {
853
853
  return fse.remove(path, (err) => {
854
854
  if (err) {
855
855
  throw new Error('ファイル削除時:' + err);
@@ -863,7 +863,7 @@ export default {
863
863
  type: 'func',
864
864
  josi: [['の', 'から']],
865
865
  pure: true,
866
- fn: function (path, sys) {
866
+ fn: function (path, _sys) {
867
867
  return fs.statSync(path);
868
868
  }
869
869
  },
@@ -871,7 +871,7 @@ export default {
871
871
  type: 'func',
872
872
  josi: [['の', 'から']],
873
873
  pure: true,
874
- fn: function (path, sys) {
874
+ fn: function (path, _sys) {
875
875
  const st = fs.statSync(path);
876
876
  if (!st) {
877
877
  return -1;
@@ -988,7 +988,7 @@ export default {
988
988
  type: 'func',
989
989
  josi: [],
990
990
  pure: true,
991
- fn: function (sys) {
991
+ fn: function (_sys) {
992
992
  // 環境変数からテンポラリフォルダを取得
993
993
  return os.tmpdir();
994
994
  }
@@ -997,7 +997,7 @@ export default {
997
997
  type: 'func',
998
998
  josi: [['に', 'へ']],
999
999
  pure: true,
1000
- fn: function (dir, sys) {
1000
+ fn: function (dir, _sys) {
1001
1001
  if (dir === '' || !dir) {
1002
1002
  dir = os.tmpdir();
1003
1003
  }
@@ -1055,7 +1055,7 @@ export default {
1055
1055
  a = sys.tags.__quotePath(a);
1056
1056
  b = sys.tags.__quotePath(b);
1057
1057
  const cmd = `${tpath} x ${a} -o${b} -y`;
1058
- exec(cmd, (err, stdout, stderr) => {
1058
+ exec(cmd, (err, stdout, _stderr) => {
1059
1059
  if (err) {
1060
1060
  throw new Error('[エラー]『解凍時』' + err);
1061
1061
  }
@@ -1086,7 +1086,7 @@ export default {
1086
1086
  a = sys.tags.__quotePath(a);
1087
1087
  b = sys.tags.__quotePath(b);
1088
1088
  const cmd = `${tpath} a -r ${b} ${a} -y`;
1089
- exec(cmd, (err, stdout, stderr) => {
1089
+ exec(cmd, (err, stdout, _stderr) => {
1090
1090
  if (err) {
1091
1091
  throw new Error('[エラー]『圧縮時』' + (err.message || JSON.stringify(err)));
1092
1092
  }
@@ -1113,7 +1113,7 @@ export default {
1113
1113
  if (typeof (func) === 'string') {
1114
1114
  func = sys.__findFunc(func, '強制終了時');
1115
1115
  }
1116
- nodeProcess.on('SIGINT', (signal) => {
1116
+ nodeProcess.on('SIGINT', (_signal) => {
1117
1117
  const flag = func(sys);
1118
1118
  if (flag) {
1119
1119
  nodeProcess.exit();
@@ -1135,7 +1135,7 @@ export default {
1135
1135
  type: 'func',
1136
1136
  josi: [],
1137
1137
  pure: true,
1138
- fn: function (sys) {
1138
+ fn: function (_sys) {
1139
1139
  return nodeProcess.platform;
1140
1140
  }
1141
1141
  },
@@ -1143,7 +1143,7 @@ export default {
1143
1143
  type: 'func',
1144
1144
  josi: [],
1145
1145
  pure: true,
1146
- fn: function (sys) {
1146
+ fn: function (_sys) {
1147
1147
  return nodeProcess.arch;
1148
1148
  }
1149
1149
  },
@@ -1222,7 +1222,7 @@ export default {
1222
1222
  type: 'func',
1223
1223
  josi: [['と'], ['が']],
1224
1224
  pure: true,
1225
- fn: function (a, b, sys) {
1225
+ fn: function (a, b, _sys) {
1226
1226
  assert.strictEqual(a, b);
1227
1227
  }
1228
1228
  },
@@ -1231,7 +1231,7 @@ export default {
1231
1231
  type: 'func',
1232
1232
  josi: [],
1233
1233
  pure: true,
1234
- fn: function (sys) {
1234
+ fn: function (_sys) {
1235
1235
  const nif = os.networkInterfaces();
1236
1236
  if (!nif) {
1237
1237
  throw new Error('『自分IPアドレス取得』でネットワークのインターフェイスが種畜できません。');
@@ -1258,7 +1258,7 @@ export default {
1258
1258
  type: 'func',
1259
1259
  josi: [],
1260
1260
  pure: true,
1261
- fn: function (sys) {
1261
+ fn: function (_sys) {
1262
1262
  const nif = os.networkInterfaces();
1263
1263
  if (!nif) {
1264
1264
  throw new Error('『自分IPアドレス取得』でネットワークのインターフェイスが種畜できません。');
@@ -1426,7 +1426,7 @@ export default {
1426
1426
  type: 'func',
1427
1427
  josi: [['まで', 'へ', 'に'], ['を']],
1428
1428
  pure: true,
1429
- fn: function (url, params, sys) {
1429
+ fn: function (url, params, _sys) {
1430
1430
  const flist = [];
1431
1431
  for (const key in params) {
1432
1432
  const v = params[key];
@@ -1449,7 +1449,7 @@ export default {
1449
1449
  type: 'func',
1450
1450
  josi: [['まで', 'へ', 'に'], ['を']],
1451
1451
  pure: true,
1452
- fn: function (url, params, sys) {
1452
+ fn: function (url, params, _sys) {
1453
1453
  const fd = new FormData();
1454
1454
  for (const key in params) {
1455
1455
  fd.set(key, params[key]);
@@ -1466,7 +1466,7 @@ export default {
1466
1466
  type: 'func',
1467
1467
  josi: [['から'], ['で']],
1468
1468
  pure: true,
1469
- fn: function (res, type, sys) {
1469
+ fn: function (res, type, _sys) {
1470
1470
  type = type.toString().toUpperCase();
1471
1471
  if (type === 'TEXT' || type === 'テキスト') {
1472
1472
  return res.text();
@@ -1516,7 +1516,7 @@ export default {
1516
1516
  type: 'func',
1517
1517
  josi: [['の', 'を']],
1518
1518
  pure: true,
1519
- fn: function (params, sys) {
1519
+ fn: function (params, _sys) {
1520
1520
  const flist = [];
1521
1521
  for (const key in params) {
1522
1522
  const v = params[key];
@@ -1556,7 +1556,7 @@ export default {
1556
1556
  josi: [['まで', 'へ', 'に'], ['を']],
1557
1557
  pure: true,
1558
1558
  asyncFn: true,
1559
- fn: function (url, params, sys) {
1559
+ fn: function (url, params, _sys) {
1560
1560
  return new Promise((resolve, reject) => {
1561
1561
  const fd = new FormData();
1562
1562
  for (const key in params) {
@@ -1637,7 +1637,7 @@ export default {
1637
1637
  josi: [['へ', 'に'], ['を']],
1638
1638
  pure: true,
1639
1639
  asyncFn: true,
1640
- fn: async function (url, s, sys) {
1640
+ fn: async function (url, s, _sys) {
1641
1641
  const payload = { content: s };
1642
1642
  const res = await fetch(url, {
1643
1643
  method: 'POST',
@@ -1657,7 +1657,7 @@ export default {
1657
1657
  josi: [['へ', 'に'], ['と'], ['を']],
1658
1658
  pure: true,
1659
1659
  asyncFn: true,
1660
- fn: async function (url, f, s, sys) {
1660
+ fn: async function (url, f, s, _sys) {
1661
1661
  const formData = new FormData();
1662
1662
  formData.append('content', s);
1663
1663
  const imageData = fs.readFileSync(f);
@@ -1680,7 +1680,7 @@ export default {
1680
1680
  type: 'func',
1681
1681
  josi: [['へ', 'に'], ['を']],
1682
1682
  pure: true,
1683
- fn: function (token, message, sys) {
1683
+ fn: function (_token, _message, _sys) {
1684
1684
  throw new Error('『LINE送信』は2025年4月で使えなくなりました。[詳細URL] https://nadesi.com/v3/doc/go.php?4670');
1685
1685
  }
1686
1686
  },
@@ -1688,7 +1688,7 @@ export default {
1688
1688
  type: 'func',
1689
1689
  josi: [['へ', 'に'], ['と'], ['を']],
1690
1690
  pure: true,
1691
- fn: function (token, imageFile, message, sys) {
1691
+ fn: function (_token, _imageFile, _message, _sys) {
1692
1692
  throw new Error('『LINE画像送信』は2025年4月で使えなくなりました。[詳細URL] https://nadesi.com/v3/doc/go.php?4670');
1693
1693
  }
1694
1694
  },
@@ -1697,7 +1697,7 @@ export default {
1697
1697
  type: 'func',
1698
1698
  josi: [['の', 'を']],
1699
1699
  pure: true,
1700
- fn: function (code, sys) {
1700
+ fn: function (code, _sys) {
1701
1701
  return iconv.encodingExists(code);
1702
1702
  }
1703
1703
  },
@@ -1705,7 +1705,7 @@ export default {
1705
1705
  type: 'func',
1706
1706
  josi: [['に', 'へ', 'を']],
1707
1707
  pure: true,
1708
- fn: function (str, sys) {
1708
+ fn: function (str, _sys) {
1709
1709
  // iconv.skipDecodeWarning = true
1710
1710
  return iconv.encode(str, 'Shift_JIS');
1711
1711
  }
@@ -1714,7 +1714,7 @@ export default {
1714
1714
  type: 'func',
1715
1715
  josi: [['から', 'を', 'で']],
1716
1716
  pure: true,
1717
- fn: function (buf, sys) {
1717
+ fn: function (buf, _sys) {
1718
1718
  // iconv.skipDecodeWarning = true
1719
1719
  return iconv.decode(Buffer.from(buf), 'sjis');
1720
1720
  }
@@ -1723,7 +1723,7 @@ export default {
1723
1723
  type: 'func',
1724
1724
  josi: [['を'], ['へ', 'で']],
1725
1725
  pure: true,
1726
- fn: function (s, code, sys) {
1726
+ fn: function (s, code, _sys) {
1727
1727
  // iconv.skipDecodeWarning = true
1728
1728
  return iconv.encode(s, code);
1729
1729
  }
@@ -1732,7 +1732,7 @@ export default {
1732
1732
  type: 'func',
1733
1733
  josi: [['を'], ['から', 'で']],
1734
1734
  pure: true,
1735
- fn: function (buf, code, sys) {
1735
+ fn: function (buf, code, _sys) {
1736
1736
  // iconv.skipDecodeWarning = true
1737
1737
  return iconv.decode(Buffer.from(buf), code);
1738
1738
  }
@@ -1742,7 +1742,7 @@ export default {
1742
1742
  type: 'func',
1743
1743
  josi: [],
1744
1744
  pure: true,
1745
- fn: function (sys) {
1745
+ fn: function (_sys) {
1746
1746
  return crypto.getHashes();
1747
1747
  }
1748
1748
  },
@@ -1750,7 +1750,7 @@ export default {
1750
1750
  type: 'func',
1751
1751
  josi: [['を'], ['の'], ['で']],
1752
1752
  pure: true,
1753
- fn: function (s, alg, enc, sys) {
1753
+ fn: function (s, alg, enc, _sys) {
1754
1754
  const hashsum = crypto.createHash(alg);
1755
1755
  hashsum.update(s);
1756
1756
  return hashsum.digest(enc);
@@ -1760,7 +1760,7 @@ export default {
1760
1760
  type: 'func',
1761
1761
  josi: [],
1762
1762
  pure: true,
1763
- fn: function (sys) {
1763
+ fn: function (_sys) {
1764
1764
  const uuid = crypto.randomUUID();
1765
1765
  return uuid;
1766
1766
  }
@@ -1769,7 +1769,7 @@ export default {
1769
1769
  type: 'func',
1770
1770
  josi: [['の']],
1771
1771
  pure: true,
1772
- fn: function (cnt, sys) {
1772
+ fn: function (cnt, _sys) {
1773
1773
  const a = new Uint8Array(cnt);
1774
1774
  crypto.getRandomValues(a);
1775
1775
  return a;