@adobe/spacecat-shared-tokowaka-client 1.11.0 → 1.11.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,9 @@
1
+ ## [@adobe/spacecat-shared-tokowaka-client-v1.11.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-tokowaka-client-v1.11.0...@adobe/spacecat-shared-tokowaka-client-v1.11.1) (2026-03-10)
2
+
3
+ ### Bug Fixes
4
+
5
+ * UA change for edge optimize status api ([#1418](https://github.com/adobe/spacecat-shared/issues/1418)) ([43b14b5](https://github.com/adobe/spacecat-shared/commit/43b14b5ae26346fef73bbe501dee0ed0b08874e8))
6
+
1
7
  ## [@adobe/spacecat-shared-tokowaka-client-v1.11.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-tokowaka-client-v1.10.2...@adobe/spacecat-shared-tokowaka-client-v1.11.0) (2026-03-10)
2
8
 
3
9
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-tokowaka-client",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "description": "Tokowaka Client for SpaceCat - Edge optimization config management",
5
5
  "type": "module",
6
6
  "engines": {
package/src/index.js CHANGED
@@ -1135,7 +1135,7 @@ class TokowakaClient {
1135
1135
  const response = await tracingFetch(targetUrl, {
1136
1136
  method: 'GET',
1137
1137
  headers: {
1138
- 'User-Agent': 'Tokowaka-AI Tokowaka/1.0 AdobeEdgeOptimize-AI AdobeEdgeOptimize/1.0',
1138
+ 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Tokowaka-AI Tokowaka/1.0 AdobeEdgeOptimize-AI AdobeEdgeOptimize/1.0',
1139
1139
  'fastly-debug': '1',
1140
1140
  },
1141
1141
  timeout: REQUEST_TIMEOUT_MS,
@@ -3932,7 +3932,9 @@ describe('TokowakaClient', () => {
3932
3932
  await esmockClient.checkEdgeOptimizeStatus(site, '/');
3933
3933
 
3934
3934
  const fetchOptions = tracingFetchStub.firstCall.args[1];
3935
- expect(fetchOptions.headers['User-Agent']).to.equal('Tokowaka-AI Tokowaka/1.0 AdobeEdgeOptimize-AI AdobeEdgeOptimize/1.0');
3935
+ const userAgent = fetchOptions.headers['User-Agent'];
3936
+ expect(userAgent).to.include('Tokowaka-AI Tokowaka/1.0 AdobeEdgeOptimize-AI AdobeEdgeOptimize/1.0');
3937
+ expect(userAgent).to.include('Mozilla/5.0');
3936
3938
  });
3937
3939
 
3938
3940
  it('should pass timeout option to tracingFetch', async () => {