@mjhls/mjh-framework 1.0.863-beta.1 → 1.0.863
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 +10 -9
- package/dist/cjs/AD300x250.js +30 -30
- package/dist/cjs/AD300x250x600.js +30 -30
- package/dist/cjs/AD728x90.js +33 -33
- package/dist/cjs/ADFloatingFooter.js +32 -32
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +32 -32
- package/dist/cjs/{ADInfeed-98c71bcd.js → ADInfeed-f8324b70.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +32 -32
- package/dist/cjs/ADSponsoredResources.js +32 -32
- package/dist/cjs/ADWebcast.js +32 -32
- package/dist/cjs/ADWelcome.js +33 -33
- package/dist/cjs/{ADlgInfeed-9de32585.js → ADlgInfeed-98d7c699.js} +11 -10
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +35 -35
- package/dist/cjs/AdSlotsProvider.js +20 -912
- package/dist/cjs/AlgoliaSearch.js +60 -14023
- package/dist/cjs/AlphabeticList.js +26 -25
- package/dist/cjs/ArticleCarousel.js +24 -23
- package/dist/cjs/ArticleProgramLandingPage.js +62 -62
- package/dist/cjs/ArticleSeriesLandingPage.js +43 -43
- package/dist/cjs/ArticleSeriesListing.js +62 -62
- package/dist/cjs/Auth.js +683 -1507
- package/dist/cjs/AuthWrapper.js +310 -268
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-c21aac7f.js} +14 -13
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-36e54d77.js} +56 -55
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/CMEDeck.js +83 -84
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +36 -33
- package/dist/cjs/Column3.js +61 -59
- package/dist/cjs/ConferenceArticleCard.js +23 -22
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +99 -96
- package/dist/cjs/DeckQueue.js +92 -89
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-3f0ed4c8.js} +34 -34
- package/dist/cjs/EventsDeck.js +142 -135
- package/dist/cjs/ExternalResources.js +80 -80
- package/dist/cjs/Feature.js +26 -24
- package/dist/cjs/ForbesHero.js +43 -42
- package/dist/cjs/GridContent.js +238 -234
- package/dist/cjs/GridHero.js +45 -44
- package/dist/cjs/GroupDeck.js +60 -59
- package/dist/cjs/HamMagazine.js +137 -132
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +72 -72
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/IssueContentDeck.js +78 -73
- package/dist/cjs/IssueDeck.js +77 -72
- package/dist/cjs/IssueLanding.js +67 -67
- package/dist/cjs/LeftNav.js +40 -39
- package/dist/cjs/MasterDeck.js +72 -72
- package/dist/cjs/MediaSeriesLanding.js +1186 -1095
- package/dist/cjs/NavDvm.js +79 -74
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +143 -138
- package/dist/cjs/NavNative.js +138 -130
- package/dist/cjs/OncliveHero.js +19 -19
- package/dist/cjs/OncliveLargeHero.js +73 -72
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +137 -3945
- package/dist/cjs/PdfDownload.js +10 -9
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PubSection.js +43 -43
- package/dist/cjs/PubToc.js +16 -15
- package/dist/cjs/PublicationDeck.js +67 -62
- package/dist/cjs/PublicationLanding.js +112 -108
- package/dist/cjs/QueueDeckExpanded.js +310 -311
- package/dist/cjs/RecentNews.js +23 -22
- package/dist/cjs/RelatedContent.js +27 -26
- package/dist/cjs/RelatedTopicsDropdown.js +22 -19
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +22 -18
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +38 -39
- package/dist/cjs/{SeriesSlider-8bbc989f.js → SeriesSlider-e3e8ead7.js} +36 -35
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +37 -36
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-948138c7.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +64 -59
- package/dist/cjs/TaxonomyDescription.js +55 -55
- package/dist/cjs/TemplateNormal.js +74 -74
- package/dist/cjs/ThumbnailCard.js +23 -21
- package/dist/cjs/Ustream.js +31 -30
- package/dist/cjs/VerticalHero.js +17 -16
- package/dist/cjs/VideoProgramLandingPage.js +79 -76
- package/dist/cjs/VideoSeriesCard.js +32 -31
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +52 -52
- package/dist/cjs/VideoSeriesListing.js +79 -79
- package/dist/cjs/View.js +266 -264
- package/dist/cjs/YahooHero.js +42 -41
- package/dist/cjs/YoutubeGroup.js +63 -62
- package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
- package/dist/cjs/{extends-0a918631.js → extends-29bdbc6d.js} +7 -7
- package/dist/cjs/faundadb.js +21 -21
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +425 -12
- package/dist/cjs/getRootDocGroup.js +8 -8
- package/dist/cjs/getSerializers.js +45 -46
- package/dist/cjs/{getTargeting-f1821260.js → getTargeting-32d1c2e4.js} +3 -3
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-98e01cb9.js → index-0e4427c8.js} +479 -13
- package/dist/cjs/{index-a1e54356.js → index-3c2fa34e.js} +1088 -1062
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
- package/dist/cjs/{index-be0c82be.js → index-efca863c.js} +36 -30
- package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-90433435.js → index.esm-00a6aade.js} +7 -16
- package/dist/cjs/{index.esm-4d410430.js → index.esm-2bb721c8.js} +21 -21
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-c1e16606.js} +4 -7
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-f27f80d9.js} +6 -13
- package/dist/cjs/index.js +171 -167
- package/dist/cjs/{inherits-1f5a1c72.js → inherits-c2065b95.js} +20 -20
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
- package/dist/cjs/main-f1c77adb.js +973 -0
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5d1bc3b3.js} +14 -14
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-725500bc.js → typeof-88a668c5.js} +36 -36
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-b2b9092f.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.js} +3 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +23 -24
- package/dist/esm/AD300x250x600.js +23 -24
- package/dist/esm/AD728x90.js +26 -27
- package/dist/esm/ADFloatingFooter.js +22 -23
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +22 -23
- package/dist/esm/{ADInfeed-1cc9d817.js → ADInfeed-a71a3972.js} +6 -6
- package/dist/esm/ADSkyscraper.js +22 -23
- package/dist/esm/ADSponsoredResources.js +22 -23
- package/dist/esm/ADWebcast.js +22 -23
- package/dist/esm/ADWelcome.js +19 -20
- package/dist/esm/{ADlgInfeed-8c4f129e.js → ADlgInfeed-d94f1437.js} +4 -4
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +23 -24
- package/dist/esm/AdSlotsProvider.js +16 -909
- package/dist/esm/AlgoliaSearch.js +29 -13993
- package/dist/esm/AlphabeticList.js +10 -10
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +49 -50
- package/dist/esm/ArticleSeriesLandingPage.js +32 -33
- package/dist/esm/ArticleSeriesListing.js +34 -35
- package/dist/esm/Auth.js +598 -1426
- package/dist/esm/AuthWrapper.js +287 -246
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-30aeba69.js} +1 -1
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-c99c9a8d.js} +34 -34
- package/dist/esm/Breadcrumbs.js +7 -7
- package/dist/esm/CMEDeck.js +24 -25
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +21 -21
- package/dist/esm/Column3.js +38 -39
- package/dist/esm/ConferenceArticleCard.js +7 -7
- package/dist/esm/DeckContent.js +49 -50
- package/dist/esm/DeckQueue.js +48 -49
- package/dist/esm/{Dfp-b7236041.js → Dfp-be030f2a.js} +14 -15
- package/dist/esm/EventsDeck.js +50 -50
- package/dist/esm/ExternalResources.js +47 -48
- package/dist/esm/Feature.js +4 -4
- package/dist/esm/ForbesHero.js +12 -12
- package/dist/esm/GridContent.js +90 -91
- package/dist/esm/GridHero.js +13 -13
- package/dist/esm/GroupDeck.js +14 -14
- package/dist/esm/HamMagazine.js +30 -30
- package/dist/esm/Hero.js +4 -4
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +46 -47
- package/dist/esm/HorizontalHero.js +5 -5
- package/dist/esm/IssueContentDeck.js +27 -27
- package/dist/esm/IssueDeck.js +37 -37
- package/dist/esm/IssueLanding.js +55 -56
- package/dist/esm/LeftNav.js +21 -22
- package/dist/esm/MasterDeck.js +36 -37
- package/dist/esm/MediaSeriesLanding.js +733 -645
- package/dist/esm/NavDvm.js +16 -16
- package/dist/esm/NavMagazine.js +34 -34
- package/dist/esm/NavNative.js +34 -34
- package/dist/esm/OncliveHero.js +4 -5
- package/dist/esm/OncliveLargeHero.js +13 -13
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +87 -3895
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +34 -35
- package/dist/esm/PubToc.js +8 -8
- package/dist/esm/PublicationDeck.js +24 -24
- package/dist/esm/PublicationLanding.js +49 -49
- package/dist/esm/QueueDeckExpanded.js +38 -39
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +7 -7
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +8 -8
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +20 -21
- package/dist/esm/{SeriesSlider-a866bb21.js → SeriesSlider-ae17159f.js} +10 -10
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialSearchComponent-03c3e869.js → SocialSearchComponent-db963c3e.js} +12 -12
- package/dist/esm/TaxonomyCard.js +25 -25
- package/dist/esm/TaxonomyDescription.js +45 -46
- package/dist/esm/TemplateNormal.js +49 -50
- package/dist/esm/ThumbnailCard.js +7 -7
- package/dist/esm/Ustream.js +14 -14
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoProgramLandingPage.js +53 -54
- package/dist/esm/VideoSeriesCard.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +9 -9
- package/dist/esm/VideoSeriesLandingPage.js +38 -39
- package/dist/esm/VideoSeriesListing.js +35 -36
- package/dist/esm/View.js +90 -92
- package/dist/esm/YahooHero.js +15 -15
- package/dist/esm/YoutubeGroup.js +22 -22
- package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-57a70a56.js} +5 -4
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
- package/dist/esm/{extends-6f2fcc99.js → extends-60e0e1c6.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +425 -12
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -46
- package/dist/esm/{getTargeting-bd800589.js → getTargeting-cf2724e3.js} +2 -2
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -8
- package/dist/esm/{index-73819142.js → index-0dbff1d1.js} +36 -30
- package/dist/esm/{index-41a678ea.js → index-5cc7b406.js} +469 -4
- package/dist/esm/{index-5f7e79e7.js → index-755f2cc2.js} +6 -6
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index-a1c5f00a.js → index-fce5c5b6.js} +653 -637
- package/dist/esm/{index.es-29c1cef5.js → index.es-a6137319.js} +23 -5
- package/dist/esm/{index.esm-fd746768.js → index.esm-37268dca.js} +4 -5
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-9b042655.js} +4 -7
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-d4932dea.js} +6 -13
- package/dist/esm/{index.esm-29e48d38.js → index.esm-f6156a57.js} +7 -16
- package/dist/esm/index.js +126 -125
- package/dist/esm/{inherits-cf8dde54.js → inherits-a41fe93f.js} +19 -19
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
- package/dist/esm/main-d4165069.js +961 -0
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-9be47857.js} +16 -16
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-6435ba1c.js → typeof-a286cf0c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-33a866b6.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
- package/package.json +2 -2
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-e2e62963.js +0 -89
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-aaa2dae0.js +0 -85
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- package/dist/esm/main-e4a934b2.js +0 -851
- package/dist/esm/stringify-4330ccdc.js +0 -15
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var isSymbol = require('./isSymbol-
|
|
4
|
-
var eq = require('./eq-
|
|
3
|
+
var isSymbol = require('./isSymbol-03abbdf0.js');
|
|
4
|
+
var eq = require('./eq-5fc26c07.js');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Checks if `value` is classified as an `Array` object.
|
|
@@ -82,10 +82,10 @@ function isMasked(func) {
|
|
|
82
82
|
var _isMasked = isMasked;
|
|
83
83
|
|
|
84
84
|
/** Used for built-in method references. */
|
|
85
|
-
var funcProto = Function.prototype;
|
|
85
|
+
var funcProto$1 = Function.prototype;
|
|
86
86
|
|
|
87
87
|
/** Used to resolve the decompiled source of functions. */
|
|
88
|
-
var funcToString = funcProto.toString;
|
|
88
|
+
var funcToString$1 = funcProto$1.toString;
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* Converts `func` to its source code.
|
|
@@ -97,7 +97,7 @@ var funcToString = funcProto.toString;
|
|
|
97
97
|
function toSource(func) {
|
|
98
98
|
if (func != null) {
|
|
99
99
|
try {
|
|
100
|
-
return funcToString.call(func);
|
|
100
|
+
return funcToString$1.call(func);
|
|
101
101
|
} catch (e) {}
|
|
102
102
|
try {
|
|
103
103
|
return (func + '');
|
|
@@ -118,18 +118,18 @@ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
|
118
118
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
119
119
|
|
|
120
120
|
/** Used for built-in method references. */
|
|
121
|
-
var funcProto
|
|
122
|
-
objectProto = Object.prototype;
|
|
121
|
+
var funcProto = Function.prototype,
|
|
122
|
+
objectProto$2 = Object.prototype;
|
|
123
123
|
|
|
124
124
|
/** Used to resolve the decompiled source of functions. */
|
|
125
|
-
var funcToString
|
|
125
|
+
var funcToString = funcProto.toString;
|
|
126
126
|
|
|
127
127
|
/** Used to check objects for own properties. */
|
|
128
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
128
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
129
129
|
|
|
130
130
|
/** Used to detect if a method is native. */
|
|
131
131
|
var reIsNative = RegExp('^' +
|
|
132
|
-
funcToString
|
|
132
|
+
funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
|
|
133
133
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
134
134
|
);
|
|
135
135
|
|
|
@@ -218,7 +218,7 @@ function hashDelete(key) {
|
|
|
218
218
|
var _hashDelete = hashDelete;
|
|
219
219
|
|
|
220
220
|
/** Used to stand-in for `undefined` hash values. */
|
|
221
|
-
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
221
|
+
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
222
222
|
|
|
223
223
|
/** Used for built-in method references. */
|
|
224
224
|
var objectProto$1 = Object.prototype;
|
|
@@ -239,7 +239,7 @@ function hashGet(key) {
|
|
|
239
239
|
var data = this.__data__;
|
|
240
240
|
if (_nativeCreate) {
|
|
241
241
|
var result = data[key];
|
|
242
|
-
return result === HASH_UNDEFINED ? undefined : result;
|
|
242
|
+
return result === HASH_UNDEFINED$1 ? undefined : result;
|
|
243
243
|
}
|
|
244
244
|
return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
|
|
245
245
|
}
|
|
@@ -247,10 +247,10 @@ function hashGet(key) {
|
|
|
247
247
|
var _hashGet = hashGet;
|
|
248
248
|
|
|
249
249
|
/** Used for built-in method references. */
|
|
250
|
-
var objectProto
|
|
250
|
+
var objectProto = Object.prototype;
|
|
251
251
|
|
|
252
252
|
/** Used to check objects for own properties. */
|
|
253
|
-
var hasOwnProperty
|
|
253
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
254
254
|
|
|
255
255
|
/**
|
|
256
256
|
* Checks if a hash value for `key` exists.
|
|
@@ -263,13 +263,13 @@ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
|
263
263
|
*/
|
|
264
264
|
function hashHas(key) {
|
|
265
265
|
var data = this.__data__;
|
|
266
|
-
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty
|
|
266
|
+
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
var _hashHas = hashHas;
|
|
270
270
|
|
|
271
271
|
/** Used to stand-in for `undefined` hash values. */
|
|
272
|
-
var HASH_UNDEFINED
|
|
272
|
+
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
273
273
|
|
|
274
274
|
/**
|
|
275
275
|
* Sets the hash `key` to `value`.
|
|
@@ -284,7 +284,7 @@ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
|
284
284
|
function hashSet(key, value) {
|
|
285
285
|
var data = this.__data__;
|
|
286
286
|
this.size += this.has(key) ? 0 : 1;
|
|
287
|
-
data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED
|
|
287
|
+
data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
|
|
288
288
|
return this;
|
|
289
289
|
}
|
|
290
290
|
|
|
@@ -767,7 +767,7 @@ function arrayMap(array, iteratee) {
|
|
|
767
767
|
var _arrayMap = arrayMap;
|
|
768
768
|
|
|
769
769
|
/** Used as references for various `Number` constants. */
|
|
770
|
-
var INFINITY = 1 / 0;
|
|
770
|
+
var INFINITY$1 = 1 / 0;
|
|
771
771
|
|
|
772
772
|
/** Used to convert symbols to primitives and strings. */
|
|
773
773
|
var symbolProto = isSymbol._Symbol ? isSymbol._Symbol.prototype : undefined,
|
|
@@ -794,7 +794,7 @@ function baseToString(value) {
|
|
|
794
794
|
return symbolToString ? symbolToString.call(value) : '';
|
|
795
795
|
}
|
|
796
796
|
var result = (value + '');
|
|
797
|
-
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
797
|
+
return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
|
|
798
798
|
}
|
|
799
799
|
|
|
800
800
|
var _baseToString = baseToString;
|
|
@@ -844,7 +844,7 @@ function castPath(value, object) {
|
|
|
844
844
|
var _castPath = castPath;
|
|
845
845
|
|
|
846
846
|
/** Used as references for various `Number` constants. */
|
|
847
|
-
var INFINITY
|
|
847
|
+
var INFINITY = 1 / 0;
|
|
848
848
|
|
|
849
849
|
/**
|
|
850
850
|
* Converts `value` to a string key if it's not a string or symbol.
|
|
@@ -858,7 +858,7 @@ function toKey(value) {
|
|
|
858
858
|
return value;
|
|
859
859
|
}
|
|
860
860
|
var result = (value + '');
|
|
861
|
-
return (result == '0' && (1 / value) == -INFINITY
|
|
861
|
+
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
862
862
|
}
|
|
863
863
|
|
|
864
864
|
var _toKey = toKey;
|
|
@@ -1,15 +1,428 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('./
|
|
4
|
-
require('./
|
|
5
|
-
require('./
|
|
6
|
-
require('./_library-dd23b178.js');
|
|
7
|
-
require('./_iter-detect-60b2f026.js');
|
|
8
|
-
require('./core.get-iterator-method-f62321d4.js');
|
|
9
|
-
require('./web.dom.iterable-a0e279c1.js');
|
|
10
|
-
var asyncToGenerator = require('./asyncToGenerator-140e5f89.js');
|
|
11
|
-
var nookies = require('nookies');
|
|
3
|
+
var asyncToGenerator = require('./asyncToGenerator-58c289d9.js');
|
|
4
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
5
|
+
var index = require('./index-bd6c9f56.js');
|
|
12
6
|
var getQuery = require('./getQuery.js');
|
|
7
|
+
require('./es6.string.iterator-c2573ffd.js');
|
|
8
|
+
require('./_to-object-6de10e57.js');
|
|
9
|
+
require('./web.dom.iterable-46657b5c.js');
|
|
10
|
+
require('./_library-dd23b178.js');
|
|
11
|
+
require('./core.get-iterator-method-f474eacc.js');
|
|
12
|
+
require('./_iter-detect-55a5657a.js');
|
|
13
|
+
|
|
14
|
+
var defaultParseOptions = {
|
|
15
|
+
decodeValues: true,
|
|
16
|
+
map: false,
|
|
17
|
+
silent: false,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
function isNonEmptyString(str) {
|
|
21
|
+
return typeof str === "string" && !!str.trim();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function parseString(setCookieValue, options) {
|
|
25
|
+
var parts = setCookieValue.split(";").filter(isNonEmptyString);
|
|
26
|
+
var nameValue = parts.shift().split("=");
|
|
27
|
+
var name = nameValue.shift();
|
|
28
|
+
var value = nameValue.join("="); // everything after the first =, joined by a "=" if there was more than one part
|
|
29
|
+
|
|
30
|
+
options = options
|
|
31
|
+
? Object.assign({}, defaultParseOptions, options)
|
|
32
|
+
: defaultParseOptions;
|
|
33
|
+
|
|
34
|
+
try {
|
|
35
|
+
value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
|
|
36
|
+
} catch (e) {
|
|
37
|
+
console.error(
|
|
38
|
+
"set-cookie-parser encountered an error while decoding a cookie with value '" +
|
|
39
|
+
value +
|
|
40
|
+
"'. Set options.decodeValues to false to disable this feature.",
|
|
41
|
+
e
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
var cookie = {
|
|
46
|
+
name: name, // grab everything before the first =
|
|
47
|
+
value: value,
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
parts.forEach(function (part) {
|
|
51
|
+
var sides = part.split("=");
|
|
52
|
+
var key = sides.shift().trimLeft().toLowerCase();
|
|
53
|
+
var value = sides.join("=");
|
|
54
|
+
if (key === "expires") {
|
|
55
|
+
cookie.expires = new Date(value);
|
|
56
|
+
} else if (key === "max-age") {
|
|
57
|
+
cookie.maxAge = parseInt(value, 10);
|
|
58
|
+
} else if (key === "secure") {
|
|
59
|
+
cookie.secure = true;
|
|
60
|
+
} else if (key === "httponly") {
|
|
61
|
+
cookie.httpOnly = true;
|
|
62
|
+
} else if (key === "samesite") {
|
|
63
|
+
cookie.sameSite = value;
|
|
64
|
+
} else {
|
|
65
|
+
cookie[key] = value;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
return cookie;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function parse(input, options) {
|
|
73
|
+
options = options
|
|
74
|
+
? Object.assign({}, defaultParseOptions, options)
|
|
75
|
+
: defaultParseOptions;
|
|
76
|
+
|
|
77
|
+
if (!input) {
|
|
78
|
+
if (!options.map) {
|
|
79
|
+
return [];
|
|
80
|
+
} else {
|
|
81
|
+
return {};
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (input.headers && input.headers["set-cookie"]) {
|
|
86
|
+
// fast-path for node.js (which automatically normalizes header names to lower-case
|
|
87
|
+
input = input.headers["set-cookie"];
|
|
88
|
+
} else if (input.headers) {
|
|
89
|
+
// slow-path for other environments - see #25
|
|
90
|
+
var sch =
|
|
91
|
+
input.headers[
|
|
92
|
+
Object.keys(input.headers).find(function (key) {
|
|
93
|
+
return key.toLowerCase() === "set-cookie";
|
|
94
|
+
})
|
|
95
|
+
];
|
|
96
|
+
// warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
|
|
97
|
+
if (!sch && input.headers.cookie && !options.silent) {
|
|
98
|
+
console.warn(
|
|
99
|
+
"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."
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
input = sch;
|
|
103
|
+
}
|
|
104
|
+
if (!Array.isArray(input)) {
|
|
105
|
+
input = [input];
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
options = options
|
|
109
|
+
? Object.assign({}, defaultParseOptions, options)
|
|
110
|
+
: defaultParseOptions;
|
|
111
|
+
|
|
112
|
+
if (!options.map) {
|
|
113
|
+
return input.filter(isNonEmptyString).map(function (str) {
|
|
114
|
+
return parseString(str, options);
|
|
115
|
+
});
|
|
116
|
+
} else {
|
|
117
|
+
var cookies = {};
|
|
118
|
+
return input.filter(isNonEmptyString).reduce(function (cookies, str) {
|
|
119
|
+
var cookie = parseString(str, options);
|
|
120
|
+
cookies[cookie.name] = cookie;
|
|
121
|
+
return cookies;
|
|
122
|
+
}, cookies);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/*
|
|
127
|
+
Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
|
|
128
|
+
that are within a single set-cookie field-value, such as in the Expires portion.
|
|
129
|
+
|
|
130
|
+
This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
|
|
131
|
+
Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
|
|
132
|
+
React Native's fetch does this for *every* header, including set-cookie.
|
|
133
|
+
|
|
134
|
+
Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
|
|
135
|
+
Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
|
|
136
|
+
*/
|
|
137
|
+
function splitCookiesString(cookiesString) {
|
|
138
|
+
if (Array.isArray(cookiesString)) {
|
|
139
|
+
return cookiesString;
|
|
140
|
+
}
|
|
141
|
+
if (typeof cookiesString !== "string") {
|
|
142
|
+
return [];
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
var cookiesStrings = [];
|
|
146
|
+
var pos = 0;
|
|
147
|
+
var start;
|
|
148
|
+
var ch;
|
|
149
|
+
var lastComma;
|
|
150
|
+
var nextStart;
|
|
151
|
+
var cookiesSeparatorFound;
|
|
152
|
+
|
|
153
|
+
function skipWhitespace() {
|
|
154
|
+
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
|
|
155
|
+
pos += 1;
|
|
156
|
+
}
|
|
157
|
+
return pos < cookiesString.length;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function notSpecialChar() {
|
|
161
|
+
ch = cookiesString.charAt(pos);
|
|
162
|
+
|
|
163
|
+
return ch !== "=" && ch !== ";" && ch !== ",";
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
while (pos < cookiesString.length) {
|
|
167
|
+
start = pos;
|
|
168
|
+
cookiesSeparatorFound = false;
|
|
169
|
+
|
|
170
|
+
while (skipWhitespace()) {
|
|
171
|
+
ch = cookiesString.charAt(pos);
|
|
172
|
+
if (ch === ",") {
|
|
173
|
+
// ',' is a cookie separator if we have later first '=', not ';' or ','
|
|
174
|
+
lastComma = pos;
|
|
175
|
+
pos += 1;
|
|
176
|
+
|
|
177
|
+
skipWhitespace();
|
|
178
|
+
nextStart = pos;
|
|
179
|
+
|
|
180
|
+
while (pos < cookiesString.length && notSpecialChar()) {
|
|
181
|
+
pos += 1;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
// currently special character
|
|
185
|
+
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
|
|
186
|
+
// we found cookies separator
|
|
187
|
+
cookiesSeparatorFound = true;
|
|
188
|
+
// pos is inside the next cookie, so back up and return it.
|
|
189
|
+
pos = nextStart;
|
|
190
|
+
cookiesStrings.push(cookiesString.substring(start, lastComma));
|
|
191
|
+
start = pos;
|
|
192
|
+
} else {
|
|
193
|
+
// in param ',' or param separator ';',
|
|
194
|
+
// we continue from that comma
|
|
195
|
+
pos = lastComma + 1;
|
|
196
|
+
}
|
|
197
|
+
} else {
|
|
198
|
+
pos += 1;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
if (!cookiesSeparatorFound || pos >= cookiesString.length) {
|
|
203
|
+
cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
return cookiesStrings;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
var setCookie = parse;
|
|
211
|
+
var parse_1 = parse;
|
|
212
|
+
var parseString_1 = parseString;
|
|
213
|
+
var splitCookiesString_1 = splitCookiesString;
|
|
214
|
+
setCookie.parse = parse_1;
|
|
215
|
+
setCookie.parseString = parseString_1;
|
|
216
|
+
setCookie.splitCookiesString = splitCookiesString_1;
|
|
217
|
+
|
|
218
|
+
var utils = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
219
|
+
var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
|
|
220
|
+
__assign = Object.assign || function(t) {
|
|
221
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
222
|
+
s = arguments[i];
|
|
223
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
224
|
+
t[p] = s[p];
|
|
225
|
+
}
|
|
226
|
+
return t;
|
|
227
|
+
};
|
|
228
|
+
return __assign.apply(this, arguments);
|
|
229
|
+
};
|
|
230
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
231
|
+
exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
|
|
232
|
+
/**
|
|
233
|
+
* Tells whether we are in a browser or server.
|
|
234
|
+
*/
|
|
235
|
+
function isBrowser() {
|
|
236
|
+
return typeof window !== 'undefined';
|
|
237
|
+
}
|
|
238
|
+
exports.isBrowser = isBrowser;
|
|
239
|
+
/**
|
|
240
|
+
* Create an instance of the Cookie interface
|
|
241
|
+
*/
|
|
242
|
+
function createCookie(name, value, options) {
|
|
243
|
+
var sameSite = options.sameSite;
|
|
244
|
+
if (sameSite === true) {
|
|
245
|
+
sameSite = 'strict';
|
|
246
|
+
}
|
|
247
|
+
if (sameSite === undefined || sameSite === false) {
|
|
248
|
+
sameSite = 'lax';
|
|
249
|
+
}
|
|
250
|
+
var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
|
|
251
|
+
delete cookieToSet.encode;
|
|
252
|
+
return __assign({ name: name, value: value }, cookieToSet);
|
|
253
|
+
}
|
|
254
|
+
exports.createCookie = createCookie;
|
|
255
|
+
/**
|
|
256
|
+
* Tells whether given objects have the same properties.
|
|
257
|
+
*/
|
|
258
|
+
function hasSameProperties(a, b) {
|
|
259
|
+
var aProps = Object.getOwnPropertyNames(a);
|
|
260
|
+
var bProps = Object.getOwnPropertyNames(b);
|
|
261
|
+
if (aProps.length !== bProps.length) {
|
|
262
|
+
return false;
|
|
263
|
+
}
|
|
264
|
+
for (var i = 0; i < aProps.length; i++) {
|
|
265
|
+
var propName = aProps[i];
|
|
266
|
+
if (a[propName] !== b[propName]) {
|
|
267
|
+
return false;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return true;
|
|
271
|
+
}
|
|
272
|
+
exports.hasSameProperties = hasSameProperties;
|
|
273
|
+
/**
|
|
274
|
+
* Compare the cookie and return true if the cookies have equivalent
|
|
275
|
+
* options and the cookies would be overwritten in the browser storage.
|
|
276
|
+
*
|
|
277
|
+
* @param a first Cookie for comparison
|
|
278
|
+
* @param b second Cookie for comparison
|
|
279
|
+
*/
|
|
280
|
+
function areCookiesEqual(a, b) {
|
|
281
|
+
var sameSiteSame = a.sameSite === b.sameSite;
|
|
282
|
+
if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
|
|
283
|
+
sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
|
|
284
|
+
}
|
|
285
|
+
return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
|
|
286
|
+
}
|
|
287
|
+
exports.areCookiesEqual = areCookiesEqual;
|
|
288
|
+
/* Functions */
|
|
289
|
+
//# sourceMappingURL=utils.js.map
|
|
290
|
+
});
|
|
291
|
+
|
|
292
|
+
_commonjsHelpers.unwrapExports(utils);
|
|
293
|
+
utils.areCookiesEqual;
|
|
294
|
+
utils.hasSameProperties;
|
|
295
|
+
utils.createCookie;
|
|
296
|
+
utils.isBrowser;
|
|
297
|
+
|
|
298
|
+
var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
299
|
+
var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
|
|
300
|
+
__assign = Object.assign || function(t) {
|
|
301
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
302
|
+
s = arguments[i];
|
|
303
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
304
|
+
t[p] = s[p];
|
|
305
|
+
}
|
|
306
|
+
return t;
|
|
307
|
+
};
|
|
308
|
+
return __assign.apply(this, arguments);
|
|
309
|
+
};
|
|
310
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
311
|
+
exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Parses cookies.
|
|
317
|
+
*
|
|
318
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
319
|
+
* @param options Options that we pass down to `cookie` library.
|
|
320
|
+
*/
|
|
321
|
+
function parseCookies(ctx, options) {
|
|
322
|
+
var _a, _b;
|
|
323
|
+
if ((_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.req) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.cookie) {
|
|
324
|
+
return index.cookie.parse(ctx.req.headers.cookie, options);
|
|
325
|
+
}
|
|
326
|
+
if (utils.isBrowser()) {
|
|
327
|
+
return index.cookie.parse(document.cookie, options);
|
|
328
|
+
}
|
|
329
|
+
return {};
|
|
330
|
+
}
|
|
331
|
+
exports.parseCookies = parseCookies;
|
|
332
|
+
/**
|
|
333
|
+
* Sets a cookie.
|
|
334
|
+
*
|
|
335
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
336
|
+
* @param name The name of your cookie.
|
|
337
|
+
* @param value The value of your cookie.
|
|
338
|
+
* @param options Options that we pass down to `cookie` library.
|
|
339
|
+
*/
|
|
340
|
+
function setCookie$1(ctx, name, value, options) {
|
|
341
|
+
var _a, _b;
|
|
342
|
+
if (options === void 0) { options = {}; }
|
|
343
|
+
// SSR
|
|
344
|
+
if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
|
|
345
|
+
// Check if response has finished and warn about it.
|
|
346
|
+
if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
|
|
347
|
+
console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
|
|
348
|
+
console.warn("You should set cookie before res.send()");
|
|
349
|
+
return {};
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Load existing cookies from the header and parse them.
|
|
353
|
+
*/
|
|
354
|
+
var cookies = ctx.res.getHeader('Set-Cookie') || [];
|
|
355
|
+
if (typeof cookies === 'string')
|
|
356
|
+
cookies = [cookies];
|
|
357
|
+
if (typeof cookies === 'number')
|
|
358
|
+
cookies = [];
|
|
359
|
+
/**
|
|
360
|
+
* Parse cookies but ignore values - we've already encoded
|
|
361
|
+
* them in the previous call.
|
|
362
|
+
*/
|
|
363
|
+
var parsedCookies = setCookie.parse(cookies, {
|
|
364
|
+
decodeValues: false,
|
|
365
|
+
});
|
|
366
|
+
/**
|
|
367
|
+
* We create the new cookie and make sure that none of
|
|
368
|
+
* the existing cookies match it.
|
|
369
|
+
*/
|
|
370
|
+
var newCookie_1 = utils.createCookie(name, value, options);
|
|
371
|
+
var cookiesToSet_1 = [];
|
|
372
|
+
parsedCookies.forEach(function (parsedCookie) {
|
|
373
|
+
if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
|
|
374
|
+
/**
|
|
375
|
+
* We serialize the cookie back to the original format
|
|
376
|
+
* if it isn't the same as the new one.
|
|
377
|
+
*/
|
|
378
|
+
var serializedCookie = index.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
|
|
379
|
+
// we prevent reencoding by default, but you might override it
|
|
380
|
+
encode: function (val) { return val; } }, parsedCookie));
|
|
381
|
+
cookiesToSet_1.push(serializedCookie);
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
cookiesToSet_1.push(index.cookie.serialize(name, value, options));
|
|
385
|
+
// Update the header.
|
|
386
|
+
ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
|
|
387
|
+
}
|
|
388
|
+
// Browser
|
|
389
|
+
if (utils.isBrowser()) {
|
|
390
|
+
if (options && options.httpOnly) {
|
|
391
|
+
throw new Error('Can not set a httpOnly cookie in the browser.');
|
|
392
|
+
}
|
|
393
|
+
document.cookie = index.cookie.serialize(name, value, options);
|
|
394
|
+
}
|
|
395
|
+
return {};
|
|
396
|
+
}
|
|
397
|
+
exports.setCookie = setCookie$1;
|
|
398
|
+
/**
|
|
399
|
+
* Destroys a cookie with a particular name.
|
|
400
|
+
*
|
|
401
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
402
|
+
* @param name Cookie name.
|
|
403
|
+
* @param options Options that we pass down to `cookie` library.
|
|
404
|
+
*/
|
|
405
|
+
function destroyCookie(ctx, name, options) {
|
|
406
|
+
/**
|
|
407
|
+
* We forward the request destroy to setCookie function
|
|
408
|
+
* as it is the same function with modified maxAge value.
|
|
409
|
+
*/
|
|
410
|
+
return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
|
|
411
|
+
}
|
|
412
|
+
exports.destroyCookie = destroyCookie;
|
|
413
|
+
/* Utility Exports */
|
|
414
|
+
exports.default = {
|
|
415
|
+
set: setCookie$1,
|
|
416
|
+
get: parseCookies,
|
|
417
|
+
destroy: destroyCookie,
|
|
418
|
+
};
|
|
419
|
+
//# sourceMappingURL=index.js.map
|
|
420
|
+
});
|
|
421
|
+
|
|
422
|
+
_commonjsHelpers.unwrapExports(dist);
|
|
423
|
+
dist.destroyCookie;
|
|
424
|
+
var dist_2 = dist.setCookie;
|
|
425
|
+
var dist_3 = dist.parseCookies;
|
|
13
426
|
|
|
14
427
|
var _this = undefined;
|
|
15
428
|
|
|
@@ -87,13 +500,13 @@ var getRelatedArticle = function () {
|
|
|
87
500
|
|
|
88
501
|
|
|
89
502
|
if (ctx && url) {
|
|
90
|
-
cookies =
|
|
503
|
+
cookies = dist_3(ctx);
|
|
91
504
|
prevSlugs = cookies['prevSlugs'];
|
|
92
505
|
|
|
93
506
|
if (!!prevSlugs) {
|
|
94
|
-
if (!prevSlugs.includes(url))
|
|
507
|
+
if (!prevSlugs.includes(url)) dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
|
|
95
508
|
filters = filters + ' && !(url.current in [' + prevSlugs + '])';
|
|
96
|
-
} else
|
|
509
|
+
} else dist_2(ctx, 'prevSlugs', '"' + url + '"', {});
|
|
97
510
|
}
|
|
98
511
|
|
|
99
512
|
query = getQuery('related', filters, '', articleCount).replace('&& taxonomyMapping[]._ref in $taxonomy', '');
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var asyncToGenerator = require('./asyncToGenerator-58c289d9.js');
|
|
3
4
|
require('./_commonjsHelpers-06173234.js');
|
|
4
|
-
require('./
|
|
5
|
-
require('./
|
|
5
|
+
require('./es6.string.iterator-c2573ffd.js');
|
|
6
|
+
require('./_to-object-6de10e57.js');
|
|
7
|
+
require('./web.dom.iterable-46657b5c.js');
|
|
6
8
|
require('./_library-dd23b178.js');
|
|
7
|
-
require('./
|
|
8
|
-
require('./
|
|
9
|
-
require('./web.dom.iterable-a0e279c1.js');
|
|
10
|
-
var asyncToGenerator$1 = require('./asyncToGenerator-140e5f89.js');
|
|
9
|
+
require('./core.get-iterator-method-f474eacc.js');
|
|
10
|
+
require('./_iter-detect-55a5657a.js');
|
|
11
11
|
|
|
12
12
|
var _this = undefined;
|
|
13
13
|
|
|
14
14
|
var getRootDocGroup = function () {
|
|
15
|
-
var _ref = asyncToGenerator
|
|
15
|
+
var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(id, client) {
|
|
16
16
|
var query, result, checkPropExist;
|
|
17
|
-
return asyncToGenerator
|
|
17
|
+
return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
|
|
18
18
|
while (1) {
|
|
19
19
|
switch (_context.prev = _context.next) {
|
|
20
20
|
case 0:
|