@adobe/spacecat-shared-data-access 2.56.1 → 2.57.1
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-v2.57.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.57.0...@adobe/spacecat-shared-data-access-v2.57.1) (2025-08-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* use DELIVERY_TYPES from shared-utils ([#933](https://github.com/adobe/spacecat-shared/issues/933)) ([3592540](https://github.com/adobe/spacecat-shared/commit/3592540fc3cee05333fbf854447755b727dafae1))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-data-access-v2.57.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.56.1...@adobe/spacecat-shared-data-access-v2.57.0) (2025-08-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* add new redirect-chains audit ([#929](https://github.com/adobe/spacecat-shared/issues/929)) ([256c924](https://github.com/adobe/spacecat-shared/commit/256c924ce953a440dbd27d94a73cd6051f5e83b5))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-data-access-v2.56.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.56.0...@adobe/spacecat-shared-data-access-v2.56.1) (2025-08-20)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spacecat-shared-data-access",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.57.1",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - Data Access",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@adobe/spacecat-shared-utils": "1.
|
|
38
|
+
"@adobe/spacecat-shared-utils": "1.49.0",
|
|
39
39
|
"@aws-sdk/client-dynamodb": "3.864.0",
|
|
40
40
|
"@aws-sdk/lib-dynamodb": "3.864.0",
|
|
41
41
|
"@types/joi": "17.2.3",
|
|
@@ -31,6 +31,7 @@ class Audit extends BaseModel {
|
|
|
31
31
|
404: '404',
|
|
32
32
|
SITEMAP: 'sitemap',
|
|
33
33
|
CANONICAL: 'canonical',
|
|
34
|
+
REDIRECT_CHAINS: 'redirect-chains',
|
|
34
35
|
BROKEN_BACKLINKS: 'broken-backlinks',
|
|
35
36
|
BROKEN_INTERNAL_LINKS: 'broken-internal-links',
|
|
36
37
|
EXPERIMENTATION: 'experimentation',
|
|
@@ -10,7 +10,12 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
composeAuditURL,
|
|
15
|
+
hasText,
|
|
16
|
+
isValidUrl,
|
|
17
|
+
DELIVERY_TYPES,
|
|
18
|
+
} from '@adobe/spacecat-shared-utils';
|
|
14
19
|
import BaseModel from '../base/base.model.js';
|
|
15
20
|
|
|
16
21
|
const HLX_HOST = /\.(?:aem|hlx)\.(?:page|live)$/i;
|
|
@@ -64,12 +69,7 @@ export const getAuthoringType = (hostname, authoringTypes) => {
|
|
|
64
69
|
* @extends BaseModel
|
|
65
70
|
*/
|
|
66
71
|
class Site extends BaseModel {
|
|
67
|
-
static DELIVERY_TYPES =
|
|
68
|
-
AEM_CS: 'aem_cs',
|
|
69
|
-
AEM_EDGE: 'aem_edge',
|
|
70
|
-
AEM_AMS: 'aem_ams',
|
|
71
|
-
OTHER: 'other',
|
|
72
|
-
};
|
|
72
|
+
static DELIVERY_TYPES = DELIVERY_TYPES;
|
|
73
73
|
|
|
74
74
|
static DEFAULT_DELIVERY_TYPE = Site.DELIVERY_TYPES.AEM_EDGE;
|
|
75
75
|
|