@vroskus/library-api 1.0.21 → 1.0.22
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/dist/index.js +1 -2
- package/package.json +4 -5
package/dist/index.js
CHANGED
|
@@ -42,7 +42,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
const axios = __importStar(require("axios"));
|
|
43
43
|
const axios_mock_adapter_1 = __importDefault(require("axios-mock-adapter"));
|
|
44
44
|
const lodash_1 = __importDefault(require("lodash"));
|
|
45
|
-
const uuid_1 = require("uuid");
|
|
46
45
|
__exportStar(require("./types"), exports);
|
|
47
46
|
const unauthenticatedStatus = 401;
|
|
48
47
|
const defaultRetryDelay = 3000;
|
|
@@ -100,7 +99,7 @@ class ApiService {
|
|
|
100
99
|
return Promise.reject(error);
|
|
101
100
|
});
|
|
102
101
|
this.connection.interceptors.request.use((config) => {
|
|
103
|
-
const requestId =
|
|
102
|
+
const requestId = crypto.randomUUID();
|
|
104
103
|
lodash_1.default.set(config, 'headers.X-Request-Id', requestId);
|
|
105
104
|
const startTimestamp = performance.now();
|
|
106
105
|
lodash_1.default.set(config, 'startTimestamp', startTimestamp);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vroskus/library-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
4
4
|
"description": "Api",
|
|
5
5
|
"author": "Vilius Roškus <vilius@regattas.eu>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"axios": "^1.8.4",
|
|
26
26
|
"axios-mock-adapter": "^2.1.0",
|
|
27
|
-
"lodash": "^4.17.21"
|
|
28
|
-
"uuid": "^11.1.0"
|
|
27
|
+
"lodash": "^4.17.21"
|
|
29
28
|
},
|
|
30
29
|
"devDependencies": {
|
|
31
30
|
"@types/jest": "^29.5.14",
|
|
@@ -53,8 +52,8 @@
|
|
|
53
52
|
"global": {
|
|
54
53
|
"branches": 51.35,
|
|
55
54
|
"functions": 50,
|
|
56
|
-
"lines": 68.
|
|
57
|
-
"statements": 65.
|
|
55
|
+
"lines": 68.42,
|
|
56
|
+
"statements": 65.45
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
}
|