@autofleet/zehut 1.6.0-beta-1 → 1.6.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.
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const uuid_1 =
|
|
3
|
+
const uuid_1 = require("uuid");
|
|
7
4
|
class Context {
|
|
8
5
|
constructor() {
|
|
9
|
-
this.id = uuid_1.
|
|
6
|
+
this.id = uuid_1.v4();
|
|
10
7
|
this.store = new Map();
|
|
11
8
|
}
|
|
12
9
|
set(key, value) {
|
|
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
22
22
|
exports.getContextAttributes = exports.getEntitiesFromContext = exports.parsePermissions = exports.decodeBearer = exports.getAuthFromBearer = void 0;
|
|
23
23
|
/* eslint-disable prefer-destructuring */
|
|
24
24
|
const jwt = __importStar(require("jsonwebtoken"));
|
|
25
|
-
const secret_getter_1 = require("
|
|
25
|
+
const secret_getter_1 = require("../secret-getter");
|
|
26
26
|
const CONTEXT_PROPS = ['fleetId', 'businessModelId', 'demandSourceId'];
|
|
27
27
|
const CONTEXT_MAP_PROPS = {
|
|
28
28
|
fleet: 'fleets',
|
package/package.json
CHANGED
|
File without changes
|