@cryptexlabs/codex-nodejs-common 0.7.4 → 0.7.5

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/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptexlabs/codex-nodejs-common",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "Common code for Assistant applications",
5
5
  "main": "lib/src/index.js",
6
6
  "repository": "git@gitlab.com:cryptexlabs/public/codex-nodejs-common.git",
@@ -13,7 +13,9 @@ let HttpStatusInterceptor = class HttpStatusInterceptor {
13
13
  intercept(context, next) {
14
14
  const response = context.switchToHttp().getResponse();
15
15
  return next.handle().pipe(operators_1.tap((message) => {
16
- response.status(message.meta.status);
16
+ if (message.meta) {
17
+ response.status(message.meta.status);
18
+ }
17
19
  }));
18
20
  }
19
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"http-status.interceptor.js","sourceRoot":"","sources":["../../../src/filter/http-status.interceptor.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAKwB;AAGxB,8CAAqC;AAGrC,IAAa,qBAAqB,GAAlC,MAAa,qBAAqB;IAChC,SAAS,CACP,OAAyB,EACzB,IAAsB;QAEtB,MAAM,QAAQ,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,WAAW,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CACvB,eAAG,CAAC,CAAC,OAA0B,EAAE,EAAE;YACjC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAA;AAZY,qBAAqB;IADjC,mBAAU,EAAE;GACA,qBAAqB,CAYjC;AAZY,sDAAqB"}
1
+ {"version":3,"file":"http-status.interceptor.js","sourceRoot":"","sources":["../../../src/filter/http-status.interceptor.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAKwB;AAGxB,8CAAqC;AAGrC,IAAa,qBAAqB,GAAlC,MAAa,qBAAqB;IAChC,SAAS,CACP,OAAyB,EACzB,IAAsB;QAEtB,MAAM,QAAQ,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,WAAW,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CACvB,eAAG,CAAC,CAAC,OAA0B,EAAE,EAAE;YACjC,IAAI,OAAO,CAAC,IAAI,EAAE;gBAChB,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACtC;QACH,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAA;AAdY,qBAAqB;IADjC,mBAAU,EAAE;GACA,qBAAqB,CAcjC;AAdY,sDAAqB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptexlabs/codex-nodejs-common",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "Common code for Assistant applications",
5
5
  "main": "lib/src/index.js",
6
6
  "repository": "git@gitlab.com:cryptexlabs/public/codex-nodejs-common.git",
@@ -17,7 +17,9 @@ export class HttpStatusInterceptor implements NestInterceptor {
17
17
  const response = context.switchToHttp().getResponse();
18
18
  return next.handle().pipe(
19
19
  tap((message: HttpResponse<any>) => {
20
- response.status(message.meta.status);
20
+ if (message.meta) {
21
+ response.status(message.meta.status);
22
+ }
21
23
  })
22
24
  );
23
25
  }