uti 8.3.1 → 8.3.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/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
[](https://www.npmjs.com/package/uti)
|
|
2
2
|
[](https://opensource.org/licenses/BSD-3-Clause)
|
|
3
|
+
[](https://typescriptlang.org)
|
|
3
4
|
[](https://bundlejs.com/?q=uti)
|
|
4
5
|
[](https://npmjs.org/package/uti)
|
|
5
6
|
[](https://github.com/arlac77/uti/issues)
|
|
@@ -54,6 +55,8 @@ public.plain-text
|
|
|
54
55
|
* [toJSON](#tojson)
|
|
55
56
|
* [UTIController](#uticontroller)
|
|
56
57
|
* [Properties](#properties-1)
|
|
58
|
+
* [utiByMimeType](#utibymimetype)
|
|
59
|
+
* [utiByFileNameExtension](#utibyfilenameextension)
|
|
57
60
|
* [register](#register)
|
|
58
61
|
* [Parameters](#parameters-2)
|
|
59
62
|
* [getUTI](#getuti)
|
|
@@ -115,6 +118,14 @@ Registry of UTIs.
|
|
|
115
118
|
* `utiByMimeType` **[Map](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), [UTI](#uti)>** 
|
|
116
119
|
* `utiByFileNameExtension` **[Map](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), [UTI](#uti)>** 
|
|
117
120
|
|
|
121
|
+
### utiByMimeType
|
|
122
|
+
|
|
123
|
+
Type: [Map](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>>
|
|
124
|
+
|
|
125
|
+
### utiByFileNameExtension
|
|
126
|
+
|
|
127
|
+
Type: [Map](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>>
|
|
128
|
+
|
|
118
129
|
### register
|
|
119
130
|
|
|
120
131
|
Registers additional types.
|
|
@@ -131,7 +142,7 @@ Lookup a given UTI.
|
|
|
131
142
|
|
|
132
143
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** UTI
|
|
133
144
|
|
|
134
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** UTI for the given name or undefined if UTI is not present.
|
|
145
|
+
Returns **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))** UTI for the given name or undefined if UTI is not present.
|
|
135
146
|
|
|
136
147
|
### getUTIsForMimeType
|
|
137
148
|
|
|
@@ -141,7 +152,7 @@ Lookup a UTIs for a mime type.
|
|
|
141
152
|
|
|
142
153
|
* `mimeType` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** mime type to get UTIs for
|
|
143
154
|
|
|
144
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
155
|
+
Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** UTIs for the given mime type
|
|
145
156
|
|
|
146
157
|
### getUTIsForFileName
|
|
147
158
|
|
|
@@ -153,7 +164,7 @@ Then a lookup in the reistered UTIs for file name extions is executed.
|
|
|
153
164
|
|
|
154
165
|
* `fileName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** file to detect UTI for
|
|
155
166
|
|
|
156
|
-
Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
|
|
167
|
+
Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** UTIs for the given fileName
|
|
157
168
|
|
|
158
169
|
### conformsTo
|
|
159
170
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uti",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"license": "BSD-2-Clause",
|
|
27
27
|
"scripts": {
|
|
28
|
-
"prepare": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir
|
|
28
|
+
"prepare": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs",
|
|
29
29
|
"test": "npm run test:browser-ava && npm run test:ava",
|
|
30
30
|
"test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
|
|
31
31
|
"test:browser-ava": "browser-ava --headless --no-keep-open tests/*-ava.mjs tests/*-ava-browser.mjs",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"ava": "^6.1.1",
|
|
40
|
-
"browser-ava": "^2.
|
|
40
|
+
"browser-ava": "^2.2.0",
|
|
41
41
|
"c8": "^9.1.0",
|
|
42
42
|
"documentation": "^14.0.3",
|
|
43
43
|
"semantic-release": "^23.0.2",
|
|
File without changes
|
|
File without changes
|