@cloud-cli/px 4.1.6 → 4.1.7

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.
@@ -43,11 +43,11 @@ const readOption = value => {
43
43
  };
44
44
  function applyProperties(proxy, options) {
45
45
  const properties = ['target', 'cors', 'redirect', 'redirectUrl', 'headers', 'authorization', 'preserveHost'];
46
- properties.forEach((p) => {
46
+ for (const p of properties) {
47
47
  if (p in options) {
48
48
  proxy[p] = readOption(options[p]);
49
49
  }
50
- });
50
+ }
51
51
  }
52
52
  export class ProxyManager {
53
53
  constructor() {
@@ -129,6 +129,7 @@ export class ProxyManager {
129
129
  cors: t.cors,
130
130
  headers: t.headers,
131
131
  authorization: t.authorization,
132
+ preserveHost: t.preserveHost,
132
133
  }));
133
134
  });
134
135
  px.start();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/px",
3
- "version": "4.1.6",
3
+ "version": "4.1.7",
4
4
  "description": "Reverse Proxy",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -8,7 +8,7 @@
8
8
  "prettier": "@cloud-cli/prettier-config",
9
9
  "scripts": {
10
10
  "test": "echo true",
11
- "build": "rm -rf ./dist/* && tsc"
11
+ "build": "rm -rf ./dist/* && npm update && tsc"
12
12
  },
13
13
  "keywords": [
14
14
  "cloudy"