@adobe/spacecat-shared-utils 1.22.4 → 1.22.6

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-utils-v1.22.6](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.22.5...@adobe/spacecat-shared-utils-v1.22.6) (2024-11-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * resolving url when site has bot protection ([#442](https://github.com/adobe/spacecat-shared/issues/442)) ([2730271](https://github.com/adobe/spacecat-shared/commit/273027155a982719429c14fd94f7b4867f17f094))
7
+
8
+ # [@adobe/spacecat-shared-utils-v1.22.5](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.22.4...@adobe/spacecat-shared-utils-v1.22.5) (2024-11-11)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update external fixes ([#434](https://github.com/adobe/spacecat-shared/issues/434)) ([b71b615](https://github.com/adobe/spacecat-shared/commit/b71b61528513821f9e34c50a095d47cb4e14f8db))
14
+
1
15
  # [@adobe/spacecat-shared-utils-v1.22.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.22.3...@adobe/spacecat-shared-utils-v1.22.4) (2024-11-08)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-utils",
3
- "version": "1.22.4",
3
+ "version": "1.22.6",
4
4
  "description": "Shared modules of the Spacecat Services - utils",
5
5
  "type": "module",
6
6
  "engines": {
@@ -35,18 +35,18 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@adobe/helix-shared-wrap": "2.0.2",
38
- "@adobe/spacecat-shared-data-access": "1.49.7",
38
+ "@adobe/spacecat-shared-data-access": "1.50.0",
39
39
  "chai": "5.1.2",
40
40
  "chai-as-promised": "8.0.0",
41
41
  "husky": "9.1.6",
42
- "nock": "13.5.5",
42
+ "nock": "13.5.6",
43
43
  "sinon": "19.0.2",
44
44
  "sinon-chai": "4.0.0"
45
45
  },
46
46
  "dependencies": {
47
47
  "@adobe/fetch": "4.1.9",
48
- "@aws-sdk/client-s3": "3.685.0",
49
- "@aws-sdk/client-sqs": "3.682.0",
48
+ "@aws-sdk/client-s3": "3.688.0",
49
+ "@aws-sdk/client-sqs": "3.687.0",
50
50
  "@json2csv/plainjs": "7.0.6",
51
51
  "aws-xray-sdk": "3.10.1"
52
52
  }
@@ -85,7 +85,12 @@ function composeBaseURL(domain) {
85
85
 
86
86
  async function composeAuditURL(url) {
87
87
  const urlWithScheme = prependSchema(url);
88
- const resp = await fetch(urlWithScheme);
88
+ const resp = await fetch(urlWithScheme, {
89
+ method: 'GET',
90
+ headers: {
91
+ 'User-Agent': 'curl/7.88.1',
92
+ },
93
+ });
89
94
  const finalUrl = resp.url.split('://')[1];
90
95
  return stripTrailingSlash(finalUrl);
91
96
  }