@mindful-web/marko-newsletters-email-x 1.45.4 → 1.49.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/components/data.marko
CHANGED
|
@@ -13,6 +13,7 @@ $ const {
|
|
|
13
13
|
date,
|
|
14
14
|
send,
|
|
15
15
|
includeAdvertiser,
|
|
16
|
+
limit = 1,
|
|
16
17
|
} = params;
|
|
17
18
|
|
|
18
19
|
$ const promise = fetchData({
|
|
@@ -21,6 +22,7 @@ $ const promise = fetchData({
|
|
|
21
22
|
date,
|
|
22
23
|
email,
|
|
23
24
|
send,
|
|
25
|
+
limit,
|
|
24
26
|
includeAdvertiser,
|
|
25
27
|
decodedParams,
|
|
26
28
|
});
|
package/components/data.marko.js
CHANGED
|
@@ -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 = "/@mindful-web/marko-newsletters-email-x$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-newsletters-email-x$1.49.1/components/data.marko",
|
|
6
6
|
marko_component = require("./data.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_utils_module = require("@mindful-web/utils"),
|
|
@@ -37,6 +37,7 @@ function render(input, out, __component, component, state) {
|
|
|
37
37
|
date,
|
|
38
38
|
send,
|
|
39
39
|
includeAdvertiser,
|
|
40
|
+
limit = 1,
|
|
40
41
|
} = params;
|
|
41
42
|
|
|
42
43
|
const promise = fetchData({
|
|
@@ -45,6 +46,7 @@ function render(input, out, __component, component, state) {
|
|
|
45
46
|
date,
|
|
46
47
|
email,
|
|
47
48
|
send,
|
|
49
|
+
limit,
|
|
48
50
|
includeAdvertiser,
|
|
49
51
|
decodedParams,
|
|
50
52
|
});
|
|
@@ -67,7 +69,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
67
69
|
}, marko_component);
|
|
68
70
|
|
|
69
71
|
marko_template.meta = {
|
|
70
|
-
id: "/@mindful-web/marko-newsletters-email-x$1.
|
|
72
|
+
id: "/@mindful-web/marko-newsletters-email-x$1.49.1/components/data.marko",
|
|
71
73
|
component: "./data.marko",
|
|
72
74
|
tags: [
|
|
73
75
|
"@mindful-web/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 = "/@mindful-web/marko-newsletters-email-x$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-newsletters-email-x$1.49.1/components/display.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_utils_module = require("@mindful-web/utils"),
|
|
8
8
|
utils_module = module_utils_module.default || module_utils_module,
|
|
@@ -85,7 +85,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
85
85
|
});
|
|
86
86
|
|
|
87
87
|
marko_template.meta = {
|
|
88
|
-
id: "/@mindful-web/marko-newsletters-email-x$1.
|
|
88
|
+
id: "/@mindful-web/marko-newsletters-email-x$1.49.1/components/display.marko",
|
|
89
89
|
tags: [
|
|
90
90
|
"@mindful-web/marko-core/components/elements/img.marko"
|
|
91
91
|
]
|
package/components/marko.json
CHANGED
|
@@ -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 = "/@mindful-web/marko-newsletters-email-x$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-newsletters-email-x$1.49.1/components/render.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
8
|
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
@@ -69,7 +69,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
marko_template.meta = {
|
|
72
|
-
id: "/@mindful-web/marko-newsletters-email-x$1.
|
|
72
|
+
id: "/@mindful-web/marko-newsletters-email-x$1.49.1/components/render.marko",
|
|
73
73
|
tags: [
|
|
74
74
|
"@mindful-web/marko-core/components/elements/img.marko"
|
|
75
75
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindful-web/marko-newsletters-email-x",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.49.1",
|
|
4
4
|
"description": "EmailX Marko components for Mindful Web newsletters.",
|
|
5
5
|
"author": "Jacob Bare <jacob@parameter1.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "2cf2bf1e316060a7a513e2d2f8348d220946a161"
|
|
28
28
|
}
|
package/utils/build-query.js
CHANGED
|
@@ -13,6 +13,7 @@ module.exports = ({
|
|
|
13
13
|
email,
|
|
14
14
|
send,
|
|
15
15
|
includeAdvertiser = false,
|
|
16
|
+
limit = 1,
|
|
16
17
|
} = {}) => {
|
|
17
18
|
const rand = Math.floor(Math.random() * 100000000);
|
|
18
19
|
return {
|
|
@@ -20,6 +21,7 @@ module.exports = ({
|
|
|
20
21
|
rand,
|
|
21
22
|
email,
|
|
22
23
|
send,
|
|
24
|
+
limit,
|
|
23
25
|
...(includeAdvertiser && { incAdv: true }),
|
|
24
26
|
};
|
|
25
27
|
};
|
package/utils/fetch-data.js
CHANGED
|
@@ -23,6 +23,7 @@ module.exports = async ({
|
|
|
23
23
|
email,
|
|
24
24
|
send,
|
|
25
25
|
includeAdvertiser = false,
|
|
26
|
+
limit = 1,
|
|
26
27
|
decodedParams,
|
|
27
28
|
fetchOptions,
|
|
28
29
|
} = {}) => {
|
|
@@ -37,6 +38,7 @@ module.exports = async ({
|
|
|
37
38
|
email,
|
|
38
39
|
send,
|
|
39
40
|
includeAdvertiser,
|
|
41
|
+
limit,
|
|
40
42
|
});
|
|
41
43
|
|
|
42
44
|
const buildParams = {
|
|
@@ -49,7 +51,6 @@ module.exports = async ({
|
|
|
49
51
|
const url = buildUrl({ action: 'data', ...buildParams });
|
|
50
52
|
const clickHref = buildUrl({ action: 'click', ...buildParams });
|
|
51
53
|
const imageSrc = buildUrl({ action: 'image', ...buildParams });
|
|
52
|
-
|
|
53
54
|
const res = await fetch(url, fetchOptions);
|
|
54
55
|
const { status } = res;
|
|
55
56
|
if (status === 204) return null;
|