uti 6.5.0 → 6.7.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/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.5.0",
3
+ "version": "6.7.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",
33
+ "ava": "^4.0.1",
34
34
  "c8": "^7.11.0",
35
35
  "documentation": "^13.2.5",
36
- "semantic-release": "^18.0.1"
36
+ "semantic-release": "^19.0.2"
37
37
  },
38
38
  "engines": {
39
- "node": ">=14.18.1"
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"
@@ -154,6 +157,12 @@ const types = [
154
157
  fileNameExtension: [".html", ".htm"],
155
158
  mimeType: "text/html"
156
159
  },
160
+ {
161
+ name: "public.css",
162
+ conformsTo: "public.text",
163
+ fileNameExtension: ".css",
164
+ mimeType: "text/css"
165
+ },
157
166
  {
158
167
  name: "public.xml",
159
168
  conformsTo: "public.text",
@@ -168,13 +177,13 @@ const types = [
168
177
  },
169
178
  {
170
179
  name: "public.toml",
171
- conformsTo: "public.text",
180
+ conformsTo: ["public.text", "public.configuration"],
172
181
  fileNameExtension: ".toml",
173
182
  mimeType: "application/toml"
174
183
  },
175
184
  {
176
185
  name: "public.ini",
177
- conformsTo: "public.text",
186
+ conformsTo: ["public.text", "public.configuration"],
178
187
  fileNameExtension: ".ini",
179
188
  mimeType: "zz-application/zz-winassoc-ini"
180
189
  },
@@ -216,8 +225,25 @@ const types = [
216
225
  {
217
226
  name: "com.netscape.javascript-source",
218
227
  conformsTo: ["public.source-code", "public.executable"],
219
- fileNameExtension: [".js", ".jscript", ".javascript"],
220
- mimeType: ["application/javascript", "application/ecmascript"]
228
+ fileNameExtension: [".mjs",".cjs", ".js", ".jscript", ".javascript"],
229
+ mimeType: [
230
+ "application/ecmascript",
231
+ "application/javascript",
232
+ "application/x-ecmascript",
233
+ "application/x-javascript",
234
+ "text/ecmascript",
235
+ "text/javascript",
236
+ "text/javascript1.0",
237
+ "text/javascript1.1",
238
+ "text/javascript1.2",
239
+ "text/javascript1.3",
240
+ "text/javascript1.4",
241
+ "text/javascript1.5",
242
+ "text/jscript",
243
+ "text/livescript",
244
+ "text/x-ecmascript",
245
+ "text/x-javascript"
246
+ ]
221
247
  },
222
248
  {
223
249
  name: "public.bzip2-archive",
@@ -322,6 +348,12 @@ const types = [
322
348
  name: "com.apple.application",
323
349
  conformsTo: "public.data"
324
350
  },
351
+ {
352
+ name: "public.wasm-executable",
353
+ conformsTo: ["public.executable"],
354
+ mimeType: "application/wasm",
355
+ fileNameExtension: ".wasm"
356
+ },
325
357
  {
326
358
  name: "com.apple.application-bundle",
327
359
  conformsTo: "com.apple.application",
@@ -393,19 +425,19 @@ const types = [
393
425
  name: "com.adobe.postscript",
394
426
  conformsTo: "public.image",
395
427
  fileNameExtension: [".ps"],
396
- mimeType: ["application/postscript"]
428
+ mimeType: "application/postscript"
397
429
  },
398
430
  {
399
431
  name: "net.daringfireball.markdown",
400
432
  conformsTo: "public.text",
401
433
  fileNameExtension: [".md", ".markdown"],
402
- mimeType: ["text/markdown"]
434
+ mimeType: "text/markdown"
403
435
  },
404
436
  {
405
437
  name: "com.apple.disk-image",
406
438
  conformsTo: "public.disk-image",
407
439
  fileNameExtension: [".dmg", ".smi", ".img"],
408
- mimeType: ["application/x-apple-diskimage"]
440
+ mimeType: "application/x-apple-diskimage"
409
441
  },
410
442
  {
411
443
  name: "public.security.private-key",
@@ -496,24 +528,60 @@ const types = [
496
528
  mimeType: "application/x-pkcs7-certreqresp"
497
529
  },
498
530
  {
499
- name: "public.systemd-service-unit",
500
- conformsTo: "public.text",
501
- fileNameExtension: ".service"
531
+ name: "public.systemd-service-unit",
532
+ conformsTo: ["public.text", "public.configuration"],
533
+ fileNameExtension: ".service"
534
+ },
535
+ {
536
+ name: "public.systemd-socket-unit",
537
+ conformsTo: ["public.text", "public.configuration"],
538
+ fileNameExtension: ".socket"
539
+ },
540
+ {
541
+ name: "public.systemd-timer-unit",
542
+ conformsTo: ["public.text", "public.configuration"],
543
+ fileNameExtension: ".timer"
544
+ },
545
+ {
546
+ name: "public.systemd-path-unit",
547
+ conformsTo: ["public.text", "public.configuration"],
548
+ fileNameExtension: ".socket"
549
+ },
550
+ {
551
+ name: "public.systemd-device-unit",
552
+ conformsTo: ["public.text", "public.configuration"],
553
+ fileNameExtension: ".device"
554
+ },
555
+ {
556
+ name: "public.systemd-mount-unit",
557
+ conformsTo: ["public.text", "public.configuration"],
558
+ fileNameExtension: ".mount"
559
+ },
560
+ {
561
+ name: "public.systemd-swap-unit",
562
+ conformsTo: ["public.text", "public.configuration"],
563
+ fileNameExtension: ".swap"
564
+ },
565
+ {
566
+ name: "public.systemd-target-unit",
567
+ conformsTo: ["public.text", "public.configuration"],
568
+ fileNameExtension: ".target"
502
569
  },
503
570
  {
504
- name: "public.systemd-socket-unit",
505
- conformsTo: "public.text",
506
- fileNameExtension: ".socket"
571
+ name: "public.systemd-slice-unit",
572
+ conformsTo: ["public.text", "public.configuration"],
573
+ fileNameExtension: ".slice"
507
574
  },
508
575
  {
509
- name: "public.systemd-timer-unit",
510
- conformsTo: "public.text",
511
- fileNameExtension: ".timer"
576
+ name: "public.systemd-scope-unit",
577
+ conformsTo: ["public.text", "public.configuration"],
578
+ fileNameExtension: ".scope"
512
579
  },
513
580
  {
514
- name: "public.systemd-path-unit",
515
- conformsTo: "public.text",
516
- fileNameExtension: ".socket"
581
+ name: "public.webmanifest",
582
+ conformsTo: "public.json",
583
+ fileNameExtension: ".webmanifest",
584
+ mimeType: "application/manifest+json"
517
585
  }
518
586
  ];
519
587