@quintype/framework 7.28.4-image-below-fold.0 → 7.28.4-image-below-fold.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quintype/framework",
|
|
3
|
-
"version": "7.28.4-image-below-fold.
|
|
3
|
+
"version": "7.28.4-image-below-fold.2",
|
|
4
4
|
"description": "Libraries to help build Quintype Node.js apps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"engines": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"npm": "^8.5.0"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"prepublishOnly": "./bin-dev-scripts/standard-version-release.sh",
|
|
11
|
+
"prepublishOnly": "npm test && ./bin-dev-scripts/standard-version-release.sh",
|
|
12
12
|
"test": "NODE_ENV=test npx mocha --recursive --require ./test/babel",
|
|
13
13
|
"watch-test": "NODE_ENV=test npx mocha --recursive --watch --require ./test/babel",
|
|
14
14
|
"coverage": "nyc --all npm test",
|
|
@@ -31,10 +31,9 @@
|
|
|
31
31
|
"homepage": "https://github.com/quintype/quintype-node-framework#readme",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@ampproject/toolbox-optimizer": "2.8.3",
|
|
34
|
-
"@babel/plugin-proposal-optional-chaining-assign": "^7.24.7",
|
|
35
|
-
"@quintype/amp": "^2.18.2",
|
|
36
|
-
"@quintype/backend": "2.5.1",
|
|
37
34
|
"@quintype/components": "^3.5.0",
|
|
35
|
+
"@quintype/backend": "2.5.1",
|
|
36
|
+
"@quintype/amp": "^2.18.2",
|
|
38
37
|
"@quintype/prerender-node": "^3.2.26",
|
|
39
38
|
"@quintype/seo": "^1.46.1",
|
|
40
39
|
"atob": "^2.1.2",
|
|
@@ -192,8 +192,7 @@ exports.handleIsomorphicShell = async function handleIsomorphicShell(
|
|
|
192
192
|
};
|
|
193
193
|
|
|
194
194
|
function createStoreFromResult(url, result, opts = {}) {
|
|
195
|
-
|
|
196
|
-
const isBotRequest = url.query.botrequest;
|
|
195
|
+
const isBotRequest = _.get(url, "query.botrequest", false);
|
|
197
196
|
const qt = {
|
|
198
197
|
pageType: result.pageType || opts.defaultPageType,
|
|
199
198
|
subPageType: result.subPageType,
|
|
@@ -202,6 +201,7 @@ function createStoreFromResult(url, result, opts = {}) {
|
|
|
202
201
|
currentHostUrl: result.currentHostUrl,
|
|
203
202
|
primaryHostUrl: result.primaryHostUrl,
|
|
204
203
|
isBotRequest: isBotRequest,
|
|
204
|
+
belowFoldImgMargin: opts.belowFoldImgMargin,
|
|
205
205
|
};
|
|
206
206
|
return createBasicStore(result, qt, opts);
|
|
207
207
|
}
|
|
@@ -464,6 +464,7 @@ exports.handleIsomorphicRoute = function handleIsomorphicRoute(
|
|
|
464
464
|
ampPageBasePath,
|
|
465
465
|
externalIdPattern,
|
|
466
466
|
enableExternalStories,
|
|
467
|
+
belowFoldImgMargin,
|
|
467
468
|
}
|
|
468
469
|
) {
|
|
469
470
|
const url = urlLib.parse(req.url, true);
|
|
@@ -487,6 +488,7 @@ exports.handleIsomorphicRoute = function handleIsomorphicRoute(
|
|
|
487
488
|
|
|
488
489
|
const store = createStoreFromResult(url, result, {
|
|
489
490
|
disableIsomorphicComponent: statusCode != 200,
|
|
491
|
+
belowFoldImgMargin,
|
|
490
492
|
});
|
|
491
493
|
|
|
492
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
|
+
belowFoldImgMargin,
|
|
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
|
+
belowFoldImgMargin,
|
|
550
552
|
})
|
|
551
553
|
);
|
|
552
554
|
|