uti 6.5.0 → 6.6.0
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 +1 -1
- package/src/uti.mjs +2 -2
- package/src/well-known-utis.mjs +47 -14
package/package.json
CHANGED
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
|
-
*
|
|
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() {
|
package/src/well-known-utis.mjs
CHANGED
|
@@ -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
|
},
|
|
@@ -496,24 +499,54 @@ const types = [
|
|
|
496
499
|
mimeType: "application/x-pkcs7-certreqresp"
|
|
497
500
|
},
|
|
498
501
|
{
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
+
name: "public.systemd-service-unit",
|
|
503
|
+
conformsTo: ["public.text", "public.configuration"],
|
|
504
|
+
fileNameExtension: ".service"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
name: "public.systemd-socket-unit",
|
|
508
|
+
conformsTo: ["public.text", "public.configuration"],
|
|
509
|
+
fileNameExtension: ".socket"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
name: "public.systemd-timer-unit",
|
|
513
|
+
conformsTo: ["public.text", "public.configuration"],
|
|
514
|
+
fileNameExtension: ".timer"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
name: "public.systemd-path-unit",
|
|
518
|
+
conformsTo: ["public.text", "public.configuration"],
|
|
519
|
+
fileNameExtension: ".socket"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
name: "public.systemd-device-unit",
|
|
523
|
+
conformsTo: ["public.text", "public.configuration"],
|
|
524
|
+
fileNameExtension: ".device"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
name: "public.systemd-mount-unit",
|
|
528
|
+
conformsTo: ["public.text", "public.configuration"],
|
|
529
|
+
fileNameExtension: ".mount"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
name: "public.systemd-swap-unit",
|
|
533
|
+
conformsTo: ["public.text", "public.configuration"],
|
|
534
|
+
fileNameExtension: ".swap"
|
|
502
535
|
},
|
|
503
536
|
{
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
537
|
+
name: "public.systemd-target-unit",
|
|
538
|
+
conformsTo: ["public.text", "public.configuration"],
|
|
539
|
+
fileNameExtension: ".target"
|
|
507
540
|
},
|
|
508
541
|
{
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
542
|
+
name: "public.systemd-slice-unit",
|
|
543
|
+
conformsTo: ["public.text", "public.configuration"],
|
|
544
|
+
fileNameExtension: ".slice"
|
|
512
545
|
},
|
|
513
546
|
{
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
547
|
+
name: "public.systemd-scope-unit",
|
|
548
|
+
conformsTo: ["public.text", "public.configuration"],
|
|
549
|
+
fileNameExtension: ".scope"
|
|
517
550
|
}
|
|
518
551
|
];
|
|
519
552
|
|