@adobe/spacecat-shared-content-client 1.6.18 → 1.6.19
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 +1 -1
- package/src/clients/content-client.js +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-content-client-v1.6.19](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-content-client-v1.6.18...@adobe/spacecat-shared-content-client-v1.6.19) (2025-05-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* allow default value for sharepoint credentials ([#755](https://github.com/adobe/spacecat-shared/issues/755)) ([0b06c0b](https://github.com/adobe/spacecat-shared/commit/0b06c0bcded13264cdc7039cf25c02e8a3f1c870))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-content-client-v1.6.18](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-content-client-v1.6.17...@adobe/spacecat-shared-content-client-v1.6.18) (2025-05-21)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -216,11 +216,11 @@ export default class ContentClient {
|
|
|
216
216
|
const command = new GetSecretValueCommand({ SecretId: customerSecret });
|
|
217
217
|
const response = await client.send(command);
|
|
218
218
|
const secrets = JSON.parse(response.SecretString);
|
|
219
|
-
config.domainId = secrets.onedrive_domain_id;
|
|
220
|
-
config.helixAdminToken = secrets.helix_admin_token;
|
|
221
|
-
config.clientId = secrets.onedrive_client_id;
|
|
222
|
-
config.clientSecret = secrets.onedrive_client_secret;
|
|
223
|
-
config.authority = secrets.onedrive_authority;
|
|
219
|
+
config.domainId = secrets.onedrive_domain_id || config.domainId;
|
|
220
|
+
config.helixAdminToken = secrets.helix_admin_token || config.helixAdminToken;
|
|
221
|
+
config.clientId = secrets.onedrive_client_id || config.clientId;
|
|
222
|
+
config.clientSecret = secrets.onedrive_client_secret || config.clientSecret;
|
|
223
|
+
config.authority = secrets.onedrive_authority || config.authority;
|
|
224
224
|
} catch (e) {
|
|
225
225
|
log.debug(`Customer ${site.getBaseURL()} secrets containing onedrive domain id not configured: ${e.message}`);
|
|
226
226
|
}
|