@buka/nestjs-kit 4.1.2 → 4.1.3
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/CHANGELOG.md +7 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8120,10 +8120,10 @@ const KEQ_REQUEST_PROVIDER = {
|
|
|
8120
8120
|
provide: OPEN_BAO_KEQ_REQUEST,
|
|
8121
8121
|
useFactory: (options, tokenManager) => {
|
|
8122
8122
|
const request = new KeqRequest();
|
|
8123
|
+
request.use(formatError());
|
|
8123
8124
|
request.use(setBaseUrl(options.address + "/v1/"));
|
|
8124
8125
|
request.use(setOpenBaoToken(() => tokenManager.getToken()));
|
|
8125
8126
|
request.use(validateStatusCode());
|
|
8126
|
-
request.use(formatError());
|
|
8127
8127
|
return request;
|
|
8128
8128
|
},
|
|
8129
8129
|
inject: [MODULE_OPTIONS_TOKEN$3, OpenBaoTokenManager]
|