exifreader 4.11.0 → 4.11.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 +1 -1
- package/exif-reader.d.ts +11 -5
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ You can try it out on the
|
|
|
23
23
|
| ----------|---------|---------|---------|---------|---------|-----------|
|
|
24
24
|
| JPEG | **yes** | **yes** | **yes** | **yes** | **yes** | **yes** |
|
|
25
25
|
| TIFF | **yes** | **yes** | **yes** | **yes** | ??? | no |
|
|
26
|
-
| PNG | **yes** | no | **yes** | no |
|
|
26
|
+
| PNG | **yes** | no | **yes** | no | ??? | no |
|
|
27
27
|
| HEIC/HEIF | **yes** | no | no | **yes** | ??? | no |
|
|
28
28
|
| WebP | **yes** | no | **yes** | **yes** | ??? | **yes** |
|
|
29
29
|
|
package/exif-reader.d.ts
CHANGED
|
@@ -53,16 +53,22 @@ interface PngFileTags {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
interface PngPhysTags {
|
|
57
|
+
'Pixels Per Unit X'?: NumberFileTag,
|
|
58
|
+
'Pixels Per Unit Y'?: NumberFileTag,
|
|
59
|
+
'Pixel Units'?: {
|
|
60
|
+
value: number,
|
|
61
|
+
description: 'meters' | 'Unknown'
|
|
62
|
+
},
|
|
63
|
+
'Modify Date'?: NumberArrayFileTag
|
|
64
|
+
}
|
|
65
|
+
|
|
56
66
|
interface PngTag {
|
|
57
67
|
description: string,
|
|
58
68
|
value: string | number
|
|
59
69
|
}
|
|
60
70
|
|
|
61
|
-
|
|
62
|
-
'Pixels Per Unit X'?: NumberFileTag
|
|
63
|
-
'Pixels Per Unit Y'?: NumberFileTag
|
|
64
|
-
'Pixel Units'?: 'meters' | 'Unknown'
|
|
65
|
-
'Modify Date'?: NumberArrayFileTag
|
|
71
|
+
type PngTags = PngFileTags & PngPhysTags & {
|
|
66
72
|
[name: string]: PngTag
|
|
67
73
|
}
|
|
68
74
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "exifreader",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.1",
|
|
4
4
|
"description": "Library that parses Exif metadata in images.",
|
|
5
5
|
"author": "Mattias Wallander <mattias@wallander.eu>",
|
|
6
6
|
"repository": {
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"rimraf": "^3.0.2",
|
|
45
45
|
"string-replace-loader": "^3.0.3",
|
|
46
46
|
"terser-webpack-plugin": "^5.2.4",
|
|
47
|
+
"typescript": "^5.0.2",
|
|
47
48
|
"webpack": "^5.74.0",
|
|
48
49
|
"webpack-cli": "^4.10.0",
|
|
49
50
|
"webpack-dev-server": "^4.11.1"
|
|
@@ -60,21 +61,22 @@
|
|
|
60
61
|
"test:build:custom": "mocha --bail test/build/test-custom.js",
|
|
61
62
|
"test:build:update": "node test/build/update.js",
|
|
62
63
|
"test:e2e": "cypress run",
|
|
63
|
-
"test:
|
|
64
|
+
"test:types": "tsc --noEmit --project test/types",
|
|
65
|
+
"test:all": "npm-run-all lint coverage test:e2e test:build test:build:custom test:types",
|
|
64
66
|
"postinstall": "node bin/build.js --only-with-config"
|
|
65
67
|
},
|
|
66
68
|
"nyc": {
|
|
67
69
|
"check-coverage": true,
|
|
68
70
|
"statements": 95,
|
|
69
|
-
"branches":
|
|
71
|
+
"branches": 92,
|
|
70
72
|
"functions": 98,
|
|
71
|
-
"lines":
|
|
73
|
+
"lines": 95,
|
|
72
74
|
"reporter": [
|
|
73
75
|
"lcov",
|
|
74
76
|
"text"
|
|
75
77
|
],
|
|
76
78
|
"exclude": [
|
|
77
|
-
"test
|
|
79
|
+
"test/*",
|
|
78
80
|
"**/node_modules/*"
|
|
79
81
|
]
|
|
80
82
|
},
|