@adobe/spacecat-shared-data-access 2.46.0 → 2.46.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-v2.46.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.46.1...@adobe/spacecat-shared-data-access-v2.46.2) (2025-08-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * [preflight] removing ref from externalOwnerId to find site for a branch-based preview URL ([#843](https://github.com/adobe/spacecat-shared/issues/843)) ([4f57fcf](https://github.com/adobe/spacecat-shared/commit/4f57fcf2f645279e423455dea60df37e116950b4))
7
+
8
+ # [@adobe/spacecat-shared-data-access-v2.46.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.46.0...@adobe/spacecat-shared-data-access-v2.46.1) (2025-08-09)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update external fixes ([#899](https://github.com/adobe/spacecat-shared/issues/899)) ([c2cc342](https://github.com/adobe/spacecat-shared/commit/c2cc3422a0a4a3f8d1a2724847da456bf801ff59))
14
+
1
15
  # [@adobe/spacecat-shared-data-access-v2.46.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.45.0...@adobe/spacecat-shared-data-access-v2.46.0) (2025-08-08)
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.46.0",
3
+ "version": "2.46.2",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -36,8 +36,8 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@adobe/spacecat-shared-utils": "1.39.1",
39
- "@aws-sdk/client-dynamodb": "3.859.0",
40
- "@aws-sdk/lib-dynamodb": "3.859.0",
39
+ "@aws-sdk/client-dynamodb": "3.864.0",
40
+ "@aws-sdk/lib-dynamodb": "3.864.0",
41
41
  "@types/joi": "17.2.3",
42
42
  "aws-xray-sdk": "3.10.3",
43
43
  "electrodb": "3.4.3",
@@ -49,7 +49,7 @@
49
49
  "chai": "5.2.1",
50
50
  "chai-as-promised": "8.0.1",
51
51
  "dynamo-db-local": "9.6.0",
52
- "nock": "14.0.8",
52
+ "nock": "14.0.9",
53
53
  "sinon": "20.0.0",
54
54
  "sinon-chai": "4.0.0"
55
55
  }
@@ -88,9 +88,8 @@ class SiteCollection extends BaseCollection {
88
88
  throw new DataAccessError(`Invalid Helix preview URL: ${previewURL}`, this);
89
89
  }
90
90
  const [host] = hostname.split('.');
91
- const [ref, site, owner] = host.split('--');
92
- const externalOwnerId = `${ref}#${owner}`;
93
- return this.findByExternalOwnerIdAndExternalSiteId(externalOwnerId, site);
91
+ const [, site, owner] = host.split('--');
92
+ return this.findByExternalOwnerIdAndExternalSiteId(owner, site);
94
93
  }
95
94
  case Site.AUTHORING_TYPES.CS_CW:
96
95
  case Site.AUTHORING_TYPES.CS: {
@@ -24,10 +24,10 @@ export const computeExternalIds = (attrs, authoringTypes) => {
24
24
 
25
25
  if (hlxConfig && (authoringType === authoringTypes.DA)) {
26
26
  const rso = hlxConfig.rso ?? {};
27
- const { ref, owner, site } = rso;
27
+ const { owner, site } = rso;
28
28
 
29
29
  return {
30
- externalOwnerId: ref && owner ? `${ref}#${owner}` : undefined,
30
+ externalOwnerId: owner || undefined,
31
31
  externalSiteId: site || undefined,
32
32
  };
33
33
  }