@xemahq/platform-common 0.12.0 → 0.12.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response-envelope.interceptor.d.ts","sourceRoot":"","sources":["../../src/nestjs/response-envelope.interceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAGhB,eAAe,EAChB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"response-envelope.interceptor.d.ts","sourceRoot":"","sources":["../../src/nestjs/response-envelope.interceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAGhB,eAAe,EAChB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,UAAU,EAAO,MAAM,MAAM,CAAC;AAIvC,qBACa,2BAA4B,YAAW,eAAe;IACjE,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,WAAW,GAAG,UAAU,CAAC,OAAO,CAAC;CAmE7E"}
|
|
@@ -8,11 +8,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.ResponseEnvelopeInterceptor = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
|
+
const constants_1 = require("@nestjs/common/constants");
|
|
11
12
|
const rxjs_1 = require("rxjs");
|
|
12
13
|
const decorator_metadata_1 = require("./decorator-metadata");
|
|
13
14
|
const raw_response_decorator_1 = require("./raw-response.decorator");
|
|
14
15
|
let ResponseEnvelopeInterceptor = class ResponseEnvelopeInterceptor {
|
|
15
16
|
intercept(context, next) {
|
|
17
|
+
if (Reflect.getMetadata(constants_1.SSE_METADATA, context.getHandler()) === true) {
|
|
18
|
+
return next.handle();
|
|
19
|
+
}
|
|
16
20
|
const isRaw = (0, decorator_metadata_1.readDecoratorOverride)(raw_response_decorator_1.RAW_RESPONSE_KEY, [
|
|
17
21
|
context.getHandler(),
|
|
18
22
|
context.getClass(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response-envelope.interceptor.js","sourceRoot":"","sources":["../../src/nestjs/response-envelope.interceptor.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAMwB;AACxB,+BAAuC;AACvC,6DAA6D;AAC7D,qEAA4D;AAGrD,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACtC,SAAS,CAAC,OAAyB,EAAE,IAAiB;
|
|
1
|
+
{"version":3,"file":"response-envelope.interceptor.js","sourceRoot":"","sources":["../../src/nestjs/response-envelope.interceptor.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAMwB;AACxB,wDAAwD;AACxD,+BAAuC;AACvC,6DAA6D;AAC7D,qEAA4D;AAGrD,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACtC,SAAS,CAAC,OAAyB,EAAE,IAAiB;QAuBpD,IAAI,OAAO,CAAC,WAAW,CAAC,wBAAY,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC;YACrE,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;QACvB,CAAC;QAID,MAAM,KAAK,GAAG,IAAA,0CAAqB,EAAU,yCAAgB,EAAE;YAC7D,OAAO,CAAC,UAAU,EAAE;YACpB,OAAO,CAAC,QAAQ,EAAE;SACnB,CAAC,CAAC;QACH,IAAI,KAAK,EAAE,CAAC;YACV,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;QACvB,CAAC;QAED,MAAM,UAAU,GAAG,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC;QAE7E,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CACvB,IAAA,UAAG,EAAC,CAAC,KAAc,EAAE,EAAE;YACrB,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBACvC,MAAM,GAAG,GAAG,KAAgC,CAAC;gBAI7C,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,YAAY,IAAI,GAAG,EAAE,CAAC;oBACvD,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,CAAC;oBAC/B,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,CAAC;gBAClC,CAAC;gBAID,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;oBAChC,MAAM,IAAI,qCAA4B,CACpC,iEAAiE,UAAU,IAAI;wBAC7E,2DAA2D;wBAC3D,wFAAwF,CAC3F,CAAC;gBACJ,CAAC;YACH,CAAC;YAGD,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QACzB,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAA;AApEY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,mBAAU,GAAE;GACA,2BAA2B,CAoEvC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/platform-common",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
4
4
|
"description": "Shared NestJS building blocks for Xema services — auth guards, response redaction, CORS configuration, and crypto helpers.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Neuralchowder Inc. <developer@xema.dev> (https://xema.dev)",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@xemahq/oidc-guard": "^0.
|
|
41
|
+
"@xemahq/oidc-guard": "^0.4.0",
|
|
42
42
|
"jwks-rsa": "^3.2.2",
|
|
43
43
|
"undici": "^7.29.0",
|
|
44
44
|
"zod": "^4.3.6"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"rxjs": "7.8.2",
|
|
63
63
|
"ts-jest": "^29.4.9",
|
|
64
64
|
"typescript": "5.9.3",
|
|
65
|
-
"@xemahq/kernel-contracts": "^
|
|
65
|
+
"@xemahq/kernel-contracts": "^13.0.1"
|
|
66
66
|
},
|
|
67
67
|
"exports": {
|
|
68
68
|
".": {
|