@wooksjs/http-proxy 0.2.11 → 0.2.12

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 CHANGED
@@ -110,7 +110,7 @@ const resHeadersToBlock = [
110
110
  function useProxy() {
111
111
  const status = eventHttp.useStatus();
112
112
  const { setHeader, headers: getSetHeaders } = eventHttp.useSetHeaders();
113
- const { restoreCtx, getCtx } = eventHttp.useHttpContext();
113
+ const { getCtx } = eventHttp.useHttpContext();
114
114
  const { req } = getCtx().event;
115
115
  const setHeadersObject = getSetHeaders();
116
116
  return function proxy(target, opts) {
@@ -168,7 +168,6 @@ function useProxy() {
168
168
  }
169
169
  }
170
170
  }
171
- restoreCtx();
172
171
  return resp;
173
172
  });
174
173
  };
package/dist/index.mjs CHANGED
@@ -108,7 +108,7 @@ const resHeadersToBlock = [
108
108
  function useProxy() {
109
109
  const status = useStatus();
110
110
  const { setHeader, headers: getSetHeaders } = useSetHeaders();
111
- const { restoreCtx, getCtx } = useHttpContext();
111
+ const { getCtx } = useHttpContext();
112
112
  const { req } = getCtx().event;
113
113
  const setHeadersObject = getSetHeaders();
114
114
  return function proxy(target, opts) {
@@ -166,7 +166,6 @@ function useProxy() {
166
166
  }
167
167
  }
168
168
  }
169
- restoreCtx();
170
169
  return resp;
171
170
  });
172
171
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wooksjs/http-proxy",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "description": "Proxy Wooks composable",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -31,7 +31,7 @@
31
31
  "url": "https://github.com/wooksjs/wooksjs/issues"
32
32
  },
33
33
  "peerDependencies": {
34
- "@wooksjs/event-http": "0.2.11"
34
+ "@wooksjs/event-http": "0.2.12"
35
35
  },
36
36
  "dependencies": {
37
37
  "node-fetch-native": "^1.0.1"