@axinom/mosaic-message-bus 0.20.0-rc.1 → 0.20.0-rc.11
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.
|
@@ -14,12 +14,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
exports.getLogEnvelope = void 0;
|
|
15
15
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
|
16
16
|
function getLogEnvelope(envelope) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
const { auth_token } = envelope, envelopeWithoutToken = __rest(envelope, ["auth_token"]);
|
|
17
|
+
const parsedEnvelope = Buffer.isBuffer(envelope)
|
|
18
|
+
? JSON.parse(envelope.toString())
|
|
19
|
+
: envelope;
|
|
20
|
+
const { auth_token } = parsedEnvelope, envelopeWithoutToken = __rest(parsedEnvelope, ["auth_token"]);
|
|
23
21
|
const defaultResponse = { error: 'Could not parse the provided JWT.' };
|
|
24
22
|
try {
|
|
25
23
|
return Object.assign(Object.assign({}, envelopeWithoutToken), { auth_info: auth_token
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-parser.js","sourceRoot":"","sources":["../../src/common/log-parser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAaA,iHAAiH;AACjH,SAAgB,cAAc,CAAC,QAAa;IAC1C,
|
|
1
|
+
{"version":3,"file":"log-parser.js","sourceRoot":"","sources":["../../src/common/log-parser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAaA,iHAAiH;AACjH,SAAgB,cAAc,CAAC,QAAa;IAC1C,MAAM,cAAc,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAC9C,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;QACjC,CAAC,CAAC,QAAQ,CAAC;IACb,MAAM,EAAE,UAAU,KAA8B,cAAc,EAAvC,oBAAoB,UAAK,cAAc,EAAxD,cAAuC,CAAiB,CAAC;IAC/D,MAAM,eAAe,GAAG,EAAE,KAAK,EAAE,mCAAmC,EAAE,CAAC;IACvE,IAAI;QACF,uCACK,oBAAoB,KACvB,SAAS,EAAE,UAAU;gBACnB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;gBACxE,CAAC,CAAC,eAAe,IACnB;KACH;IAAC,WAAM;QACN,uCACK,oBAAoB,KACvB,SAAS,EAAE,eAAe,IAC1B;KACH;AACH,CAAC;AAnBD,wCAmBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-message-bus",
|
|
3
|
-
"version": "0.20.0-rc.
|
|
3
|
+
"version": "0.20.0-rc.11",
|
|
4
4
|
"description": "Messaging library for Axinom Mosaic services",
|
|
5
5
|
"author": "Axinom",
|
|
6
6
|
"license": "PROPRIETARY",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"lint": "eslint . --ext .ts,.tsx,.js --color --cache"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@axinom/mosaic-message-bus-abstractions": "^0.7.0-rc.
|
|
32
|
+
"@axinom/mosaic-message-bus-abstractions": "^0.7.0-rc.11",
|
|
33
33
|
"amqplib": "^0.10.3",
|
|
34
34
|
"dotenv": "^8.2.0",
|
|
35
35
|
"prom-client": "^13.2.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "ab8fda07c89f9c3857535ac129988f6f11c4e2a7"
|
|
55
55
|
}
|
package/src/common/log-parser.ts
CHANGED
|
@@ -13,12 +13,10 @@ export function getLogEnvelope(envelope: {
|
|
|
13
13
|
}): Record<string, unknown>;
|
|
14
14
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
|
15
15
|
export function getLogEnvelope(envelope: any): Record<string, unknown> {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
const { auth_token, ...envelopeWithoutToken } = envelope;
|
|
16
|
+
const parsedEnvelope = Buffer.isBuffer(envelope)
|
|
17
|
+
? JSON.parse(envelope.toString())
|
|
18
|
+
: envelope;
|
|
19
|
+
const { auth_token, ...envelopeWithoutToken } = parsedEnvelope;
|
|
22
20
|
const defaultResponse = { error: 'Could not parse the provided JWT.' };
|
|
23
21
|
try {
|
|
24
22
|
return {
|