@vroskus/library-api 1.0.14 → 1.0.16

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 +2 -2
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -114,7 +114,7 @@ class ApiService {
114
114
  RequestHeaders: config.headers,
115
115
  RequestId: requestId,
116
116
  RequestParams: config.params,
117
- Route: config.url,
117
+ Route: config.url || 'Unknown',
118
118
  };
119
119
  const cleanRequestContext = lodash_1.default.omitBy(requestContext, lodash_1.default.isUndefined);
120
120
  this.requestContextListener(cleanRequestContext);
@@ -133,7 +133,7 @@ class ApiService {
133
133
  RequestParams: config.params,
134
134
  ResponseData: data,
135
135
  ResponseHeaders: headers,
136
- Route: config.url,
136
+ Route: config.url || 'Unknown',
137
137
  Status: status,
138
138
  };
139
139
  const cleanResponseContext = lodash_1.default.omitBy(responseContext, lodash_1.default.isUndefined);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vroskus/library-api",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "Api",
5
5
  "author": "Vilius Roškus <vilius@regattas.eu>",
6
6
  "license": "MIT",
@@ -16,7 +16,7 @@
16
16
  "scripts": {
17
17
  "build": "tsc",
18
18
  "test": "npm run test:eslint && npm run test:e2e",
19
- "test:eslint": "eslint src test --fix",
19
+ "test:eslint": "ESLINT_USE_FLAT_CONFIG=false eslint src test --fix",
20
20
  "test:e2e": "npm run test:e2e:run && npm run test:e2e:post",
21
21
  "test:e2e:run": "jest --ci --colors",
22
22
  "test:e2e:post": "jest-coverage-thresholds-bumper"
@@ -29,23 +29,23 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/jest": "^29.5.12",
32
- "@types/lodash": "^4.17.0",
33
- "@types/node": "^20.11.30",
32
+ "@types/lodash": "^4.17.1",
33
+ "@types/node": "^20.12.10",
34
34
  "@types/query-string": "^6.3.0",
35
- "@typescript-eslint/eslint-plugin": "^7.3.1",
36
- "@typescript-eslint/parser": "^7.3.1",
35
+ "@typescript-eslint/eslint-plugin": "^7.8.0",
36
+ "@typescript-eslint/parser": "^7.8.0",
37
37
  "eslint": "^8.57.0",
38
38
  "eslint-config-airbnb-base": "^15.0.0",
39
39
  "eslint-config-airbnb-typescript": "^18.0.0",
40
40
  "eslint-config-problems": "^8.0.0",
41
41
  "eslint-plugin-import": "^2.29.1",
42
42
  "eslint-plugin-import-newlines": "^1.4.0",
43
- "eslint-plugin-perfectionist": "^2.7.0",
43
+ "eslint-plugin-perfectionist": "^2.10.0",
44
44
  "eslint-plugin-react": "^7.34.1",
45
45
  "jest": "^29.7.0",
46
46
  "jest-coverage-thresholds-bumper": "^1.1.0",
47
47
  "ts-jest": "^29.1.2",
48
- "typescript": "^5.4.3"
48
+ "typescript": "^5.4.5"
49
49
  },
50
50
  "jest": {
51
51
  "preset": "ts-jest",
@@ -60,7 +60,7 @@
60
60
  ],
61
61
  "coverageThreshold": {
62
62
  "global": {
63
- "branches": 52.94,
63
+ "branches": 52.77,
64
64
  "functions": 48.27,
65
65
  "lines": 67.85,
66
66
  "statements": 65.26