@zintrust/storage 0.1.27 → 0.1.52
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.
|
@@ -72,6 +72,9 @@ const handleFileUpload = (fieldName, fileStream, info, ctx) => {
|
|
|
72
72
|
}
|
|
73
73
|
ctx.rejectOnce(new Error('File too large'));
|
|
74
74
|
});
|
|
75
|
+
fileStream.on('error', (err) => {
|
|
76
|
+
ctx.rejectOnce(err);
|
|
77
|
+
});
|
|
75
78
|
writeStream.on('error', (err) => {
|
|
76
79
|
ctx.rejectOnce(err);
|
|
77
80
|
});
|
|
@@ -162,6 +165,9 @@ const executeParsing = (input, opts, fields, files, createdPaths, resolve, rejec
|
|
|
162
165
|
};
|
|
163
166
|
input.req.once('aborted', onAbortOrClose);
|
|
164
167
|
input.req.once('close', onAbortOrClose);
|
|
168
|
+
input.req.on('error', (err) => {
|
|
169
|
+
rejectOnce(err);
|
|
170
|
+
});
|
|
165
171
|
const ctx = {
|
|
166
172
|
fields,
|
|
167
173
|
files,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zintrust/storage",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.52",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"node": ">=20.0.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@zintrust/core": "^0.1.
|
|
25
|
+
"@zintrust/core": "^0.1.52"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"busboy": "^1.6.0"
|
|
@@ -33,5 +33,8 @@
|
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "tsc -p tsconfig.json",
|
|
35
35
|
"prepublishOnly": "npm run build"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/busboy": "^1.5.4"
|
|
36
39
|
}
|
|
37
40
|
}
|
package/dist/build-manifest.json
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@zintrust/storage",
|
|
3
|
-
"version": "0.1.19",
|
|
4
|
-
"buildDate": "2026-01-28T12:31:13.892Z",
|
|
5
|
-
"buildEnvironment": {
|
|
6
|
-
"node": "v22.20.0",
|
|
7
|
-
"platform": "darwin",
|
|
8
|
-
"arch": "arm64"
|
|
9
|
-
},
|
|
10
|
-
"git": {
|
|
11
|
-
"commit": "2d1585bf",
|
|
12
|
-
"branch": "dev"
|
|
13
|
-
},
|
|
14
|
-
"package": {
|
|
15
|
-
"engines": {
|
|
16
|
-
"node": ">=20.0.0"
|
|
17
|
-
},
|
|
18
|
-
"dependencies": [
|
|
19
|
-
"busboy"
|
|
20
|
-
],
|
|
21
|
-
"peerDependencies": [
|
|
22
|
-
"@zintrust/core"
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
"files": {
|
|
26
|
-
"build-manifest.json": {
|
|
27
|
-
"size": 1416,
|
|
28
|
-
"sha256": "aaa9b782b10341a8568819bed53b81979529e8404debd57402f2747cd888c890"
|
|
29
|
-
},
|
|
30
|
-
"index.d.ts": {
|
|
31
|
-
"size": 484,
|
|
32
|
-
"sha256": "f34f75d41253ceea8da492ff343a0e18b458f54be00e1a83c1f76f86d0baf24e"
|
|
33
|
-
},
|
|
34
|
-
"index.js": {
|
|
35
|
-
"size": 486,
|
|
36
|
-
"sha256": "01fb41ef99a9d83ec7d715c3644394e22ad06a596875c8e1e44e9dbbd4273ffa"
|
|
37
|
-
},
|
|
38
|
-
"register.d.ts": {
|
|
39
|
-
"size": 178,
|
|
40
|
-
"sha256": "2a1118ead443b7146d48400a425197511d5e97ede5a080993609a6533a604594"
|
|
41
|
-
},
|
|
42
|
-
"register.js": {
|
|
43
|
-
"size": 87,
|
|
44
|
-
"sha256": "03abea656f44f29f5905140258f0a0a457a2f08d5ab07bc59be93fc7ef94f427"
|
|
45
|
-
},
|
|
46
|
-
"registerStreamingMultipartParser.d.ts": {
|
|
47
|
-
"size": 372,
|
|
48
|
-
"sha256": "7b599c14cc4bed64dbbeb89da8e8161ea553de660d9bb1041eb02d84722fa3ef"
|
|
49
|
-
},
|
|
50
|
-
"registerStreamingMultipartParser.js": {
|
|
51
|
-
"size": 6432,
|
|
52
|
-
"sha256": "c9146380136edd8e2697e0e67e67136b789c7505b543a45dd1c97f81bf39f97c"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|