@mjhls/mjh-framework 1.0.684-beta.0 → 1.0.684
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/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -3
- package/dist/cjs/AD300x250x600.js +3 -3
- package/dist/cjs/AD728x90.js +4 -4
- package/dist/cjs/ADFloatingFooter.js +2 -2
- package/dist/cjs/ADGutter.js +2 -2
- package/dist/cjs/ADSkyscraper.js +2 -2
- package/dist/cjs/ADSponsoredResources.js +2 -2
- package/dist/cjs/ADWebcast.js +2 -2
- package/dist/cjs/ADWelcome.js +2 -2
- package/dist/cjs/AdSlot.js +2 -2
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleSeriesListing.js +4 -4
- package/dist/cjs/Auth.js +507 -256
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-88f69acd.js} +1 -1
- package/dist/cjs/BrowseVideosListing.js +1 -1
- package/dist/cjs/CMEDeck.js +5 -5
- package/dist/cjs/Column3.js +4 -4
- package/dist/cjs/ConferenceArticleCard.js +2 -2
- package/dist/cjs/DeckContent.js +7 -7
- package/dist/cjs/DeckQueue.js +6 -6
- package/dist/cjs/{Dfp-f6a18ed2.js → Dfp-b2bc3b97.js} +1 -1
- package/dist/cjs/EventsDeck.js +4 -4
- package/dist/cjs/ExternalResources.js +7 -7
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +2 -2
- package/dist/cjs/GridContent.js +10 -10
- package/dist/cjs/GridHero.js +2 -2
- package/dist/cjs/GroupDeck.js +1 -1
- package/dist/cjs/HamMagazine.js +4 -4
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueContentDeck.js +2 -2
- package/dist/cjs/IssueDeck.js +2 -2
- package/dist/cjs/IssueLanding.js +7 -7
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +7 -7
- package/dist/cjs/NavMagazine.js +4 -4
- package/dist/cjs/NavNative.js +3 -3
- package/dist/cjs/OncliveHero.js +2 -2
- package/dist/cjs/OncliveLargeHero.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +15 -1212
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +9 -9
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +2 -2
- package/dist/cjs/{SocialSearchComponent-9cd24578.js → SocialSearchComponent-6b5e5b47.js} +5 -5
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +3 -3
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +2 -2
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoSeriesCard.js +2 -2
- package/dist/cjs/VideoSeriesListing.js +3 -3
- package/dist/cjs/View.js +119 -486
- package/dist/cjs/YahooHero.js +2 -2
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +5 -354
- package/dist/cjs/getSerializers.js +6 -6
- package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-fee8c429.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-fa8ed292.js → index-2d0a4911.js} +34 -27
- package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
- package/dist/cjs/{index-c49c3b5e.js → index-8c9e8ca7.js} +462 -450
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
- package/dist/cjs/index.js +16 -15
- package/dist/cjs/{main-a4cb15bb.js → main-b6c96c8d.js} +67 -36
- package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/urlFor.js +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +3 -3
- package/dist/esm/AD300x250x600.js +3 -3
- package/dist/esm/AD728x90.js +4 -4
- package/dist/esm/ADFloatingFooter.js +2 -2
- package/dist/esm/ADGutter.js +2 -2
- package/dist/esm/ADSkyscraper.js +2 -2
- package/dist/esm/ADSponsoredResources.js +2 -2
- package/dist/esm/ADWebcast.js +2 -2
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/AdSlot.js +2 -2
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleSeriesListing.js +4 -4
- package/dist/esm/Auth.js +499 -248
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-a614acdf.js} +1 -1
- package/dist/esm/BrowseVideosListing.js +1 -1
- package/dist/esm/CMEDeck.js +5 -5
- package/dist/esm/Column3.js +4 -4
- package/dist/esm/ConferenceArticleCard.js +2 -2
- package/dist/esm/DeckContent.js +7 -7
- package/dist/esm/DeckQueue.js +6 -6
- package/dist/esm/{Dfp-96b49def.js → Dfp-8a8fca18.js} +1 -1
- package/dist/esm/EventsDeck.js +4 -4
- package/dist/esm/ExternalResources.js +7 -7
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +2 -2
- package/dist/esm/GridContent.js +10 -10
- package/dist/esm/GridHero.js +2 -2
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +4 -4
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalHero.js +2 -2
- package/dist/esm/IssueContentDeck.js +2 -2
- package/dist/esm/IssueDeck.js +2 -2
- package/dist/esm/IssueLanding.js +7 -7
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +7 -7
- package/dist/esm/NavMagazine.js +4 -4
- package/dist/esm/NavNative.js +3 -3
- package/dist/esm/OncliveHero.js +2 -2
- package/dist/esm/OncliveLargeHero.js +2 -2
- package/dist/esm/PartnerDetailListing.js +13 -1209
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +9 -9
- package/dist/esm/RecentNews.js +2 -2
- package/dist/esm/RelatedContent.js +2 -2
- package/dist/esm/{SocialSearchComponent-93233334.js → SocialSearchComponent-7f14e0f3.js} +5 -5
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +3 -3
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +2 -2
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoSeriesCard.js +2 -2
- package/dist/esm/VideoSeriesListing.js +3 -3
- package/dist/esm/View.js +93 -460
- package/dist/esm/YahooHero.js +2 -2
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +5 -354
- package/dist/esm/getSerializers.js +6 -6
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-85783f24.js → index-5505d4f9.js} +462 -450
- package/dist/esm/{index-0e45a0b2.js → index-93ec3c59.js} +34 -27
- package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
- package/dist/esm/index.js +14 -13
- package/dist/esm/{main-5d1e4bd3.js → main-0465b2a0.js} +65 -34
- package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/urlFor.js +1 -1
- 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-f27bc4b5.js → ADInfeed-c676389b.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-8decfd9e.js → ADlgInfeed-57d63c87.js} +0 -0
- /package/dist/esm/{ADInfeed-1e0ca5e0.js → ADInfeed-97b8cea7.js} +0 -0
- /package/dist/esm/{ADlgInfeed-979cf0d5.js → ADlgInfeed-3ab91c75.js} +0 -0
package/dist/cjs/YahooHero.js
CHANGED
|
@@ -10,9 +10,9 @@ require('./web.dom.iterable-a0e279c1.js');
|
|
|
10
10
|
var React = require('react');
|
|
11
11
|
var React__default = _interopDefault(React);
|
|
12
12
|
require('prop-types');
|
|
13
|
-
var moment = require('./moment-
|
|
13
|
+
var moment = require('./moment-66a6a284.js');
|
|
14
14
|
require('react-dom');
|
|
15
|
-
var index$1 = require('./index-
|
|
15
|
+
var index$1 = require('./index-b5eb3ff8.js');
|
|
16
16
|
var index$2 = require('./index-da796b8c.js');
|
|
17
17
|
var entities = require('./entities-310b46ee.js');
|
|
18
18
|
require('./slicedToArray-8f385299.js');
|
package/dist/cjs/YoutubeGroup.js
CHANGED
|
@@ -15,7 +15,7 @@ var React = require('react');
|
|
|
15
15
|
var React__default = _interopDefault(React);
|
|
16
16
|
require('prop-types');
|
|
17
17
|
require('react-dom');
|
|
18
|
-
var index$1 = require('./index-
|
|
18
|
+
var index$1 = require('./index-b5eb3ff8.js');
|
|
19
19
|
var index$2 = require('./index-da796b8c.js');
|
|
20
20
|
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
21
21
|
var smoothscroll = require('./smoothscroll-95231a70.js');
|
package/dist/cjs/getQuery.js
CHANGED
|
@@ -10,9 +10,9 @@ var getQuery = function getQuery(type) {
|
|
|
10
10
|
|
|
11
11
|
switch (type) {
|
|
12
12
|
case 'related':
|
|
13
|
-
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n
|
|
13
|
+
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n }';
|
|
14
14
|
case 'article':
|
|
15
|
-
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n } \n },\n articles[]{\n ...,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n
|
|
15
|
+
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n } \n },\n articles[]{\n ...,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
|
|
16
16
|
case 'publication':
|
|
17
17
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n pdf{asset->}\n } | order(year desc, month desc)\n }';
|
|
18
18
|
case 'issue':
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require('./_commonjsHelpers-06173234.js');
|
|
4
4
|
require('./_to-object-329a650b.js');
|
|
5
5
|
require('./es6.string.iterator-cc0bbaa4.js');
|
|
6
6
|
require('./_library-dd23b178.js');
|
|
@@ -9,358 +9,9 @@ require('./core.get-iterator-method-f62321d4.js');
|
|
|
9
9
|
require('./web.dom.iterable-a0e279c1.js');
|
|
10
10
|
var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
|
|
11
11
|
require('./_set-species-f92c67c5.js');
|
|
12
|
-
var
|
|
12
|
+
var nookies = require('nookies');
|
|
13
13
|
var getQuery = require('./getQuery.js');
|
|
14
14
|
|
|
15
|
-
var defaultParseOptions = {
|
|
16
|
-
decodeValues: true,
|
|
17
|
-
map: false,
|
|
18
|
-
silent: false,
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
function isNonEmptyString(str) {
|
|
22
|
-
return typeof str === "string" && !!str.trim();
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function parseString(setCookieValue, options) {
|
|
26
|
-
var parts = setCookieValue.split(";").filter(isNonEmptyString);
|
|
27
|
-
var nameValue = parts.shift().split("=");
|
|
28
|
-
var name = nameValue.shift();
|
|
29
|
-
var value = nameValue.join("="); // everything after the first =, joined by a "=" if there was more than one part
|
|
30
|
-
|
|
31
|
-
options = options
|
|
32
|
-
? Object.assign({}, defaultParseOptions, options)
|
|
33
|
-
: defaultParseOptions;
|
|
34
|
-
|
|
35
|
-
var cookie = {
|
|
36
|
-
name: name, // grab everything before the first =
|
|
37
|
-
value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
parts.forEach(function (part) {
|
|
41
|
-
var sides = part.split("=");
|
|
42
|
-
var key = sides.shift().trimLeft().toLowerCase();
|
|
43
|
-
var value = sides.join("=");
|
|
44
|
-
if (key === "expires") {
|
|
45
|
-
cookie.expires = new Date(value);
|
|
46
|
-
} else if (key === "max-age") {
|
|
47
|
-
cookie.maxAge = parseInt(value, 10);
|
|
48
|
-
} else if (key === "secure") {
|
|
49
|
-
cookie.secure = true;
|
|
50
|
-
} else if (key === "httponly") {
|
|
51
|
-
cookie.httpOnly = true;
|
|
52
|
-
} else if (key === "samesite") {
|
|
53
|
-
cookie.sameSite = value;
|
|
54
|
-
} else {
|
|
55
|
-
cookie[key] = value;
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
return cookie;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function parse(input, options) {
|
|
63
|
-
options = options
|
|
64
|
-
? Object.assign({}, defaultParseOptions, options)
|
|
65
|
-
: defaultParseOptions;
|
|
66
|
-
|
|
67
|
-
if (!input) {
|
|
68
|
-
if (!options.map) {
|
|
69
|
-
return [];
|
|
70
|
-
} else {
|
|
71
|
-
return {};
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
if (input.headers && input.headers["set-cookie"]) {
|
|
76
|
-
// fast-path for node.js (which automatically normalizes header names to lower-case
|
|
77
|
-
input = input.headers["set-cookie"];
|
|
78
|
-
} else if (input.headers) {
|
|
79
|
-
// slow-path for other environments - see #25
|
|
80
|
-
var sch =
|
|
81
|
-
input.headers[
|
|
82
|
-
Object.keys(input.headers).find(function (key) {
|
|
83
|
-
return key.toLowerCase() === "set-cookie";
|
|
84
|
-
})
|
|
85
|
-
];
|
|
86
|
-
// warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
|
|
87
|
-
if (!sch && input.headers.cookie && !options.silent) {
|
|
88
|
-
console.warn(
|
|
89
|
-
"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."
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
input = sch;
|
|
93
|
-
}
|
|
94
|
-
if (!Array.isArray(input)) {
|
|
95
|
-
input = [input];
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
options = options
|
|
99
|
-
? Object.assign({}, defaultParseOptions, options)
|
|
100
|
-
: defaultParseOptions;
|
|
101
|
-
|
|
102
|
-
if (!options.map) {
|
|
103
|
-
return input.filter(isNonEmptyString).map(function (str) {
|
|
104
|
-
return parseString(str, options);
|
|
105
|
-
});
|
|
106
|
-
} else {
|
|
107
|
-
var cookies = {};
|
|
108
|
-
return input.filter(isNonEmptyString).reduce(function (cookies, str) {
|
|
109
|
-
var cookie = parseString(str, options);
|
|
110
|
-
cookies[cookie.name] = cookie;
|
|
111
|
-
return cookies;
|
|
112
|
-
}, cookies);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/*
|
|
117
|
-
Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
|
|
118
|
-
that are within a single set-cookie field-value, such as in the Expires portion.
|
|
119
|
-
|
|
120
|
-
This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
|
|
121
|
-
Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
|
|
122
|
-
React Native's fetch does this for *every* header, including set-cookie.
|
|
123
|
-
|
|
124
|
-
Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
|
|
125
|
-
Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
|
|
126
|
-
*/
|
|
127
|
-
function splitCookiesString(cookiesString) {
|
|
128
|
-
if (Array.isArray(cookiesString)) {
|
|
129
|
-
return cookiesString;
|
|
130
|
-
}
|
|
131
|
-
if (typeof cookiesString !== "string") {
|
|
132
|
-
return [];
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
var cookiesStrings = [];
|
|
136
|
-
var pos = 0;
|
|
137
|
-
var start;
|
|
138
|
-
var ch;
|
|
139
|
-
var lastComma;
|
|
140
|
-
var nextStart;
|
|
141
|
-
var cookiesSeparatorFound;
|
|
142
|
-
|
|
143
|
-
function skipWhitespace() {
|
|
144
|
-
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
|
|
145
|
-
pos += 1;
|
|
146
|
-
}
|
|
147
|
-
return pos < cookiesString.length;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
function notSpecialChar() {
|
|
151
|
-
ch = cookiesString.charAt(pos);
|
|
152
|
-
|
|
153
|
-
return ch !== "=" && ch !== ";" && ch !== ",";
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
while (pos < cookiesString.length) {
|
|
157
|
-
start = pos;
|
|
158
|
-
cookiesSeparatorFound = false;
|
|
159
|
-
|
|
160
|
-
while (skipWhitespace()) {
|
|
161
|
-
ch = cookiesString.charAt(pos);
|
|
162
|
-
if (ch === ",") {
|
|
163
|
-
// ',' is a cookie separator if we have later first '=', not ';' or ','
|
|
164
|
-
lastComma = pos;
|
|
165
|
-
pos += 1;
|
|
166
|
-
|
|
167
|
-
skipWhitespace();
|
|
168
|
-
nextStart = pos;
|
|
169
|
-
|
|
170
|
-
while (pos < cookiesString.length && notSpecialChar()) {
|
|
171
|
-
pos += 1;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// currently special character
|
|
175
|
-
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
|
|
176
|
-
// we found cookies separator
|
|
177
|
-
cookiesSeparatorFound = true;
|
|
178
|
-
// pos is inside the next cookie, so back up and return it.
|
|
179
|
-
pos = nextStart;
|
|
180
|
-
cookiesStrings.push(cookiesString.substring(start, lastComma));
|
|
181
|
-
start = pos;
|
|
182
|
-
} else {
|
|
183
|
-
// in param ',' or param separator ';',
|
|
184
|
-
// we continue from that comma
|
|
185
|
-
pos = lastComma + 1;
|
|
186
|
-
}
|
|
187
|
-
} else {
|
|
188
|
-
pos += 1;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
if (!cookiesSeparatorFound || pos >= cookiesString.length) {
|
|
193
|
-
cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
return cookiesStrings;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
var setCookie = parse;
|
|
201
|
-
var parse_1 = parse;
|
|
202
|
-
var parseString_1 = parseString;
|
|
203
|
-
var splitCookiesString_1 = splitCookiesString;
|
|
204
|
-
setCookie.parse = parse_1;
|
|
205
|
-
setCookie.parseString = parseString_1;
|
|
206
|
-
setCookie.splitCookiesString = splitCookiesString_1;
|
|
207
|
-
|
|
208
|
-
var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
209
|
-
var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
|
|
210
|
-
__assign = Object.assign || function(t) {
|
|
211
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
212
|
-
s = arguments[i];
|
|
213
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
214
|
-
t[p] = s[p];
|
|
215
|
-
}
|
|
216
|
-
return t;
|
|
217
|
-
};
|
|
218
|
-
return __assign.apply(this, arguments);
|
|
219
|
-
};
|
|
220
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
221
|
-
exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
var isBrowser = function () { return typeof window !== 'undefined'; };
|
|
225
|
-
function hasSameProperties(a, b) {
|
|
226
|
-
var aProps = Object.getOwnPropertyNames(a);
|
|
227
|
-
var bProps = Object.getOwnPropertyNames(b);
|
|
228
|
-
if (aProps.length !== bProps.length) {
|
|
229
|
-
return false;
|
|
230
|
-
}
|
|
231
|
-
for (var i = 0; i < aProps.length; i++) {
|
|
232
|
-
var propName = aProps[i];
|
|
233
|
-
if (a[propName] !== b[propName]) {
|
|
234
|
-
return false;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
return true;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* Compare the cookie and return true if the cookies has equivalent
|
|
241
|
-
* options and the cookies would be overwritten in the browser storage.
|
|
242
|
-
*
|
|
243
|
-
* @param a first Cookie for comparison
|
|
244
|
-
* @param b second Cookie for comparison
|
|
245
|
-
*/
|
|
246
|
-
function areCookiesEqual(a, b) {
|
|
247
|
-
var sameSiteSame = a.sameSite === b.sameSite;
|
|
248
|
-
if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
|
|
249
|
-
sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
|
|
250
|
-
}
|
|
251
|
-
return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Create an instance of the Cookie interface
|
|
255
|
-
*
|
|
256
|
-
* @param name name of the Cookie
|
|
257
|
-
* @param value value of the Cookie
|
|
258
|
-
* @param options Cookie options
|
|
259
|
-
*/
|
|
260
|
-
function createCookie(name, value, options) {
|
|
261
|
-
var sameSite = options.sameSite;
|
|
262
|
-
if (sameSite === true) {
|
|
263
|
-
sameSite = 'strict';
|
|
264
|
-
}
|
|
265
|
-
if (sameSite === undefined || sameSite === false) {
|
|
266
|
-
sameSite = 'lax';
|
|
267
|
-
}
|
|
268
|
-
var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
|
|
269
|
-
delete cookieToSet.encode;
|
|
270
|
-
return __assign({ name: name, value: value }, cookieToSet);
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
*
|
|
274
|
-
* Parses cookies.
|
|
275
|
-
*
|
|
276
|
-
* @param ctx
|
|
277
|
-
* @param options
|
|
278
|
-
*/
|
|
279
|
-
function parseCookies(ctx, options) {
|
|
280
|
-
if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
|
|
281
|
-
return index$4.cookie.parse(ctx.req.headers.cookie, options);
|
|
282
|
-
}
|
|
283
|
-
if (isBrowser()) {
|
|
284
|
-
return index$4.cookie.parse(document.cookie, options);
|
|
285
|
-
}
|
|
286
|
-
return {};
|
|
287
|
-
}
|
|
288
|
-
exports.parseCookies = parseCookies;
|
|
289
|
-
/**
|
|
290
|
-
*
|
|
291
|
-
* Sets a cookie.
|
|
292
|
-
*
|
|
293
|
-
* @param ctx
|
|
294
|
-
* @param name
|
|
295
|
-
* @param value
|
|
296
|
-
* @param options
|
|
297
|
-
*/
|
|
298
|
-
function setCookie$1(ctx, name, value, options) {
|
|
299
|
-
if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
|
|
300
|
-
var cookies = ctx.res.getHeader('Set-Cookie') || [];
|
|
301
|
-
if (typeof cookies === 'string')
|
|
302
|
-
cookies = [cookies];
|
|
303
|
-
if (typeof cookies === 'number')
|
|
304
|
-
cookies = [];
|
|
305
|
-
var parsedCookies = setCookie.parse(cookies);
|
|
306
|
-
var cookiesToSet_1 = [];
|
|
307
|
-
parsedCookies.forEach(function (parsedCookie) {
|
|
308
|
-
if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
|
|
309
|
-
cookiesToSet_1.push(index$4.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({}, parsedCookie)));
|
|
310
|
-
}
|
|
311
|
-
});
|
|
312
|
-
cookiesToSet_1.push(index$4.cookie.serialize(name, value, options));
|
|
313
|
-
if (!ctx.res.finished) {
|
|
314
|
-
ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
if (isBrowser()) {
|
|
318
|
-
if (options && options.httpOnly) {
|
|
319
|
-
throw new Error('Can not set a httpOnly cookie in the browser.');
|
|
320
|
-
}
|
|
321
|
-
document.cookie = index$4.cookie.serialize(name, value, options);
|
|
322
|
-
}
|
|
323
|
-
return {};
|
|
324
|
-
}
|
|
325
|
-
exports.setCookie = setCookie$1;
|
|
326
|
-
/**
|
|
327
|
-
*
|
|
328
|
-
* Destroys a cookie with a particular name.
|
|
329
|
-
*
|
|
330
|
-
* @param ctx
|
|
331
|
-
* @param name
|
|
332
|
-
* @param options
|
|
333
|
-
*/
|
|
334
|
-
function destroyCookie(ctx, name, options) {
|
|
335
|
-
var opts = __assign(__assign({}, (options || {})), { maxAge: -1 });
|
|
336
|
-
if (ctx && ctx.res && ctx.res.setHeader && ctx.res.getHeader) {
|
|
337
|
-
var cookies = ctx.res.getHeader('Set-Cookie') || [];
|
|
338
|
-
if (typeof cookies === 'string')
|
|
339
|
-
cookies = [cookies];
|
|
340
|
-
if (typeof cookies === 'number')
|
|
341
|
-
cookies = [];
|
|
342
|
-
cookies.push(index$4.cookie.serialize(name, '', opts));
|
|
343
|
-
ctx.res.setHeader('Set-Cookie', cookies);
|
|
344
|
-
}
|
|
345
|
-
if (isBrowser()) {
|
|
346
|
-
document.cookie = index$4.cookie.serialize(name, '', opts);
|
|
347
|
-
}
|
|
348
|
-
return {};
|
|
349
|
-
}
|
|
350
|
-
exports.destroyCookie = destroyCookie;
|
|
351
|
-
exports.default = {
|
|
352
|
-
set: setCookie$1,
|
|
353
|
-
get: parseCookies,
|
|
354
|
-
destroy: destroyCookie,
|
|
355
|
-
};
|
|
356
|
-
|
|
357
|
-
});
|
|
358
|
-
|
|
359
|
-
_commonjsHelpers.unwrapExports(dist);
|
|
360
|
-
var dist_1 = dist.destroyCookie;
|
|
361
|
-
var dist_2 = dist.setCookie;
|
|
362
|
-
var dist_3 = dist.parseCookies;
|
|
363
|
-
|
|
364
15
|
var _this = undefined;
|
|
365
16
|
|
|
366
17
|
var getRelatedArticle = function () {
|
|
@@ -420,13 +71,13 @@ var getRelatedArticle = function () {
|
|
|
420
71
|
conditions = '';
|
|
421
72
|
|
|
422
73
|
if (ctx && url) {
|
|
423
|
-
cookies =
|
|
74
|
+
cookies = nookies.parseCookies(ctx);
|
|
424
75
|
prevSlugs = cookies['prevSlugs'];
|
|
425
76
|
|
|
426
77
|
if (!!prevSlugs) {
|
|
427
|
-
|
|
78
|
+
nookies.setCookie(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
|
|
428
79
|
conditions = '&& !(url.current in [' + prevSlugs + '])';
|
|
429
|
-
} else
|
|
80
|
+
} else nookies.setCookie(ctx, 'prevSlugs', '"' + url + '"', {});
|
|
430
81
|
}
|
|
431
82
|
relatedArticleQuery = getQuery('related', conditions, '', articleCount);
|
|
432
83
|
_context.next = 12;
|
|
@@ -16,18 +16,18 @@ require('./web.dom.iterable-a0e279c1.js');
|
|
|
16
16
|
require('./typeof-725500bc.js');
|
|
17
17
|
require('./_is-array-754e012d.js');
|
|
18
18
|
require('react');
|
|
19
|
-
require('./index-
|
|
19
|
+
require('./index-2d0a4911.js');
|
|
20
20
|
require('prop-types');
|
|
21
21
|
require('react-bootstrap/Row');
|
|
22
22
|
require('react-bootstrap/Col');
|
|
23
|
-
require('./moment-
|
|
23
|
+
require('./moment-66a6a284.js');
|
|
24
24
|
require('next/router');
|
|
25
25
|
require('./isSymbol-04666465.js');
|
|
26
26
|
require('./debounce-eb287781.js');
|
|
27
27
|
require('react-dom');
|
|
28
|
-
require('./index-
|
|
28
|
+
require('./index-b5eb3ff8.js');
|
|
29
29
|
require('./index-da796b8c.js');
|
|
30
|
-
require('./main-
|
|
30
|
+
require('./main-b6c96c8d.js');
|
|
31
31
|
require('./entities-310b46ee.js');
|
|
32
32
|
require('./stringify-7c5aff47.js');
|
|
33
33
|
require('./slicedToArray-8f385299.js');
|
|
@@ -35,12 +35,12 @@ require('./asyncToGenerator-533d476a.js');
|
|
|
35
35
|
require('./_set-species-f92c67c5.js');
|
|
36
36
|
require('./beam-7217b7e7.js');
|
|
37
37
|
require('./AdSlot.js');
|
|
38
|
-
require('./BlockContent-
|
|
38
|
+
require('./BlockContent-88f69acd.js');
|
|
39
39
|
require('./smoothscroll-95231a70.js');
|
|
40
40
|
require('./GroupDeck.js');
|
|
41
41
|
require('react-bootstrap');
|
|
42
42
|
require('react-bootstrap/Button');
|
|
43
|
-
var getSerializers = require('./index-
|
|
43
|
+
var getSerializers = require('./index-8c9e8ca7.js');
|
|
44
44
|
require('./util-f2c1b65b.js');
|
|
45
45
|
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
46
46
|
require('react-bootstrap/Pagination');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
4
|
-
var _extends
|
|
4
|
+
var _extends = require('./extends-60837c34.js');
|
|
5
5
|
|
|
6
6
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
7
7
|
var cp_url = '';
|
|
@@ -133,7 +133,7 @@ var getTargeting = function getTargeting(props) {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
if (props.cache && props.cache.hyperTargeting) {
|
|
136
|
-
targeting = _extends
|
|
136
|
+
targeting = _extends._extends({}, targeting, { campaign_id: props.cache.hyperTargeting });
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
if (position && position.length) {
|
package/dist/cjs/getTargeting.js
CHANGED
|
@@ -8,7 +8,7 @@ require('./toConsumableArray-9a3476fe.js');
|
|
|
8
8
|
require('./core.get-iterator-method-f62321d4.js');
|
|
9
9
|
require('./_object-pie-68c5bcbc.js');
|
|
10
10
|
require('./extends-60837c34.js');
|
|
11
|
-
var getTargeting = require('./getTargeting-
|
|
11
|
+
var getTargeting = require('./getTargeting-fee8c429.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -728,6 +728,8 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
728
728
|
|
|
729
729
|
return new Promise(function (resolve) {
|
|
730
730
|
_this3.getGoogletag().then(function (googletag) {
|
|
731
|
+
_this3.configureInitialOptions(googletag);
|
|
732
|
+
|
|
731
733
|
slotsToInitialize.forEach(function (currentSlotId) {
|
|
732
734
|
registeredSlots[currentSlotId].loading = false;
|
|
733
735
|
googletag.cmd.push(function () {
|
|
@@ -791,14 +793,25 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
791
793
|
});
|
|
792
794
|
});
|
|
793
795
|
},
|
|
794
|
-
|
|
796
|
+
// configure those gpt parameters that need to be set before pubsads service
|
|
797
|
+
// initialization.
|
|
798
|
+
configureInitialOptions: function configureInitialOptions(googletag) {
|
|
795
799
|
var _this4 = this;
|
|
796
800
|
|
|
801
|
+
googletag.cmd.push(function () {
|
|
802
|
+
if (_this4.disableInitialLoadIsEnabled()) {
|
|
803
|
+
googletag.pubads().disableInitialLoad();
|
|
804
|
+
}
|
|
805
|
+
});
|
|
806
|
+
},
|
|
807
|
+
configureOptions: function configureOptions(googletag) {
|
|
808
|
+
var _this5 = this;
|
|
809
|
+
|
|
797
810
|
googletag.cmd.push(function () {
|
|
798
811
|
var pubadsService = googletag.pubads();
|
|
799
|
-
pubadsService.setRequestNonPersonalizedAds(
|
|
812
|
+
pubadsService.setRequestNonPersonalizedAds(_this5.personalizedAdsEnabled() ? 0 : 1);
|
|
800
813
|
|
|
801
|
-
var targetingArguments =
|
|
814
|
+
var targetingArguments = _this5.getTargetingArguments(); // set global targetting arguments
|
|
802
815
|
|
|
803
816
|
|
|
804
817
|
Object.keys(targetingArguments).forEach(function (varName) {
|
|
@@ -807,34 +820,28 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
807
820
|
}
|
|
808
821
|
}); // set global adSense attributes
|
|
809
822
|
|
|
810
|
-
var adSenseAttributes =
|
|
823
|
+
var adSenseAttributes = _this5.getAdSenseAttributes();
|
|
811
824
|
|
|
812
825
|
Object.keys(adSenseAttributes).forEach(function (key) {
|
|
813
826
|
pubadsService.set(key, adSenseAttributes[key]);
|
|
814
827
|
});
|
|
815
828
|
|
|
816
|
-
if (
|
|
817
|
-
var
|
|
818
|
-
|
|
819
|
-
var config = _this4.getLazyLoadConfig();
|
|
829
|
+
if (_this5.lazyLoadIsEnabled()) {
|
|
830
|
+
var config = _this5.getLazyLoadConfig();
|
|
820
831
|
|
|
821
|
-
if (config
|
|
822
|
-
|
|
832
|
+
if (config) {
|
|
833
|
+
pubadsService.enableLazyLoad(config);
|
|
834
|
+
} else {
|
|
835
|
+
pubadsService.enableLazyLoad();
|
|
823
836
|
}
|
|
824
|
-
|
|
825
|
-
pubadsService.enableLazyLoad.call(args);
|
|
826
837
|
}
|
|
827
838
|
|
|
828
|
-
if (
|
|
839
|
+
if (_this5.singleRequestIsEnabled()) {
|
|
829
840
|
pubadsService.enableSingleRequest();
|
|
830
841
|
}
|
|
831
842
|
|
|
832
|
-
if (
|
|
833
|
-
pubadsService.
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
if (_this4.collapseEmptyDivs === true || _this4.collapseEmptyDivs === false) {
|
|
837
|
-
pubadsService.collapseEmptyDivs(_this4.collapseEmptyDivs);
|
|
843
|
+
if (_this5.collapseEmptyDivs === true || _this5.collapseEmptyDivs === false) {
|
|
844
|
+
pubadsService.collapseEmptyDivs(_this5.collapseEmptyDivs);
|
|
838
845
|
}
|
|
839
846
|
});
|
|
840
847
|
},
|
|
@@ -876,10 +883,10 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
876
883
|
}
|
|
877
884
|
},
|
|
878
885
|
gptRefreshAds: function gptRefreshAds(slots) {
|
|
879
|
-
var
|
|
886
|
+
var _this6 = this;
|
|
880
887
|
|
|
881
888
|
return this.getGoogletag().then(function (googletag) {
|
|
882
|
-
|
|
889
|
+
_this6.configureOptions(googletag);
|
|
883
890
|
|
|
884
891
|
googletag.cmd.push(function () {
|
|
885
892
|
var pubadsService = googletag.pubads();
|
|
@@ -890,14 +897,14 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
890
897
|
});
|
|
891
898
|
},
|
|
892
899
|
reload: function reload() {
|
|
893
|
-
var
|
|
900
|
+
var _this7 = this;
|
|
894
901
|
|
|
895
902
|
return this.destroyGPTSlots.apply(this, arguments).then(function () {
|
|
896
|
-
return
|
|
903
|
+
return _this7.load();
|
|
897
904
|
});
|
|
898
905
|
},
|
|
899
906
|
destroyGPTSlots: function destroyGPTSlots() {
|
|
900
|
-
var
|
|
907
|
+
var _this8 = this;
|
|
901
908
|
|
|
902
909
|
for (var _len4 = arguments.length, slotsToDestroy = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
903
910
|
slotsToDestroy[_key4] = arguments[_key4];
|
|
@@ -917,7 +924,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
917
924
|
slots.push(slot);
|
|
918
925
|
}
|
|
919
926
|
|
|
920
|
-
|
|
927
|
+
_this8.getGoogletag().then(function (googletag) {
|
|
921
928
|
googletag.cmd.push(function () {
|
|
922
929
|
if (managerAlreadyInitialized === true) {
|
|
923
930
|
if (slotsToDestroy.length > 0) {
|
|
@@ -940,7 +947,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
940
947
|
});
|
|
941
948
|
},
|
|
942
949
|
registerSlot: function registerSlot(_ref) {
|
|
943
|
-
var
|
|
950
|
+
var _this9 = this;
|
|
944
951
|
|
|
945
952
|
var slotId = _ref.slotId,
|
|
946
953
|
dfpNetworkId = _ref.dfpNetworkId,
|
|
@@ -979,7 +986,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
979
986
|
gptSlot = slot.gptSlot;
|
|
980
987
|
|
|
981
988
|
if (loading === false && !gptSlot) {
|
|
982
|
-
|
|
989
|
+
_this9.load(slotId);
|
|
983
990
|
}
|
|
984
991
|
}
|
|
985
992
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
|
-
var moment = require('./moment-
|
|
4
|
+
var moment = require('./moment-66a6a284.js');
|
|
5
5
|
|
|
6
6
|
var momentTimezone = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7
7
|
//! moment-timezone.js
|