@mjhls/mjh-framework 1.0.691-beta.7 → 1.0.691-beta.8
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/dist/cjs/AdSlot.js +1 -0
- package/dist/cjs/Auth.js +206 -6
- package/dist/cjs/DeckContent.js +1 -1
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/GridContent.js +2 -2
- package/dist/cjs/IssueLanding.js +2 -2
- package/dist/cjs/MasterDeck.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +3 -3
- package/dist/cjs/QueueDeckExpanded.js +2 -2
- package/dist/cjs/View.js +3 -3
- package/dist/cjs/getRelatedArticle.js +5 -354
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/index.js +6 -6
- package/dist/esm/AdSlot.js +1 -0
- package/dist/esm/Auth.js +201 -1
- package/dist/esm/DeckContent.js +1 -1
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/GridContent.js +2 -2
- package/dist/esm/IssueLanding.js +2 -2
- package/dist/esm/MasterDeck.js +2 -2
- package/dist/esm/PartnerDetailListing.js +3 -3
- package/dist/esm/QueueDeckExpanded.js +2 -2
- package/dist/esm/View.js +3 -3
- package/dist/esm/getRelatedArticle.js +5 -354
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/index.js +5 -5
- package/package.json +1 -1
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
- /package/dist/cjs/{ADInfeed-13f9664d.js → ADInfeed-1b449a61.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-1520d505.js → ADlgInfeed-7dc86b35.js} +0 -0
- /package/dist/cjs/{index-973d14f9.js → index-9ced0453.js} +0 -0
- /package/dist/esm/{ADInfeed-63798269.js → ADInfeed-5a2f924b.js} +0 -0
- /package/dist/esm/{ADlgInfeed-ea0e136c.js → ADlgInfeed-c0a01f39.js} +0 -0
- /package/dist/esm/{index-385c2469.js → index-3be21153.js} +0 -0
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -30,9 +30,9 @@ import './_set-species-cede29f8.js';
|
|
|
30
30
|
import './Segment.js';
|
|
31
31
|
import './Beam.js';
|
|
32
32
|
import './AdSlot.js';
|
|
33
|
-
import './ADInfeed-
|
|
33
|
+
import './ADInfeed-5a2f924b.js';
|
|
34
34
|
import './lodash-ec8c6b48.js';
|
|
35
|
-
import './ADlgInfeed-
|
|
35
|
+
import './ADlgInfeed-c0a01f39.js';
|
|
36
36
|
import './getContentCategory-15dcc413.js';
|
|
37
37
|
import './AuthorComponent-00f13201.js';
|
|
38
38
|
import 'react-bootstrap';
|
package/dist/esm/MasterDeck.js
CHANGED
|
@@ -36,9 +36,9 @@ import './_set-species-cede29f8.js';
|
|
|
36
36
|
import './Segment.js';
|
|
37
37
|
import './Beam.js';
|
|
38
38
|
import './AdSlot.js';
|
|
39
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
39
|
+
import { A as ADInfeed } from './ADInfeed-5a2f924b.js';
|
|
40
40
|
import { l as lodash } from './lodash-ec8c6b48.js';
|
|
41
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
41
|
+
import { A as ADlgInfeed } from './ADlgInfeed-c0a01f39.js';
|
|
42
42
|
|
|
43
43
|
var MasterDeck = function (_React$Component) {
|
|
44
44
|
_inherits(MasterDeck, _React$Component);
|
|
@@ -37,9 +37,9 @@ import './_set-species-cede29f8.js';
|
|
|
37
37
|
import './Segment.js';
|
|
38
38
|
import './Beam.js';
|
|
39
39
|
import './AdSlot.js';
|
|
40
|
-
import './ADInfeed-
|
|
40
|
+
import './ADInfeed-5a2f924b.js';
|
|
41
41
|
import './lodash-ec8c6b48.js';
|
|
42
|
-
import './ADlgInfeed-
|
|
42
|
+
import './ADlgInfeed-c0a01f39.js';
|
|
43
43
|
import './getContentCategory-15dcc413.js';
|
|
44
44
|
import './AuthorComponent-00f13201.js';
|
|
45
45
|
import { B as BlockContent } from './BlockContent-c409aca5.js';
|
|
@@ -49,7 +49,7 @@ import 'react-bootstrap';
|
|
|
49
49
|
import './timeDifferenceCalc.js';
|
|
50
50
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
51
51
|
import 'react-bootstrap/Button';
|
|
52
|
-
import { g as getSerializers } from './index-
|
|
52
|
+
import { g as getSerializers } from './index-3be21153.js';
|
|
53
53
|
import './util-7700fc59.js';
|
|
54
54
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
55
55
|
import 'react-bootstrap/Pagination';
|
|
@@ -30,9 +30,9 @@ import './_set-species-cede29f8.js';
|
|
|
30
30
|
import './Segment.js';
|
|
31
31
|
import './Beam.js';
|
|
32
32
|
import './AdSlot.js';
|
|
33
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
33
|
+
import { A as ADInfeed } from './ADInfeed-5a2f924b.js';
|
|
34
34
|
import { l as lodash } from './lodash-ec8c6b48.js';
|
|
35
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
35
|
+
import { A as ADlgInfeed } from './ADlgInfeed-c0a01f39.js';
|
|
36
36
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
37
37
|
import { A as AuthorComponent } from './AuthorComponent-00f13201.js';
|
|
38
38
|
import { Container, Media } from 'react-bootstrap';
|
package/dist/esm/View.js
CHANGED
|
@@ -43,7 +43,7 @@ import './iconBase-602d52fe.js';
|
|
|
43
43
|
import Button from 'react-bootstrap/Button';
|
|
44
44
|
import { _ as _defineProperty } from './defineProperty-b798470d.js';
|
|
45
45
|
import Form from 'react-bootstrap/Form';
|
|
46
|
-
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-
|
|
46
|
+
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-3be21153.js';
|
|
47
47
|
import './util-7700fc59.js';
|
|
48
48
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
49
49
|
import 'react-bootstrap/Pagination';
|
|
@@ -55,9 +55,9 @@ import { _ as _Object$keys } from './keys-fc2d4c34.js';
|
|
|
55
55
|
import 'react-bootstrap/Dropdown';
|
|
56
56
|
import { b as FaMinus, c as FaPlus } from './index.esm-cf08bf18.js';
|
|
57
57
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
58
|
-
import '
|
|
59
|
-
import getRelatedArticle from './getRelatedArticle.js';
|
|
58
|
+
import 'nookies';
|
|
60
59
|
import getQuery from './getQuery.js';
|
|
60
|
+
import getRelatedArticle from './getRelatedArticle.js';
|
|
61
61
|
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-2acdec91.js';
|
|
62
62
|
import getKeywords from './getKeywords.js';
|
|
63
63
|
import urlFor from './urlFor.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import './_to-object-ded78eb9.js';
|
|
3
3
|
import './es6.string.iterator-9b2af4a5.js';
|
|
4
4
|
import './_library-528f1934.js';
|
|
@@ -7,358 +7,9 @@ import './core.get-iterator-method-54d2e411.js';
|
|
|
7
7
|
import './web.dom.iterable-8956f9a5.js';
|
|
8
8
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c654f36.js';
|
|
9
9
|
import './_set-species-cede29f8.js';
|
|
10
|
-
import {
|
|
10
|
+
import { parseCookies, setCookie } from 'nookies';
|
|
11
11
|
import getQuery from './getQuery.js';
|
|
12
12
|
|
|
13
|
-
var defaultParseOptions = {
|
|
14
|
-
decodeValues: true,
|
|
15
|
-
map: false,
|
|
16
|
-
silent: false,
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
function isNonEmptyString(str) {
|
|
20
|
-
return typeof str === "string" && !!str.trim();
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function parseString(setCookieValue, options) {
|
|
24
|
-
var parts = setCookieValue.split(";").filter(isNonEmptyString);
|
|
25
|
-
var nameValue = parts.shift().split("=");
|
|
26
|
-
var name = nameValue.shift();
|
|
27
|
-
var value = nameValue.join("="); // everything after the first =, joined by a "=" if there was more than one part
|
|
28
|
-
|
|
29
|
-
options = options
|
|
30
|
-
? Object.assign({}, defaultParseOptions, options)
|
|
31
|
-
: defaultParseOptions;
|
|
32
|
-
|
|
33
|
-
var cookie = {
|
|
34
|
-
name: name, // grab everything before the first =
|
|
35
|
-
value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
parts.forEach(function (part) {
|
|
39
|
-
var sides = part.split("=");
|
|
40
|
-
var key = sides.shift().trimLeft().toLowerCase();
|
|
41
|
-
var value = sides.join("=");
|
|
42
|
-
if (key === "expires") {
|
|
43
|
-
cookie.expires = new Date(value);
|
|
44
|
-
} else if (key === "max-age") {
|
|
45
|
-
cookie.maxAge = parseInt(value, 10);
|
|
46
|
-
} else if (key === "secure") {
|
|
47
|
-
cookie.secure = true;
|
|
48
|
-
} else if (key === "httponly") {
|
|
49
|
-
cookie.httpOnly = true;
|
|
50
|
-
} else if (key === "samesite") {
|
|
51
|
-
cookie.sameSite = value;
|
|
52
|
-
} else {
|
|
53
|
-
cookie[key] = value;
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
return cookie;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function parse(input, options) {
|
|
61
|
-
options = options
|
|
62
|
-
? Object.assign({}, defaultParseOptions, options)
|
|
63
|
-
: defaultParseOptions;
|
|
64
|
-
|
|
65
|
-
if (!input) {
|
|
66
|
-
if (!options.map) {
|
|
67
|
-
return [];
|
|
68
|
-
} else {
|
|
69
|
-
return {};
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
if (input.headers && input.headers["set-cookie"]) {
|
|
74
|
-
// fast-path for node.js (which automatically normalizes header names to lower-case
|
|
75
|
-
input = input.headers["set-cookie"];
|
|
76
|
-
} else if (input.headers) {
|
|
77
|
-
// slow-path for other environments - see #25
|
|
78
|
-
var sch =
|
|
79
|
-
input.headers[
|
|
80
|
-
Object.keys(input.headers).find(function (key) {
|
|
81
|
-
return key.toLowerCase() === "set-cookie";
|
|
82
|
-
})
|
|
83
|
-
];
|
|
84
|
-
// warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
|
|
85
|
-
if (!sch && input.headers.cookie && !options.silent) {
|
|
86
|
-
console.warn(
|
|
87
|
-
"Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
input = sch;
|
|
91
|
-
}
|
|
92
|
-
if (!Array.isArray(input)) {
|
|
93
|
-
input = [input];
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
options = options
|
|
97
|
-
? Object.assign({}, defaultParseOptions, options)
|
|
98
|
-
: defaultParseOptions;
|
|
99
|
-
|
|
100
|
-
if (!options.map) {
|
|
101
|
-
return input.filter(isNonEmptyString).map(function (str) {
|
|
102
|
-
return parseString(str, options);
|
|
103
|
-
});
|
|
104
|
-
} else {
|
|
105
|
-
var cookies = {};
|
|
106
|
-
return input.filter(isNonEmptyString).reduce(function (cookies, str) {
|
|
107
|
-
var cookie = parseString(str, options);
|
|
108
|
-
cookies[cookie.name] = cookie;
|
|
109
|
-
return cookies;
|
|
110
|
-
}, cookies);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/*
|
|
115
|
-
Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
|
|
116
|
-
that are within a single set-cookie field-value, such as in the Expires portion.
|
|
117
|
-
|
|
118
|
-
This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
|
|
119
|
-
Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
|
|
120
|
-
React Native's fetch does this for *every* header, including set-cookie.
|
|
121
|
-
|
|
122
|
-
Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
|
|
123
|
-
Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
|
|
124
|
-
*/
|
|
125
|
-
function splitCookiesString(cookiesString) {
|
|
126
|
-
if (Array.isArray(cookiesString)) {
|
|
127
|
-
return cookiesString;
|
|
128
|
-
}
|
|
129
|
-
if (typeof cookiesString !== "string") {
|
|
130
|
-
return [];
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
var cookiesStrings = [];
|
|
134
|
-
var pos = 0;
|
|
135
|
-
var start;
|
|
136
|
-
var ch;
|
|
137
|
-
var lastComma;
|
|
138
|
-
var nextStart;
|
|
139
|
-
var cookiesSeparatorFound;
|
|
140
|
-
|
|
141
|
-
function skipWhitespace() {
|
|
142
|
-
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
|
|
143
|
-
pos += 1;
|
|
144
|
-
}
|
|
145
|
-
return pos < cookiesString.length;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
function notSpecialChar() {
|
|
149
|
-
ch = cookiesString.charAt(pos);
|
|
150
|
-
|
|
151
|
-
return ch !== "=" && ch !== ";" && ch !== ",";
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
while (pos < cookiesString.length) {
|
|
155
|
-
start = pos;
|
|
156
|
-
cookiesSeparatorFound = false;
|
|
157
|
-
|
|
158
|
-
while (skipWhitespace()) {
|
|
159
|
-
ch = cookiesString.charAt(pos);
|
|
160
|
-
if (ch === ",") {
|
|
161
|
-
// ',' is a cookie separator if we have later first '=', not ';' or ','
|
|
162
|
-
lastComma = pos;
|
|
163
|
-
pos += 1;
|
|
164
|
-
|
|
165
|
-
skipWhitespace();
|
|
166
|
-
nextStart = pos;
|
|
167
|
-
|
|
168
|
-
while (pos < cookiesString.length && notSpecialChar()) {
|
|
169
|
-
pos += 1;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
// currently special character
|
|
173
|
-
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
|
|
174
|
-
// we found cookies separator
|
|
175
|
-
cookiesSeparatorFound = true;
|
|
176
|
-
// pos is inside the next cookie, so back up and return it.
|
|
177
|
-
pos = nextStart;
|
|
178
|
-
cookiesStrings.push(cookiesString.substring(start, lastComma));
|
|
179
|
-
start = pos;
|
|
180
|
-
} else {
|
|
181
|
-
// in param ',' or param separator ';',
|
|
182
|
-
// we continue from that comma
|
|
183
|
-
pos = lastComma + 1;
|
|
184
|
-
}
|
|
185
|
-
} else {
|
|
186
|
-
pos += 1;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
if (!cookiesSeparatorFound || pos >= cookiesString.length) {
|
|
191
|
-
cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
return cookiesStrings;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
var setCookie = parse;
|
|
199
|
-
var parse_1 = parse;
|
|
200
|
-
var parseString_1 = parseString;
|
|
201
|
-
var splitCookiesString_1 = splitCookiesString;
|
|
202
|
-
setCookie.parse = parse_1;
|
|
203
|
-
setCookie.parseString = parseString_1;
|
|
204
|
-
setCookie.splitCookiesString = splitCookiesString_1;
|
|
205
|
-
|
|
206
|
-
var dist = createCommonjsModule(function (module, exports) {
|
|
207
|
-
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
208
|
-
__assign = Object.assign || function(t) {
|
|
209
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
210
|
-
s = arguments[i];
|
|
211
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
212
|
-
t[p] = s[p];
|
|
213
|
-
}
|
|
214
|
-
return t;
|
|
215
|
-
};
|
|
216
|
-
return __assign.apply(this, arguments);
|
|
217
|
-
};
|
|
218
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
219
|
-
exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
var isBrowser = function () { return typeof window !== 'undefined'; };
|
|
223
|
-
function hasSameProperties(a, b) {
|
|
224
|
-
var aProps = Object.getOwnPropertyNames(a);
|
|
225
|
-
var bProps = Object.getOwnPropertyNames(b);
|
|
226
|
-
if (aProps.length !== bProps.length) {
|
|
227
|
-
return false;
|
|
228
|
-
}
|
|
229
|
-
for (var i = 0; i < aProps.length; i++) {
|
|
230
|
-
var propName = aProps[i];
|
|
231
|
-
if (a[propName] !== b[propName]) {
|
|
232
|
-
return false;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
return true;
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Compare the cookie and return true if the cookies has equivalent
|
|
239
|
-
* options and the cookies would be overwritten in the browser storage.
|
|
240
|
-
*
|
|
241
|
-
* @param a first Cookie for comparison
|
|
242
|
-
* @param b second Cookie for comparison
|
|
243
|
-
*/
|
|
244
|
-
function areCookiesEqual(a, b) {
|
|
245
|
-
var sameSiteSame = a.sameSite === b.sameSite;
|
|
246
|
-
if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
|
|
247
|
-
sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
|
|
248
|
-
}
|
|
249
|
-
return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* Create an instance of the Cookie interface
|
|
253
|
-
*
|
|
254
|
-
* @param name name of the Cookie
|
|
255
|
-
* @param value value of the Cookie
|
|
256
|
-
* @param options Cookie options
|
|
257
|
-
*/
|
|
258
|
-
function createCookie(name, value, options) {
|
|
259
|
-
var sameSite = options.sameSite;
|
|
260
|
-
if (sameSite === true) {
|
|
261
|
-
sameSite = 'strict';
|
|
262
|
-
}
|
|
263
|
-
if (sameSite === undefined || sameSite === false) {
|
|
264
|
-
sameSite = 'lax';
|
|
265
|
-
}
|
|
266
|
-
var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
|
|
267
|
-
delete cookieToSet.encode;
|
|
268
|
-
return __assign({ name: name, value: value }, cookieToSet);
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
*
|
|
272
|
-
* Parses cookies.
|
|
273
|
-
*
|
|
274
|
-
* @param ctx
|
|
275
|
-
* @param options
|
|
276
|
-
*/
|
|
277
|
-
function parseCookies(ctx, options) {
|
|
278
|
-
if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
|
|
279
|
-
return cookie.parse(ctx.req.headers.cookie, options);
|
|
280
|
-
}
|
|
281
|
-
if (isBrowser()) {
|
|
282
|
-
return cookie.parse(document.cookie, options);
|
|
283
|
-
}
|
|
284
|
-
return {};
|
|
285
|
-
}
|
|
286
|
-
exports.parseCookies = parseCookies;
|
|
287
|
-
/**
|
|
288
|
-
*
|
|
289
|
-
* Sets a cookie.
|
|
290
|
-
*
|
|
291
|
-
* @param ctx
|
|
292
|
-
* @param name
|
|
293
|
-
* @param value
|
|
294
|
-
* @param options
|
|
295
|
-
*/
|
|
296
|
-
function setCookie$1(ctx, name, value, options) {
|
|
297
|
-
if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
|
|
298
|
-
var cookies = ctx.res.getHeader('Set-Cookie') || [];
|
|
299
|
-
if (typeof cookies === 'string')
|
|
300
|
-
cookies = [cookies];
|
|
301
|
-
if (typeof cookies === 'number')
|
|
302
|
-
cookies = [];
|
|
303
|
-
var parsedCookies = setCookie.parse(cookies);
|
|
304
|
-
var cookiesToSet_1 = [];
|
|
305
|
-
parsedCookies.forEach(function (parsedCookie) {
|
|
306
|
-
if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
|
|
307
|
-
cookiesToSet_1.push(cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({ encode: function (val) { return val; } }, parsedCookie)));
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
|
-
cookiesToSet_1.push(cookie.serialize(name, value, options));
|
|
311
|
-
if (!ctx.res.finished) {
|
|
312
|
-
ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
if (isBrowser()) {
|
|
316
|
-
if (options && options.httpOnly) {
|
|
317
|
-
throw new Error('Can not set a httpOnly cookie in the browser.');
|
|
318
|
-
}
|
|
319
|
-
document.cookie = cookie.serialize(name, value, options);
|
|
320
|
-
}
|
|
321
|
-
return {};
|
|
322
|
-
}
|
|
323
|
-
exports.setCookie = setCookie$1;
|
|
324
|
-
/**
|
|
325
|
-
*
|
|
326
|
-
* Destroys a cookie with a particular name.
|
|
327
|
-
*
|
|
328
|
-
* @param ctx
|
|
329
|
-
* @param name
|
|
330
|
-
* @param options
|
|
331
|
-
*/
|
|
332
|
-
function destroyCookie(ctx, name, options) {
|
|
333
|
-
var opts = __assign(__assign({}, (options || {})), { maxAge: -1 });
|
|
334
|
-
if (ctx && ctx.res && ctx.res.setHeader && ctx.res.getHeader) {
|
|
335
|
-
var cookies = ctx.res.getHeader('Set-Cookie') || [];
|
|
336
|
-
if (typeof cookies === 'string')
|
|
337
|
-
cookies = [cookies];
|
|
338
|
-
if (typeof cookies === 'number')
|
|
339
|
-
cookies = [];
|
|
340
|
-
cookies.push(cookie.serialize(name, '', opts));
|
|
341
|
-
ctx.res.setHeader('Set-Cookie', cookies);
|
|
342
|
-
}
|
|
343
|
-
if (isBrowser()) {
|
|
344
|
-
document.cookie = cookie.serialize(name, '', opts);
|
|
345
|
-
}
|
|
346
|
-
return {};
|
|
347
|
-
}
|
|
348
|
-
exports.destroyCookie = destroyCookie;
|
|
349
|
-
exports.default = {
|
|
350
|
-
set: setCookie$1,
|
|
351
|
-
get: parseCookies,
|
|
352
|
-
destroy: destroyCookie,
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
});
|
|
356
|
-
|
|
357
|
-
unwrapExports(dist);
|
|
358
|
-
var dist_1 = dist.destroyCookie;
|
|
359
|
-
var dist_2 = dist.setCookie;
|
|
360
|
-
var dist_3 = dist.parseCookies;
|
|
361
|
-
|
|
362
13
|
var _this = undefined;
|
|
363
14
|
|
|
364
15
|
var getRelatedArticle = function () {
|
|
@@ -418,13 +69,13 @@ var getRelatedArticle = function () {
|
|
|
418
69
|
conditions = '';
|
|
419
70
|
|
|
420
71
|
if (ctx && url) {
|
|
421
|
-
cookies =
|
|
72
|
+
cookies = parseCookies(ctx);
|
|
422
73
|
prevSlugs = cookies['prevSlugs'];
|
|
423
74
|
|
|
424
75
|
if (!!prevSlugs) {
|
|
425
|
-
|
|
76
|
+
setCookie(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
|
|
426
77
|
conditions = '&& !(url.current in [' + prevSlugs + '])';
|
|
427
|
-
} else
|
|
78
|
+
} else setCookie(ctx, 'prevSlugs', '"' + url + '"', {});
|
|
428
79
|
}
|
|
429
80
|
relatedArticleQuery = getQuery('related', conditions, '', articleCount);
|
|
430
81
|
_context.next = 12;
|
|
@@ -39,7 +39,7 @@ import './smoothscroll-4b699764.js';
|
|
|
39
39
|
import './GroupDeck.js';
|
|
40
40
|
import 'react-bootstrap';
|
|
41
41
|
import 'react-bootstrap/Button';
|
|
42
|
-
export { g as default } from './index-
|
|
42
|
+
export { g as default } from './index-3be21153.js';
|
|
43
43
|
import './util-7700fc59.js';
|
|
44
44
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
45
45
|
import 'react-bootstrap/Pagination';
|
package/dist/esm/index.js
CHANGED
|
@@ -38,10 +38,10 @@ import './_set-species-cede29f8.js';
|
|
|
38
38
|
export { default as Segment } from './Segment.js';
|
|
39
39
|
export { default as Beam } from './Beam.js';
|
|
40
40
|
export { default as AdSlot } from './AdSlot.js';
|
|
41
|
-
import './ADInfeed-
|
|
41
|
+
import './ADInfeed-5a2f924b.js';
|
|
42
42
|
export { default as DeckContent } from './DeckContent.js';
|
|
43
43
|
import './lodash-ec8c6b48.js';
|
|
44
|
-
import './ADlgInfeed-
|
|
44
|
+
import './ADlgInfeed-c0a01f39.js';
|
|
45
45
|
import './getContentCategory-15dcc413.js';
|
|
46
46
|
import './get-5ee14cda.js';
|
|
47
47
|
export { default as AD } from './AD.js';
|
|
@@ -79,7 +79,7 @@ import 'react-bootstrap/Form';
|
|
|
79
79
|
import './index-ef6d5dcf.js';
|
|
80
80
|
import './js.cookie-6874175c.js';
|
|
81
81
|
export { default as CMEDeck } from './CMEDeck.js';
|
|
82
|
-
export { g as getSerializers } from './index-
|
|
82
|
+
export { g as getSerializers } from './index-3be21153.js';
|
|
83
83
|
import './util-7700fc59.js';
|
|
84
84
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
85
85
|
import 'react-bootstrap/Pagination';
|
|
@@ -157,9 +157,9 @@ export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
|
157
157
|
export { default as KMTracker } from './KMTracker.js';
|
|
158
158
|
export { default as getSeriesDetail } from './getSeriesDetail.js';
|
|
159
159
|
export { default as SetCookie } from './SetCookie.js';
|
|
160
|
-
import '
|
|
161
|
-
export { default as getRelatedArticle } from './getRelatedArticle.js';
|
|
160
|
+
import 'nookies';
|
|
162
161
|
export { default as getQuery } from './getQuery.js';
|
|
162
|
+
export { default as getRelatedArticle } from './getRelatedArticle.js';
|
|
163
163
|
export { default as Auth } from './Auth.js';
|
|
164
164
|
import 'swr';
|
|
165
165
|
import 'passport-local';
|