@oiz/stzh-components 3.8.0-beta1 → 3.8.0-beta2
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/{app-globals-02553278.js → app-globals-a393bc30.js} +2 -2
- package/dist/cjs/{app-globals-02553278.js.map → app-globals-a393bc30.js.map} +1 -1
- package/dist/cjs/{axios-69bcb71f.js → axios-bd44344d.js} +51 -96
- package/dist/cjs/axios-bd44344d.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-accordion_3.cjs.entry.js +2 -7
- package/dist/cjs/stzh-accordion_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-bathstatus-list.cjs.entry.js +1 -1
- package/dist/cjs/stzh-chipselect.cjs.entry.js +1 -1
- package/dist/cjs/stzh-chipselect.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-contact.cjs.entry.js +2 -8
- package/dist/cjs/stzh-contact.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-datalist_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datalist_2.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-eventdata.cjs.entry.js +1 -1
- package/dist/cjs/stzh-eventdata.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-geo-ref-data.cjs.entry.js +2 -2
- package/dist/cjs/stzh-geo-ref-data.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +3 -2
- package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-poilist.cjs.entry.js +1 -1
- package/dist/cjs/stzh-progressbar.cjs.entry.js +23 -0
- package/dist/cjs/stzh-progressbar.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-search.cjs.entry.js +2 -2
- package/dist/cjs/stzh-search.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-upload.cjs.entry.js +20 -9
- package/dist/cjs/stzh-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +1 -1
- package/dist/collection/assets/i18n/de.json +9 -5
- package/dist/collection/assets/i18n/en.json +9 -5
- package/dist/collection/components/stzh-accordion/stzh-accordion.e2e.js +1 -0
- package/dist/collection/components/stzh-accordion/stzh-accordion.e2e.js.map +1 -1
- package/dist/collection/components/stzh-accordion/stzh-accordion.stories.js +86 -0
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +2 -7
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js.map +1 -1
- package/dist/collection/components/stzh-button/stzh-button.e2e.js +6 -3
- package/dist/collection/components/stzh-button/stzh-button.e2e.js.map +1 -1
- package/dist/collection/components/stzh-button/stzh-button.stories.js +200 -15
- package/dist/collection/components/stzh-chip/stzh-chip.stories.js +11 -0
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.css +1 -6
- package/dist/collection/components/stzh-contact/stzh-contact.css +8 -0
- package/dist/collection/components/stzh-contact/stzh-contact.js +1 -7
- package/dist/collection/components/stzh-contact/stzh-contact.js.map +1 -1
- package/dist/collection/components/stzh-datalist/stzh-datalist.e2e.js +1 -0
- package/dist/collection/components/stzh-datalist/stzh-datalist.e2e.js.map +1 -1
- package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +32 -0
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +2 -1
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +8 -1
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.stories.js +107 -5
- package/dist/collection/components/stzh-eventdata/stzh-eventdata.css +0 -5
- package/dist/collection/components/stzh-geo-ref-data/stzh-geo-ref-data.js +2 -2
- package/dist/collection/components/stzh-geo-ref-data/stzh-geo-ref-data.js.map +1 -1
- package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.js +3 -2
- package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.js.map +1 -1
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +27 -2
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.js.map +1 -1
- package/dist/collection/components/stzh-search/stzh-search.js +1 -1
- package/dist/collection/components/stzh-search/stzh-search.js.map +1 -1
- package/dist/collection/components/stzh-search/stzh-search.stories.js +51 -83
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.stories.js +0 -1
- package/dist/collection/components/stzh-upload/models/stzh-photographing-url-details.dto.js.map +1 -1
- package/dist/collection/components/stzh-upload/stzh-upload.css +5 -0
- package/dist/collection/components/stzh-upload/stzh-upload.js +23 -9
- package/dist/collection/components/stzh-upload/stzh-upload.js.map +1 -1
- package/dist/collection/components/stzh-upload/stzh-upload.localization.js.map +1 -1
- package/dist/collection/components/stzh-upload/stzh-upload.stories.js +3 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-16892790.js → p-345a1e99.js} +51 -96
- package/dist/components/p-345a1e99.js.map +1 -0
- package/dist/components/{p-82c163e4.js → p-47601c6a.js} +2 -2
- package/dist/components/{p-82c163e4.js.map → p-47601c6a.js.map} +1 -1
- package/dist/components/{p-ed75de26.js → p-4fec83e3.js} +2 -2
- package/dist/components/{p-ed75de26.js.map → p-4fec83e3.js.map} +1 -1
- package/dist/components/{p-3890d846.js → p-5efa3e34.js} +2 -2
- package/dist/components/p-5efa3e34.js.map +1 -0
- package/dist/components/{p-2a870524.js → p-6c754f8f.js} +3 -8
- package/dist/components/p-6c754f8f.js.map +1 -0
- package/dist/components/{p-3aefa2e3.js → p-6e8c91f8.js} +3 -3
- package/dist/components/{p-3aefa2e3.js.map → p-6e8c91f8.js.map} +1 -1
- package/dist/components/{p-c9ddf923.js → p-8ed7a61b.js} +2 -2
- package/dist/components/{p-c9ddf923.js.map → p-8ed7a61b.js.map} +1 -1
- package/dist/components/{p-e0e4416e.js → p-ebbe78de.js} +2 -2
- package/dist/components/p-ebbe78de.js.map +1 -0
- package/dist/components/stzh-accordion-item.js +1 -1
- package/dist/components/stzh-amount.js +1 -1
- package/dist/components/stzh-appointments.js +3 -3
- package/dist/components/stzh-bathstatus-list.js +1 -1
- package/dist/components/stzh-calendar.js +1 -1
- package/dist/components/stzh-card-searchresult.js +2 -2
- package/dist/components/stzh-card-superteaser.js +2 -2
- package/dist/components/stzh-chipselect.js +1 -1
- package/dist/components/stzh-contact.js +2 -8
- package/dist/components/stzh-contact.js.map +1 -1
- package/dist/components/stzh-datalist-item.js +1 -1
- package/dist/components/stzh-datalist.js +1 -1
- package/dist/components/stzh-datatable.js +4 -4
- package/dist/components/stzh-datepicker.js +1 -1
- package/dist/components/stzh-dropdown.js +1 -1
- package/dist/components/stzh-eventdata.js +1 -1
- package/dist/components/stzh-eventdata.js.map +1 -1
- package/dist/components/stzh-geo-ref-data.js +3 -3
- package/dist/components/stzh-geo-ref-data.js.map +1 -1
- package/dist/components/stzh-microsite-teaserlist.js +4 -3
- package/dist/components/stzh-microsite-teaserlist.js.map +1 -1
- package/dist/components/stzh-monthyearpicker.js +1 -1
- package/dist/components/stzh-panorama.js +1 -1
- package/dist/components/stzh-poilist.js +2 -2
- package/dist/components/stzh-progressbar.js +26 -2
- package/dist/components/stzh-progressbar.js.map +1 -1
- package/dist/components/stzh-search.js +4 -4
- package/dist/components/stzh-search.js.map +1 -1
- package/dist/components/stzh-sitemap.js +2 -2
- package/dist/components/stzh-timepicker.js +1 -1
- package/dist/components/stzh-upload.js +23 -9
- package/dist/components/stzh-upload.js.map +1 -1
- package/dist/components/stzh-vbz-majorticker.js +1 -1
- package/dist/components/stzh-vbz-ticker.js +1 -1
- package/dist/esm/{app-globals-30dc1fec.js → app-globals-6ab4a484.js} +2 -2
- package/dist/esm/{app-globals-30dc1fec.js.map → app-globals-6ab4a484.js.map} +1 -1
- package/dist/esm/{axios-e0a35239.js → axios-0cc95004.js} +51 -96
- package/dist/esm/axios-0cc95004.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-accordion_3.entry.js +2 -7
- package/dist/esm/stzh-accordion_3.entry.js.map +1 -1
- package/dist/esm/stzh-bathstatus-list.entry.js +1 -1
- package/dist/esm/stzh-chipselect.entry.js +1 -1
- package/dist/esm/stzh-chipselect.entry.js.map +1 -1
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-contact.entry.js +2 -8
- package/dist/esm/stzh-contact.entry.js.map +1 -1
- package/dist/esm/stzh-datalist_2.entry.js +1 -1
- package/dist/esm/stzh-datalist_2.entry.js.map +1 -1
- package/dist/esm/stzh-dropdown.entry.js +1 -1
- package/dist/esm/stzh-dropdown.entry.js.map +1 -1
- package/dist/esm/stzh-eventdata.entry.js +1 -1
- package/dist/esm/stzh-eventdata.entry.js.map +1 -1
- package/dist/esm/stzh-geo-ref-data.entry.js +2 -2
- package/dist/esm/stzh-geo-ref-data.entry.js.map +1 -1
- package/dist/esm/stzh-microsite-teaserlist.entry.js +3 -2
- package/dist/esm/stzh-microsite-teaserlist.entry.js.map +1 -1
- package/dist/esm/stzh-poilist.entry.js +1 -1
- package/dist/esm/stzh-progressbar.entry.js +24 -1
- package/dist/esm/stzh-progressbar.entry.js.map +1 -1
- package/dist/esm/stzh-search.entry.js +2 -2
- package/dist/esm/stzh-search.entry.js.map +1 -1
- package/dist/esm/stzh-upload.entry.js +20 -9
- package/dist/esm/stzh-upload.entry.js.map +1 -1
- package/dist/esm/stzh-vbz-majorticker.entry.js +1 -1
- package/dist/esm/stzh-vbz-ticker.entry.js +1 -1
- package/dist/stzh-components/assets/i18n/de.json +9 -5
- package/dist/stzh-components/assets/i18n/en.json +9 -5
- package/dist/stzh-components/p-129faf7d.entry.js +2 -0
- package/dist/stzh-components/p-129faf7d.entry.js.map +1 -0
- package/dist/stzh-components/{p-68dee00d.entry.js → p-23678dfc.entry.js} +2 -2
- package/dist/stzh-components/{p-68dee00d.entry.js.map → p-23678dfc.entry.js.map} +1 -1
- package/dist/stzh-components/p-345a1e99.js +2 -0
- package/dist/stzh-components/p-345a1e99.js.map +1 -0
- package/dist/stzh-components/{p-e5a451a0.entry.js → p-646958e0.entry.js} +2 -2
- package/dist/stzh-components/{p-ef38e1fe.entry.js → p-6f9626d1.entry.js} +2 -2
- package/dist/stzh-components/p-6f9626d1.entry.js.map +1 -0
- package/dist/stzh-components/{p-64ba89a2.js → p-7036f004.js} +2 -2
- package/dist/stzh-components/{p-8aab9098.entry.js → p-7c5e34db.entry.js} +2 -2
- package/dist/stzh-components/{p-b2986e24.entry.js → p-809076ff.entry.js} +2 -2
- package/dist/stzh-components/{p-5bafa548.entry.js → p-84f8307b.entry.js} +2 -2
- package/dist/stzh-components/p-84f8307b.entry.js.map +1 -0
- package/dist/stzh-components/{p-7b2bd184.entry.js → p-8856651e.entry.js} +2 -2
- package/dist/stzh-components/{p-7b2bd184.entry.js.map → p-8856651e.entry.js.map} +1 -1
- package/dist/stzh-components/p-8c5fb0e2.entry.js +2 -0
- package/dist/stzh-components/{p-f156650a.entry.js.map → p-8c5fb0e2.entry.js.map} +1 -1
- package/dist/stzh-components/{p-025a5c2e.entry.js → p-a47a14ef.entry.js} +2 -2
- package/dist/stzh-components/p-a47a14ef.entry.js.map +1 -0
- package/dist/stzh-components/p-a71fafbd.entry.js +2 -0
- package/dist/stzh-components/p-a71fafbd.entry.js.map +1 -0
- package/dist/stzh-components/{p-b25e8b20.entry.js → p-c83239a9.entry.js} +2 -2
- package/dist/stzh-components/p-c83239a9.entry.js.map +1 -0
- package/dist/stzh-components/{p-6f0cf6e3.entry.js → p-d97fbf1f.entry.js} +2 -2
- package/dist/stzh-components/p-fa4595c8.entry.js +2 -0
- package/dist/stzh-components/p-fa4595c8.entry.js.map +1 -0
- package/dist/stzh-components/p-fcc75797.entry.js +2 -0
- package/dist/stzh-components/p-fcc75797.entry.js.map +1 -0
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/types/components/stzh-accordion-item/stzh-accordion-item.d.ts +0 -1
- package/dist/types/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.d.ts +2 -2
- package/dist/types/components/stzh-progressbar/stzh-progressbar.d.ts +4 -0
- package/dist/types/components/stzh-upload/models/stzh-photographing-url-details.dto.d.ts +1 -0
- package/dist/types/components/stzh-upload/stzh-upload.d.ts +3 -0
- package/dist/types/components/stzh-upload/stzh-upload.localization.d.ts +2 -0
- package/package.json +9 -5
- package/dist/cjs/axios-69bcb71f.js.map +0 -1
- package/dist/components/p-16892790.js.map +0 -1
- package/dist/components/p-2a870524.js.map +0 -1
- package/dist/components/p-3890d846.js.map +0 -1
- package/dist/components/p-e0e4416e.js.map +0 -1
- package/dist/esm/axios-e0a35239.js.map +0 -1
- package/dist/stzh-components/p-025a5c2e.entry.js.map +0 -1
- package/dist/stzh-components/p-11abc40a.entry.js +0 -2
- package/dist/stzh-components/p-11abc40a.entry.js.map +0 -1
- package/dist/stzh-components/p-16892790.js +0 -2
- package/dist/stzh-components/p-16892790.js.map +0 -1
- package/dist/stzh-components/p-5ac0220a.entry.js +0 -2
- package/dist/stzh-components/p-5ac0220a.entry.js.map +0 -1
- package/dist/stzh-components/p-5bafa548.entry.js.map +0 -1
- package/dist/stzh-components/p-95427be2.entry.js +0 -2
- package/dist/stzh-components/p-95427be2.entry.js.map +0 -1
- package/dist/stzh-components/p-973c5df2.entry.js +0 -2
- package/dist/stzh-components/p-973c5df2.entry.js.map +0 -1
- package/dist/stzh-components/p-b25e8b20.entry.js.map +0 -1
- package/dist/stzh-components/p-ef38e1fe.entry.js.map +0 -1
- package/dist/stzh-components/p-f156650a.entry.js +0 -2
- /package/dist/stzh-components/{p-e5a451a0.entry.js.map → p-646958e0.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-64ba89a2.js.map → p-7036f004.js.map} +0 -0
- /package/dist/stzh-components/{p-8aab9098.entry.js.map → p-7c5e34db.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b2986e24.entry.js.map → p-809076ff.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-6f0cf6e3.entry.js.map → p-d97fbf1f.entry.js.map} +0 -0
|
@@ -604,26 +604,6 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
604
604
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
605
605
|
};
|
|
606
606
|
|
|
607
|
-
const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
|
|
608
|
-
|
|
609
|
-
const DIGIT = '0123456789';
|
|
610
|
-
|
|
611
|
-
const ALPHABET = {
|
|
612
|
-
DIGIT,
|
|
613
|
-
ALPHA,
|
|
614
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
615
|
-
};
|
|
616
|
-
|
|
617
|
-
const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
618
|
-
let str = '';
|
|
619
|
-
const {length} = alphabet;
|
|
620
|
-
while (size--) {
|
|
621
|
-
str += alphabet[Math.random() * length|0];
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
return str;
|
|
625
|
-
};
|
|
626
|
-
|
|
627
607
|
/**
|
|
628
608
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
629
609
|
*
|
|
@@ -751,8 +731,6 @@ const utils$1 = {
|
|
|
751
731
|
findKey,
|
|
752
732
|
global: _global,
|
|
753
733
|
isContextDefined,
|
|
754
|
-
ALPHABET,
|
|
755
|
-
generateString,
|
|
756
734
|
isSpecCompliantForm,
|
|
757
735
|
toJSONObject,
|
|
758
736
|
isAsyncFn,
|
|
@@ -1149,7 +1127,7 @@ function encode(val) {
|
|
|
1149
1127
|
*
|
|
1150
1128
|
* @param {string} url The base of the url (e.g., http://www.google.com)
|
|
1151
1129
|
* @param {object} [params] The params to be appended
|
|
1152
|
-
* @param {?object} options
|
|
1130
|
+
* @param {?(object|Function)} options
|
|
1153
1131
|
*
|
|
1154
1132
|
* @returns {string} The formatted url
|
|
1155
1133
|
*/
|
|
@@ -1161,6 +1139,12 @@ function buildURL(url, params, options) {
|
|
|
1161
1139
|
|
|
1162
1140
|
const _encode = options && options.encode || encode;
|
|
1163
1141
|
|
|
1142
|
+
if (utils$1.isFunction(options)) {
|
|
1143
|
+
options = {
|
|
1144
|
+
serialize: options
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1164
1148
|
const serializeFn = options && options.serialize;
|
|
1165
1149
|
|
|
1166
1150
|
let serializedParams;
|
|
@@ -2143,68 +2127,18 @@ const progressEventDecorator = (total, throttled) => {
|
|
|
2143
2127
|
|
|
2144
2128
|
const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
|
|
2145
2129
|
|
|
2146
|
-
const isURLSameOrigin = platform.hasStandardBrowserEnv ?
|
|
2147
|
-
|
|
2148
|
-
// Standard browser envs have full support of the APIs needed to test
|
|
2149
|
-
// whether the request URL is of the same origin as current location.
|
|
2150
|
-
(function standardBrowserEnv() {
|
|
2151
|
-
const msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);
|
|
2152
|
-
const urlParsingNode = document.createElement('a');
|
|
2153
|
-
let originURL;
|
|
2154
|
-
|
|
2155
|
-
/**
|
|
2156
|
-
* Parse a URL to discover its components
|
|
2157
|
-
*
|
|
2158
|
-
* @param {String} url The URL to be parsed
|
|
2159
|
-
* @returns {Object}
|
|
2160
|
-
*/
|
|
2161
|
-
function resolveURL(url) {
|
|
2162
|
-
let href = url;
|
|
2163
|
-
|
|
2164
|
-
if (msie) {
|
|
2165
|
-
// IE needs attribute set twice to normalize properties
|
|
2166
|
-
urlParsingNode.setAttribute('href', href);
|
|
2167
|
-
href = urlParsingNode.href;
|
|
2168
|
-
}
|
|
2169
|
-
|
|
2170
|
-
urlParsingNode.setAttribute('href', href);
|
|
2171
|
-
|
|
2172
|
-
// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
|
|
2173
|
-
return {
|
|
2174
|
-
href: urlParsingNode.href,
|
|
2175
|
-
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
|
|
2176
|
-
host: urlParsingNode.host,
|
|
2177
|
-
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
|
|
2178
|
-
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
|
|
2179
|
-
hostname: urlParsingNode.hostname,
|
|
2180
|
-
port: urlParsingNode.port,
|
|
2181
|
-
pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
|
|
2182
|
-
urlParsingNode.pathname :
|
|
2183
|
-
'/' + urlParsingNode.pathname
|
|
2184
|
-
};
|
|
2185
|
-
}
|
|
2186
|
-
|
|
2187
|
-
originURL = resolveURL(window.location.href);
|
|
2130
|
+
const isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
|
|
2131
|
+
url = new URL(url, platform.origin);
|
|
2188
2132
|
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
parsed.host === originURL.host);
|
|
2199
|
-
};
|
|
2200
|
-
})() :
|
|
2201
|
-
|
|
2202
|
-
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
2203
|
-
(function nonStandardBrowserEnv() {
|
|
2204
|
-
return function isURLSameOrigin() {
|
|
2205
|
-
return true;
|
|
2206
|
-
};
|
|
2207
|
-
})();
|
|
2133
|
+
return (
|
|
2134
|
+
origin.protocol === url.protocol &&
|
|
2135
|
+
origin.host === url.host &&
|
|
2136
|
+
(isMSIE || origin.port === url.port)
|
|
2137
|
+
);
|
|
2138
|
+
})(
|
|
2139
|
+
new URL(platform.origin),
|
|
2140
|
+
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
2141
|
+
) : () => true;
|
|
2208
2142
|
|
|
2209
2143
|
const cookies = platform.hasStandardBrowserEnv ?
|
|
2210
2144
|
|
|
@@ -2283,8 +2217,9 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
2283
2217
|
*
|
|
2284
2218
|
* @returns {string} The combined full path
|
|
2285
2219
|
*/
|
|
2286
|
-
function buildFullPath(baseURL, requestedURL) {
|
|
2287
|
-
|
|
2220
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
2221
|
+
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
2222
|
+
if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
|
|
2288
2223
|
return combineURLs(baseURL, requestedURL);
|
|
2289
2224
|
}
|
|
2290
2225
|
return requestedURL;
|
|
@@ -2306,7 +2241,7 @@ function mergeConfig(config1, config2) {
|
|
|
2306
2241
|
config2 = config2 || {};
|
|
2307
2242
|
const config = {};
|
|
2308
2243
|
|
|
2309
|
-
function getMergedValue(target, source, caseless) {
|
|
2244
|
+
function getMergedValue(target, source, prop, caseless) {
|
|
2310
2245
|
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
2311
2246
|
return utils$1.merge.call({caseless}, target, source);
|
|
2312
2247
|
} else if (utils$1.isPlainObject(source)) {
|
|
@@ -2318,11 +2253,11 @@ function mergeConfig(config1, config2) {
|
|
|
2318
2253
|
}
|
|
2319
2254
|
|
|
2320
2255
|
// eslint-disable-next-line consistent-return
|
|
2321
|
-
function mergeDeepProperties(a, b, caseless) {
|
|
2256
|
+
function mergeDeepProperties(a, b, prop , caseless) {
|
|
2322
2257
|
if (!utils$1.isUndefined(b)) {
|
|
2323
|
-
return getMergedValue(a, b, caseless);
|
|
2258
|
+
return getMergedValue(a, b, prop , caseless);
|
|
2324
2259
|
} else if (!utils$1.isUndefined(a)) {
|
|
2325
|
-
return getMergedValue(undefined, a, caseless);
|
|
2260
|
+
return getMergedValue(undefined, a, prop , caseless);
|
|
2326
2261
|
}
|
|
2327
2262
|
}
|
|
2328
2263
|
|
|
@@ -2380,7 +2315,7 @@ function mergeConfig(config1, config2) {
|
|
|
2380
2315
|
socketPath: defaultToConfig2,
|
|
2381
2316
|
responseEncoding: defaultToConfig2,
|
|
2382
2317
|
validateStatus: mergeDirectKeys,
|
|
2383
|
-
headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
|
|
2318
|
+
headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
|
|
2384
2319
|
};
|
|
2385
2320
|
|
|
2386
2321
|
utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
@@ -3122,7 +3057,7 @@ function dispatchRequest(config) {
|
|
|
3122
3057
|
});
|
|
3123
3058
|
}
|
|
3124
3059
|
|
|
3125
|
-
const VERSION = "1.
|
|
3060
|
+
const VERSION = "1.8.1";
|
|
3126
3061
|
|
|
3127
3062
|
const validators$1 = {};
|
|
3128
3063
|
|
|
@@ -3173,6 +3108,14 @@ validators$1.transitional = function transitional(validator, version, message) {
|
|
|
3173
3108
|
};
|
|
3174
3109
|
};
|
|
3175
3110
|
|
|
3111
|
+
validators$1.spelling = function spelling(correctSpelling) {
|
|
3112
|
+
return (value, opt) => {
|
|
3113
|
+
// eslint-disable-next-line no-console
|
|
3114
|
+
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
3115
|
+
return true;
|
|
3116
|
+
}
|
|
3117
|
+
};
|
|
3118
|
+
|
|
3176
3119
|
/**
|
|
3177
3120
|
* Assert object's properties type
|
|
3178
3121
|
*
|
|
@@ -3242,9 +3185,9 @@ class Axios {
|
|
|
3242
3185
|
return await this._request(configOrUrl, config);
|
|
3243
3186
|
} catch (err) {
|
|
3244
3187
|
if (err instanceof Error) {
|
|
3245
|
-
let dummy;
|
|
3188
|
+
let dummy = {};
|
|
3246
3189
|
|
|
3247
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy
|
|
3190
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
|
|
3248
3191
|
|
|
3249
3192
|
// slice off the Error: ... line
|
|
3250
3193
|
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
|
|
@@ -3299,6 +3242,18 @@ class Axios {
|
|
|
3299
3242
|
}
|
|
3300
3243
|
}
|
|
3301
3244
|
|
|
3245
|
+
// Set config.allowAbsoluteUrls
|
|
3246
|
+
if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
|
|
3247
|
+
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
3248
|
+
} else {
|
|
3249
|
+
config.allowAbsoluteUrls = true;
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3252
|
+
validator.assertOptions(config, {
|
|
3253
|
+
baseUrl: validators.spelling('baseURL'),
|
|
3254
|
+
withXsrfToken: validators.spelling('withXSRFToken')
|
|
3255
|
+
}, true);
|
|
3256
|
+
|
|
3302
3257
|
// Set config.method
|
|
3303
3258
|
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
|
3304
3259
|
|
|
@@ -3389,7 +3344,7 @@ class Axios {
|
|
|
3389
3344
|
|
|
3390
3345
|
getUri(config) {
|
|
3391
3346
|
config = mergeConfig(this.defaults, config);
|
|
3392
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
3347
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
3393
3348
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
3394
3349
|
}
|
|
3395
3350
|
}
|
|
@@ -3734,4 +3689,4 @@ axios.default = axios;
|
|
|
3734
3689
|
|
|
3735
3690
|
export { axios as a };
|
|
3736
3691
|
|
|
3737
|
-
//# sourceMappingURL=p-
|
|
3692
|
+
//# sourceMappingURL=p-345a1e99.js.map
|