uti 8.6.1 → 8.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/LICENSE +3 -21
- package/README.md +12 -2
- package/package.json +13 -13
- package/src/well-known-utis.mjs +6 -0
package/LICENSE
CHANGED
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
Copyright (
|
|
2
|
-
All rights reserved.
|
|
1
|
+
Copyright (C) 2015-2024 by arlac77
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
modification, are permitted provided that the following conditions are met:
|
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
list of conditions and the following disclaimer.
|
|
9
|
-
|
|
10
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
-
this list of conditions and the following disclaimer in the documentation
|
|
12
|
-
and/or other materials provided with the distribution.
|
|
13
|
-
|
|
14
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
15
|
-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
16
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
17
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
18
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
19
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
20
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
21
|
-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
22
|
-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
23
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
5
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[](https://www.npmjs.com/package/uti)
|
|
2
|
-
[](https://
|
|
2
|
+
[](https://spdx.org/licenses/0BSD.html)
|
|
3
3
|
[](https://typescriptlang.org)
|
|
4
4
|
[](https://bundlejs.com/?q=uti)
|
|
5
5
|
[](https://npmjs.org/package/uti)
|
|
@@ -50,6 +50,8 @@ public.plain-text
|
|
|
50
50
|
* [UTI](#uti)
|
|
51
51
|
* [Parameters](#parameters)
|
|
52
52
|
* [Properties](#properties)
|
|
53
|
+
* [name](#name)
|
|
54
|
+
* [conforms](#conforms)
|
|
53
55
|
* [conformsTo](#conformsto)
|
|
54
56
|
* [Parameters](#parameters-1)
|
|
55
57
|
* [toString](#tostring)
|
|
@@ -90,13 +92,21 @@ Object representing a UTI.
|
|
|
90
92
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
91
93
|
* `conforms` **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[UTI](#uti)>** 
|
|
92
94
|
|
|
95
|
+
### name
|
|
96
|
+
|
|
97
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
98
|
+
|
|
99
|
+
### conforms
|
|
100
|
+
|
|
101
|
+
Type: [Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[UTI](#uti)>
|
|
102
|
+
|
|
93
103
|
### conformsTo
|
|
94
104
|
|
|
95
105
|
Check for conformity.
|
|
96
106
|
|
|
97
107
|
#### Parameters
|
|
98
108
|
|
|
99
|
-
* `other` **[UTI](#uti)** 
|
|
109
|
+
* `other` **([UTI](#uti) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))** 
|
|
100
110
|
|
|
101
111
|
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if other conforms to the receiver
|
|
102
112
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uti",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.7.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -24,29 +24,29 @@
|
|
|
24
24
|
"email": "markus.felten@gmx.de"
|
|
25
25
|
}
|
|
26
26
|
],
|
|
27
|
-
"license": "
|
|
27
|
+
"license": "0BSD",
|
|
28
28
|
"scripts": {
|
|
29
|
-
"prepare": "
|
|
30
|
-
"prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule
|
|
31
|
-
"test": "
|
|
29
|
+
"prepare": "node --run prepare:typescript",
|
|
30
|
+
"prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule --target es2024 --lib es2024 -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
|
|
31
|
+
"test": "node --run test:browser-ava && node --run test:ava",
|
|
32
32
|
"test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
|
|
33
33
|
"test:browser-ava": "browser-ava --headless --no-keep-open tests/*-ava.mjs tests/*-ava-browser.mjs",
|
|
34
34
|
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
|
|
35
35
|
"docs": "documentation readme --section=API ./src/**/*.mjs",
|
|
36
|
-
"lint": "
|
|
36
|
+
"lint": "node --run lint:docs && node --run lint:typescript",
|
|
37
37
|
"lint:docs": "documentation lint ./src/**/*.mjs",
|
|
38
|
-
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule
|
|
38
|
+
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target es2024 --lib es2024 -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"ava": "^6.
|
|
42
|
-
"browser-ava": "^2.
|
|
43
|
-
"c8": "^10.1.
|
|
41
|
+
"ava": "^6.2.0",
|
|
42
|
+
"browser-ava": "^2.3.4",
|
|
43
|
+
"c8": "^10.1.3",
|
|
44
44
|
"documentation": "^14.0.3",
|
|
45
|
-
"semantic-release": "^24.
|
|
46
|
-
"typescript": "^5.
|
|
45
|
+
"semantic-release": "^24.2.0",
|
|
46
|
+
"typescript": "^5.7.2"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
|
-
"node": ">=
|
|
49
|
+
"node": ">=22.12.0",
|
|
50
50
|
"bun": ">=1.0.0"
|
|
51
51
|
},
|
|
52
52
|
"repository": {
|
package/src/well-known-utis.mjs
CHANGED
|
@@ -509,6 +509,12 @@ export default [
|
|
|
509
509
|
mimeType: ["image/jpeg"],
|
|
510
510
|
fileNameExtension: [".jpg", ".jpeg"]
|
|
511
511
|
},
|
|
512
|
+
{
|
|
513
|
+
name: "public.jxl",
|
|
514
|
+
conformsTo: "public.image",
|
|
515
|
+
mimeType: ["image/jxl"],
|
|
516
|
+
fileNameExtension: [".jxl"]
|
|
517
|
+
},
|
|
512
518
|
{
|
|
513
519
|
name: "public.jpeg2000",
|
|
514
520
|
conformsTo: "public.image",
|