@cloud-cli/px 3.6.0 → 3.7.0
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.js +1 -0
- package/dist/proxy-manager.js +2 -1
- package/dist/proxy.d.ts +1 -0
- package/dist/proxy.js +3 -0
- package/package.json +5 -5
package/dist/index.js
CHANGED
package/dist/proxy-manager.js
CHANGED
|
@@ -20,6 +20,7 @@ export class ProxyManager {
|
|
|
20
20
|
redirect: !!proxy.redirect,
|
|
21
21
|
redirectUrl: proxy.redirectUrl || '',
|
|
22
22
|
headers: proxy.headers || '',
|
|
23
|
+
authorization: proxy.authorization,
|
|
23
24
|
});
|
|
24
25
|
try {
|
|
25
26
|
const id = await entry.save();
|
|
@@ -38,7 +39,7 @@ export class ProxyManager {
|
|
|
38
39
|
const [domain, path = ''] = host.split('/');
|
|
39
40
|
proxies.push(new Proxy({ domain, path }));
|
|
40
41
|
}
|
|
41
|
-
const properties = ['target', 'cors', 'redirect', 'redirectUrl', 'headers'];
|
|
42
|
+
const properties = ['target', 'cors', 'redirect', 'redirectUrl', 'headers', 'authorization'];
|
|
42
43
|
for (const proxy of proxies) {
|
|
43
44
|
properties.forEach((p) => p in options && (proxy[p] = options[p]));
|
|
44
45
|
await proxy.save();
|
package/dist/proxy.d.ts
CHANGED
package/dist/proxy.js
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-cli/px",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "Reverse Proxy",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"prettier": "@cloud-cli/prettier-config",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"test": "echo
|
|
11
|
-
"tdd": "jest --watchAll",
|
|
10
|
+
"test": "echo true",
|
|
12
11
|
"build": "rm -rf ./dist/* && tsc"
|
|
13
12
|
},
|
|
14
13
|
"keywords": [
|
|
@@ -16,9 +15,10 @@
|
|
|
16
15
|
],
|
|
17
16
|
"license": "MIT",
|
|
18
17
|
"devDependencies": {
|
|
19
|
-
"@cloud-cli/jest-config": "^1.0.0",
|
|
20
18
|
"@cloud-cli/prettier-config": "^1.0.0",
|
|
21
|
-
"@cloud-cli/typescript-config": "^1.0.1"
|
|
19
|
+
"@cloud-cli/typescript-config": "^1.0.1",
|
|
20
|
+
"@types/node": "^20.11.30",
|
|
21
|
+
"typescript": "^5.4.3"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|