@adonis-agora/media 0.18.1 → 0.18.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/CHANGELOG.md +8 -0
- package/LICENSE +21 -0
- package/dist/assets/spa/assets/index-AZxu_Gh1.js +12 -0
- package/dist/assets/spa/assets/index-AZxu_Gh1.js.map +1 -0
- package/dist/assets/spa/index.html +1 -1
- package/dist/src/direct_upload.d.ts.map +1 -1
- package/dist/src/direct_upload.js +14 -6
- package/dist/src/direct_upload.js.map +1 -1
- package/dist/src/media_library.d.ts.map +1 -1
- package/dist/src/media_library.js +1 -46
- package/dist/src/media_library.js.map +1 -1
- package/dist/src/mime_type.d.ts +12 -0
- package/dist/src/mime_type.d.ts.map +1 -0
- package/dist/src/mime_type.js +50 -0
- package/dist/src/mime_type.js.map +1 -0
- package/dist/src/tus.d.ts.map +1 -1
- package/dist/src/tus.js +17 -9
- package/dist/src/tus.js.map +1 -1
- package/package.json +9 -9
- package/dist/assets/spa/assets/index-DUIRu5sA.js +0 -12
- package/dist/assets/spa/assets/index-DUIRu5sA.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @adonis-agora/media
|
|
2
2
|
|
|
3
|
+
## 0.18.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#165](https://github.com/DavideCarvalho/adonis-agora-media/pull/165) [`54b80c2`](https://github.com/DavideCarvalho/adonis-agora-media/commit/54b80c221b74428fafd3f4e3c50b1d12fd1dc8c5) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Normalize truncated MIME declarations at the TUS and direct-upload gates too
|
|
8
|
+
|
|
9
|
+
`attach` / `attachExisting` already resolve a bare top-level type (`"text"` for `report.csv`) from the file extension, but the earlier, byte-free gates did not: TUS `POST` answered `415` and `DirectUploadManager.initiate` threw `MimeNotAllowedError` for the very same upload that `attach` would accept. Both gates now share the same resolver (against the TUS `filename` / the direct-upload key), and record the normalized type — TUS sniffs the first chunk against it, direct uploads stamp it as the object's `Content-Type`. The whitelist stays authoritative: an unresolvable or non-whitelisted result is still rejected with the allowed list.
|
|
10
|
+
|
|
3
11
|
## 0.18.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Davi Carvalho
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|