@nxtedition/lib 15.0.0 → 15.0.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.
Files changed (2) hide show
  1. package/mime.js +9 -2
  2. package/package.json +2 -2
package/mime.js CHANGED
@@ -29,7 +29,7 @@ function lookup(name) {
29
29
  return mime.getType(name)
30
30
  }
31
31
 
32
- function extension(type) {
32
+ function extension(type, name) {
33
33
  if (!type) {
34
34
  return null
35
35
  }
@@ -48,7 +48,14 @@ function extension(type) {
48
48
  if (/audio\/(x-)?pcm-s16le/.test(type)) {
49
49
  return 'pcm-s16le'
50
50
  }
51
- return mime.getExtension(type) || (type || '').split('/').pop()
51
+
52
+ const extension = mime.getExtension(type) || (type || '').split('/').pop()
53
+
54
+ if (extension === 'qt' && name?.endsWith('mov')) {
55
+ return 'mov'
56
+ }
57
+
58
+ return extension
52
59
  }
53
60
 
54
61
  module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "15.0.0",
3
+ "version": "15.0.1",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "files": [
@@ -110,7 +110,7 @@
110
110
  "prettier": "^3.0.3",
111
111
  "rxjs": "^7.5.6",
112
112
  "send": "^0.18.0",
113
- "tap": "^16.3.4"
113
+ "tap": "^18.1.4"
114
114
  },
115
115
  "peerDependencies": {
116
116
  "@elastic/elasticsearch": "^8.6.0",