@file-type/xml 0.4.4 → 0.5.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/lib/index.js +4 -1
- package/package.json +6 -6
package/lib/index.js
CHANGED
|
@@ -75,9 +75,12 @@ const namespaceMapping = {
|
|
|
75
75
|
/**
|
|
76
76
|
* Maps the root element name to corresponding file-type.
|
|
77
77
|
* Used for Non-namespaced XML
|
|
78
|
-
* @type {{rss: {ext: string, mime: string}}}
|
|
79
78
|
*/
|
|
80
79
|
const rootNameMapping = {
|
|
80
|
+
plist: {
|
|
81
|
+
ext: 'plist',
|
|
82
|
+
mime: 'application/x-plist'
|
|
83
|
+
},
|
|
81
84
|
rss: {
|
|
82
85
|
ext: 'rss',
|
|
83
86
|
mime: 'application/rss+xml'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@file-type/xml",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "XML detection plugin for file-type",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -31,17 +31,17 @@
|
|
|
31
31
|
"MusicXML"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"sax": "^1.4.
|
|
34
|
+
"sax": "^1.4.4",
|
|
35
35
|
"strtok3": "^10.3.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@biomejs/biome": "2.
|
|
38
|
+
"@biomejs/biome": "2.3.15",
|
|
39
39
|
"@types/sax": "^1.2.7",
|
|
40
|
-
"chai": "^6.
|
|
40
|
+
"chai": "^6.2.2",
|
|
41
41
|
"del-cli": "^6.0.0",
|
|
42
|
-
"file-type": "^21.
|
|
42
|
+
"file-type": "^21.3.0",
|
|
43
43
|
"mocha": "^11.7.1",
|
|
44
|
-
"typescript": "^5.9.
|
|
44
|
+
"typescript": "^5.9.3"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"lib/**/*.js",
|