@tuya-sat/micro-dev-proxy 2.2.28 → 2.3.0-rc.1
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 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ function awaiting() {
|
|
|
29
29
|
exports.awaiting = awaiting;
|
|
30
30
|
function createProxy(_a) {
|
|
31
31
|
var { additionHeaders = {} } = _a, restPrevConfig = __rest(_a, ["additionHeaders"]);
|
|
32
|
-
const config = Object.assign({ additionHeaders: Object.assign({ terminalId: os_1.default.hostname() }, additionHeaders), isMainApp: false, loginApi: "/api/login", needProxyApi: ["/api", "/open-api"], logSign: false, csrf: true }, restPrevConfig);
|
|
32
|
+
const config = Object.assign({ additionHeaders: Object.assign({ terminalId: os_1.default.hostname() }, additionHeaders), isMainApp: false, loginApi: "/api/login", needProxyApi: ["/api", "/open-api", "/custom-api"], logSign: false, csrf: true }, restPrevConfig);
|
|
33
33
|
const { needProxyApi } = config, appProxyConfig = __rest(config, ["needProxyApi"]);
|
|
34
34
|
const appProxy = new appProxy_1.default(appProxyConfig);
|
|
35
35
|
return function middleware(app) {
|
package/package.json
CHANGED