@wooksjs/http-body 0.7.4 → 0.7.5
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/index.d.ts +3 -3
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _wooksjs_event_core from '@wooksjs/event-core';
|
|
2
2
|
|
|
3
3
|
/** Short names for common Content-Type values. */
|
|
4
4
|
type KnownContentType = 'json' | 'html' | 'xml' | 'text' | 'binary' | 'form-data' | 'urlencoded';
|
|
@@ -18,11 +18,11 @@ type KnownContentType = 'json' | 'html' | 'xml' | 'text' | 'binary' | 'form-data
|
|
|
18
18
|
*
|
|
19
19
|
* @returns Object with `is(type)` checker, `parseBody` function, and `rawBody` accessor.
|
|
20
20
|
*/
|
|
21
|
-
declare const useBody:
|
|
21
|
+
declare const useBody: _wooksjs_event_core.WookComposable<{
|
|
22
22
|
is: (type: KnownContentType | (string & {})) => boolean;
|
|
23
23
|
parseBody: <T>() => Promise<T>;
|
|
24
24
|
rawBody: () => Promise<Buffer<ArrayBufferLike>>;
|
|
25
|
-
}
|
|
25
|
+
}>;
|
|
26
26
|
|
|
27
27
|
export { useBody };
|
|
28
28
|
export type { KnownContentType };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wooksjs/http-body",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"description": "@wooksjs/http-body",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"typescript": "^5.9.3",
|
|
44
44
|
"vitest": "^3.2.4",
|
|
45
|
-
"@wooksjs/event-core": "^0.7.
|
|
46
|
-
"@wooksjs/event-http": "^0.7.
|
|
45
|
+
"@wooksjs/event-core": "^0.7.5",
|
|
46
|
+
"@wooksjs/event-http": "^0.7.5"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@wooksjs/event-core": "^0.7.
|
|
50
|
-
"@wooksjs/event-http": "^0.7.
|
|
49
|
+
"@wooksjs/event-core": "^0.7.5",
|
|
50
|
+
"@wooksjs/event-http": "^0.7.5"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "rolldown -c ../../rolldown.config.mjs"
|