@parameter1/base-cms-marko-web 4.5.8 → 4.5.9
Sign up to get free protection for your applications and to get access to all the features.
- package/components/browser-component.marko.js +2 -2
- package/components/document/components/body-wrapper.marko.js +2 -2
- package/components/document/components/error.marko.js +2 -2
- package/components/document/components/live-reload.marko.js +2 -2
- package/components/document/components/polyfill.marko.js +2 -2
- package/components/document/container.marko.js +2 -2
- package/components/document/index.marko.js +2 -2
- package/components/element/array.marko.js +2 -2
- package/components/element/audio.marko.js +2 -2
- package/components/element/block.marko.js +2 -2
- package/components/element/clear.marko.js +2 -2
- package/components/element/components/image.marko.js +2 -2
- package/components/element/components/text.marko.js +2 -2
- package/components/element/content/address1.marko.js +2 -2
- package/components/element/content/address2.marko.js +2 -2
- package/components/element/content/audio.marko.js +2 -2
- package/components/element/content/authors.marko.js +2 -2
- package/components/element/content/body.marko.js +2 -2
- package/components/element/content/byline.marko.js +2 -2
- package/components/element/content/city-state-zip.marko.js +2 -2
- package/components/element/content/contributors.marko.js +2 -2
- package/components/element/content/country.marko.js +2 -2
- package/components/element/content/embed-code.marko.js +2 -2
- package/components/element/content/end-date.marko.js +2 -2
- package/components/element/content/ends.marko.js +2 -2
- package/components/element/content/fax.marko.js +2 -2
- package/components/element/content/images.marko.js +2 -2
- package/components/element/content/mobile.marko.js +2 -2
- package/components/element/content/name.marko.js +2 -2
- package/components/element/content/phone.marko.js +2 -2
- package/components/element/content/photographers.marko.js +2 -2
- package/components/element/content/public-email.marko.js +2 -2
- package/components/element/content/published.marko.js +2 -2
- package/components/element/content/short-name.marko.js +2 -2
- package/components/element/content/sidebar-stubs.marko.js +2 -2
- package/components/element/content/sidebars.marko.js +2 -2
- package/components/element/content/source.marko.js +2 -2
- package/components/element/content/sponsors.marko.js +2 -2
- package/components/element/content/start-date.marko.js +2 -2
- package/components/element/content/starts.marko.js +2 -2
- package/components/element/content/teaser.marko.js +2 -2
- package/components/element/content/title.marko.js +2 -2
- package/components/element/content/tollfree.marko.js +2 -2
- package/components/element/content/transcript.marko.js +2 -2
- package/components/element/content/website.marko.js +2 -2
- package/components/element/date.marko.js +2 -2
- package/components/element/image/caption.marko.js +2 -2
- package/components/element/image/credit.marko.js +2 -2
- package/components/element/image/display-name.marko.js +2 -2
- package/components/element/image/slider.marko.js +2 -2
- package/components/element/img.marko.js +2 -2
- package/components/element/index.marko.js +2 -2
- package/components/element/link.marko.js +2 -2
- package/components/element/magazine-issue/description.marko.js +2 -2
- package/components/element/magazine-issue/digital-edition-url.marko.js +2 -2
- package/components/element/magazine-issue/name.marko.js +2 -2
- package/components/element/magazine-issue/pdf-url.marko.js +2 -2
- package/components/element/magazine-publication/cancel-url.marko.js +2 -2
- package/components/element/magazine-publication/change-address-url.marko.js +2 -2
- package/components/element/magazine-publication/description.marko.js +2 -2
- package/components/element/magazine-publication/einquiry-url.marko.js +2 -2
- package/components/element/magazine-publication/name.marko.js +2 -2
- package/components/element/magazine-publication/renewal-url.marko.js +2 -2
- package/components/element/magazine-publication/reprints-url.marko.js +2 -2
- package/components/element/magazine-publication/subscribe-url.marko.js +2 -2
- package/components/element/obj-array.marko.js +2 -2
- package/components/element/obj-audio.marko.js +2 -2
- package/components/element/obj-date.marko.js +2 -2
- package/components/element/obj-nodes.marko.js +2 -2
- package/components/element/obj-text.marko.js +2 -2
- package/components/element/obj.marko.js +2 -2
- package/components/element/picture.marko.js +2 -2
- package/components/element/text.marko.js +2 -2
- package/components/element/website-section/description.marko.js +2 -2
- package/components/element/website-section/hierarchy.marko.js +2 -2
- package/components/element/website-section/name.marko.js +2 -2
- package/components/load-more/index.marko.js +2 -2
- package/components/load-more/trigger.marko.js +2 -2
- package/components/node/body.marko.js +2 -2
- package/components/node/element.marko.js +2 -2
- package/components/node/footer.marko.js +2 -2
- package/components/node/header.marko.js +2 -2
- package/components/node/image-inner-wrapper.marko.js +2 -2
- package/components/node/image-wrapper.marko.js +2 -2
- package/components/node/image.marko.js +2 -2
- package/components/node/index.marko.js +2 -2
- package/components/node-list/body.marko.js +2 -2
- package/components/node-list/element.marko.js +2 -2
- package/components/node-list/footer.marko.js +2 -2
- package/components/node-list/header.marko.js +2 -2
- package/components/node-list/index.marko.js +2 -2
- package/components/node-list/node.marko.js +2 -2
- package/components/node-list/nodes.marko.js +2 -2
- package/components/page/container.marko.js +2 -2
- package/components/page/description.marko.js +2 -2
- package/components/page/image.marko.js +2 -2
- package/components/page/layouts/content.marko.js +2 -2
- package/components/page/layouts/default.marko.js +2 -2
- package/components/page/layouts/dynamic-page.marko.js +2 -2
- package/components/page/layouts/magazine-issue.marko.js +2 -2
- package/components/page/layouts/magazine-publication.marko.js +2 -2
- package/components/page/layouts/website-section.marko.js +2 -2
- package/components/page/metadata/components/common.marko.js +2 -2
- package/components/page/metadata/content.marko.js +2 -2
- package/components/page/metadata/default.marko.js +2 -2
- package/components/page/metadata/dynamic-page.marko.js +2 -2
- package/components/page/metadata/magazine-issue.marko.js +2 -2
- package/components/page/metadata/magazine-publication.marko.js +2 -2
- package/components/page/metadata/website-section.marko.js +2 -2
- package/components/page/rel-canonical.marko.js +2 -2
- package/components/page/title.marko.js +2 -2
- package/components/page/wrapper.marko.js +2 -2
- package/components/resolve/page.marko.js +2 -2
- package/components/rss/website-section.marko.js +2 -2
- package/integration/test-website-boot.js +31 -14
- package/package.json +2 -2
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.9/components/page/layouts/magazine-publication.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
marko_web_magazine_publication_page_metadata_template = require("../metadata/magazine-publication.marko"),
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
@@ -52,7 +52,7 @@ marko_template._ = marko_renderer(render, {
|
|
52
52
|
});
|
53
53
|
|
54
54
|
marko_template.meta = {
|
55
|
-
id: "/@parameter1/base-cms-marko-web$4.5.
|
55
|
+
id: "/@parameter1/base-cms-marko-web$4.5.9/components/page/layouts/magazine-publication.marko",
|
56
56
|
tags: [
|
57
57
|
"../metadata/magazine-publication.marko"
|
58
58
|
]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.9/components/page/layouts/website-section.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
8
|
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
@@ -70,7 +70,7 @@ marko_template._ = marko_renderer(render, {
|
|
70
70
|
});
|
71
71
|
|
72
72
|
marko_template.meta = {
|
73
|
-
id: "/@parameter1/base-cms-marko-web$4.5.
|
73
|
+
id: "/@parameter1/base-cms-marko-web$4.5.9/components/page/layouts/website-section.marko",
|
74
74
|
tags: [
|
75
75
|
"../metadata/website-section.marko",
|
76
76
|
"../../rss/website-section.marko"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.9/components/page/metadata/components/common.marko",
|
6
6
|
marko_component = require("./common.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
marko_web_page_title_template = require("../../title.marko"),
|
@@ -98,7 +98,7 @@ marko_template._ = marko_renderer(render, {
|
|
98
98
|
}, marko_component);
|
99
99
|
|
100
100
|
marko_template.meta = {
|
101
|
-
id: "/@parameter1/base-cms-marko-web$4.5.
|
101
|
+
id: "/@parameter1/base-cms-marko-web$4.5.9/components/page/metadata/components/common.marko",
|
102
102
|
component: "./common.marko",
|
103
103
|
tags: [
|
104
104
|
"../../title.marko",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.9/components/page/metadata/content.marko",
|
6
6
|
marko_component = require("./content.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_gql = require("graphql-tag"),
|
@@ -197,7 +197,7 @@ marko_template._ = marko_renderer(render, {
|
|
197
197
|
}, marko_component);
|
198
198
|
|
199
199
|
marko_template.meta = {
|
200
|
-
id: "/@parameter1/base-cms-marko-web$4.5.
|
200
|
+
id: "/@parameter1/base-cms-marko-web$4.5.9/components/page/metadata/content.marko",
|
201
201
|
component: "./content.marko",
|
202
202
|
tags: [
|
203
203
|
"./components/common.marko",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.9/components/page/metadata/default.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
common_template = require("./components/common.marko"),
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
@@ -22,7 +22,7 @@ marko_template._ = marko_renderer(render, {
|
|
22
22
|
});
|
23
23
|
|
24
24
|
marko_template.meta = {
|
25
|
-
id: "/@parameter1/base-cms-marko-web$4.5.
|
25
|
+
id: "/@parameter1/base-cms-marko-web$4.5.9/components/page/metadata/default.marko",
|
26
26
|
tags: [
|
27
27
|
"./components/common.marko"
|
28
28
|
]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.9/components/page/metadata/dynamic-page.marko",
|
6
6
|
marko_component = require("./dynamic-page.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_gql = require("graphql-tag"),
|
@@ -75,7 +75,7 @@ marko_template._ = marko_renderer(render, {
|
|
75
75
|
}, marko_component);
|
76
76
|
|
77
77
|
marko_template.meta = {
|
78
|
-
id: "/@parameter1/base-cms-marko-web$4.5.
|
78
|
+
id: "/@parameter1/base-cms-marko-web$4.5.9/components/page/metadata/dynamic-page.marko",
|
79
79
|
component: "./dynamic-page.marko",
|
80
80
|
tags: [
|
81
81
|
"./components/common.marko",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.9/components/page/metadata/magazine-issue.marko",
|
6
6
|
marko_component = require("./magazine-issue.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_gql = require("graphql-tag"),
|
@@ -74,7 +74,7 @@ marko_template._ = marko_renderer(render, {
|
|
74
74
|
}, marko_component);
|
75
75
|
|
76
76
|
marko_template.meta = {
|
77
|
-
id: "/@parameter1/base-cms-marko-web$4.5.
|
77
|
+
id: "/@parameter1/base-cms-marko-web$4.5.9/components/page/metadata/magazine-issue.marko",
|
78
78
|
component: "./magazine-issue.marko",
|
79
79
|
tags: [
|
80
80
|
"./components/common.marko",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.9/components/page/metadata/magazine-publication.marko",
|
6
6
|
marko_component = require("./magazine-publication.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_gql = require("graphql-tag"),
|
@@ -70,7 +70,7 @@ marko_template._ = marko_renderer(render, {
|
|
70
70
|
}, marko_component);
|
71
71
|
|
72
72
|
marko_template.meta = {
|
73
|
-
id: "/@parameter1/base-cms-marko-web$4.5.
|
73
|
+
id: "/@parameter1/base-cms-marko-web$4.5.9/components/page/metadata/magazine-publication.marko",
|
74
74
|
component: "./magazine-publication.marko",
|
75
75
|
tags: [
|
76
76
|
"./components/common.marko",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.9/components/page/metadata/website-section.marko",
|
6
6
|
marko_component = require("./website-section.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_gql = require("graphql-tag"),
|
@@ -70,7 +70,7 @@ marko_template._ = marko_renderer(render, {
|
|
70
70
|
}, marko_component);
|
71
71
|
|
72
72
|
marko_template.meta = {
|
73
|
-
id: "/@parameter1/base-cms-marko-web$4.5.
|
73
|
+
id: "/@parameter1/base-cms-marko-web$4.5.9/components/page/metadata/website-section.marko",
|
74
74
|
component: "./website-section.marko",
|
75
75
|
tags: [
|
76
76
|
"./components/common.marko",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.9/components/page/rel-canonical.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
|
8
8
|
baseCmsUtils_module = module_baseCmsUtils_module.default || module_baseCmsUtils_module,
|
@@ -38,5 +38,5 @@ marko_template._ = marko_renderer(render, {
|
|
38
38
|
});
|
39
39
|
|
40
40
|
marko_template.meta = {
|
41
|
-
id: "/@parameter1/base-cms-marko-web$4.5.
|
41
|
+
id: "/@parameter1/base-cms-marko-web$4.5.9/components/page/rel-canonical.marko"
|
42
42
|
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.9/components/page/title.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
|
8
8
|
baseCmsUtils_module = module_baseCmsUtils_module.default || module_baseCmsUtils_module,
|
@@ -42,5 +42,5 @@ marko_template._ = marko_renderer(render, {
|
|
42
42
|
});
|
43
43
|
|
44
44
|
marko_template.meta = {
|
45
|
-
id: "/@parameter1/base-cms-marko-web$4.5.
|
45
|
+
id: "/@parameter1/base-cms-marko-web$4.5.9/components/page/title.marko"
|
46
46
|
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.9/components/page/wrapper.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
8
|
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
@@ -56,7 +56,7 @@ marko_template._ = marko_renderer(render, {
|
|
56
56
|
});
|
57
57
|
|
58
58
|
marko_template.meta = {
|
59
|
-
id: "/@parameter1/base-cms-marko-web$4.5.
|
59
|
+
id: "/@parameter1/base-cms-marko-web$4.5.9/components/page/wrapper.marko",
|
60
60
|
tags: [
|
61
61
|
"../element/index.marko"
|
62
62
|
]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.9/components/resolve/page.marko",
|
6
6
|
marko_component = require("./page.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
|
@@ -41,7 +41,7 @@ marko_template._ = marko_renderer(render, {
|
|
41
41
|
}, marko_component);
|
42
42
|
|
43
43
|
marko_template.meta = {
|
44
|
-
id: "/@parameter1/base-cms-marko-web$4.5.
|
44
|
+
id: "/@parameter1/base-cms-marko-web$4.5.9/components/resolve/page.marko",
|
45
45
|
component: "./page.marko",
|
46
46
|
tags: [
|
47
47
|
"@parameter1/base-cms-marko-core/components/resolve.marko"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.5.9/components/rss/website-section.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_url_module = require("url"),
|
8
8
|
url_module = module_url_module.default || module_url_module,
|
@@ -42,5 +42,5 @@ marko_template._ = marko_renderer(render, {
|
|
42
42
|
});
|
43
43
|
|
44
44
|
marko_template.meta = {
|
45
|
-
id: "/@parameter1/base-cms-marko-web$4.5.
|
45
|
+
id: "/@parameter1/base-cms-marko-web$4.5.9/components/rss/website-section.marko"
|
46
46
|
};
|
@@ -13,10 +13,14 @@ const origin = process.env.MARKO_WEB_INTEGRATION_TEST_URL || 'http://localhost:8
|
|
13
13
|
const fetchResponse = async ({
|
14
14
|
path = '/',
|
15
15
|
catchErrors = false,
|
16
|
+
followRedirects = false,
|
16
17
|
} = {}) => {
|
17
18
|
const url = `${cleanPath(origin)}/${cleanPath(path)}`;
|
18
19
|
log(`fetching ${url}`);
|
19
|
-
const opts = {
|
20
|
+
const opts = {
|
21
|
+
method: 'get',
|
22
|
+
redirect: followRedirects ? 'follow' : 'manual',
|
23
|
+
};
|
20
24
|
if (!catchErrors) return fetch(url, opts);
|
21
25
|
try {
|
22
26
|
const res = await fetch(url, opts);
|
@@ -58,15 +62,23 @@ const checkReadiness = async ({
|
|
58
62
|
log('container is ready.');
|
59
63
|
};
|
60
64
|
|
61
|
-
const testPage = async ({
|
65
|
+
const testPage = async ({
|
66
|
+
path,
|
67
|
+
retryAttempts = 3,
|
68
|
+
serverErrorsOnly = true,
|
69
|
+
followRedirects = false,
|
70
|
+
checkInterval = 500,
|
71
|
+
} = {}) => {
|
62
72
|
let timesChecked = 0;
|
63
73
|
let finished = false;
|
64
74
|
let html;
|
65
|
-
const report = {
|
66
|
-
|
67
|
-
|
68
|
-
|
75
|
+
const report = { path, error: null, checks: [] };
|
76
|
+
|
77
|
+
const waitThenRetry = async () => {
|
78
|
+
log(`waiting ${checkInterval}ms to retry ${path}`);
|
79
|
+
await wait(checkInterval);
|
69
80
|
};
|
81
|
+
|
70
82
|
await whilst(async () => !finished, async () => {
|
71
83
|
const check = {};
|
72
84
|
report.checks.push(check);
|
@@ -75,19 +87,19 @@ const testPage = async ({ path, retryAttempts = 3, serverErrorsOnly = true } = {
|
|
75
87
|
// max times reach, append error to report.
|
76
88
|
report.error = new Error(`The test runner for page path ${path} has reached its maximum check limit.`);
|
77
89
|
finished = true;
|
78
|
-
return;
|
90
|
+
return true;
|
79
91
|
}
|
80
|
-
const res = await fetchResponse({ path });
|
92
|
+
const res = await fetchResponse({ path, followRedirects });
|
81
93
|
check.statusCode = res.status;
|
82
94
|
if (!res.ok) {
|
83
95
|
if (serverErrorsOnly && res.status < 500) {
|
84
96
|
check.message = `received a ${res.status} from path ${path} but treating as passing since it was not a server error (>= 500).`;
|
85
97
|
finished = true;
|
86
|
-
return;
|
98
|
+
return true;
|
87
99
|
}
|
88
100
|
// received a 500, append the message and retry
|
89
101
|
check.message = `received an error response from path page ${path} with status ${res.status} ${res.statusText}`;
|
90
|
-
return;
|
102
|
+
return waitThenRetry();
|
91
103
|
}
|
92
104
|
html = await res.text();
|
93
105
|
|
@@ -97,7 +109,7 @@ const testPage = async ({ path, retryAttempts = 3, serverErrorsOnly = true } = {
|
|
97
109
|
if (!found) {
|
98
110
|
// no render, append the message and retry.
|
99
111
|
check.message = `unable to detect a full page render for path ${path} retrying...`;
|
100
|
-
return;
|
112
|
+
return waitThenRetry();
|
101
113
|
}
|
102
114
|
|
103
115
|
// then check for in-body errors. this means an async internal block failed
|
@@ -110,10 +122,11 @@ const testPage = async ({ path, retryAttempts = 3, serverErrorsOnly = true } = {
|
|
110
122
|
});
|
111
123
|
if (check.inPageErrors.length) {
|
112
124
|
// in-page errors occurred. exit and retry
|
113
|
-
return;
|
125
|
+
return waitThenRetry();
|
114
126
|
}
|
115
127
|
// otherwise, mark as finished.
|
116
128
|
finished = true;
|
129
|
+
return true;
|
117
130
|
});
|
118
131
|
return { html, report };
|
119
132
|
};
|
@@ -121,8 +134,12 @@ const testPage = async ({ path, retryAttempts = 3, serverErrorsOnly = true } = {
|
|
121
134
|
const run = async () => {
|
122
135
|
await checkReadiness();
|
123
136
|
|
124
|
-
// test homepage first, and get html.
|
125
|
-
const { html, report: initialReport } = await testPage({
|
137
|
+
// test homepage first, and get html, allowing redirects (since this page _has_ to load).
|
138
|
+
const { html, report: initialReport } = await testPage({
|
139
|
+
path: '/',
|
140
|
+
serverErrorsOnly: false,
|
141
|
+
followRedirects: true,
|
142
|
+
});
|
126
143
|
|
127
144
|
const toTest = new Map([
|
128
145
|
['/search', {}],
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parameter1/base-cms-marko-web",
|
3
|
-
"version": "4.5.
|
3
|
+
"version": "4.5.9",
|
4
4
|
"description": "Core Marko+Express components for BaseCMS websites",
|
5
5
|
"author": "Jacob Bare <jacob@parameter1.com>",
|
6
6
|
"main": "index.js",
|
@@ -59,5 +59,5 @@
|
|
59
59
|
"publishConfig": {
|
60
60
|
"access": "public"
|
61
61
|
},
|
62
|
-
"gitHead": "
|
62
|
+
"gitHead": "5c9d4f8ab2e181a2d50e4c02870cf686c0bda35e"
|
63
63
|
}
|