@adobe/spacecat-shared-http-utils 1.15.1 → 1.16.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-http-utils-v1.16.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-http-utils-v1.15.2...@adobe/spacecat-shared-http-utils-v1.16.0) (2025-08-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Change the log level from info to debug ([#922](https://github.com/adobe/spacecat-shared/issues/922)) ([e291a2a](https://github.com/adobe/spacecat-shared/commit/e291a2ad83b31eb258fb65be4201ea6948af85c3))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add threshold for pageviews ([#923](https://github.com/adobe/spacecat-shared/issues/923)) ([5b989cd](https://github.com/adobe/spacecat-shared/commit/5b989cd7c38ac946609143ed5402d2ff1600c581))
|
|
12
|
+
|
|
13
|
+
# [@adobe/spacecat-shared-http-utils-v1.15.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-http-utils-v1.15.1...@adobe/spacecat-shared-http-utils-v1.15.2) (2025-07-21)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* auth handlers log level adjustments ([#861](https://github.com/adobe/spacecat-shared/issues/861)) ([f2511b3](https://github.com/adobe/spacecat-shared/commit/f2511b32e817a9a899cb87bcf89ef35ca69a27ca))
|
|
19
|
+
|
|
1
20
|
# [@adobe/spacecat-shared-http-utils-v1.15.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-http-utils-v1.15.0...@adobe/spacecat-shared-http-utils-v1.15.1) (2025-07-19)
|
|
2
21
|
|
|
3
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spacecat-shared-http-utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - HTTP Utils",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@adobe/fetch": "4.2.2",
|
|
38
|
+
"@adobe/spacecat-shared-data-access": "2.45.0",
|
|
38
39
|
"@adobe/spacecat-shared-utils": "1.26.4",
|
|
39
|
-
"@adobe/spacecat-shared-data-access": "2.0.2",
|
|
40
40
|
"jose": "6.0.12"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
package/src/auth/handlers/ims.js
CHANGED
|
@@ -48,7 +48,7 @@ const SERVICE_CODE = 'dx_aem_perf';
|
|
|
48
48
|
const loadConfig = (context) => {
|
|
49
49
|
try {
|
|
50
50
|
const config = JSON.parse(context.env.AUTH_HANDLER_IMS);
|
|
51
|
-
context.log.
|
|
51
|
+
context.log.debug(`Loaded config name: ${config.name}`);
|
|
52
52
|
return config;
|
|
53
53
|
} catch (e) {
|
|
54
54
|
context.log.error(`Failed to load config from context: ${e.message}`);
|
|
@@ -176,7 +176,7 @@ export default class AdobeImsHandler extends AbstractHandler {
|
|
|
176
176
|
.withProfile(profile)
|
|
177
177
|
.withScopes(scopes);
|
|
178
178
|
} catch (e) {
|
|
179
|
-
this.log(`Failed to validate token: ${e.message}`, '
|
|
179
|
+
this.log(`Failed to validate token: ${e.message}`, 'debug');
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
return null;
|
package/src/auth/handlers/jwt.js
CHANGED
|
@@ -81,7 +81,7 @@ export default class JwtHandler extends AbstractHandler {
|
|
|
81
81
|
.withProfile(payload)
|
|
82
82
|
.withScopes(scopes);
|
|
83
83
|
} catch (e) {
|
|
84
|
-
this.log(`Failed to validate token: ${e.message}`, '
|
|
84
|
+
this.log(`Failed to validate token: ${e.message}`, 'debug');
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
return null;
|
|
@@ -42,7 +42,7 @@ export default class ScopedApiKeyHandler extends AbstractHandler {
|
|
|
42
42
|
const apiKeyEntity = await ApiKey.findByHashedApiKey(hashedApiKey);
|
|
43
43
|
|
|
44
44
|
if (!apiKeyEntity) {
|
|
45
|
-
this.log(`No API key entity found in the data layer for the provided API key: ${apiKeyFromHeader}`, '
|
|
45
|
+
this.log(`No API key entity found in the data layer for the provided API key: ${apiKeyFromHeader}`, 'debug');
|
|
46
46
|
return null;
|
|
47
47
|
}
|
|
48
48
|
this.log(`Valid API key entity found. Id: ${apiKeyEntity.getId()}, name: ${apiKeyEntity.getName()}, scopes: ${apiKeyEntity.getScopes()}`, 'debug');
|