@vroskus/library-api 1.0.20 → 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.
Files changed (2) hide show
  1. package/dist/index.js +1 -2
  2. package/package.json +10 -11
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 = (0, uuid_1.v4)();
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.20",
3
+ "version": "1.0.22",
4
4
  "description": "Api",
5
5
  "author": "Vilius Roškus <vilius@regattas.eu>",
6
6
  "license": "MIT",
@@ -22,21 +22,20 @@
22
22
  "test:e2e:post": "jest-coverage-thresholds-bumper"
23
23
  },
24
24
  "dependencies": {
25
- "axios": "^1.7.9",
25
+ "axios": "^1.8.4",
26
26
  "axios-mock-adapter": "^2.1.0",
27
- "lodash": "^4.17.21",
28
- "uuid": "^11.0.3"
27
+ "lodash": "^4.17.21"
29
28
  },
30
29
  "devDependencies": {
31
30
  "@types/jest": "^29.5.14",
32
- "@types/lodash": "^4.17.13",
33
- "@types/node": "^22.10.2",
31
+ "@types/lodash": "^4.17.16",
32
+ "@types/node": "^22.14.0",
34
33
  "@types/query-string": "^6.3.0",
35
- "@vroskus/eslint-config": "^1.0.23",
34
+ "@vroskus/eslint-config": "^1.0.25",
36
35
  "jest": "^29.7.0",
37
36
  "jest-coverage-thresholds-bumper": "^1.1.0",
38
- "ts-jest": "^29.2.5",
39
- "typescript": "^5.7.2"
37
+ "ts-jest": "^29.3.1",
38
+ "typescript": "^5.8.3"
40
39
  },
41
40
  "jest": {
42
41
  "preset": "ts-jest",
@@ -53,8 +52,8 @@
53
52
  "global": {
54
53
  "branches": 51.35,
55
54
  "functions": 50,
56
- "lines": 68.75,
57
- "statements": 65.76
55
+ "lines": 68.42,
56
+ "statements": 65.45
58
57
  }
59
58
  }
60
59
  }