@tauri-apps/plugin-http 2.5.5 → 2.5.7
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/dist-js/index.cjs +5 -1
- package/dist-js/index.js +5 -1
- package/package.json +2 -2
package/dist-js/index.cjs
CHANGED
|
@@ -155,7 +155,11 @@ async function fetch(input, init) {
|
|
|
155
155
|
void dropBody();
|
|
156
156
|
});
|
|
157
157
|
},
|
|
158
|
-
pull: (controller) => readChunk(controller)
|
|
158
|
+
pull: (controller) => readChunk(controller),
|
|
159
|
+
cancel: () => {
|
|
160
|
+
// Ensure body resources are released on stream cancellation
|
|
161
|
+
void dropBody();
|
|
162
|
+
}
|
|
159
163
|
});
|
|
160
164
|
const res = new Response(body, {
|
|
161
165
|
status,
|
package/dist-js/index.js
CHANGED
|
@@ -153,7 +153,11 @@ async function fetch(input, init) {
|
|
|
153
153
|
void dropBody();
|
|
154
154
|
});
|
|
155
155
|
},
|
|
156
|
-
pull: (controller) => readChunk(controller)
|
|
156
|
+
pull: (controller) => readChunk(controller),
|
|
157
|
+
cancel: () => {
|
|
158
|
+
// Ensure body resources are released on stream cancellation
|
|
159
|
+
void dropBody();
|
|
160
|
+
}
|
|
157
161
|
});
|
|
158
162
|
const res = new Response(body, {
|
|
159
163
|
status,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tauri-apps/plugin-http",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.7",
|
|
4
4
|
"license": "MIT OR Apache-2.0",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Tauri Programme within The Commons Conservancy"
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"LICENSE"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@tauri-apps/api": "^2.
|
|
27
|
+
"@tauri-apps/api": "^2.10.1"
|
|
28
28
|
}
|
|
29
29
|
}
|