@adobe/spacecat-shared-data-access 1.44.1 → 1.44.3

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.44.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.44.2...@adobe/spacecat-shared-data-access-v1.44.3) (2024-09-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add an additional space in the unit test ([#376](https://github.com/adobe/spacecat-shared/issues/376)) ([c98ae55](https://github.com/adobe/spacecat-shared/commit/c98ae55433970663bc5d50a9546d1fbc9d4bf8d7))
7
+
8
+ # [@adobe/spacecat-shared-data-access-v1.44.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.44.1...@adobe/spacecat-shared-data-access-v1.44.2) (2024-09-16)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **audits:** extend expiry date for audits from 1 to 6 months ([#363](https://github.com/adobe/spacecat-shared/issues/363)) ([1327a5b](https://github.com/adobe/spacecat-shared/commit/1327a5bcc60fdb7dab0284e9d10d3001ad7fa403))
14
+
1
15
  # [@adobe/spacecat-shared-data-access-v1.44.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.44.0...@adobe/spacecat-shared-data-access-v1.44.1) (2024-09-14)
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.44.1",
3
+ "version": "1.44.3",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -25,7 +25,7 @@ export const AUDIT_TYPE_LHS_MOBILE = 'lhs-mobile';
25
25
  export const AUDIT_TYPE_EXPERIMENTATION_ESS_MONTHLY = 'experimentation-ess-monthly';
26
26
  export const AUDIT_TYPE_EXPERIMENTATION_ESS_DAILY = 'experimentation-ess-daily';
27
27
 
28
- const EXPIRES_IN_DAYS = 30;
28
+ const EXPIRES_IN_DAYS = 30 * 6;
29
29
 
30
30
  const AUDIT_TYPE_PROPERTIES = {
31
31
  [AUDIT_TYPE_LHS_DESKTOP]: ['performance', 'seo', 'accessibility', 'best-practices'],
@@ -105,6 +105,10 @@ export const createImportUrl = (data) => {
105
105
  throw new Error(`Invalid Url: ${newState.url}`);
106
106
  }
107
107
 
108
+ if (!hasText(newState.jobId)) {
109
+ throw new Error(`Invalid Job ID: ${newState.jobId}`);
110
+ }
111
+
108
112
  if (!Object.values(ImportUrlStatus).includes(newState.status)) {
109
113
  throw new Error(`Invalid Import URL status: ${newState.status}`);
110
114
  }