uti 6.3.12 → 6.6.1

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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015-2021 by Markus Felten
1
+ Copyright (c) 2015-2022 by Markus Felten
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
package/README.md CHANGED
@@ -95,12 +95,13 @@ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
95
95
 
96
96
  Deliver JSON representation of the UTI.
97
97
  Sample result
98
- ´´´json
98
+
99
+ ```json
99
100
  {
100
- "name": "myUTI",
101
- "conformsTo": \[ "uti1", "uti2"]
101
+ "name": "myUTI",
102
+ "conformsTo": [ "uti1", "uti2"]
102
103
  }
103
- ´´´
104
+ ```
104
105
 
105
106
  Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** json representation of the UTI
106
107
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uti",
3
- "version": "6.3.12",
3
+ "version": "6.6.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,13 +30,13 @@
30
30
  "lint:docs": "documentation lint ./src/**/*.mjs"
31
31
  },
32
32
  "devDependencies": {
33
- "ava": "^3.15.0",
34
- "c8": "^7.7.3",
33
+ "ava": "^4.0.1",
34
+ "c8": "^7.11.0",
35
35
  "documentation": "^13.2.5",
36
- "semantic-release": "^17.4.4"
36
+ "semantic-release": "^18.0.1"
37
37
  },
38
38
  "engines": {
39
- "node": ">=14.17.2"
39
+ "node": ">=14.18.3"
40
40
  },
41
41
  "repository": {
42
42
  "type": "git",
package/src/uti.mjs CHANGED
@@ -45,12 +45,12 @@ class UTI {
45
45
  /**
46
46
  * Deliver JSON representation of the UTI.
47
47
  * Sample result
48
- * ´´´json
48
+ * ```json
49
49
  * {
50
50
  * "name": "myUTI",
51
51
  * "conformsTo": [ "uti1", "uti2"]
52
52
  * }
53
- * ´´´
53
+ * ```
54
54
  * @return {Object} json representation of the UTI
55
55
  */
56
56
  toJSON() {
@@ -11,6 +11,9 @@ const types = [
11
11
  {
12
12
  name: "public.contact"
13
13
  },
14
+ {
15
+ name: "public.configuration"
16
+ },
14
17
  {
15
18
  name: "public.composite-content",
16
19
  conformsTo: "public.content"
@@ -168,13 +171,13 @@ const types = [
168
171
  },
169
172
  {
170
173
  name: "public.toml",
171
- conformsTo: "public.text",
174
+ conformsTo: ["public.text", "public.configuration"],
172
175
  fileNameExtension: ".toml",
173
176
  mimeType: "application/toml"
174
177
  },
175
178
  {
176
179
  name: "public.ini",
177
- conformsTo: "public.text",
180
+ conformsTo: ["public.text", "public.configuration"],
178
181
  fileNameExtension: ".ini",
179
182
  mimeType: "zz-application/zz-winassoc-ini"
180
183
  },
@@ -216,8 +219,25 @@ const types = [
216
219
  {
217
220
  name: "com.netscape.javascript-source",
218
221
  conformsTo: ["public.source-code", "public.executable"],
219
- fileNameExtension: [".js", ".jscript", ".javascript"],
220
- mimeType: ["application/javascript", "application/ecmascript"]
222
+ fileNameExtension: [".mjs",".cjs", ".js", ".jscript", ".javascript"],
223
+ mimeType: [
224
+ "application/ecmascript",
225
+ "application/javascript",
226
+ "application/x-ecmascript",
227
+ "application/x-javascript",
228
+ "text/ecmascript",
229
+ "text/javascript",
230
+ "text/javascript1.0",
231
+ "text/javascript1.1",
232
+ "text/javascript1.2",
233
+ "text/javascript1.3",
234
+ "text/javascript1.4",
235
+ "text/javascript1.5",
236
+ "text/jscript",
237
+ "text/livescript",
238
+ "text/x-ecmascript",
239
+ "text/x-javascript"
240
+ ]
221
241
  },
222
242
  {
223
243
  name: "public.bzip2-archive",
@@ -259,6 +279,12 @@ const types = [
259
279
  fileNameExtension: ".xz",
260
280
  mimeType: "application/x-xz"
261
281
  },
282
+ {
283
+ name: "public.zst-archive",
284
+ conformsTo: "public.archive",
285
+ fileNameExtension: ".zst",
286
+ mimeType: "application/zst"
287
+ },
262
288
  {
263
289
  name: "public.7z-archive",
264
290
  conformsTo: "public.archive",
@@ -286,7 +312,7 @@ const types = [
286
312
  {
287
313
  name: "public.ar-archive",
288
314
  conformsTo: "public.archive",
289
- fileNameExtension: [".a",".lib"]
315
+ fileNameExtension: [".a", ".lib"]
290
316
  },
291
317
  {
292
318
  name: "public.deb-archive",
@@ -296,9 +322,18 @@ const types = [
296
322
  },
297
323
  {
298
324
  name: "public.arch-linux-archive",
299
- conformsTo: "public.archive",
325
+ conformsTo: "public.archive"
326
+ },
327
+ {
328
+ name: "public.arch-linux-archive.xz",
329
+ conformsTo: ["public.arch-linux-archive", "public.xz-archive"],
300
330
  fileNameExtension: ".pkg.tar.xz"
301
331
  },
332
+ {
333
+ name: "public.arch-linux-archive.zst",
334
+ conformsTo: ["public.arch-linux-archive", "public.zst-archive"],
335
+ fileNameExtension: ".pkg.tar.zst"
336
+ },
302
337
  {
303
338
  name: "com.apple.package",
304
339
  conformsTo: "public.directory"
@@ -307,6 +342,12 @@ const types = [
307
342
  name: "com.apple.application",
308
343
  conformsTo: "public.data"
309
344
  },
345
+ {
346
+ name: "public.wasm-executable",
347
+ conformsTo: ["public.executable"],
348
+ mimeType: "application/wasm",
349
+ fileNameExtension: ".wasm"
350
+ },
310
351
  {
311
352
  name: "com.apple.application-bundle",
312
353
  conformsTo: "com.apple.application",
@@ -378,19 +419,19 @@ const types = [
378
419
  name: "com.adobe.postscript",
379
420
  conformsTo: "public.image",
380
421
  fileNameExtension: [".ps"],
381
- mimeType: ["application/postscript"]
422
+ mimeType: "application/postscript"
382
423
  },
383
424
  {
384
425
  name: "net.daringfireball.markdown",
385
426
  conformsTo: "public.text",
386
427
  fileNameExtension: [".md", ".markdown"],
387
- mimeType: ["text/markdown"]
428
+ mimeType: "text/markdown"
388
429
  },
389
430
  {
390
431
  name: "com.apple.disk-image",
391
432
  conformsTo: "public.disk-image",
392
433
  fileNameExtension: [".dmg", ".smi", ".img"],
393
- mimeType: ["application/x-apple-diskimage"]
434
+ mimeType: "application/x-apple-diskimage"
394
435
  },
395
436
  {
396
437
  name: "public.security.private-key",
@@ -479,6 +520,56 @@ const types = [
479
520
  conformsTo: "public.data",
480
521
  fileNameExtension: ".p7r",
481
522
  mimeType: "application/x-pkcs7-certreqresp"
523
+ },
524
+ {
525
+ name: "public.systemd-service-unit",
526
+ conformsTo: ["public.text", "public.configuration"],
527
+ fileNameExtension: ".service"
528
+ },
529
+ {
530
+ name: "public.systemd-socket-unit",
531
+ conformsTo: ["public.text", "public.configuration"],
532
+ fileNameExtension: ".socket"
533
+ },
534
+ {
535
+ name: "public.systemd-timer-unit",
536
+ conformsTo: ["public.text", "public.configuration"],
537
+ fileNameExtension: ".timer"
538
+ },
539
+ {
540
+ name: "public.systemd-path-unit",
541
+ conformsTo: ["public.text", "public.configuration"],
542
+ fileNameExtension: ".socket"
543
+ },
544
+ {
545
+ name: "public.systemd-device-unit",
546
+ conformsTo: ["public.text", "public.configuration"],
547
+ fileNameExtension: ".device"
548
+ },
549
+ {
550
+ name: "public.systemd-mount-unit",
551
+ conformsTo: ["public.text", "public.configuration"],
552
+ fileNameExtension: ".mount"
553
+ },
554
+ {
555
+ name: "public.systemd-swap-unit",
556
+ conformsTo: ["public.text", "public.configuration"],
557
+ fileNameExtension: ".swap"
558
+ },
559
+ {
560
+ name: "public.systemd-target-unit",
561
+ conformsTo: ["public.text", "public.configuration"],
562
+ fileNameExtension: ".target"
563
+ },
564
+ {
565
+ name: "public.systemd-slice-unit",
566
+ conformsTo: ["public.text", "public.configuration"],
567
+ fileNameExtension: ".slice"
568
+ },
569
+ {
570
+ name: "public.systemd-scope-unit",
571
+ conformsTo: ["public.text", "public.configuration"],
572
+ fileNameExtension: ".scope"
482
573
  }
483
574
  ];
484
575