@quintype/framework 7.29.0 → 7.29.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
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [7.29.1](https://github.com/quintype/quintype-node-framework/compare/v7.29.0...v7.29.1) (2024-07-15)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **image-fold:** add bot request to store ([#432](https://github.com/quintype/quintype-node-framework/issues/432)) ([cd8b3f5](https://github.com/quintype/quintype-node-framework/commit/cd8b3f505eba5d50e57b146cb42484b8764646ad))
11
+
5
12
  ## [7.29.0](https://github.com/quintype/quintype-node-framework/compare/v7.28.3...v7.29.0) (2024-07-15)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/framework",
3
- "version": "7.29.0",
3
+ "version": "7.29.1",
4
4
  "description": "Libraries to help build Quintype Node.js apps",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -192,6 +192,7 @@ exports.handleIsomorphicShell = async function handleIsomorphicShell(
192
192
  };
193
193
 
194
194
  function createStoreFromResult(url, result, opts = {}) {
195
+ const isBotRequest = _.get(url, "query.botrequest", false);
195
196
  const qt = {
196
197
  pageType: result.pageType || opts.defaultPageType,
197
198
  subPageType: result.subPageType,
@@ -199,6 +200,8 @@ function createStoreFromResult(url, result, opts = {}) {
199
200
  currentPath: `${url.pathname}${url.search || ""}`,
200
201
  currentHostUrl: result.currentHostUrl,
201
202
  primaryHostUrl: result.primaryHostUrl,
203
+ isBotRequest: isBotRequest,
204
+ lazyLoadImageMargin: opts.lazyLoadImageMargin,
202
205
  };
203
206
  return createBasicStore(result, qt, opts);
204
207
  }
@@ -461,6 +464,7 @@ exports.handleIsomorphicRoute = function handleIsomorphicRoute(
461
464
  ampPageBasePath,
462
465
  externalIdPattern,
463
466
  enableExternalStories,
467
+ lazyLoadImageMargin,
464
468
  }
465
469
  ) {
466
470
  const url = urlLib.parse(req.url, true);
@@ -481,8 +485,10 @@ exports.handleIsomorphicRoute = function handleIsomorphicRoute(
481
485
  }
482
486
  const seoInstance = getSeoInstance(seo, config, result.pageType);
483
487
  const seoTags = seoInstance && seoInstance.getMetaTags(config, result.pageType || match.pageType, result, { url });
488
+
484
489
  const store = createStoreFromResult(url, result, {
485
490
  disableIsomorphicComponent: statusCode != 200,
491
+ lazyLoadImageMargin,
486
492
  });
487
493
 
488
494
  if (lightPages) {
package/server/routes.js CHANGED
@@ -355,6 +355,7 @@ exports.isomorphicRoutes = function isomorphicRoutes(
355
355
  webengageConfig = {},
356
356
  externalIdPattern = "",
357
357
  enableExternalStories = false,
358
+ lazyLoadImageMargin,
358
359
  }
359
360
  ) {
360
361
  const withConfig = withConfigPartial(getClient, logError, publisherConfig, configWrapper);
@@ -547,6 +548,7 @@ exports.isomorphicRoutes = function isomorphicRoutes(
547
548
  ampPageBasePath,
548
549
  externalIdPattern,
549
550
  enableExternalStories,
551
+ lazyLoadImageMargin,
550
552
  })
551
553
  );
552
554