@autofleet/zehut 4.3.0 → 4.3.1

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';
@@ -113,7 +114,7 @@ declare const getAuthorizationHeader: (authorizationSettings: {
113
114
 
114
115
  declare const getCurrentPayload: () => {
115
116
  type: "httpRequest" | "webSocket" | "rabbit" | "bull";
116
- readonly id: `${string}-${string}-${string}-${string}-${string}`;
117
+ readonly id: crypto.UUID;
117
118
  readonly context: Map<string, unknown>;
118
119
  readonly nonHeaderContext: Map<string, unknown>;
119
120
  } | Record<string, never>;
@@ -131,7 +132,7 @@ declare const traceTypes: {
131
132
  };
132
133
  declare const newTrace: (type: "httpRequest" | "webSocket" | "rabbit" | "bull") => {
133
134
  type: "httpRequest" | "webSocket" | "rabbit" | "bull";
134
- readonly id: `${string}-${string}-${string}-${string}-${string}`;
135
+ readonly id: crypto.UUID;
135
136
  readonly context: Map<string, unknown>;
136
137
  readonly nonHeaderContext: Map<string, unknown>;
137
138
  };
@@ -145,7 +146,7 @@ declare const _default: {
145
146
  };
146
147
  newTrace: (type: "httpRequest" | "webSocket" | "rabbit" | "bull") => {
147
148
  type: "httpRequest" | "webSocket" | "rabbit" | "bull";
148
- readonly id: `${string}-${string}-${string}-${string}-${string}`;
149
+ readonly id: crypto.UUID;
149
150
  readonly context: Map<string, unknown>;
150
151
  readonly nonHeaderContext: Map<string, unknown>;
151
152
  };
@@ -159,7 +160,7 @@ declare const _default: {
159
160
  eagerLoadPermissionsMiddleware: express.Handler;
160
161
  getCurrentPayload: () => {
161
162
  type: "httpRequest" | "webSocket" | "rabbit" | "bull";
162
- readonly id: `${string}-${string}-${string}-${string}-${string}`;
163
+ readonly id: crypto.UUID;
163
164
  readonly context: Map<string, unknown>;
164
165
  readonly nonHeaderContext: Map<string, unknown>;
165
166
  } | 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';
@@ -113,7 +114,7 @@ declare const getAuthorizationHeader: (authorizationSettings: {
113
114
 
114
115
  declare const getCurrentPayload: () => {
115
116
  type: "httpRequest" | "webSocket" | "rabbit" | "bull";
116
- readonly id: `${string}-${string}-${string}-${string}-${string}`;
117
+ readonly id: crypto.UUID;
117
118
  readonly context: Map<string, unknown>;
118
119
  readonly nonHeaderContext: Map<string, unknown>;
119
120
  } | Record<string, never>;
@@ -131,7 +132,7 @@ declare const traceTypes: {
131
132
  };
132
133
  declare const newTrace: (type: "httpRequest" | "webSocket" | "rabbit" | "bull") => {
133
134
  type: "httpRequest" | "webSocket" | "rabbit" | "bull";
134
- readonly id: `${string}-${string}-${string}-${string}-${string}`;
135
+ readonly id: crypto.UUID;
135
136
  readonly context: Map<string, unknown>;
136
137
  readonly nonHeaderContext: Map<string, unknown>;
137
138
  };
@@ -145,7 +146,7 @@ declare const _default: {
145
146
  };
146
147
  newTrace: (type: "httpRequest" | "webSocket" | "rabbit" | "bull") => {
147
148
  type: "httpRequest" | "webSocket" | "rabbit" | "bull";
148
- readonly id: `${string}-${string}-${string}-${string}-${string}`;
149
+ readonly id: crypto.UUID;
149
150
  readonly context: Map<string, unknown>;
150
151
  readonly nonHeaderContext: Map<string, unknown>;
151
152
  };
@@ -159,7 +160,7 @@ declare const _default: {
159
160
  eagerLoadPermissionsMiddleware: express.Handler;
160
161
  getCurrentPayload: () => {
161
162
  type: "httpRequest" | "webSocket" | "rabbit" | "bull";
162
- readonly id: `${string}-${string}-${string}-${string}-${string}`;
163
+ readonly id: crypto.UUID;
163
164
  readonly context: Map<string, unknown>;
164
165
  readonly nonHeaderContext: Map<string, unknown>;
165
166
  } | Record<string, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/zehut",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "manage user's identity",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -39,8 +39,8 @@
39
39
  },
40
40
  "homepage": "https://github.com/Autofleet/zehut",
41
41
  "dependencies": {
42
- "@autofleet/network": "^1.7.4",
43
- "@autofleet/outbreak": "^2.4.0",
42
+ "@autofleet/network": "^1.8.3",
43
+ "@autofleet/outbreak": "^2.4.25",
44
44
  "jsonwebtoken": "^8.5.1",
45
45
  "moment": "^2.30.1",
46
46
  "node-cache": "^5.1.2",
@@ -54,7 +54,7 @@
54
54
  "@typescript-eslint/eslint-plugin": "^6.5.0",
55
55
  "@typescript-eslint/parser": "^6.5.0",
56
56
  "@vitest/coverage-v8": "^3.0.6",
57
- "axios": "^0.29.0",
57
+ "axios": "^0.30.1",
58
58
  "eslint": "^8.48.0",
59
59
  "eslint-config-airbnb-typescript": "^17.1.0",
60
60
  "eslint-plugin-import": "^2.28.1",