@wooksjs/http-proxy 0.4.27 → 0.4.29

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
@@ -61,7 +61,12 @@ function applyProxyControls(records, controls, additionalBlockers) {
61
61
  }
62
62
  }
63
63
  if (overwrite) {
64
- result = typeof overwrite === 'function' ? overwrite(result) : { ...result, ...overwrite };
64
+ if (typeof overwrite === 'function') {
65
+ result = overwrite(result);
66
+ }
67
+ else {
68
+ result = { ...result, ...overwrite };
69
+ }
65
70
  }
66
71
  return result;
67
72
  }
package/dist/index.mjs CHANGED
@@ -59,7 +59,12 @@ function applyProxyControls(records, controls, additionalBlockers) {
59
59
  }
60
60
  }
61
61
  if (overwrite) {
62
- result = typeof overwrite === 'function' ? overwrite(result) : { ...result, ...overwrite };
62
+ if (typeof overwrite === 'function') {
63
+ result = overwrite(result);
64
+ }
65
+ else {
66
+ result = { ...result, ...overwrite };
67
+ }
63
68
  }
64
69
  return result;
65
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wooksjs/http-proxy",
3
- "version": "0.4.27",
3
+ "version": "0.4.29",
4
4
  "description": "Proxy Wooks composable",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -39,8 +39,8 @@
39
39
  "url": "https://github.com/wooksjs/wooksjs/issues"
40
40
  },
41
41
  "peerDependencies": {
42
- "@wooksjs/event-http": "0.4.27",
43
- "@wooksjs/event-core": "0.4.27"
42
+ "@wooksjs/event-http": "0.4.29",
43
+ "@wooksjs/event-core": "0.4.29"
44
44
  },
45
45
  "dependencies": {
46
46
  "node-fetch-native": "^1.0.1"