@wooksjs/http-proxy 0.7.0 → 0.7.1
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.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -121,8 +121,8 @@ const resHeadersToBlock = [
|
|
|
121
121
|
*/
|
|
122
122
|
function useProxy() {
|
|
123
123
|
const response = (0, __wooksjs_event_http.useResponse)();
|
|
124
|
-
const {
|
|
125
|
-
const req =
|
|
124
|
+
const { raw } = (0, __wooksjs_event_http.useRequest)();
|
|
125
|
+
const req = raw;
|
|
126
126
|
const logger = (0, __wooksjs_event_http.useLogger)();
|
|
127
127
|
return async function proxy(target, opts) {
|
|
128
128
|
const targetUrl = new node_url.URL(target);
|
package/dist/index.mjs
CHANGED
|
@@ -98,8 +98,8 @@ const resHeadersToBlock = [
|
|
|
98
98
|
*/
|
|
99
99
|
function useProxy() {
|
|
100
100
|
const response = useResponse();
|
|
101
|
-
const {
|
|
102
|
-
const req =
|
|
101
|
+
const { raw } = useRequest();
|
|
102
|
+
const req = raw;
|
|
103
103
|
const logger = useLogger();
|
|
104
104
|
return async function proxy(target, opts) {
|
|
105
105
|
const targetUrl = new URL(target);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wooksjs/http-proxy",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Proxy Wooks composable",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"typescript": "^5.9.3",
|
|
44
44
|
"vitest": "^3.2.4",
|
|
45
|
-
"@wooksjs/event-http": "^0.7.
|
|
45
|
+
"@wooksjs/event-http": "^0.7.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@wooksjs/event-http": "^0.7.
|
|
48
|
+
"@wooksjs/event-http": "^0.7.1"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "rolldown -c ../../rolldown.config.mjs"
|