@adobe/spacecat-shared-data-access 1.20.0 → 1.20.2

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,17 @@
1
+ # [@adobe/spacecat-shared-data-access-v1.20.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.20.1...@adobe/spacecat-shared-data-access-v1.20.2) (2024-03-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * include invalid base url in error message ([#180](https://github.com/adobe/spacecat-shared/issues/180)) ([4254305](https://github.com/adobe/spacecat-shared/commit/4254305402e5764a00388cc3904dc667eae1d602))
7
+
8
+ # [@adobe/spacecat-shared-data-access-v1.20.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.20.0...@adobe/spacecat-shared-data-access-v1.20.1) (2024-03-09)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update external fixes ([#179](https://github.com/adobe/spacecat-shared/issues/179)) ([9d0aa97](https://github.com/adobe/spacecat-shared/commit/9d0aa97df6a67bb66c5f098c74aebdebbd0d5f01))
14
+
1
15
  # [@adobe/spacecat-shared-data-access-v1.20.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.19.3...@adobe/spacecat-shared-data-access-v1.20.0) (2024-03-07)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "1.20.0",
3
+ "version": "1.20.2",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -31,8 +31,8 @@
31
31
  "dependencies": {
32
32
  "@adobe/spacecat-shared-dynamo": "1.2.5",
33
33
  "@adobe/spacecat-shared-utils": "1.2.0",
34
- "@aws-sdk/client-dynamodb": "3.525.0",
35
- "@aws-sdk/lib-dynamodb": "3.525.0",
34
+ "@aws-sdk/client-dynamodb": "3.529.1",
35
+ "@aws-sdk/lib-dynamodb": "3.529.1",
36
36
  "@types/joi": "17.2.3",
37
37
  "joi": "17.12.2",
38
38
  "uuid": "9.0.1"
@@ -85,7 +85,7 @@ export const createSiteCandidate = (data) => {
85
85
  const newState = { ...data };
86
86
 
87
87
  if (!isValidUrl(newState.baseURL)) {
88
- throw new Error('Base URL must be a valid URL');
88
+ throw new Error(`Base URL must be a valid URL: ${newState.baseURL}`);
89
89
  }
90
90
 
91
91
  if (!hasText(newState.updatedBy)) {
@@ -176,7 +176,7 @@ export const createSite = (data) => {
176
176
  const newState = { ...data };
177
177
 
178
178
  if (!isValidUrl(newState.baseURL)) {
179
- throw new Error('Base URL must be a valid URL');
179
+ throw new Error(`Base URL must be a valid URL: ${newState.baseURL}`);
180
180
  }
181
181
 
182
182
  if (!hasText(newState.organizationId)) {