@quintype/framework 7.27.1 → 7.27.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
@@ -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.27.2](https://github.com/quintype/quintype-node-framework/compare/v7.27.1...v7.27.2) (2024-04-18)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * ** infinite-scroll amp:** handle errors in infinite-scroll amp api response ([#421](https://github.com/quintype/quintype-node-framework/issues/421)) ([8c24b9b](https://github.com/quintype/quintype-node-framework/commit/8c24b9bca02de741861858878e5dd47bc7ac3a9a))
11
+
5
12
  ### [7.27.1](https://github.com/quintype/quintype-node-framework/compare/v7.27.0...v7.27.1) (2024-04-16)
6
13
 
7
14
  ## [7.27.0](https://github.com/quintype/quintype-node-framework/compare/v7.26.1...v7.27.0) (2024-04-15)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/framework",
3
- "version": "7.27.1",
3
+ "version": "7.27.2",
4
4
  "description": "Libraries to help build Quintype Node.js apps",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -6,6 +6,8 @@ const cloneDeep = require("lodash/cloneDeep");
6
6
 
7
7
  // eslint-disable-next-line consistent-return
8
8
  async function storyPageInfiniteScrollHandler(req, res, next, { client, config, ...rest }) {
9
+ if (!req.query["story-id"]) return res.status(400).send(`Query param "story-id" missing`);
10
+
9
11
  const ampConfig = await config.memoizeAsync("amp-config", async () => await AmpConfig.getAmpConfig(client));
10
12
  const opts = cloneDeep(rest);
11
13
  const infiniteScrollSource = get(opts, ["featureConfig", "infiniteScroll", "source"], "collection");