@adobe/spacecat-shared-content-client 1.6.13 → 1.6.14
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 +7 -0
- package/package.json +2 -2
- package/src/clients/content-client.js +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-content-client-v1.6.14](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-content-client-v1.6.13...@adobe/spacecat-shared-content-client-v1.6.14) (2025-05-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* local development friendly aws clients and sqs wrapper ([#739](https://github.com/adobe/spacecat-shared/issues/739)) ([fada9c6](https://github.com/adobe/spacecat-shared/commit/fada9c6fc0508ba6acf46a4416593427b67306dd))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-content-client-v1.6.13](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-content-client-v1.6.12...@adobe/spacecat-shared-content-client-v1.6.13) (2025-05-13)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spacecat-shared-content-client",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.14",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - Content Client",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@adobe/helix-universal": "5.2.1",
|
|
38
38
|
"@adobe/spacecat-helix-content-sdk": "1.4.5",
|
|
39
39
|
"@adobe/spacecat-shared-data-access": "2.0.2",
|
|
40
|
-
"@adobe/spacecat-shared-utils": "1.
|
|
40
|
+
"@adobe/spacecat-shared-utils": "1.38.0",
|
|
41
41
|
"@aws-sdk/client-secrets-manager": "3.806.0",
|
|
42
42
|
"aws-xray-sdk": "3.10.2",
|
|
43
43
|
"graph-data-structure": "4.5.0"
|
|
@@ -9,10 +9,9 @@
|
|
|
9
9
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import AWSXray from 'aws-xray-sdk';
|
|
13
12
|
import { createFrom as createContentSDKClient } from '@adobe/spacecat-helix-content-sdk';
|
|
14
13
|
import {
|
|
15
|
-
composeBaseURL, hasText, isObject, resolveCustomerSecretsName, tracingFetch,
|
|
14
|
+
composeBaseURL, hasText, instrumentAWSClient, isObject, resolveCustomerSecretsName, tracingFetch,
|
|
16
15
|
} from '@adobe/spacecat-shared-utils';
|
|
17
16
|
import { Graph, hasCycle } from 'graph-data-structure';
|
|
18
17
|
import { GetSecretValueCommand, SecretsManagerClient } from '@aws-sdk/client-secrets-manager';
|
|
@@ -213,7 +212,7 @@ export default class ContentClient {
|
|
|
213
212
|
|
|
214
213
|
try {
|
|
215
214
|
const customerSecret = resolveCustomerSecretsName(site.getBaseURL(), context);
|
|
216
|
-
const client =
|
|
215
|
+
const client = instrumentAWSClient(secretsManagerClient);
|
|
217
216
|
const command = new GetSecretValueCommand({ SecretId: customerSecret });
|
|
218
217
|
const response = await client.send(command);
|
|
219
218
|
const secrets = JSON.parse(response.SecretString);
|