@mjhls/mjh-framework 1.0.673-article-series-v4 → 1.0.673
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 +9 -10
- package/dist/cjs/AD300x250.js +9 -10
- package/dist/cjs/AD300x250x600.js +9 -10
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-bc591de7.js → ADInfeed-9735aff2.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +11 -12
- package/dist/cjs/ADWebcast.js +11 -12
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-4b713637.js → ADlgInfeed-6bd11848.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -14
- package/dist/cjs/AdSlotsProvider.js +5 -6
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleCarousel.js +8 -9
- package/dist/cjs/ArticleSeriesListing.js +37 -38
- package/dist/cjs/Auth.js +593 -430
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-bb831b74.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-88f69acd.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +18 -19
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +73 -77
- package/dist/cjs/DeckQueue.js +69 -73
- package/dist/cjs/{Dfp-fa2c6aad.js → Dfp-b2bc3b97.js} +20 -21
- package/dist/cjs/EventsDeck.js +116 -123
- package/dist/cjs/ExternalResources.js +43 -44
- package/dist/cjs/Feature.js +24 -26
- package/dist/cjs/ForbesHero.js +33 -34
- package/dist/cjs/GridContent.js +149 -153
- package/dist/cjs/GridHero.js +34 -35
- package/dist/cjs/GroupDeck.js +39 -40
- package/dist/cjs/HamMagazine.js +114 -119
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +10 -11
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalHero.js +24 -25
- package/dist/cjs/IssueContentDeck.js +64 -69
- package/dist/cjs/IssueDeck.js +59 -64
- package/dist/cjs/IssueLanding.js +17 -18
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +49 -50
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +116 -121
- package/dist/cjs/NavNative.js +95 -103
- package/dist/cjs/NavNormal.js +36 -41
- package/dist/cjs/OncliveHero.js +18 -18
- package/dist/cjs/OncliveLargeHero.js +58 -59
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +71 -1269
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PublicationDeck.js +58 -63
- package/dist/cjs/PublicationLanding.js +48 -52
- package/dist/cjs/QueueDeckExpanded.js +219 -219
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +21 -22
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SideFooter.js +23 -24
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-fde6c921.js → SocialSearchComponent-962b1344.js} +32 -36
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TemplateNormal.js +35 -36
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +20 -21
- package/dist/cjs/VerticalHero.js +16 -17
- package/dist/cjs/VideoSeriesCard.js +24 -25
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesListing.js +51 -52
- package/dist/cjs/View.js +180 -184
- package/dist/cjs/YahooHero.js +29 -30
- package/dist/cjs/YoutubeGroup.js +52 -53
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/getRelatedArticle.js +5 -354
- package/dist/cjs/getSerializers.js +9 -9
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-44481153.js → index-2d0a4911.js} +8 -9
- package/dist/cjs/{index-6367b7bf.js → index-5be2866f.js} +17 -16
- package/dist/cjs/{index-14681913.js → index-c190d704.js} +350 -360
- package/dist/cjs/{index-8a3fb0bc.js → index-da796b8c.js} +10 -12
- package/dist/cjs/{index.es-f3e47207.js → index.es-ab3f2690.js} +11 -28
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-61650d1a.js → index.esm-876ca9ff.js} +12 -5
- package/dist/cjs/{index.esm-dd489d02.js → index.esm-fe549f9c.js} +20 -20
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +32 -31
- package/dist/cjs/{inherits-87492b40.js → inherits-513d81cd.js} +4 -4
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-9499b3ef.js → main-b6c96c8d.js} +43 -48
- package/dist/cjs/{moment-ca3bd9fb.js → moment-66a6a284.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-d1777980.js → ADInfeed-9140aa7d.js} +5 -5
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-84282fe8.js → ADlgInfeed-7656ecd1.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleSeriesListing.js +32 -32
- package/dist/esm/Auth.js +578 -411
- package/dist/esm/{AuthorComponent-23afa074.js → AuthorComponent-00f13201.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-a614acdf.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +58 -58
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +24 -24
- package/dist/esm/ConferenceArticleCard.js +13 -13
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +53 -53
- package/dist/esm/DeckQueue.js +46 -46
- package/dist/esm/{Dfp-939e8fcf.js → Dfp-8a8fca18.js} +10 -10
- package/dist/esm/EventsDeck.js +66 -66
- package/dist/esm/ExternalResources.js +37 -37
- package/dist/esm/Feature.js +16 -16
- package/dist/esm/ForbesHero.js +27 -27
- package/dist/esm/GridContent.js +110 -110
- package/dist/esm/GridHero.js +28 -28
- package/dist/esm/GroupDeck.js +35 -35
- package/dist/esm/HamMagazine.js +86 -86
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +20 -20
- package/dist/esm/IssueContentDeck.js +40 -40
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +15 -15
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +43 -43
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +90 -90
- package/dist/esm/NavNative.js +70 -70
- package/dist/esm/NavNormal.js +21 -21
- package/dist/esm/OncliveHero.js +14 -13
- package/dist/esm/OncliveLargeHero.js +51 -51
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +67 -1263
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PublicationDeck.js +34 -34
- package/dist/esm/PublicationLanding.js +28 -28
- package/dist/esm/QueueDeckExpanded.js +199 -199
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +16 -16
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-a13fc98b.js → SocialSearchComponent-75527dfe.js} +23 -23
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TemplateNormal.js +29 -29
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +12 -12
- package/dist/esm/VideoSeriesCard.js +16 -16
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesListing.js +45 -45
- package/dist/esm/View.js +166 -166
- package/dist/esm/YahooHero.js +24 -24
- package/dist/esm/YoutubeGroup.js +38 -38
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/getRelatedArticle.js +5 -354
- package/dist/esm/getSerializers.js +9 -9
- package/dist/esm/{index-c5fd0af5.js → index-5f9f807a.js} +4 -4
- package/dist/esm/{index-1819118a.js → index-93ec3c59.js} +3 -3
- package/dist/esm/{index-609b2da6.js → index-983cedab.js} +298 -302
- package/dist/esm/{index-c00b0bbb.js → index-d2f90501.js} +17 -16
- package/dist/esm/{index.es-c6222053.js → index.es-938a3a58.js} +9 -25
- package/dist/esm/{index.esm-902766e0.js → index.esm-73e847d2.js} +18 -17
- package/dist/esm/{index.esm-79385203.js → index.esm-85cb09e6.js} +12 -5
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/index.js +27 -26
- package/dist/esm/{inherits-596840e8.js → inherits-7ee3e0c1.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-edbd70ac.js → main-0465b2a0.js} +44 -48
- package/dist/esm/{moment-b6f49411.js → moment-12415288.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/{typeof-ee095d0c.js → typeof-08f2c380.js} +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
package/dist/cjs/Auth.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
|
+
|
|
5
7
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
8
|
require('./_to-object-329a650b.js');
|
|
7
9
|
require('./es6.string.iterator-cc0bbaa4.js');
|
|
@@ -12,25 +14,18 @@ require('./_object-pie-68c5bcbc.js');
|
|
|
12
14
|
var _extends = require('./extends-60837c34.js');
|
|
13
15
|
require('./web.dom.iterable-a0e279c1.js');
|
|
14
16
|
var React = require('react');
|
|
17
|
+
var React__default = _interopDefault(React);
|
|
15
18
|
var Router = require('next/router');
|
|
19
|
+
var Router__default = _interopDefault(Router);
|
|
16
20
|
var stringify = require('./stringify-7c5aff47.js');
|
|
17
21
|
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
18
22
|
var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
|
|
19
23
|
require('./_set-species-f92c67c5.js');
|
|
20
24
|
var reactBootstrap = require('react-bootstrap');
|
|
21
25
|
var util = require('./util-f2c1b65b.js');
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var mysql = require('mysql');
|
|
26
|
-
|
|
27
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
28
|
-
|
|
29
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
30
|
-
var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
|
|
31
|
-
var useSWR__default = /*#__PURE__*/_interopDefaultLegacy(useSWR);
|
|
32
|
-
var Local__default = /*#__PURE__*/_interopDefaultLegacy(Local);
|
|
33
|
-
var mysql__default = /*#__PURE__*/_interopDefaultLegacy(mysql);
|
|
26
|
+
var useSWR = _interopDefault(require('swr'));
|
|
27
|
+
var Local = _interopDefault(require('passport-local'));
|
|
28
|
+
var mysql = _interopDefault(require('mysql'));
|
|
34
29
|
|
|
35
30
|
var returnFormField = function returnFormField(_ref) {
|
|
36
31
|
var name = _ref.name,
|
|
@@ -69,21 +64,21 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
69
64
|
}
|
|
70
65
|
|
|
71
66
|
if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
|
|
72
|
-
return React__default
|
|
67
|
+
return React__default.createElement(
|
|
73
68
|
reactBootstrap.Form.Group,
|
|
74
69
|
_extends._extends({}, opts, { controlId: name }),
|
|
75
|
-
React__default
|
|
70
|
+
React__default.createElement(
|
|
76
71
|
reactBootstrap.Form.Label,
|
|
77
72
|
{ kye: name + '_label' },
|
|
78
73
|
label,
|
|
79
|
-
required && React__default
|
|
74
|
+
required && React__default.createElement(
|
|
80
75
|
'span',
|
|
81
76
|
{ style: { color: 'red' } },
|
|
82
77
|
'*'
|
|
83
78
|
)
|
|
84
79
|
),
|
|
85
|
-
React__default
|
|
86
|
-
React__default
|
|
80
|
+
React__default.createElement(reactBootstrap.Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
|
|
81
|
+
React__default.createElement(
|
|
87
82
|
reactBootstrap.Form.Control.Feedback,
|
|
88
83
|
{ key: name + '_feedback', type: 'invalid' },
|
|
89
84
|
errors[name]
|
|
@@ -91,28 +86,28 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
91
86
|
);
|
|
92
87
|
}
|
|
93
88
|
if (type == 'select') {
|
|
94
|
-
return React__default
|
|
89
|
+
return React__default.createElement(
|
|
95
90
|
reactBootstrap.Form.Group,
|
|
96
91
|
_extends._extends({}, opts, { key: name, controlId: name }),
|
|
97
|
-
React__default
|
|
92
|
+
React__default.createElement(
|
|
98
93
|
reactBootstrap.Form.Label,
|
|
99
94
|
{ key: name + '_' + label },
|
|
100
95
|
label,
|
|
101
|
-
required && React__default
|
|
96
|
+
required && React__default.createElement(
|
|
102
97
|
'span',
|
|
103
98
|
{ key: name + '_required_span', style: { color: 'red' } },
|
|
104
99
|
'*'
|
|
105
100
|
)
|
|
106
101
|
),
|
|
107
|
-
React__default
|
|
102
|
+
React__default.createElement(
|
|
108
103
|
reactBootstrap.Form.Control,
|
|
109
104
|
{ key: name + '_select', as: 'select', name: name, required: required, defaultValue: default_value },
|
|
110
|
-
React__default
|
|
105
|
+
React__default.createElement('option', { value: '', key: name + '_options_empty' }),
|
|
111
106
|
options.map(function (option, index) {
|
|
112
107
|
var value = option.value ? option.value : option;
|
|
113
108
|
var label = option.label ? option.label : option;
|
|
114
109
|
var key = name + '_options_' + index;
|
|
115
|
-
return React__default
|
|
110
|
+
return React__default.createElement(
|
|
116
111
|
'option',
|
|
117
112
|
{ key: key, value: value },
|
|
118
113
|
label
|
|
@@ -123,25 +118,25 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
123
118
|
}
|
|
124
119
|
|
|
125
120
|
if (type == 'radio' || type == 'checkbox') {
|
|
126
|
-
return React__default
|
|
121
|
+
return React__default.createElement(
|
|
127
122
|
reactBootstrap.Form.Group,
|
|
128
123
|
opts,
|
|
129
|
-
React__default
|
|
124
|
+
React__default.createElement(
|
|
130
125
|
reactBootstrap.Form.Label,
|
|
131
126
|
null,
|
|
132
127
|
label,
|
|
133
|
-
required && React__default
|
|
128
|
+
required && React__default.createElement(
|
|
134
129
|
'span',
|
|
135
130
|
{ style: { color: 'red' } },
|
|
136
131
|
'*'
|
|
137
132
|
)
|
|
138
133
|
),
|
|
139
134
|
options.map(function (option, index) {
|
|
140
|
-
return React__default
|
|
135
|
+
return React__default.createElement(
|
|
141
136
|
reactBootstrap.Form.Check,
|
|
142
137
|
{ type: type, key: index, required: required },
|
|
143
|
-
React__default
|
|
144
|
-
React__default
|
|
138
|
+
React__default.createElement(reactBootstrap.Form.Check.Input, { type: type, key: type + '_' + index + '_input', defaultChecked: default_value ? default_value === option.value : false, name: name, id: name + '_' + index, value: option.value, required: required }),
|
|
139
|
+
React__default.createElement(reactBootstrap.Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
|
|
145
140
|
);
|
|
146
141
|
})
|
|
147
142
|
);
|
|
@@ -227,7 +222,7 @@ function useUser() {
|
|
|
227
222
|
redirectTo = _ref.redirectTo,
|
|
228
223
|
redirectIfFound = _ref.redirectIfFound;
|
|
229
224
|
|
|
230
|
-
var _useSWR =
|
|
225
|
+
var _useSWR = useSWR('/api/auth/user', dataHandler),
|
|
231
226
|
data = _useSWR.data,
|
|
232
227
|
error = _useSWR.error;
|
|
233
228
|
|
|
@@ -242,7 +237,7 @@ function useUser() {
|
|
|
242
237
|
redirectTo && !redirectIfFound && !hasUser ||
|
|
243
238
|
// If redirectIfFound is also set, redirect if the user was found
|
|
244
239
|
redirectIfFound && hasUser) {
|
|
245
|
-
Router__default
|
|
240
|
+
Router__default.push(redirectTo);
|
|
246
241
|
}
|
|
247
242
|
}, [redirectTo, redirectIfFound, finished, hasUser]);
|
|
248
243
|
|
|
@@ -348,43 +343,43 @@ var LoginForm = function LoginForm(props) {
|
|
|
348
343
|
loading = _useState4[0],
|
|
349
344
|
setLoading = _useState4[1];
|
|
350
345
|
|
|
351
|
-
return React__default
|
|
346
|
+
return React__default.createElement(
|
|
352
347
|
reactBootstrap.Form,
|
|
353
348
|
{ className: 'login', onSubmit: handleSubmit },
|
|
354
|
-
React__default
|
|
349
|
+
React__default.createElement(
|
|
355
350
|
'h1',
|
|
356
351
|
null,
|
|
357
352
|
'Login'
|
|
358
353
|
),
|
|
359
|
-
React__default
|
|
354
|
+
React__default.createElement('hr', null),
|
|
360
355
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
361
356
|
returnFormField({ name: 'password', label: 'Password', type: 'password', required: true }),
|
|
362
|
-
React__default
|
|
363
|
-
React__default
|
|
357
|
+
React__default.createElement('hr', null),
|
|
358
|
+
React__default.createElement(
|
|
364
359
|
reactBootstrap.Form.Row,
|
|
365
360
|
null,
|
|
366
|
-
React__default
|
|
361
|
+
React__default.createElement(
|
|
367
362
|
reactBootstrap.Form.Group,
|
|
368
363
|
{ as: reactBootstrap.Col },
|
|
369
|
-
React__default
|
|
364
|
+
React__default.createElement(
|
|
370
365
|
'a',
|
|
371
366
|
{ href: '/auth/signup' },
|
|
372
367
|
'I don\'t have an account'
|
|
373
368
|
)
|
|
374
369
|
),
|
|
375
|
-
React__default
|
|
370
|
+
React__default.createElement(
|
|
376
371
|
reactBootstrap.Form.Group,
|
|
377
372
|
{ as: reactBootstrap.Col, className: 'text-right' },
|
|
378
|
-
!loading && React__default
|
|
373
|
+
!loading && React__default.createElement(
|
|
379
374
|
reactBootstrap.Button,
|
|
380
375
|
{ type: 'submit' },
|
|
381
376
|
'Login'
|
|
382
377
|
),
|
|
383
|
-
loading && React__default
|
|
378
|
+
loading && React__default.createElement(
|
|
384
379
|
reactBootstrap.Button,
|
|
385
380
|
{ variant: 'primary', disabled: true },
|
|
386
|
-
React__default
|
|
387
|
-
React__default
|
|
381
|
+
React__default.createElement(reactBootstrap.Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
|
|
382
|
+
React__default.createElement(
|
|
388
383
|
'span',
|
|
389
384
|
{ className: 'sr-only' },
|
|
390
385
|
'Loading...'
|
|
@@ -392,12 +387,12 @@ var LoginForm = function LoginForm(props) {
|
|
|
392
387
|
)
|
|
393
388
|
)
|
|
394
389
|
),
|
|
395
|
-
errorMsg && React__default
|
|
390
|
+
errorMsg && React__default.createElement(
|
|
396
391
|
'p',
|
|
397
392
|
{ className: 'error' },
|
|
398
393
|
errorMsg
|
|
399
394
|
),
|
|
400
|
-
React__default
|
|
395
|
+
React__default.createElement(
|
|
401
396
|
'style',
|
|
402
397
|
{ jsx: 'true'.toString() },
|
|
403
398
|
'\n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n '
|
|
@@ -653,29 +648,29 @@ var SignupForm = function SignupForm(props) {
|
|
|
653
648
|
loading = _useState14[0],
|
|
654
649
|
setLoading = _useState14[1];
|
|
655
650
|
|
|
656
|
-
return React__default
|
|
651
|
+
return React__default.createElement(
|
|
657
652
|
reactBootstrap.Form,
|
|
658
653
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
659
|
-
React__default
|
|
654
|
+
React__default.createElement(
|
|
660
655
|
'h1',
|
|
661
656
|
null,
|
|
662
657
|
'Sign Up'
|
|
663
658
|
),
|
|
664
|
-
React__default
|
|
659
|
+
React__default.createElement('hr', null),
|
|
665
660
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
666
|
-
React__default
|
|
661
|
+
React__default.createElement(
|
|
667
662
|
reactBootstrap.Form.Row,
|
|
668
663
|
null,
|
|
669
664
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: reactBootstrap.Col, required: true }),
|
|
670
665
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: reactBootstrap.Col, required: true })
|
|
671
666
|
),
|
|
672
|
-
React__default
|
|
667
|
+
React__default.createElement(
|
|
673
668
|
reactBootstrap.Form.Row,
|
|
674
669
|
null,
|
|
675
670
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: reactBootstrap.Col, required: true }),
|
|
676
671
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: reactBootstrap.Col, required: true })
|
|
677
672
|
),
|
|
678
|
-
React__default
|
|
673
|
+
React__default.createElement(
|
|
679
674
|
reactBootstrap.Form.Row,
|
|
680
675
|
null,
|
|
681
676
|
returnFormField({
|
|
@@ -689,7 +684,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
689
684
|
}),
|
|
690
685
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: reactBootstrap.Col, options: states })
|
|
691
686
|
),
|
|
692
|
-
React__default
|
|
687
|
+
React__default.createElement(
|
|
693
688
|
reactBootstrap.Form.Row,
|
|
694
689
|
null,
|
|
695
690
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: reactBootstrap.Col }),
|
|
@@ -736,38 +731,38 @@ var SignupForm = function SignupForm(props) {
|
|
|
736
731
|
required: true,
|
|
737
732
|
options: [{ label: 'By registering you agree to our <a href="/terms" style="color:blue">Terms and Conditions</a> and <a href="/privacy" style="color:blue">Privacy Policy</a> and understand that you will be receiving email communications', value: 'Y' }]
|
|
738
733
|
}),
|
|
739
|
-
React__default
|
|
740
|
-
React__default
|
|
734
|
+
React__default.createElement('hr', null),
|
|
735
|
+
React__default.createElement(
|
|
741
736
|
reactBootstrap.Form.Row,
|
|
742
737
|
null,
|
|
743
|
-
React__default
|
|
738
|
+
React__default.createElement(
|
|
744
739
|
reactBootstrap.Form.Group,
|
|
745
740
|
{ as: reactBootstrap.Col },
|
|
746
|
-
React__default
|
|
741
|
+
React__default.createElement(
|
|
747
742
|
'a',
|
|
748
743
|
{ href: '/auth/login' },
|
|
749
744
|
'I already have an account'
|
|
750
745
|
)
|
|
751
746
|
),
|
|
752
|
-
React__default
|
|
747
|
+
React__default.createElement(
|
|
753
748
|
reactBootstrap.Form.Group,
|
|
754
749
|
{ as: reactBootstrap.Col, className: 'text-right' },
|
|
755
|
-
!loading && React__default
|
|
750
|
+
!loading && React__default.createElement(
|
|
756
751
|
reactBootstrap.Button,
|
|
757
752
|
{ type: 'submit' },
|
|
758
753
|
'Sign Up'
|
|
759
754
|
),
|
|
760
|
-
loading && React__default
|
|
755
|
+
loading && React__default.createElement(
|
|
761
756
|
reactBootstrap.Button,
|
|
762
757
|
{ variant: 'primary', disabled: true },
|
|
763
|
-
React__default
|
|
758
|
+
React__default.createElement(reactBootstrap.Spinner, {
|
|
764
759
|
as: 'span',
|
|
765
760
|
animation: 'border',
|
|
766
761
|
role: 'status',
|
|
767
762
|
'aria-hidden': 'true',
|
|
768
763
|
size: 'sm'
|
|
769
764
|
}),
|
|
770
|
-
React__default
|
|
765
|
+
React__default.createElement(
|
|
771
766
|
'span',
|
|
772
767
|
{ className: 'sr-only' },
|
|
773
768
|
'Loading...'
|
|
@@ -775,12 +770,12 @@ var SignupForm = function SignupForm(props) {
|
|
|
775
770
|
)
|
|
776
771
|
)
|
|
777
772
|
),
|
|
778
|
-
errorMsg && React__default
|
|
773
|
+
errorMsg && React__default.createElement(
|
|
779
774
|
'p',
|
|
780
775
|
{ className: 'error' },
|
|
781
776
|
errorMsg
|
|
782
777
|
),
|
|
783
|
-
React__default
|
|
778
|
+
React__default.createElement(
|
|
784
779
|
'style',
|
|
785
780
|
{ jsx: 'true'.toString() },
|
|
786
781
|
' \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n '
|
|
@@ -1070,32 +1065,32 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1070
1065
|
loading = _useState18[0],
|
|
1071
1066
|
setLoading = _useState18[1];
|
|
1072
1067
|
|
|
1073
|
-
return React__default
|
|
1068
|
+
return React__default.createElement(
|
|
1074
1069
|
reactBootstrap.Form,
|
|
1075
1070
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
1076
|
-
React__default
|
|
1071
|
+
React__default.createElement(
|
|
1077
1072
|
'h1',
|
|
1078
1073
|
null,
|
|
1079
1074
|
'Profile'
|
|
1080
1075
|
),
|
|
1081
|
-
React__default
|
|
1082
|
-
userData ? React__default
|
|
1083
|
-
React__default
|
|
1076
|
+
React__default.createElement('hr', null),
|
|
1077
|
+
userData ? React__default.createElement(
|
|
1078
|
+
React__default.Fragment,
|
|
1084
1079
|
null,
|
|
1085
1080
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true, readonly: true, default_value: userData.email }),
|
|
1086
|
-
React__default
|
|
1081
|
+
React__default.createElement(
|
|
1087
1082
|
reactBootstrap.Form.Row,
|
|
1088
1083
|
null,
|
|
1089
1084
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: reactBootstrap.Col, required: false }),
|
|
1090
1085
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: reactBootstrap.Col, required: false })
|
|
1091
1086
|
),
|
|
1092
|
-
React__default
|
|
1087
|
+
React__default.createElement(
|
|
1093
1088
|
reactBootstrap.Form.Row,
|
|
1094
1089
|
null,
|
|
1095
1090
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: reactBootstrap.Col, required: true, default_value: userData.shared.first_name }),
|
|
1096
1091
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: reactBootstrap.Col, required: true, default_value: userData.shared.last_name })
|
|
1097
1092
|
),
|
|
1098
|
-
React__default
|
|
1093
|
+
React__default.createElement(
|
|
1099
1094
|
reactBootstrap.Form.Row,
|
|
1100
1095
|
null,
|
|
1101
1096
|
returnFormField({
|
|
@@ -1110,7 +1105,7 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1110
1105
|
}),
|
|
1111
1106
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: reactBootstrap.Col, options: states, default_value: userData.shared.state })
|
|
1112
1107
|
),
|
|
1113
|
-
React__default
|
|
1108
|
+
React__default.createElement(
|
|
1114
1109
|
reactBootstrap.Form.Row,
|
|
1115
1110
|
null,
|
|
1116
1111
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: reactBootstrap.Col, default_value: userData.shared.zip }),
|
|
@@ -1160,29 +1155,29 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1160
1155
|
required: true,
|
|
1161
1156
|
options: [{ label: 'By registering you agree to our <a href="/terms">Terms and Conditions</a> and <a href="/privacy">Privacy Policy</a> and understand that you will be receiving email communications', value: 'Y' }]
|
|
1162
1157
|
}),
|
|
1163
|
-
React__default
|
|
1164
|
-
React__default
|
|
1158
|
+
React__default.createElement('hr', null),
|
|
1159
|
+
React__default.createElement(
|
|
1165
1160
|
reactBootstrap.Form.Row,
|
|
1166
1161
|
null,
|
|
1167
|
-
React__default
|
|
1162
|
+
React__default.createElement(
|
|
1168
1163
|
reactBootstrap.Form.Group,
|
|
1169
1164
|
{ as: reactBootstrap.Col },
|
|
1170
|
-
!loading && React__default
|
|
1165
|
+
!loading && React__default.createElement(
|
|
1171
1166
|
reactBootstrap.Button,
|
|
1172
1167
|
{ type: 'submit' },
|
|
1173
1168
|
'Update'
|
|
1174
1169
|
),
|
|
1175
|
-
loading && React__default
|
|
1170
|
+
loading && React__default.createElement(
|
|
1176
1171
|
reactBootstrap.Button,
|
|
1177
1172
|
{ variant: 'primary', disabled: true },
|
|
1178
|
-
React__default
|
|
1173
|
+
React__default.createElement(reactBootstrap.Spinner, {
|
|
1179
1174
|
as: 'span',
|
|
1180
1175
|
animation: 'border',
|
|
1181
1176
|
role: 'status',
|
|
1182
1177
|
'aria-hidden': 'true',
|
|
1183
1178
|
size: 'sm'
|
|
1184
1179
|
}),
|
|
1185
|
-
React__default
|
|
1180
|
+
React__default.createElement(
|
|
1186
1181
|
'span',
|
|
1187
1182
|
{ className: 'sr-only' },
|
|
1188
1183
|
'Loading...'
|
|
@@ -1190,24 +1185,24 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1190
1185
|
)
|
|
1191
1186
|
)
|
|
1192
1187
|
)
|
|
1193
|
-
) : React__default
|
|
1188
|
+
) : React__default.createElement(reactBootstrap.Spinner, {
|
|
1194
1189
|
as: 'span',
|
|
1195
1190
|
animation: 'border',
|
|
1196
1191
|
role: 'status',
|
|
1197
1192
|
'aria-hidden': 'true',
|
|
1198
1193
|
size: 'sm'
|
|
1199
1194
|
}),
|
|
1200
|
-
errorMsg && React__default
|
|
1195
|
+
errorMsg && React__default.createElement(
|
|
1201
1196
|
'p',
|
|
1202
1197
|
{ className: 'error' },
|
|
1203
1198
|
errorMsg
|
|
1204
1199
|
),
|
|
1205
|
-
successMsg && React__default
|
|
1200
|
+
successMsg && React__default.createElement(
|
|
1206
1201
|
'p',
|
|
1207
1202
|
{ className: 'success' },
|
|
1208
1203
|
successMsg
|
|
1209
1204
|
),
|
|
1210
|
-
React__default
|
|
1205
|
+
React__default.createElement(
|
|
1211
1206
|
'style',
|
|
1212
1207
|
{ jsx: 'true'.toString() },
|
|
1213
1208
|
' \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n .success {\n color: green;\n margin: 1rem 0 0;\n }\n '
|
|
@@ -1215,12 +1210,213 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1215
1210
|
);
|
|
1216
1211
|
};
|
|
1217
1212
|
|
|
1213
|
+
/*!
|
|
1214
|
+
* cookie
|
|
1215
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
1216
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
1217
|
+
* MIT Licensed
|
|
1218
|
+
*/
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* Module exports.
|
|
1222
|
+
* @public
|
|
1223
|
+
*/
|
|
1224
|
+
|
|
1225
|
+
var parse_1 = parse;
|
|
1226
|
+
var serialize_1 = serialize;
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* Module variables.
|
|
1230
|
+
* @private
|
|
1231
|
+
*/
|
|
1232
|
+
|
|
1233
|
+
var decode = decodeURIComponent;
|
|
1234
|
+
var encode = encodeURIComponent;
|
|
1235
|
+
var pairSplitRegExp = /; */;
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
1239
|
+
*
|
|
1240
|
+
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
|
|
1241
|
+
* field-vchar = VCHAR / obs-text
|
|
1242
|
+
* obs-text = %x80-FF
|
|
1243
|
+
*/
|
|
1244
|
+
|
|
1245
|
+
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* Parse a cookie header.
|
|
1249
|
+
*
|
|
1250
|
+
* Parse the given cookie header string into an object
|
|
1251
|
+
* The object has the various cookies as keys(names) => values
|
|
1252
|
+
*
|
|
1253
|
+
* @param {string} str
|
|
1254
|
+
* @param {object} [options]
|
|
1255
|
+
* @return {object}
|
|
1256
|
+
* @public
|
|
1257
|
+
*/
|
|
1258
|
+
|
|
1259
|
+
function parse(str, options) {
|
|
1260
|
+
if (typeof str !== 'string') {
|
|
1261
|
+
throw new TypeError('argument str must be a string');
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
var obj = {};
|
|
1265
|
+
var opt = options || {};
|
|
1266
|
+
var pairs = str.split(pairSplitRegExp);
|
|
1267
|
+
var dec = opt.decode || decode;
|
|
1268
|
+
|
|
1269
|
+
for (var i = 0; i < pairs.length; i++) {
|
|
1270
|
+
var pair = pairs[i];
|
|
1271
|
+
var eq_idx = pair.indexOf('=');
|
|
1272
|
+
|
|
1273
|
+
// skip things that don't look like key=value
|
|
1274
|
+
if (eq_idx < 0) {
|
|
1275
|
+
continue;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
var key = pair.substr(0, eq_idx).trim();
|
|
1279
|
+
var val = pair.substr(++eq_idx, pair.length).trim();
|
|
1280
|
+
|
|
1281
|
+
// quoted values
|
|
1282
|
+
if ('"' == val[0]) {
|
|
1283
|
+
val = val.slice(1, -1);
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
// only assign once
|
|
1287
|
+
if (undefined == obj[key]) {
|
|
1288
|
+
obj[key] = tryDecode(val, dec);
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
return obj;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* Serialize data into a cookie header.
|
|
1297
|
+
*
|
|
1298
|
+
* Serialize the a name value pair into a cookie string suitable for
|
|
1299
|
+
* http headers. An optional options object specified cookie parameters.
|
|
1300
|
+
*
|
|
1301
|
+
* serialize('foo', 'bar', { httpOnly: true })
|
|
1302
|
+
* => "foo=bar; httpOnly"
|
|
1303
|
+
*
|
|
1304
|
+
* @param {string} name
|
|
1305
|
+
* @param {string} val
|
|
1306
|
+
* @param {object} [options]
|
|
1307
|
+
* @return {string}
|
|
1308
|
+
* @public
|
|
1309
|
+
*/
|
|
1310
|
+
|
|
1311
|
+
function serialize(name, val, options) {
|
|
1312
|
+
var opt = options || {};
|
|
1313
|
+
var enc = opt.encode || encode;
|
|
1314
|
+
|
|
1315
|
+
if (typeof enc !== 'function') {
|
|
1316
|
+
throw new TypeError('option encode is invalid');
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
if (!fieldContentRegExp.test(name)) {
|
|
1320
|
+
throw new TypeError('argument name is invalid');
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
var value = enc(val);
|
|
1324
|
+
|
|
1325
|
+
if (value && !fieldContentRegExp.test(value)) {
|
|
1326
|
+
throw new TypeError('argument val is invalid');
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
var str = name + '=' + value;
|
|
1330
|
+
|
|
1331
|
+
if (null != opt.maxAge) {
|
|
1332
|
+
var maxAge = opt.maxAge - 0;
|
|
1333
|
+
|
|
1334
|
+
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
1335
|
+
throw new TypeError('option maxAge is invalid')
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
str += '; Max-Age=' + Math.floor(maxAge);
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
if (opt.domain) {
|
|
1342
|
+
if (!fieldContentRegExp.test(opt.domain)) {
|
|
1343
|
+
throw new TypeError('option domain is invalid');
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
str += '; Domain=' + opt.domain;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
if (opt.path) {
|
|
1350
|
+
if (!fieldContentRegExp.test(opt.path)) {
|
|
1351
|
+
throw new TypeError('option path is invalid');
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
str += '; Path=' + opt.path;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
if (opt.expires) {
|
|
1358
|
+
if (typeof opt.expires.toUTCString !== 'function') {
|
|
1359
|
+
throw new TypeError('option expires is invalid');
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
str += '; Expires=' + opt.expires.toUTCString();
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
if (opt.httpOnly) {
|
|
1366
|
+
str += '; HttpOnly';
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
if (opt.secure) {
|
|
1370
|
+
str += '; Secure';
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
if (opt.sameSite) {
|
|
1374
|
+
var sameSite = typeof opt.sameSite === 'string'
|
|
1375
|
+
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
1376
|
+
|
|
1377
|
+
switch (sameSite) {
|
|
1378
|
+
case true:
|
|
1379
|
+
str += '; SameSite=Strict';
|
|
1380
|
+
break;
|
|
1381
|
+
case 'lax':
|
|
1382
|
+
str += '; SameSite=Lax';
|
|
1383
|
+
break;
|
|
1384
|
+
case 'strict':
|
|
1385
|
+
str += '; SameSite=Strict';
|
|
1386
|
+
break;
|
|
1387
|
+
case 'none':
|
|
1388
|
+
str += '; SameSite=None';
|
|
1389
|
+
break;
|
|
1390
|
+
default:
|
|
1391
|
+
throw new TypeError('option sameSite is invalid');
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
return str;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* Try decoding a string using a decoding function.
|
|
1400
|
+
*
|
|
1401
|
+
* @param {string} str
|
|
1402
|
+
* @param {function} decode
|
|
1403
|
+
* @private
|
|
1404
|
+
*/
|
|
1405
|
+
|
|
1406
|
+
function tryDecode(str, decode) {
|
|
1407
|
+
try {
|
|
1408
|
+
return decode(str);
|
|
1409
|
+
} catch (e) {
|
|
1410
|
+
return str;
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1218
1414
|
var TOKEN_NAME = 'token';
|
|
1219
1415
|
var MAX_AGE = 60 * 60 * 8; // 8 hours
|
|
1220
1416
|
|
|
1221
1417
|
function setTokenCookie(res, token, eKey) {
|
|
1222
1418
|
var cookies_serailized = [];
|
|
1223
|
-
cookies_serailized.push(
|
|
1419
|
+
cookies_serailized.push(serialize_1(TOKEN_NAME, token, {
|
|
1224
1420
|
//maxAge: MAX_AGE, // we want login cookie to expire when browser
|
|
1225
1421
|
//expires: new Date(Date.now() + MAX_AGE * 1000),
|
|
1226
1422
|
//httpOnly: true,
|
|
@@ -1229,7 +1425,7 @@ function setTokenCookie(res, token, eKey) {
|
|
|
1229
1425
|
//sameSite: 'lax',
|
|
1230
1426
|
}));
|
|
1231
1427
|
|
|
1232
|
-
cookies_serailized.push(
|
|
1428
|
+
cookies_serailized.push(serialize_1('eKey', eKey, {
|
|
1233
1429
|
//maxAge: MAX_AGE, // we want login cookie to expire when browser
|
|
1234
1430
|
//expires: new Date(Date.now() + MAX_AGE * 1000),
|
|
1235
1431
|
//httpOnly: true,
|
|
@@ -1243,12 +1439,12 @@ function setTokenCookie(res, token, eKey) {
|
|
|
1243
1439
|
|
|
1244
1440
|
function removeTokenCookie(res) {
|
|
1245
1441
|
var cookies_serailized = [];
|
|
1246
|
-
cookies_serailized.push(
|
|
1442
|
+
cookies_serailized.push(serialize_1(TOKEN_NAME, '', {
|
|
1247
1443
|
maxAge: -1,
|
|
1248
1444
|
expires: new Date(Date.now() - MAX_AGE * 1000),
|
|
1249
1445
|
path: '/'
|
|
1250
1446
|
}));
|
|
1251
|
-
cookies_serailized.push(
|
|
1447
|
+
cookies_serailized.push(serialize_1('eKey', '', {
|
|
1252
1448
|
maxAge: -1,
|
|
1253
1449
|
expires: new Date(Date.now() - MAX_AGE * 1000),
|
|
1254
1450
|
path: '/'
|
|
@@ -1263,7 +1459,7 @@ function parseCookies(req) {
|
|
|
1263
1459
|
|
|
1264
1460
|
// For pages we do need to parse the cookies.
|
|
1265
1461
|
var cookie = req.headers ? req.headers.cookie : null;
|
|
1266
|
-
return
|
|
1462
|
+
return parse_1(cookie || '');
|
|
1267
1463
|
}
|
|
1268
1464
|
|
|
1269
1465
|
function getTokenCookie(req) {
|
|
@@ -1855,17 +2051,7 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1855
2051
|
if (value != null) {
|
|
1856
2052
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
1857
2053
|
var desc = $gOPD(value, parts[i]);
|
|
1858
|
-
|
|
1859
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1860
|
-
}
|
|
1861
|
-
// By convention, when a data property is converted to an accessor
|
|
1862
|
-
// property to emulate a data property that does not suffer from
|
|
1863
|
-
// the override mistake, that accessor's getter is marked with
|
|
1864
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
1865
|
-
// uphold the illusion by pretending to see that original data
|
|
1866
|
-
// property, i.e., returning the value rather than the getter
|
|
1867
|
-
// itself.
|
|
1868
|
-
value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
|
|
2054
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
1869
2055
|
} else {
|
|
1870
2056
|
value = value[parts[i]];
|
|
1871
2057
|
}
|
|
@@ -1874,42 +2060,18 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1874
2060
|
return value;
|
|
1875
2061
|
};
|
|
1876
2062
|
|
|
1877
|
-
var
|
|
1878
|
-
|
|
2063
|
+
var $Function = GetIntrinsic('%Function%');
|
|
2064
|
+
var $apply = $Function.apply;
|
|
2065
|
+
var $call = $Function.call;
|
|
1879
2066
|
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
1884
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
1885
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
|
1886
|
-
|
|
1887
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
1888
|
-
|
|
1889
|
-
if ($defineProperty) {
|
|
1890
|
-
try {
|
|
1891
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
1892
|
-
} catch (e) {
|
|
1893
|
-
// IE 8 has a broken defineProperty
|
|
1894
|
-
$defineProperty = null;
|
|
1895
|
-
}
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
module.exports = function callBind() {
|
|
1899
|
-
return $reflectApply(functionBind, $call, arguments);
|
|
2067
|
+
var callBind = function callBind() {
|
|
2068
|
+
return functionBind.apply($call, arguments);
|
|
1900
2069
|
};
|
|
1901
2070
|
|
|
1902
|
-
var
|
|
1903
|
-
return
|
|
2071
|
+
var apply = function applyBind() {
|
|
2072
|
+
return functionBind.apply($apply, arguments);
|
|
1904
2073
|
};
|
|
1905
|
-
|
|
1906
|
-
if ($defineProperty) {
|
|
1907
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
1908
|
-
} else {
|
|
1909
|
-
module.exports.apply = applyBind;
|
|
1910
|
-
}
|
|
1911
|
-
});
|
|
1912
|
-
var callBind_1 = callBind.apply;
|
|
2074
|
+
callBind.apply = apply;
|
|
1913
2075
|
|
|
1914
2076
|
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
1915
2077
|
|
|
@@ -1921,16 +2083,7 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
1921
2083
|
return intrinsic;
|
|
1922
2084
|
};
|
|
1923
2085
|
|
|
1924
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%'
|
|
1925
|
-
|
|
1926
|
-
if ($defineProperty) {
|
|
1927
|
-
try {
|
|
1928
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
1929
|
-
} catch (e) {
|
|
1930
|
-
// IE 8 has a broken defineProperty
|
|
1931
|
-
$defineProperty = null;
|
|
1932
|
-
}
|
|
1933
|
-
}
|
|
2086
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
1934
2087
|
|
|
1935
2088
|
|
|
1936
2089
|
|
|
@@ -2033,7 +2186,7 @@ var Type = function Type(x) {
|
|
|
2033
2186
|
}
|
|
2034
2187
|
};
|
|
2035
2188
|
|
|
2036
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-
|
|
2189
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
|
|
2037
2190
|
|
|
2038
2191
|
var Type$1 = function Type$1(x) {
|
|
2039
2192
|
if (typeof x === 'symbol') {
|
|
@@ -2073,277 +2226,6 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2073
2226
|
return obj;
|
|
2074
2227
|
};
|
|
2075
2228
|
|
|
2076
|
-
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2077
|
-
if ($gOPD$1) {
|
|
2078
|
-
try {
|
|
2079
|
-
$gOPD$1([], 'length');
|
|
2080
|
-
} catch (e) {
|
|
2081
|
-
// IE 8 has a broken gOPD
|
|
2082
|
-
$gOPD$1 = null;
|
|
2083
|
-
}
|
|
2084
|
-
}
|
|
2085
|
-
|
|
2086
|
-
var getOwnPropertyDescriptor = $gOPD$1;
|
|
2087
|
-
|
|
2088
|
-
var $Array = GetIntrinsic('%Array%');
|
|
2089
|
-
|
|
2090
|
-
// eslint-disable-next-line global-require
|
|
2091
|
-
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
2092
|
-
|
|
2093
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2094
|
-
|
|
2095
|
-
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
2096
|
-
return toStr$4(argument) === '[object Array]';
|
|
2097
|
-
};
|
|
2098
|
-
|
|
2099
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2100
|
-
|
|
2101
|
-
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2102
|
-
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2103
|
-
};
|
|
2104
|
-
|
|
2105
|
-
var hasSymbols$3 = hasSymbols$1();
|
|
2106
|
-
var hasToStringTag = hasSymbols$3 && typeof Symbol.toStringTag === 'symbol';
|
|
2107
|
-
var hasOwnProperty;
|
|
2108
|
-
var regexExec;
|
|
2109
|
-
var isRegexMarker;
|
|
2110
|
-
var badStringifier;
|
|
2111
|
-
|
|
2112
|
-
if (hasToStringTag) {
|
|
2113
|
-
hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2114
|
-
regexExec = Function.call.bind(RegExp.prototype.exec);
|
|
2115
|
-
isRegexMarker = {};
|
|
2116
|
-
|
|
2117
|
-
var throwRegexMarker = function () {
|
|
2118
|
-
throw isRegexMarker;
|
|
2119
|
-
};
|
|
2120
|
-
badStringifier = {
|
|
2121
|
-
toString: throwRegexMarker,
|
|
2122
|
-
valueOf: throwRegexMarker
|
|
2123
|
-
};
|
|
2124
|
-
|
|
2125
|
-
if (typeof Symbol.toPrimitive === 'symbol') {
|
|
2126
|
-
badStringifier[Symbol.toPrimitive] = throwRegexMarker;
|
|
2127
|
-
}
|
|
2128
|
-
}
|
|
2129
|
-
|
|
2130
|
-
var toStr$5 = Object.prototype.toString;
|
|
2131
|
-
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2132
|
-
var regexClass = '[object RegExp]';
|
|
2133
|
-
|
|
2134
|
-
var isRegex = hasToStringTag
|
|
2135
|
-
// eslint-disable-next-line consistent-return
|
|
2136
|
-
? function isRegex(value) {
|
|
2137
|
-
if (!value || typeof value !== 'object') {
|
|
2138
|
-
return false;
|
|
2139
|
-
}
|
|
2140
|
-
|
|
2141
|
-
var descriptor = gOPD(value, 'lastIndex');
|
|
2142
|
-
var hasLastIndexDataProperty = descriptor && hasOwnProperty(descriptor, 'value');
|
|
2143
|
-
if (!hasLastIndexDataProperty) {
|
|
2144
|
-
return false;
|
|
2145
|
-
}
|
|
2146
|
-
|
|
2147
|
-
try {
|
|
2148
|
-
regexExec(value, badStringifier);
|
|
2149
|
-
} catch (e) {
|
|
2150
|
-
return e === isRegexMarker;
|
|
2151
|
-
}
|
|
2152
|
-
}
|
|
2153
|
-
: function isRegex(value) {
|
|
2154
|
-
// In older browsers, typeof regex incorrectly returns 'function'
|
|
2155
|
-
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
|
2156
|
-
return false;
|
|
2157
|
-
}
|
|
2158
|
-
|
|
2159
|
-
return toStr$5.call(value) === regexClass;
|
|
2160
|
-
};
|
|
2161
|
-
|
|
2162
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2163
|
-
|
|
2164
|
-
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
2165
|
-
|
|
2166
|
-
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
|
|
2173
|
-
|
|
2174
|
-
var IsRegExp = function IsRegExp(argument) {
|
|
2175
|
-
if (!argument || typeof argument !== 'object') {
|
|
2176
|
-
return false;
|
|
2177
|
-
}
|
|
2178
|
-
if ($match) {
|
|
2179
|
-
var isRegExp = argument[$match];
|
|
2180
|
-
if (typeof isRegExp !== 'undefined') {
|
|
2181
|
-
return ToBoolean(isRegExp);
|
|
2182
|
-
}
|
|
2183
|
-
}
|
|
2184
|
-
return isRegex(argument);
|
|
2185
|
-
};
|
|
2186
|
-
|
|
2187
|
-
var fnToStr = Function.prototype.toString;
|
|
2188
|
-
var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
|
|
2189
|
-
var badArrayLike;
|
|
2190
|
-
var isCallableMarker;
|
|
2191
|
-
if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
|
|
2192
|
-
try {
|
|
2193
|
-
badArrayLike = Object.defineProperty({}, 'length', {
|
|
2194
|
-
get: function () {
|
|
2195
|
-
throw isCallableMarker;
|
|
2196
|
-
}
|
|
2197
|
-
});
|
|
2198
|
-
isCallableMarker = {};
|
|
2199
|
-
// eslint-disable-next-line no-throw-literal
|
|
2200
|
-
reflectApply(function () { throw 42; }, null, badArrayLike);
|
|
2201
|
-
} catch (_) {
|
|
2202
|
-
if (_ !== isCallableMarker) {
|
|
2203
|
-
reflectApply = null;
|
|
2204
|
-
}
|
|
2205
|
-
}
|
|
2206
|
-
} else {
|
|
2207
|
-
reflectApply = null;
|
|
2208
|
-
}
|
|
2209
|
-
|
|
2210
|
-
var constructorRegex = /^\s*class\b/;
|
|
2211
|
-
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2212
|
-
try {
|
|
2213
|
-
var fnStr = fnToStr.call(value);
|
|
2214
|
-
return constructorRegex.test(fnStr);
|
|
2215
|
-
} catch (e) {
|
|
2216
|
-
return false; // not a function
|
|
2217
|
-
}
|
|
2218
|
-
};
|
|
2219
|
-
|
|
2220
|
-
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2221
|
-
try {
|
|
2222
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2223
|
-
fnToStr.call(value);
|
|
2224
|
-
return true;
|
|
2225
|
-
} catch (e) {
|
|
2226
|
-
return false;
|
|
2227
|
-
}
|
|
2228
|
-
};
|
|
2229
|
-
var toStr$6 = Object.prototype.toString;
|
|
2230
|
-
var fnClass = '[object Function]';
|
|
2231
|
-
var genClass = '[object GeneratorFunction]';
|
|
2232
|
-
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2233
|
-
|
|
2234
|
-
var isCallable = reflectApply
|
|
2235
|
-
? function isCallable(value) {
|
|
2236
|
-
if (!value) { return false; }
|
|
2237
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2238
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2239
|
-
try {
|
|
2240
|
-
reflectApply(value, null, badArrayLike);
|
|
2241
|
-
} catch (e) {
|
|
2242
|
-
if (e !== isCallableMarker) { return false; }
|
|
2243
|
-
}
|
|
2244
|
-
return !isES6ClassFn(value);
|
|
2245
|
-
}
|
|
2246
|
-
: function isCallable(value) {
|
|
2247
|
-
if (!value) { return false; }
|
|
2248
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2249
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2250
|
-
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2251
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2252
|
-
var strClass = toStr$6.call(value);
|
|
2253
|
-
return strClass === fnClass || strClass === genClass;
|
|
2254
|
-
};
|
|
2255
|
-
|
|
2256
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2257
|
-
|
|
2258
|
-
var IsCallable = isCallable;
|
|
2259
|
-
|
|
2260
|
-
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
2267
|
-
|
|
2268
|
-
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
2269
|
-
if (Type$1(Obj) !== 'Object') {
|
|
2270
|
-
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
2271
|
-
}
|
|
2272
|
-
|
|
2273
|
-
var desc = {};
|
|
2274
|
-
if (src(Obj, 'enumerable')) {
|
|
2275
|
-
desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
|
|
2276
|
-
}
|
|
2277
|
-
if (src(Obj, 'configurable')) {
|
|
2278
|
-
desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
|
|
2279
|
-
}
|
|
2280
|
-
if (src(Obj, 'value')) {
|
|
2281
|
-
desc['[[Value]]'] = Obj.value;
|
|
2282
|
-
}
|
|
2283
|
-
if (src(Obj, 'writable')) {
|
|
2284
|
-
desc['[[Writable]]'] = ToBoolean(Obj.writable);
|
|
2285
|
-
}
|
|
2286
|
-
if (src(Obj, 'get')) {
|
|
2287
|
-
var getter = Obj.get;
|
|
2288
|
-
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
2289
|
-
throw new $TypeError$2('getter must be a function');
|
|
2290
|
-
}
|
|
2291
|
-
desc['[[Get]]'] = getter;
|
|
2292
|
-
}
|
|
2293
|
-
if (src(Obj, 'set')) {
|
|
2294
|
-
var setter = Obj.set;
|
|
2295
|
-
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
2296
|
-
throw new $TypeError$2('setter must be a function');
|
|
2297
|
-
}
|
|
2298
|
-
desc['[[Set]]'] = setter;
|
|
2299
|
-
}
|
|
2300
|
-
|
|
2301
|
-
if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
|
|
2302
|
-
throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
2303
|
-
}
|
|
2304
|
-
return desc;
|
|
2305
|
-
};
|
|
2306
|
-
|
|
2307
|
-
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2322
|
-
|
|
2323
|
-
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
2324
|
-
if (Type$1(O) !== 'Object') {
|
|
2325
|
-
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
2326
|
-
}
|
|
2327
|
-
if (!IsPropertyKey(P)) {
|
|
2328
|
-
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
2329
|
-
}
|
|
2330
|
-
if (!src(O, P)) {
|
|
2331
|
-
return void 0;
|
|
2332
|
-
}
|
|
2333
|
-
if (!getOwnPropertyDescriptor) {
|
|
2334
|
-
// ES3 / IE 8 fallback
|
|
2335
|
-
var arrayLength = IsArray(O) && P === 'length';
|
|
2336
|
-
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
2337
|
-
return {
|
|
2338
|
-
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
2339
|
-
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
2340
|
-
'[[Value]]': O[P],
|
|
2341
|
-
'[[Writable]]': true
|
|
2342
|
-
};
|
|
2343
|
-
}
|
|
2344
|
-
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
2345
|
-
};
|
|
2346
|
-
|
|
2347
2229
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2348
2230
|
|
|
2349
2231
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
@@ -2377,10 +2259,16 @@ var IsExtensible = $preventExtensions
|
|
|
2377
2259
|
? function IsExtensible(obj) {
|
|
2378
2260
|
return !isPrimitive(obj) && $isExtensible(obj);
|
|
2379
2261
|
}
|
|
2380
|
-
: function IsExtensible(obj) {
|
|
2381
|
-
return
|
|
2262
|
+
: function IsExtensible(obj) { // eslint-disable-line no-unused-vars
|
|
2263
|
+
return true;
|
|
2382
2264
|
};
|
|
2383
2265
|
|
|
2266
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2267
|
+
|
|
2268
|
+
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2269
|
+
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2270
|
+
};
|
|
2271
|
+
|
|
2384
2272
|
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
2385
2273
|
return a !== a;
|
|
2386
2274
|
};
|
|
@@ -2395,8 +2283,8 @@ var SameValue = function SameValue(x, y) {
|
|
|
2395
2283
|
return _isNaN(x) && _isNaN(y);
|
|
2396
2284
|
};
|
|
2397
2285
|
|
|
2398
|
-
var $
|
|
2399
|
-
|
|
2286
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2287
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2400
2288
|
|
|
2401
2289
|
|
|
2402
2290
|
|
|
@@ -2411,14 +2299,14 @@ var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
|
2411
2299
|
|
|
2412
2300
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2413
2301
|
if (Type$1(O) !== 'Object') {
|
|
2414
|
-
throw new $TypeError$
|
|
2302
|
+
throw new $TypeError$2('Assertion failed: Type(O) is not Object');
|
|
2415
2303
|
}
|
|
2416
2304
|
if (!IsPropertyKey(P)) {
|
|
2417
|
-
throw new $TypeError$
|
|
2305
|
+
throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
|
|
2418
2306
|
}
|
|
2419
|
-
var oldDesc =
|
|
2420
|
-
var extensible =
|
|
2421
|
-
var immutable = oldDesc && (!oldDesc
|
|
2307
|
+
var oldDesc = $gOPD$1(O, P);
|
|
2308
|
+
var extensible = oldDesc || IsExtensible(O);
|
|
2309
|
+
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
2422
2310
|
if (immutable || !extensible) {
|
|
2423
2311
|
return false;
|
|
2424
2312
|
}
|
|
@@ -2437,13 +2325,53 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2437
2325
|
);
|
|
2438
2326
|
};
|
|
2439
2327
|
|
|
2440
|
-
var
|
|
2328
|
+
var fnToStr = Function.prototype.toString;
|
|
2329
|
+
|
|
2330
|
+
var constructorRegex = /^\s*class\b/;
|
|
2331
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2332
|
+
try {
|
|
2333
|
+
var fnStr = fnToStr.call(value);
|
|
2334
|
+
return constructorRegex.test(fnStr);
|
|
2335
|
+
} catch (e) {
|
|
2336
|
+
return false; // not a function
|
|
2337
|
+
}
|
|
2338
|
+
};
|
|
2339
|
+
|
|
2340
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2341
|
+
try {
|
|
2342
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2343
|
+
fnToStr.call(value);
|
|
2344
|
+
return true;
|
|
2345
|
+
} catch (e) {
|
|
2346
|
+
return false;
|
|
2347
|
+
}
|
|
2348
|
+
};
|
|
2349
|
+
var toStr$4 = Object.prototype.toString;
|
|
2350
|
+
var fnClass = '[object Function]';
|
|
2351
|
+
var genClass = '[object GeneratorFunction]';
|
|
2352
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2353
|
+
|
|
2354
|
+
var isCallable = function isCallable(value) {
|
|
2355
|
+
if (!value) { return false; }
|
|
2356
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2357
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2358
|
+
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
2359
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2360
|
+
var strClass = toStr$4.call(value);
|
|
2361
|
+
return strClass === fnClass || strClass === genClass;
|
|
2362
|
+
};
|
|
2363
|
+
|
|
2364
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2365
|
+
|
|
2366
|
+
var IsCallable = isCallable;
|
|
2367
|
+
|
|
2368
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2441
2369
|
|
|
2442
2370
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2443
2371
|
|
|
2444
2372
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2445
2373
|
if (value == null) {
|
|
2446
|
-
throw new $TypeError$
|
|
2374
|
+
throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
|
|
2447
2375
|
}
|
|
2448
2376
|
return value;
|
|
2449
2377
|
};
|
|
@@ -2514,6 +2442,241 @@ defineProperties_1(implementation$2, {
|
|
|
2514
2442
|
|
|
2515
2443
|
var object_getownpropertydescriptors = implementation$2;
|
|
2516
2444
|
|
|
2445
|
+
/* globals
|
|
2446
|
+
Atomics,
|
|
2447
|
+
SharedArrayBuffer,
|
|
2448
|
+
*/
|
|
2449
|
+
|
|
2450
|
+
var undefined$2;
|
|
2451
|
+
|
|
2452
|
+
var $TypeError$4 = TypeError;
|
|
2453
|
+
|
|
2454
|
+
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
2455
|
+
if ($gOPD$3) {
|
|
2456
|
+
try {
|
|
2457
|
+
$gOPD$3({}, '');
|
|
2458
|
+
} catch (e) {
|
|
2459
|
+
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
var throwTypeError$1 = function () { throw new $TypeError$4(); };
|
|
2464
|
+
var ThrowTypeError$1 = $gOPD$3
|
|
2465
|
+
? (function () {
|
|
2466
|
+
try {
|
|
2467
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
2468
|
+
arguments.callee; // IE 8 does not throw here
|
|
2469
|
+
return throwTypeError$1;
|
|
2470
|
+
} catch (calleeThrows) {
|
|
2471
|
+
try {
|
|
2472
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
2473
|
+
return $gOPD$3(arguments, 'callee').get;
|
|
2474
|
+
} catch (gOPDthrows) {
|
|
2475
|
+
return throwTypeError$1;
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
}())
|
|
2479
|
+
: throwTypeError$1;
|
|
2480
|
+
|
|
2481
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
2482
|
+
|
|
2483
|
+
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
2484
|
+
var generatorFunction$1 = undefined$2;
|
|
2485
|
+
var asyncFunction$1 = undefined$2;
|
|
2486
|
+
var asyncGenFunction$1 = undefined$2;
|
|
2487
|
+
|
|
2488
|
+
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
2489
|
+
|
|
2490
|
+
var INTRINSICS$1 = {
|
|
2491
|
+
'%Array%': Array,
|
|
2492
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
2493
|
+
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
2494
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
2495
|
+
'%ArrayPrototype%': Array.prototype,
|
|
2496
|
+
'%ArrayProto_entries%': Array.prototype.entries,
|
|
2497
|
+
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
2498
|
+
'%ArrayProto_keys%': Array.prototype.keys,
|
|
2499
|
+
'%ArrayProto_values%': Array.prototype.values,
|
|
2500
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
2501
|
+
'%AsyncFunction%': asyncFunction$1,
|
|
2502
|
+
'%AsyncFunctionPrototype%': undefined$2,
|
|
2503
|
+
'%AsyncGenerator%': undefined$2,
|
|
2504
|
+
'%AsyncGeneratorFunction%': asyncGenFunction$1,
|
|
2505
|
+
'%AsyncGeneratorPrototype%': undefined$2,
|
|
2506
|
+
'%AsyncIteratorPrototype%': undefined$2,
|
|
2507
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
2508
|
+
'%Boolean%': Boolean,
|
|
2509
|
+
'%BooleanPrototype%': Boolean.prototype,
|
|
2510
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
2511
|
+
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
2512
|
+
'%Date%': Date,
|
|
2513
|
+
'%DatePrototype%': Date.prototype,
|
|
2514
|
+
'%decodeURI%': decodeURI,
|
|
2515
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
2516
|
+
'%encodeURI%': encodeURI,
|
|
2517
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
2518
|
+
'%Error%': Error,
|
|
2519
|
+
'%ErrorPrototype%': Error.prototype,
|
|
2520
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
2521
|
+
'%EvalError%': EvalError,
|
|
2522
|
+
'%EvalErrorPrototype%': EvalError.prototype,
|
|
2523
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
2524
|
+
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
2525
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
2526
|
+
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
2527
|
+
'%Function%': Function,
|
|
2528
|
+
'%FunctionPrototype%': Function.prototype,
|
|
2529
|
+
'%Generator%': undefined$2,
|
|
2530
|
+
'%GeneratorFunction%': generatorFunction$1,
|
|
2531
|
+
'%GeneratorPrototype%': undefined$2,
|
|
2532
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
2533
|
+
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2534
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
2535
|
+
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2536
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
2537
|
+
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
2538
|
+
'%isFinite%': isFinite,
|
|
2539
|
+
'%isNaN%': isNaN,
|
|
2540
|
+
'%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
2541
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
2542
|
+
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
2543
|
+
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
2544
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
2545
|
+
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
2546
|
+
'%Math%': Math,
|
|
2547
|
+
'%Number%': Number,
|
|
2548
|
+
'%NumberPrototype%': Number.prototype,
|
|
2549
|
+
'%Object%': Object,
|
|
2550
|
+
'%ObjectPrototype%': Object.prototype,
|
|
2551
|
+
'%ObjProto_toString%': Object.prototype.toString,
|
|
2552
|
+
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
2553
|
+
'%parseFloat%': parseFloat,
|
|
2554
|
+
'%parseInt%': parseInt,
|
|
2555
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
2556
|
+
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
2557
|
+
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
2558
|
+
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
2559
|
+
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
2560
|
+
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
2561
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
2562
|
+
'%RangeError%': RangeError,
|
|
2563
|
+
'%RangeErrorPrototype%': RangeError.prototype,
|
|
2564
|
+
'%ReferenceError%': ReferenceError,
|
|
2565
|
+
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
2566
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
2567
|
+
'%RegExp%': RegExp,
|
|
2568
|
+
'%RegExpPrototype%': RegExp.prototype,
|
|
2569
|
+
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
2570
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
2571
|
+
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
2572
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
2573
|
+
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
2574
|
+
'%String%': String,
|
|
2575
|
+
'%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
2576
|
+
'%StringPrototype%': String.prototype,
|
|
2577
|
+
'%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
|
|
2578
|
+
'%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
|
|
2579
|
+
'%SyntaxError%': SyntaxError,
|
|
2580
|
+
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
2581
|
+
'%ThrowTypeError%': ThrowTypeError$1,
|
|
2582
|
+
'%TypedArray%': TypedArray$1,
|
|
2583
|
+
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
2584
|
+
'%TypeError%': $TypeError$4,
|
|
2585
|
+
'%TypeErrorPrototype%': $TypeError$4.prototype,
|
|
2586
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
2587
|
+
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
2588
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
2589
|
+
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
2590
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
2591
|
+
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
2592
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
2593
|
+
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
2594
|
+
'%URIError%': URIError,
|
|
2595
|
+
'%URIErrorPrototype%': URIError.prototype,
|
|
2596
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
2597
|
+
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
2598
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
2599
|
+
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
2600
|
+
};
|
|
2601
|
+
|
|
2602
|
+
|
|
2603
|
+
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
2604
|
+
|
|
2605
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
2606
|
+
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2607
|
+
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
2608
|
+
var stringToPath$1 = function stringToPath(string) {
|
|
2609
|
+
var result = [];
|
|
2610
|
+
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
2611
|
+
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
2612
|
+
});
|
|
2613
|
+
return result;
|
|
2614
|
+
};
|
|
2615
|
+
/* end adaptation */
|
|
2616
|
+
|
|
2617
|
+
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
2618
|
+
if (!(name in INTRINSICS$1)) {
|
|
2619
|
+
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
2623
|
+
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
2624
|
+
throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
return INTRINSICS$1[name];
|
|
2628
|
+
};
|
|
2629
|
+
|
|
2630
|
+
var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
2631
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
2632
|
+
throw new TypeError('intrinsic name must be a non-empty string');
|
|
2633
|
+
}
|
|
2634
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
2635
|
+
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2638
|
+
var parts = stringToPath$1(name);
|
|
2639
|
+
|
|
2640
|
+
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
2641
|
+
for (var i = 1; i < parts.length; i += 1) {
|
|
2642
|
+
if (value != null) {
|
|
2643
|
+
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
2644
|
+
var desc = $gOPD$3(value, parts[i]);
|
|
2645
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
2646
|
+
throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2647
|
+
}
|
|
2648
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
2649
|
+
} else {
|
|
2650
|
+
value = value[parts[i]];
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
return value;
|
|
2655
|
+
};
|
|
2656
|
+
|
|
2657
|
+
var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
|
|
2658
|
+
var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
|
|
2659
|
+
var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
|
|
2660
|
+
|
|
2661
|
+
var callBind$1 = function callBind() {
|
|
2662
|
+
return $reflectApply(functionBind, $call$1, arguments);
|
|
2663
|
+
};
|
|
2664
|
+
|
|
2665
|
+
var apply$1 = function applyBind() {
|
|
2666
|
+
return $reflectApply(functionBind, $apply$1, arguments);
|
|
2667
|
+
};
|
|
2668
|
+
callBind$1.apply = apply$1;
|
|
2669
|
+
|
|
2670
|
+
var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
|
|
2671
|
+
|
|
2672
|
+
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
2673
|
+
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
2674
|
+
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
2675
|
+
return callBind$1(intrinsic);
|
|
2676
|
+
}
|
|
2677
|
+
return intrinsic;
|
|
2678
|
+
};
|
|
2679
|
+
|
|
2517
2680
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
2518
2681
|
&& typeof Object.defineProperties === 'function';
|
|
2519
2682
|
|
|
@@ -2531,9 +2694,9 @@ if (typeof Promise !== 'function') {
|
|
|
2531
2694
|
|
|
2532
2695
|
|
|
2533
2696
|
|
|
2534
|
-
var $slice = callBound('Array.prototype.slice');
|
|
2535
|
-
var $concat$1 = callBound('Array.prototype.concat');
|
|
2536
|
-
var $forEach = callBound('Array.prototype.forEach');
|
|
2697
|
+
var $slice = callBound$1('Array.prototype.slice');
|
|
2698
|
+
var $concat$1 = callBound$1('Array.prototype.concat');
|
|
2699
|
+
var $forEach = callBound$1('Array.prototype.forEach');
|
|
2537
2700
|
|
|
2538
2701
|
var hasSymbols$4 = hasSymbols$1();
|
|
2539
2702
|
|
|
@@ -2655,7 +2818,7 @@ function connect() {
|
|
|
2655
2818
|
};
|
|
2656
2819
|
}
|
|
2657
2820
|
|
|
2658
|
-
var connection =
|
|
2821
|
+
var connection = mysql.createConnection(config);
|
|
2659
2822
|
return {
|
|
2660
2823
|
query: function query(sql, args) {
|
|
2661
2824
|
return util.util.promisify(connection.query).call(connection, sql, args);
|
|
@@ -2849,7 +3012,7 @@ var md5 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
|
2849
3012
|
message = utf8.stringToBytes(message);
|
|
2850
3013
|
else if (isBuffer(message))
|
|
2851
3014
|
message = Array.prototype.slice.call(message, 0);
|
|
2852
|
-
else if (!Array.isArray(message)
|
|
3015
|
+
else if (!Array.isArray(message))
|
|
2853
3016
|
message = message.toString();
|
|
2854
3017
|
// else, assume byte array already
|
|
2855
3018
|
|
|
@@ -3616,7 +3779,7 @@ var user = /*#__PURE__*/Object.freeze({
|
|
|
3616
3779
|
findUser: findUser$1
|
|
3617
3780
|
});
|
|
3618
3781
|
|
|
3619
|
-
var localStrategy = new
|
|
3782
|
+
var localStrategy = new Local.Strategy({
|
|
3620
3783
|
usernameField: 'email',
|
|
3621
3784
|
passwordField: 'password'
|
|
3622
3785
|
}, function (email, password, done) {
|