@lark-apaas/fullstack-nestjs-core 1.1.1-alpha.48 → 1.1.1-alpha.49
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 +5 -8
- package/dist/index.js +5 -8
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -695,18 +695,14 @@ var PlatformHttpClientService = class _PlatformHttpClientService {
|
|
|
695
695
|
*/
|
|
696
696
|
registerGlobalInterceptors() {
|
|
697
697
|
this.client.interceptors.request.use((config) => {
|
|
698
|
-
|
|
699
|
-
this.logger.log(`HTTP Request: ${config.method?.toUpperCase()} ${config.url}`);
|
|
700
|
-
}
|
|
698
|
+
this.logger.debug(`Server SDK HTTP Request: ${config.method?.toUpperCase()} ${config.url}`);
|
|
701
699
|
return config;
|
|
702
700
|
}, (error) => {
|
|
703
|
-
this.logger.error("HTTP Request Error", error, "HttpService");
|
|
701
|
+
this.logger.error("Server SDK HTTP Request Error", error, "HttpService");
|
|
704
702
|
return Promise.reject(error);
|
|
705
703
|
});
|
|
706
704
|
this.client.interceptors.response.use((response) => {
|
|
707
|
-
|
|
708
|
-
this.logger.log(`HTTP Response: ${response.status} ${response.url}`);
|
|
709
|
-
}
|
|
705
|
+
this.logger.debug(`Server SDK HTTP Response: ${response.status} ${response.url}`);
|
|
710
706
|
return response;
|
|
711
707
|
}, (error) => {
|
|
712
708
|
const errorLog = {
|
|
@@ -714,7 +710,7 @@ var PlatformHttpClientService = class _PlatformHttpClientService {
|
|
|
714
710
|
statusText: error.response?.statusText,
|
|
715
711
|
message: error.message
|
|
716
712
|
};
|
|
717
|
-
this.logger.error(`HTTP Response Error: ${error.config?.method?.toUpperCase()} ${error.config?.url} ${JSON.stringify(errorLog)}`);
|
|
713
|
+
this.logger.error(`Server SDK HTTP Response Error: ${error.config?.method?.toUpperCase()} ${error.config?.url} ${JSON.stringify(errorLog)}`);
|
|
718
714
|
return Promise.reject(error);
|
|
719
715
|
});
|
|
720
716
|
}
|
|
@@ -880,6 +876,7 @@ async function configureApp(app, perms = defaultPerms) {
|
|
|
880
876
|
basePath: process.env.CLIENT_BASE_PATH,
|
|
881
877
|
docsPath: "/api_docs"
|
|
882
878
|
});
|
|
879
|
+
console.log("App Started Successfully.");
|
|
883
880
|
} catch (err) {
|
|
884
881
|
console.error("[OpenAPI] OpenAPI \u751F\u6210\u5931\u8D25:", err);
|
|
885
882
|
}
|
package/dist/index.js
CHANGED
|
@@ -652,18 +652,14 @@ var PlatformHttpClientService = class _PlatformHttpClientService {
|
|
|
652
652
|
*/
|
|
653
653
|
registerGlobalInterceptors() {
|
|
654
654
|
this.client.interceptors.request.use((config) => {
|
|
655
|
-
|
|
656
|
-
this.logger.log(`HTTP Request: ${config.method?.toUpperCase()} ${config.url}`);
|
|
657
|
-
}
|
|
655
|
+
this.logger.debug(`Server SDK HTTP Request: ${config.method?.toUpperCase()} ${config.url}`);
|
|
658
656
|
return config;
|
|
659
657
|
}, (error) => {
|
|
660
|
-
this.logger.error("HTTP Request Error", error, "HttpService");
|
|
658
|
+
this.logger.error("Server SDK HTTP Request Error", error, "HttpService");
|
|
661
659
|
return Promise.reject(error);
|
|
662
660
|
});
|
|
663
661
|
this.client.interceptors.response.use((response) => {
|
|
664
|
-
|
|
665
|
-
this.logger.log(`HTTP Response: ${response.status} ${response.url}`);
|
|
666
|
-
}
|
|
662
|
+
this.logger.debug(`Server SDK HTTP Response: ${response.status} ${response.url}`);
|
|
667
663
|
return response;
|
|
668
664
|
}, (error) => {
|
|
669
665
|
const errorLog = {
|
|
@@ -671,7 +667,7 @@ var PlatformHttpClientService = class _PlatformHttpClientService {
|
|
|
671
667
|
statusText: error.response?.statusText,
|
|
672
668
|
message: error.message
|
|
673
669
|
};
|
|
674
|
-
this.logger.error(`HTTP Response Error: ${error.config?.method?.toUpperCase()} ${error.config?.url} ${JSON.stringify(errorLog)}`);
|
|
670
|
+
this.logger.error(`Server SDK HTTP Response Error: ${error.config?.method?.toUpperCase()} ${error.config?.url} ${JSON.stringify(errorLog)}`);
|
|
675
671
|
return Promise.reject(error);
|
|
676
672
|
});
|
|
677
673
|
}
|
|
@@ -837,6 +833,7 @@ async function configureApp(app, perms = defaultPerms) {
|
|
|
837
833
|
basePath: process.env.CLIENT_BASE_PATH,
|
|
838
834
|
docsPath: "/api_docs"
|
|
839
835
|
});
|
|
836
|
+
console.log("App Started Successfully.");
|
|
840
837
|
} catch (err) {
|
|
841
838
|
console.error("[OpenAPI] OpenAPI \u751F\u6210\u5931\u8D25:", err);
|
|
842
839
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/fullstack-nestjs-core",
|
|
3
|
-
"version": "1.1.1-alpha.
|
|
3
|
+
"version": "1.1.1-alpha.49",
|
|
4
4
|
"description": "FullStack Nestjs Core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"@lark-apaas/http-client": "0.1.2",
|
|
43
43
|
"@lark-apaas/nestjs-authnpaas": "^1.0.2",
|
|
44
44
|
"@lark-apaas/nestjs-common": "0.1.0-alpha.1",
|
|
45
|
-
"@lark-apaas/nestjs-datapaas": "1.0.
|
|
46
|
-
"@lark-apaas/nestjs-logger": "1.0.2-alpha.
|
|
47
|
-
"@lark-apaas/nestjs-observable": "0.0.1-alpha.
|
|
45
|
+
"@lark-apaas/nestjs-datapaas": "^1.0.7",
|
|
46
|
+
"@lark-apaas/nestjs-logger": "1.0.2-alpha.38",
|
|
47
|
+
"@lark-apaas/nestjs-observable": "0.0.1-alpha.39",
|
|
48
48
|
"@lark-apaas/nestjs-openapi-devtools": "^1.0.9",
|
|
49
49
|
"@lark-apaas/nestjs-trigger": "^0.0.1",
|
|
50
50
|
"@nestjs/axios": "^4.0.1",
|