@outputai/http 0.9.2-next.15e6ac1.0 → 0.9.2-next.52c7f0a.0
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/README.md +6 -0
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -8,4 +8,10 @@ HTTP client with built-in tracing for Output Framework workflows.
|
|
|
8
8
|
- [README](https://docs.output.ai/packages/http)
|
|
9
9
|
- [API Reference](https://output-ai-reference-code-docs.onrender.com/modules/http_src.html)
|
|
10
10
|
|
|
11
|
+
## Response Body Ownership
|
|
12
|
+
|
|
13
|
+
`@outputai/http` follows normal `fetch` semantics: callers must consume returned response bodies or cancel them when unused.
|
|
14
|
+
If a non-`HEAD` request only reads metadata such as `response.url`, `response.status`, or headers, call
|
|
15
|
+
`await response.body?.cancel()` in a `finally` block.
|
|
16
|
+
|
|
11
17
|
<!-- Internal Dev Note: The documentation for this package is found at docs/guides/packages/http.mdx -->
|
package/package.json
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outputai/http",
|
|
3
|
-
"version": "0.9.2-next.
|
|
3
|
+
"version": "0.9.2-next.52c7f0a.0",
|
|
4
4
|
"description": "Framework abstraction to make HTTP calls with tracing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=24.15.0"
|
|
10
|
+
},
|
|
8
11
|
"files": [
|
|
9
12
|
"dist"
|
|
10
13
|
],
|
|
11
14
|
"dependencies": {
|
|
12
15
|
"ky": "1.14.3",
|
|
13
16
|
"undici": "8.5.0",
|
|
14
|
-
"@outputai/core": "0.9.2-next.
|
|
17
|
+
"@outputai/core": "0.9.2-next.52c7f0a.0"
|
|
15
18
|
},
|
|
16
19
|
"license": "Apache-2.0",
|
|
17
20
|
"publishConfig": {
|