@iobroker/repochecker 3.0.0-alpha.1 → 3.0.0-alpha.2

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/lib/config.js ADDED
@@ -0,0 +1,450 @@
1
+ 'use strict';
2
+ /*
3
+ This module contains configuration data iobroker.repochecker
4
+
5
+ */
6
+
7
+
8
+ const allowedLanguages = [
9
+ 'en',
10
+ 'de',
11
+ 'ru',
12
+ 'pt',
13
+ 'nl',
14
+ 'fr',
15
+ 'it',
16
+ 'es',
17
+ 'pl',
18
+ 'uk',
19
+ 'zh-cn'
20
+ ];
21
+
22
+ const requiredLanguages = [
23
+ 'en',
24
+ 'de',
25
+ // 'xx' // TESTING ONLY
26
+ ];
27
+
28
+ const allowedLicenses = [
29
+ '0BSD',
30
+ 'AAL',
31
+ 'Abstyles',
32
+ 'Adobe-2006',
33
+ 'Adobe-Glyph',
34
+ 'ADSL',
35
+ 'AFL-1.1',
36
+ 'AFL-1.2',
37
+ 'AFL-2.0',
38
+ 'AFL-2.1',
39
+ 'AFL-3.0',
40
+ 'Afmparse',
41
+ 'AGPL-1.0-only',
42
+ 'AGPL-1.0-or-later',
43
+ 'AGPL-3.0-only',
44
+ 'AGPL-3.0-or-later',
45
+ 'Aladdin',
46
+ 'AMDPLPA',
47
+ 'AML',
48
+ 'AMPAS',
49
+ 'ANTLR-PD',
50
+ 'Apache-1.0',
51
+ 'Apache-1.1',
52
+ 'Apache-2.0',
53
+ 'APAFML',
54
+ 'APL-1.0',
55
+ 'APSL-1.0',
56
+ 'APSL-1.1',
57
+ 'APSL-1.2',
58
+ 'APSL-2.0',
59
+ 'Artistic-1.0-cl8',
60
+ 'Artistic-1.0-Perl',
61
+ 'Artistic-1.0',
62
+ 'Artistic-2.0',
63
+ 'Bahyph',
64
+ 'Barr',
65
+ 'Beerware',
66
+ 'BitTorrent-1.0',
67
+ 'BitTorrent-1.1',
68
+ 'Borceux',
69
+ 'BSD-1-Clause',
70
+ 'BSD-2-Clause-FreeBSD',
71
+ 'BSD-2-Clause-NetBSD',
72
+ 'BSD-2-Clause-Patent',
73
+ 'BSD-2-Clause',
74
+ 'BSD-3-Clause-Attribution',
75
+ 'BSD-3-Clause-Clear',
76
+ 'BSD-3-Clause-LBNL',
77
+ 'BSD-3-Clause-No-Nuclear-License-2014',
78
+ 'BSD-3-Clause-No-Nuclear-License',
79
+ 'BSD-3-Clause-No-Nuclear-Warranty',
80
+ 'BSD-3-Clause',
81
+ 'BSD-4-Clause-UC',
82
+ 'BSD-4-Clause',
83
+ 'BSD-Protection',
84
+ 'BSD-Source-Code',
85
+ 'BSL-1.0',
86
+ 'bzip2-1.0.5',
87
+ 'bzip2-1.0.6',
88
+ 'Caldera',
89
+ 'CATOSL-1.1',
90
+ 'CC-BY-1.0',
91
+ 'CC-BY-2.0',
92
+ 'CC-BY-2.5',
93
+ 'CC-BY-3.0',
94
+ 'CC-BY-4.0',
95
+ 'CC-BY-NC-1.0',
96
+ 'CC-BY-NC-2.0',
97
+ 'CC-BY-NC-2.5',
98
+ 'CC-BY-NC-3.0',
99
+ 'CC-BY-NC-4.0',
100
+ 'CC-BY-NC-ND-1.0',
101
+ 'CC-BY-NC-ND-2.0',
102
+ 'CC-BY-NC-ND-2.5',
103
+ 'CC-BY-NC-ND-3.0',
104
+ 'CC-BY-NC-ND-4.0',
105
+ 'CC-BY-NC-SA-1.0',
106
+ 'CC-BY-NC-SA-2.0',
107
+ 'CC-BY-NC-SA-2.5',
108
+ 'CC-BY-NC-SA-3.0',
109
+ 'CC-BY-NC-SA-4.0',
110
+ 'CC-BY-ND-1.0',
111
+ 'CC-BY-ND-2.0',
112
+ 'CC-BY-ND-2.5',
113
+ 'CC-BY-ND-3.0',
114
+ 'CC-BY-ND-4.0',
115
+ 'CC-BY-SA-1.0',
116
+ 'CC-BY-SA-2.0',
117
+ 'CC-BY-SA-2.5',
118
+ 'CC-BY-SA-3.0',
119
+ 'CC-BY-SA-4.0',
120
+ 'CC0-1.0',
121
+ 'CDDL-1.0',
122
+ 'CDDL-1.1',
123
+ 'CDLA-Permissive-1.0',
124
+ 'CDLA-Sharing-1.0',
125
+ 'CECILL-1.0',
126
+ 'CECILL-1.1',
127
+ 'CECILL-2.0',
128
+ 'CECILL-2.1',
129
+ 'CECILL-B',
130
+ 'CECILL-C',
131
+ 'ClArtistic',
132
+ 'CNRI-Jython',
133
+ 'CNRI-Python-GPL-Compatible',
134
+ 'CNRI-Python',
135
+ 'Condor-1.1',
136
+ 'copyleft-next-0.3.0',
137
+ 'copyleft-next-0.3.1',
138
+ 'CPAL-1.0',
139
+ 'CPL-1.0',
140
+ 'CPOL-1.02',
141
+ 'Crossword',
142
+ 'CrystalStacker',
143
+ 'CUA-OPL-1.0',
144
+ 'Cube',
145
+ 'curl',
146
+ 'D-FSL-1.0',
147
+ 'diffmark',
148
+ 'DOC',
149
+ 'Dotseqn',
150
+ 'DSDP',
151
+ 'dvipdfm',
152
+ 'ECL-1.0',
153
+ 'ECL-2.0',
154
+ 'EFL-1.0',
155
+ 'EFL-2.0',
156
+ 'eGenix',
157
+ 'Entessa',
158
+ 'EPL-1.0',
159
+ 'EPL-2.0',
160
+ 'ErlPL-1.1',
161
+ 'EUDatagrid',
162
+ 'EUPL-1.0',
163
+ 'EUPL-1.1',
164
+ 'EUPL-1.2',
165
+ 'Eurosym',
166
+ 'Fair',
167
+ 'Frameworx-1.0',
168
+ 'FreeImage',
169
+ 'FSFAP',
170
+ 'FSFUL',
171
+ 'FSFULLR',
172
+ 'FTL',
173
+ 'GFDL-1.1-only',
174
+ 'GFDL-1.1-or-later',
175
+ 'GFDL-1.2-only',
176
+ 'GFDL-1.2-or-later',
177
+ 'GFDL-1.3-only',
178
+ 'GFDL-1.3-or-later',
179
+ 'Giftware',
180
+ 'GL2PS',
181
+ 'Glide',
182
+ 'Glulxe',
183
+ 'gnuplot',
184
+ 'GPL-1.0-only',
185
+ 'GPL-1.0-or-later',
186
+ 'GPL-2.0-only',
187
+ 'GPL-2.0-or-later',
188
+ 'GPL-3.0-only',
189
+ 'GPL-3.0-or-later',
190
+ 'gSOAP-1.3b',
191
+ 'HaskellReport',
192
+ 'HPND',
193
+ 'IBM-pibs',
194
+ 'ICU',
195
+ 'IJG',
196
+ 'ImageMagick',
197
+ 'iMatix',
198
+ 'Imlib2',
199
+ 'Info-ZIP',
200
+ 'Intel-ACPI',
201
+ 'Intel',
202
+ 'Interbase-1.0',
203
+ 'IPA',
204
+ 'IPL-1.0',
205
+ 'ISC',
206
+ 'JasPer-2.0',
207
+ 'JSON',
208
+ 'LAL-1.2',
209
+ 'LAL-1.3',
210
+ 'Latex2e',
211
+ 'Leptonica',
212
+ 'LGPL-2.0-only',
213
+ 'LGPL-2.0-or-later',
214
+ 'LGPL-2.1-only',
215
+ 'LGPL-2.1-or-later',
216
+ 'LGPL-3.0-only',
217
+ 'LGPL-3.0-or-later',
218
+ 'LGPLLR',
219
+ 'Libpng',
220
+ 'libtiff',
221
+ 'LiLiQ-P-1.1',
222
+ 'LiLiQ-R-1.1',
223
+ 'LiLiQ-Rplus-1.1',
224
+ 'Linux-OpenIB',
225
+ 'LPL-1.0',
226
+ 'LPL-1.02',
227
+ 'LPPL-1.0',
228
+ 'LPPL-1.1',
229
+ 'LPPL-1.2',
230
+ 'LPPL-1.3a',
231
+ 'LPPL-1.3c',
232
+ 'MakeIndex',
233
+ 'MirOS',
234
+ 'MIT-0',
235
+ 'MIT-advertising',
236
+ 'MIT-CMU',
237
+ 'MIT-enna',
238
+ 'MIT-feh',
239
+ 'MIT',
240
+ 'MITNFA',
241
+ 'Motosoto',
242
+ 'mpich2',
243
+ 'MPL-1.0',
244
+ 'MPL-1.1',
245
+ 'MPL-2.0-no-copyleft-exception',
246
+ 'MPL-2.0',
247
+ 'MS-PL',
248
+ 'MS-RL',
249
+ 'MTLL',
250
+ 'Multics',
251
+ 'Mup',
252
+ 'NASA-1.3',
253
+ 'Naumen',
254
+ 'NBPL-1.0',
255
+ 'NCSA',
256
+ 'Net-SNMP',
257
+ 'NetCDF',
258
+ 'Newsletr',
259
+ 'NGPL',
260
+ 'NLOD-1.0',
261
+ 'NLPL',
262
+ 'Nokia',
263
+ 'NOSL',
264
+ 'Noweb',
265
+ 'NPL-1.0',
266
+ 'NPL-1.1',
267
+ 'NPOSL-3.0',
268
+ 'NRL',
269
+ 'NTP',
270
+ 'OCCT-PL',
271
+ 'OCLC-2.0',
272
+ 'ODbL-1.0',
273
+ 'ODC-By-1.0',
274
+ 'OFL-1.0',
275
+ 'OFL-1.1',
276
+ 'OGL-UK-1.0',
277
+ 'OGL-UK-2.0',
278
+ 'OGL-UK-3.0',
279
+ 'OGTSL',
280
+ 'OLDAP-1.1',
281
+ 'OLDAP-1.2',
282
+ 'OLDAP-1.3',
283
+ 'OLDAP-1.4',
284
+ 'OLDAP-2.0.1',
285
+ 'OLDAP-2.0',
286
+ 'OLDAP-2.1',
287
+ 'OLDAP-2.2.1',
288
+ 'OLDAP-2.2.2',
289
+ 'OLDAP-2.2',
290
+ 'OLDAP-2.3',
291
+ 'OLDAP-2.4',
292
+ 'OLDAP-2.5',
293
+ 'OLDAP-2.6',
294
+ 'OLDAP-2.7',
295
+ 'OLDAP-2.8',
296
+ 'OML',
297
+ 'OpenSSL',
298
+ 'OPL-1.0',
299
+ 'OSET-PL-2.1',
300
+ 'OSL-1.0',
301
+ 'OSL-1.1',
302
+ 'OSL-2.0',
303
+ 'OSL-2.1',
304
+ 'OSL-3.0',
305
+ 'PDDL-1.0',
306
+ 'PHP-3.0',
307
+ 'PHP-3.01',
308
+ 'Plexus',
309
+ 'PostgreSQL',
310
+ 'psfrag',
311
+ 'psutils',
312
+ 'Python-2.0',
313
+ 'Qhull',
314
+ 'QPL-1.0',
315
+ 'Rdisc',
316
+ 'RHeCos-1.1',
317
+ 'RPL-1.1',
318
+ 'RPL-1.5',
319
+ 'RPSL-1.0',
320
+ 'RSA-MD',
321
+ 'RSCPL',
322
+ 'Ruby',
323
+ 'SAX-PD',
324
+ 'Saxpath',
325
+ 'SCEA',
326
+ 'Sendmail-8.23',
327
+ 'Sendmail',
328
+ 'SGI-B-1.0',
329
+ 'SGI-B-1.1',
330
+ 'SGI-B-2.0',
331
+ 'SimPL-2.0',
332
+ 'SISSL-1.2',
333
+ 'SISSL',
334
+ 'Sleepycat',
335
+ 'SMLNJ',
336
+ 'SMPPL',
337
+ 'SNIA',
338
+ 'Spencer-86',
339
+ 'Spencer-94',
340
+ 'Spencer-99',
341
+ 'SPL-1.0',
342
+ 'SugarCRM-1.1.3',
343
+ 'SWL',
344
+ 'TCL',
345
+ 'TCP-wrappers',
346
+ 'TMate',
347
+ 'TORQUE-1.1',
348
+ 'TOSL',
349
+ 'TU-Berlin-1.0',
350
+ 'TU-Berlin-2.0',
351
+ 'Unicode-DFS-2015',
352
+ 'Unicode-DFS-2016',
353
+ 'Unicode-TOU',
354
+ 'Unlicense',
355
+ 'UPL-1.0',
356
+ 'Vim',
357
+ 'VOSTROM',
358
+ 'VSL-1.0',
359
+ 'W3C-19980720',
360
+ 'W3C-20150513',
361
+ 'W3C',
362
+ 'Watcom-1.0',
363
+ 'Wsuipa',
364
+ 'WTFPL',
365
+ 'X11',
366
+ 'Xerox',
367
+ 'XFree86-1.1',
368
+ 'xinetd',
369
+ 'Xnet',
370
+ 'xpp',
371
+ 'XSkat',
372
+ 'YPL-1.0',
373
+ 'YPL-1.1',
374
+ 'Zed',
375
+ 'Zend-2.0',
376
+ 'Zimbra-1.3',
377
+ 'ZPL-1.1',
378
+ 'ZPL-2.0',
379
+ 'ZPL-2.1',
380
+ ];
381
+
382
+ const allowedModes = {
383
+ 'none': 'this adapter will not be started',
384
+ 'daemon': 'always running process (will be restarted if process exits)',
385
+ 'schedule': 'is started by schedule found in system.adapter…common.schedule - reacts on changes of .schedule by rescheduling with new state',
386
+ 'once': 'his adapter will be started every time the system.adapter.. object changed. It will not be restarted after termination.',
387
+ 'extension': ''
388
+ };
389
+ const allowedTypes = {
390
+ 'alarm': 'security of home, car, boat, ...',
391
+ 'climate-control': 'climate, heaters, air filters, water heaters, ...',
392
+ 'communication': 'deliver data for other services via RESTapi, websockets',
393
+ 'date-and-time': 'schedules, calendars, ...',
394
+ 'energy': 'energy metering',
395
+ 'metering': 'other, but energy metering (water, gas, oil, ...)',
396
+ 'garden': 'mower, springs, ...',
397
+ 'general': 'general purpose adapters, like admin, web, discovery, ...',
398
+ 'geoposition': 'geo-positioning. These adapters deliver or accept the position of other objects or persons.',
399
+ 'hardware': 'different multi-purpose hardware, arduino, esp, bluetooth, ...',
400
+ 'household': 'vacuum-cleaner, kitchen devices, ...',
401
+ 'health': 'Fitness sensors, scales, blood pressure, ...',
402
+ 'infrastructure': 'Network, printers, phones, NAS, ...',
403
+ 'iot-systems': 'Other comprehensive smarthome systems (software and hardware)',
404
+ 'lighting': 'light',
405
+ 'logic': 'rules, scripts, parsers, scenes, ...',
406
+ 'messaging': 'these adapters send and receive messages from message services: telegram, email, whatsapp, ...',
407
+ 'misc-data': 'export/import of some unsorted information, contacts, systeminfo, gazoline prises, share curses, currents (EUR=>USD), ...',
408
+ 'multimedia': 'TV, AV Receivers, TV play boxes, Android/apple TV boxes, multi-room music, IR controls, speech input/output, ...',
409
+ 'network': 'ping, network detectors, UPnP, ...',
410
+ 'protocols': 'Communication protocols: MQTT,',
411
+ 'storage': 'logging, data protocols, SQL/NoSQL DBs, file storage, ...',
412
+ 'utility': 'different help adapters. Like backup, export/import',
413
+ 'vehicle': 'cars',
414
+ 'visualization': 'visualisation, like vis, material, mobile',
415
+ 'visualization-icons': 'icons for visualisation',
416
+ 'visualization-widgets': 'iobroker.vis widgets',
417
+ 'weather': 'weather info, air quality, environment statistics'
418
+ };
419
+
420
+ const reservedAdapterNames = [
421
+ 'config',
422
+ 'system',
423
+ 'alias',
424
+ 'design',
425
+ 'all',
426
+ 'enum',
427
+ 'this',
428
+ 'self',
429
+ '0_userdata',
430
+ '_design',
431
+ ];
432
+
433
+
434
+
435
+ function initConfig(context) {
436
+ console.log(`initConfig}`);
437
+
438
+ context.cfg = {};
439
+ context.cfg.allowedLanguages = allowedLanguages;
440
+ context.cfg.allowedLicenses = allowedLicenses;
441
+ context.cfg.allowedModes = allowedModes;
442
+ context.cfg.allowedTypes = allowedTypes;
443
+ context.cfg.requiredLanguages = requiredLanguages;
444
+ context.cfg.reservedAdapterNames = reservedAdapterNames;
445
+
446
+ return context;
447
+ }
448
+
449
+ exports.initConfig=initConfig;
450
+
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.0.0-alpha.1",
2
+ "version": "3.0.0-alpha.2",
3
3
  "name": "@iobroker/repochecker",
4
4
  "dependencies": {
5
5
  "axios": "^1.7.7",
@@ -16,6 +16,8 @@
16
16
  "eslint": "^8.57.0"
17
17
  },
18
18
  "files": [
19
+ "lib/",
20
+ "LICENSE",
19
21
  "index.js",
20
22
  "doc/issues.json"
21
23
  ],