@wooksjs/http-proxy 0.2.10 → 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,8 @@ const resHeadersToBlock = [
110
110
  function useProxy() {
111
111
  const status = eventHttp.useStatus();
112
112
  const { setHeader, headers: getSetHeaders } = eventHttp.useSetHeaders();
113
- const { req } = eventHttp.useHttpContext().getCtx().event;
113
+ const { getCtx } = eventHttp.useHttpContext();
114
+ const { req } = getCtx().event;
114
115
  const setHeadersObject = getSetHeaders();
115
116
  return function proxy(target, opts) {
116
117
  return __awaiter(this, void 0, void 0, function* () {
package/dist/index.mjs CHANGED
@@ -108,7 +108,8 @@ const resHeadersToBlock = [
108
108
  function useProxy() {
109
109
  const status = useStatus();
110
110
  const { setHeader, headers: getSetHeaders } = useSetHeaders();
111
- const { req } = useHttpContext().getCtx().event;
111
+ const { getCtx } = useHttpContext();
112
+ const { req } = getCtx().event;
112
113
  const setHeadersObject = getSetHeaders();
113
114
  return function proxy(target, opts) {
114
115
  return __awaiter(this, void 0, void 0, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wooksjs/http-proxy",
3
- "version": "0.2.10",
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.10"
34
+ "@wooksjs/event-http": "0.2.12"
35
35
  },
36
36
  "dependencies": {
37
37
  "node-fetch-native": "^1.0.1"