@travetto/web-upload 8.0.0-alpha.1 → 8.0.0-alpha.11
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/package.json +5 -5
- package/src/util.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/web-upload",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Provides integration between the travetto asset and web module.",
|
|
6
6
|
"keywords": [
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@fastify/busboy": "^3.2.0",
|
|
30
|
-
"@travetto/config": "^8.0.0-alpha.
|
|
31
|
-
"@travetto/web": "^8.0.0-alpha.
|
|
32
|
-
"file-type": "^
|
|
30
|
+
"@travetto/config": "^8.0.0-alpha.10",
|
|
31
|
+
"@travetto/web": "^8.0.0-alpha.11",
|
|
32
|
+
"file-type": "^22.0.0",
|
|
33
33
|
"mime": "^4.1.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@travetto/test": "^8.0.0-alpha.
|
|
36
|
+
"@travetto/test": "^8.0.0-alpha.10"
|
|
37
37
|
},
|
|
38
38
|
"peerDependenciesMeta": {
|
|
39
39
|
"@travetto/test": {
|
package/src/util.ts
CHANGED
|
@@ -117,7 +117,7 @@ export class WebUploadUtil {
|
|
|
117
117
|
const { fromWebStream } = await import('strtok3');
|
|
118
118
|
const parser = new FileTypeParser();
|
|
119
119
|
const token = fromWebStream(BinaryUtil.toReadableStream(input));
|
|
120
|
-
cleanup = (): Promise<void> => token.close();
|
|
120
|
+
cleanup = (): Promise<void> => token.close().catch(() => { });
|
|
121
121
|
return await parser.fromTokenizer(token);
|
|
122
122
|
} finally {
|
|
123
123
|
await cleanup?.();
|