@autofleet/zehut 4.2.2 → 4.2.3-beta-191fadb9.0

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/index.d.cts CHANGED
@@ -2,6 +2,7 @@ import * as fastify from 'fastify';
2
2
  import { FastifyPluginCallback } from 'fastify';
3
3
  import * as express from 'express';
4
4
  import { Handler, Request } from 'express';
5
+ import * as crypto from 'crypto';
5
6
  import { LoggerInstanceManager } from '@autofleet/logger';
6
7
  import * as outbreak from '@autofleet/outbreak';
7
8
  import { newTrace as newTrace$1 } from '@autofleet/outbreak';
@@ -111,7 +112,7 @@ declare const getAuthorizationHeader: (authorizationSettings: {
111
112
 
112
113
  declare const getCurrentPayload: () => {
113
114
  type: "httpRequest" | "webSocket" | "rabbit" | "bull";
114
- readonly id: `${string}-${string}-${string}-${string}-${string}`;
115
+ readonly id: crypto.UUID;
115
116
  readonly context: Map<string, unknown>;
116
117
  readonly nonHeaderContext: Map<string, unknown>;
117
118
  } | Record<string, never>;
@@ -129,7 +130,7 @@ declare const traceTypes: {
129
130
  };
130
131
  declare const newTrace: (type: "httpRequest" | "webSocket" | "rabbit" | "bull") => {
131
132
  type: "httpRequest" | "webSocket" | "rabbit" | "bull";
132
- readonly id: `${string}-${string}-${string}-${string}-${string}`;
133
+ readonly id: crypto.UUID;
133
134
  readonly context: Map<string, unknown>;
134
135
  readonly nonHeaderContext: Map<string, unknown>;
135
136
  };
@@ -143,7 +144,7 @@ declare const _default: {
143
144
  };
144
145
  newTrace: (type: "httpRequest" | "webSocket" | "rabbit" | "bull") => {
145
146
  type: "httpRequest" | "webSocket" | "rabbit" | "bull";
146
- readonly id: `${string}-${string}-${string}-${string}-${string}`;
147
+ readonly id: crypto.UUID;
147
148
  readonly context: Map<string, unknown>;
148
149
  readonly nonHeaderContext: Map<string, unknown>;
149
150
  };
@@ -157,7 +158,7 @@ declare const _default: {
157
158
  eagerLoadPermissionsMiddleware: express.Handler;
158
159
  getCurrentPayload: () => {
159
160
  type: "httpRequest" | "webSocket" | "rabbit" | "bull";
160
- readonly id: `${string}-${string}-${string}-${string}-${string}`;
161
+ readonly id: crypto.UUID;
161
162
  readonly context: Map<string, unknown>;
162
163
  readonly nonHeaderContext: Map<string, unknown>;
163
164
  } | Record<string, never>;
package/lib/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import * as fastify from 'fastify';
2
2
  import { FastifyPluginCallback } from 'fastify';
3
3
  import * as express from 'express';
4
4
  import { Handler, Request } from 'express';
5
+ import * as crypto from 'crypto';
5
6
  import { LoggerInstanceManager } from '@autofleet/logger';
6
7
  import * as outbreak from '@autofleet/outbreak';
7
8
  import { newTrace as newTrace$1 } from '@autofleet/outbreak';
@@ -111,7 +112,7 @@ declare const getAuthorizationHeader: (authorizationSettings: {
111
112
 
112
113
  declare const getCurrentPayload: () => {
113
114
  type: "httpRequest" | "webSocket" | "rabbit" | "bull";
114
- readonly id: `${string}-${string}-${string}-${string}-${string}`;
115
+ readonly id: crypto.UUID;
115
116
  readonly context: Map<string, unknown>;
116
117
  readonly nonHeaderContext: Map<string, unknown>;
117
118
  } | Record<string, never>;
@@ -129,7 +130,7 @@ declare const traceTypes: {
129
130
  };
130
131
  declare const newTrace: (type: "httpRequest" | "webSocket" | "rabbit" | "bull") => {
131
132
  type: "httpRequest" | "webSocket" | "rabbit" | "bull";
132
- readonly id: `${string}-${string}-${string}-${string}-${string}`;
133
+ readonly id: crypto.UUID;
133
134
  readonly context: Map<string, unknown>;
134
135
  readonly nonHeaderContext: Map<string, unknown>;
135
136
  };
@@ -143,7 +144,7 @@ declare const _default: {
143
144
  };
144
145
  newTrace: (type: "httpRequest" | "webSocket" | "rabbit" | "bull") => {
145
146
  type: "httpRequest" | "webSocket" | "rabbit" | "bull";
146
- readonly id: `${string}-${string}-${string}-${string}-${string}`;
147
+ readonly id: crypto.UUID;
147
148
  readonly context: Map<string, unknown>;
148
149
  readonly nonHeaderContext: Map<string, unknown>;
149
150
  };
@@ -157,7 +158,7 @@ declare const _default: {
157
158
  eagerLoadPermissionsMiddleware: express.Handler;
158
159
  getCurrentPayload: () => {
159
160
  type: "httpRequest" | "webSocket" | "rabbit" | "bull";
160
- readonly id: `${string}-${string}-${string}-${string}-${string}`;
161
+ readonly id: crypto.UUID;
161
162
  readonly context: Map<string, unknown>;
162
163
  readonly nonHeaderContext: Map<string, unknown>;
163
164
  } | Record<string, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/zehut",
3
- "version": "4.2.2",
3
+ "version": "4.2.3-beta-191fadb9.0",
4
4
  "description": "manage user's identity",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -40,7 +40,7 @@
40
40
  "homepage": "https://github.com/Autofleet/zehut",
41
41
  "dependencies": {
42
42
  "@autofleet/network": "^1.7.4",
43
- "@autofleet/outbreak": "^2.4.0",
43
+ "@autofleet/outbreak": "^3.0.1-beta-6c5269c9.0",
44
44
  "jsonwebtoken": "^8.5.1",
45
45
  "moment": "^2.30.1",
46
46
  "node-cache": "^5.1.2",