@capillarytech/blaze-ui 5.1.4 → 5.1.5
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/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +17 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/service/api.js +96 -0
- package/service/api.js.map +1 -0
- package/service/index.d.ts +3 -0
- package/service/index.d.ts.map +1 -0
- package/service/index.js +108 -0
- package/service/index.js.map +1 -0
package/package.json
CHANGED
package/service/api.js
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ var __webpack_modules__ = ({
|
|
4
|
+
|
|
5
|
+
/***/ 6447:
|
|
6
|
+
/***/ ((module) => {
|
|
7
|
+
|
|
8
|
+
module.exports = require("whatwg-fetch");
|
|
9
|
+
|
|
10
|
+
/***/ })
|
|
11
|
+
|
|
12
|
+
/******/ });
|
|
13
|
+
/************************************************************************/
|
|
14
|
+
/******/ // The module cache
|
|
15
|
+
/******/ var __webpack_module_cache__ = {};
|
|
16
|
+
/******/
|
|
17
|
+
/******/ // The require function
|
|
18
|
+
/******/ function __webpack_require__(moduleId) {
|
|
19
|
+
/******/ // Check if module is in cache
|
|
20
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
21
|
+
/******/ if (cachedModule !== undefined) {
|
|
22
|
+
/******/ return cachedModule.exports;
|
|
23
|
+
/******/ }
|
|
24
|
+
/******/ // Create a new module (and put it into the cache)
|
|
25
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
26
|
+
/******/ // no module.id needed
|
|
27
|
+
/******/ // no module.loaded needed
|
|
28
|
+
/******/ exports: {}
|
|
29
|
+
/******/ };
|
|
30
|
+
/******/
|
|
31
|
+
/******/ // Execute the module function
|
|
32
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
33
|
+
/******/
|
|
34
|
+
/******/ // Return the exports of the module
|
|
35
|
+
/******/ return module.exports;
|
|
36
|
+
/******/ }
|
|
37
|
+
/******/
|
|
38
|
+
/************************************************************************/
|
|
39
|
+
var __webpack_exports__ = {};
|
|
40
|
+
// This entry needs to be wrapped in an IIFE because it uses a non-standard name for the exports (exports).
|
|
41
|
+
(() => {
|
|
42
|
+
var exports = __webpack_exports__;
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
exports.__esModule = true;
|
|
46
|
+
exports.request = request;
|
|
47
|
+
__webpack_require__(6447);
|
|
48
|
+
function parseJSON(response) {
|
|
49
|
+
if (response.status === 204) return Promise.resolve('');
|
|
50
|
+
return response.json();
|
|
51
|
+
}
|
|
52
|
+
function checkStatus(response) {
|
|
53
|
+
if (response.status >= 200 && response.status < 300 || response.status === 500) {
|
|
54
|
+
return response;
|
|
55
|
+
}
|
|
56
|
+
const error = new Error(response.statusText);
|
|
57
|
+
error.response = response;
|
|
58
|
+
throw error;
|
|
59
|
+
}
|
|
60
|
+
function fetchWithTimeout(ms, promise) {
|
|
61
|
+
//https://github.com/github/fetch/issues/175#issuecomment-125779262
|
|
62
|
+
return new Promise((resolve, reject) => {
|
|
63
|
+
setTimeout(() => {
|
|
64
|
+
const error = new Error('Request timeout');
|
|
65
|
+
error.errors = [{
|
|
66
|
+
message: 'Request timeout'
|
|
67
|
+
}];
|
|
68
|
+
error.errorLocation = window.location.href;
|
|
69
|
+
reject(error);
|
|
70
|
+
}, ms);
|
|
71
|
+
promise.then(resolve, reject);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// isTimeRequired parameter is added to prevent appending time parameter to inTouch APIs
|
|
76
|
+
// while maintaining backward compatibility for existing components that use this function.
|
|
77
|
+
// Default is true to preserve existing behavior.
|
|
78
|
+
function request(url, options, timeout, isTimeRequired) {
|
|
79
|
+
if (timeout === void 0) {
|
|
80
|
+
timeout = 50000;
|
|
81
|
+
}
|
|
82
|
+
if (isTimeRequired === void 0) {
|
|
83
|
+
isTimeRequired = true;
|
|
84
|
+
}
|
|
85
|
+
let fetchUrl = url;
|
|
86
|
+
if (isTimeRequired) {
|
|
87
|
+
fetchUrl = url.indexOf('?') !== -1 ? url + "&time=" + Date.now() : url + "?time=" + Date.now();
|
|
88
|
+
}
|
|
89
|
+
return fetchWithTimeout(timeout, fetch(fetchUrl, options)).then(checkStatus).then(parseJSON);
|
|
90
|
+
}
|
|
91
|
+
})();
|
|
92
|
+
|
|
93
|
+
module.exports = __webpack_exports__;
|
|
94
|
+
/******/ })()
|
|
95
|
+
;
|
|
96
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service/api.js","mappings":";;;;;;;AAAA,yC;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;;;;;;;ACtBAA,mBAAA;AAIA,SAASC,SAASA,CAAIC,QAAkB,EAAc;EACpD,IAAIA,QAAQ,CAACC,MAAM,KAAK,GAAG,EAAE,OAAOC,OAAO,CAACC,OAAO,CAAC,EAAkB,CAAC;EACvE,OAAOH,QAAQ,CAACI,IAAI,CAAC,CAAC;AACxB;AAEA,SAASC,WAAWA,CAACL,QAAkB,EAAY;EACjD,IAAKA,QAAQ,CAACC,MAAM,IAAI,GAAG,IAAID,QAAQ,CAACC,MAAM,GAAG,GAAG,IAAKD,QAAQ,CAACC,MAAM,KAAK,GAAG,EAAE;IAChF,OAAOD,QAAQ;EACjB;EAEA,MAAMM,KAAe,GAAG,IAAIC,KAAK,CAACP,QAAQ,CAACQ,UAAU,CAAC;EACtDF,KAAK,CAACN,QAAQ,GAAGA,QAAQ;EACzB,MAAMM,KAAK;AACb;AAEA,SAASG,gBAAgBA,CAAIC,EAAU,EAAEC,OAAmB,EAAc;EACxE;EACA,OAAO,IAAIT,OAAO,CAAC,CAACC,OAAO,EAAES,MAAM,KAAK;IACtCC,UAAU,CAAC,MAAM;MACf,MAAMP,KAAe,GAAG,IAAIC,KAAK,CAAC,iBAAiB,CAAC;MACpDD,KAAK,CAACQ,MAAM,GAAG,CAAC;QAAEC,OAAO,EAAE;MAAkB,CAAC,CAAC;MAC/CT,KAAK,CAACU,aAAa,GAAGC,MAAM,CAACC,QAAQ,CAACC,IAAI;MAC1CP,MAAM,CAACN,KAAK,CAAC;IACf,CAAC,EAAEI,EAAE,CAAC;IACNC,OAAO,CAACS,IAAI,CAACjB,OAAO,EAAES,MAAM,CAAC;EAC/B,CAAC,CAAC;AACJ;;AAEA;AACA;AACA;AACO,SAASS,OAAOA,CACrBC,GAAW,EACXC,OAAqB,EACrBC,OAAe,EACfC,cAAuB,EACX;EAAA,IAFZD,OAAe;IAAfA,OAAe,GAAG,KAAK;EAAA;EAAA,IACvBC,cAAuB;IAAvBA,cAAuB,GAAG,IAAI;EAAA;EAE9B,IAAIC,QAAQ,GAAGJ,GAAG;EAClB,IAAIG,cAAc,EAAE;IAClBC,QAAQ,GAAGJ,GAAG,CAACK,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAML,GAAG,cAASM,IAAI,CAACC,GAAG,CAAC,CAAC,GAAQP,GAAG,cAASM,IAAI,CAACC,GAAG,CAAC,CAAG;EAChG;EACA,OAAOpB,gBAAgB,CAACe,OAAO,EAAEM,KAAK,CAACJ,QAAQ,EAAEH,OAAO,CAAC,CAAC,CACvDH,IAAI,CAACf,WAAW,CAAC,CACjBe,IAAI,CAACrB,SAAY,CAAC;AACvB,C","sources":["webpack://@capillarytech/blaze-ui/external commonjs2 \"whatwg-fetch\"","webpack://@capillarytech/blaze-ui/webpack/bootstrap","webpack://@capillarytech/blaze-ui/./components/service/api.ts"],"sourcesContent":["module.exports = require(\"whatwg-fetch\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","import 'whatwg-fetch';\n\nimport { ApiError } from './api.types';\n\nfunction parseJSON<T>(response: Response): Promise<T> {\n if (response.status === 204) return Promise.resolve('' as unknown as T);\n return response.json() as Promise<T>;\n}\n\nfunction checkStatus(response: Response): Response {\n if ((response.status >= 200 && response.status < 300) || response.status === 500) {\n return response;\n }\n\n const error: ApiError = new Error(response.statusText);\n error.response = response;\n throw error;\n}\n\nfunction fetchWithTimeout<T>(ms: number, promise: Promise<T>): Promise<T> {\n //https://github.com/github/fetch/issues/175#issuecomment-125779262\n return new Promise((resolve, reject) => {\n setTimeout(() => {\n const error: ApiError = new Error('Request timeout');\n error.errors = [{ message: 'Request timeout' }];\n error.errorLocation = window.location.href;\n reject(error);\n }, ms);\n promise.then(resolve, reject);\n });\n}\n\n// isTimeRequired parameter is added to prevent appending time parameter to inTouch APIs\n// while maintaining backward compatibility for existing components that use this function.\n// Default is true to preserve existing behavior.\nexport function request<T = unknown>(\n url: string,\n options?: RequestInit,\n timeout: number = 50000,\n isTimeRequired: boolean = true\n): Promise<T> {\n let fetchUrl = url;\n if (isTimeRequired) {\n fetchUrl = url.indexOf('?') !== -1 ? `${url}&time=${Date.now()}` : `${url}?time=${Date.now()}`;\n }\n return fetchWithTimeout(timeout, fetch(fetchUrl, options))\n .then(checkStatus)\n .then(parseJSON<T>);\n}\n"],"names":["require","parseJSON","response","status","Promise","resolve","json","checkStatus","error","Error","statusText","fetchWithTimeout","ms","promise","reject","setTimeout","errors","message","errorLocation","window","location","href","then","request","url","options","timeout","isTimeRequired","fetchUrl","indexOf","Date","now","fetch"],"sourceRoot":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/service/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
|
package/service/index.js
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ var __webpack_modules__ = ({
|
|
4
|
+
|
|
5
|
+
/***/ 6447:
|
|
6
|
+
/***/ ((module) => {
|
|
7
|
+
|
|
8
|
+
module.exports = require("whatwg-fetch");
|
|
9
|
+
|
|
10
|
+
/***/ }),
|
|
11
|
+
|
|
12
|
+
/***/ 82381:
|
|
13
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
exports.__esModule = true;
|
|
18
|
+
exports.request = request;
|
|
19
|
+
__webpack_require__(6447);
|
|
20
|
+
function parseJSON(response) {
|
|
21
|
+
if (response.status === 204) return Promise.resolve('');
|
|
22
|
+
return response.json();
|
|
23
|
+
}
|
|
24
|
+
function checkStatus(response) {
|
|
25
|
+
if (response.status >= 200 && response.status < 300 || response.status === 500) {
|
|
26
|
+
return response;
|
|
27
|
+
}
|
|
28
|
+
const error = new Error(response.statusText);
|
|
29
|
+
error.response = response;
|
|
30
|
+
throw error;
|
|
31
|
+
}
|
|
32
|
+
function fetchWithTimeout(ms, promise) {
|
|
33
|
+
//https://github.com/github/fetch/issues/175#issuecomment-125779262
|
|
34
|
+
return new Promise((resolve, reject) => {
|
|
35
|
+
setTimeout(() => {
|
|
36
|
+
const error = new Error('Request timeout');
|
|
37
|
+
error.errors = [{
|
|
38
|
+
message: 'Request timeout'
|
|
39
|
+
}];
|
|
40
|
+
error.errorLocation = window.location.href;
|
|
41
|
+
reject(error);
|
|
42
|
+
}, ms);
|
|
43
|
+
promise.then(resolve, reject);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// isTimeRequired parameter is added to prevent appending time parameter to inTouch APIs
|
|
48
|
+
// while maintaining backward compatibility for existing components that use this function.
|
|
49
|
+
// Default is true to preserve existing behavior.
|
|
50
|
+
function request(url, options, timeout, isTimeRequired) {
|
|
51
|
+
if (timeout === void 0) {
|
|
52
|
+
timeout = 50000;
|
|
53
|
+
}
|
|
54
|
+
if (isTimeRequired === void 0) {
|
|
55
|
+
isTimeRequired = true;
|
|
56
|
+
}
|
|
57
|
+
let fetchUrl = url;
|
|
58
|
+
if (isTimeRequired) {
|
|
59
|
+
fetchUrl = url.indexOf('?') !== -1 ? url + "&time=" + Date.now() : url + "?time=" + Date.now();
|
|
60
|
+
}
|
|
61
|
+
return fetchWithTimeout(timeout, fetch(fetchUrl, options)).then(checkStatus).then(parseJSON);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/***/ })
|
|
65
|
+
|
|
66
|
+
/******/ });
|
|
67
|
+
/************************************************************************/
|
|
68
|
+
/******/ // The module cache
|
|
69
|
+
/******/ var __webpack_module_cache__ = {};
|
|
70
|
+
/******/
|
|
71
|
+
/******/ // The require function
|
|
72
|
+
/******/ function __webpack_require__(moduleId) {
|
|
73
|
+
/******/ // Check if module is in cache
|
|
74
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
75
|
+
/******/ if (cachedModule !== undefined) {
|
|
76
|
+
/******/ return cachedModule.exports;
|
|
77
|
+
/******/ }
|
|
78
|
+
/******/ // Create a new module (and put it into the cache)
|
|
79
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
80
|
+
/******/ // no module.id needed
|
|
81
|
+
/******/ // no module.loaded needed
|
|
82
|
+
/******/ exports: {}
|
|
83
|
+
/******/ };
|
|
84
|
+
/******/
|
|
85
|
+
/******/ // Execute the module function
|
|
86
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
87
|
+
/******/
|
|
88
|
+
/******/ // Return the exports of the module
|
|
89
|
+
/******/ return module.exports;
|
|
90
|
+
/******/ }
|
|
91
|
+
/******/
|
|
92
|
+
/************************************************************************/
|
|
93
|
+
var __webpack_exports__ = {};
|
|
94
|
+
// This entry needs to be wrapped in an IIFE because it uses a non-standard name for the exports (exports).
|
|
95
|
+
(() => {
|
|
96
|
+
var exports = __webpack_exports__;
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
exports.__esModule = true;
|
|
100
|
+
exports.request = void 0;
|
|
101
|
+
var _api = __webpack_require__(82381);
|
|
102
|
+
exports.request = _api.request;
|
|
103
|
+
})();
|
|
104
|
+
|
|
105
|
+
module.exports = __webpack_exports__;
|
|
106
|
+
/******/ })()
|
|
107
|
+
;
|
|
108
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service/index.js","mappings":";;;;;;;AAAA,yC;;;;;;;;;;;ACAAA,mBAAA;AAIA,SAASC,SAASA,CAAIC,QAAkB,EAAc;EACpD,IAAIA,QAAQ,CAACC,MAAM,KAAK,GAAG,EAAE,OAAOC,OAAO,CAACC,OAAO,CAAC,EAAkB,CAAC;EACvE,OAAOH,QAAQ,CAACI,IAAI,CAAC,CAAC;AACxB;AAEA,SAASC,WAAWA,CAACL,QAAkB,EAAY;EACjD,IAAKA,QAAQ,CAACC,MAAM,IAAI,GAAG,IAAID,QAAQ,CAACC,MAAM,GAAG,GAAG,IAAKD,QAAQ,CAACC,MAAM,KAAK,GAAG,EAAE;IAChF,OAAOD,QAAQ;EACjB;EAEA,MAAMM,KAAe,GAAG,IAAIC,KAAK,CAACP,QAAQ,CAACQ,UAAU,CAAC;EACtDF,KAAK,CAACN,QAAQ,GAAGA,QAAQ;EACzB,MAAMM,KAAK;AACb;AAEA,SAASG,gBAAgBA,CAAIC,EAAU,EAAEC,OAAmB,EAAc;EACxE;EACA,OAAO,IAAIT,OAAO,CAAC,CAACC,OAAO,EAAES,MAAM,KAAK;IACtCC,UAAU,CAAC,MAAM;MACf,MAAMP,KAAe,GAAG,IAAIC,KAAK,CAAC,iBAAiB,CAAC;MACpDD,KAAK,CAACQ,MAAM,GAAG,CAAC;QAAEC,OAAO,EAAE;MAAkB,CAAC,CAAC;MAC/CT,KAAK,CAACU,aAAa,GAAGC,MAAM,CAACC,QAAQ,CAACC,IAAI;MAC1CP,MAAM,CAACN,KAAK,CAAC;IACf,CAAC,EAAEI,EAAE,CAAC;IACNC,OAAO,CAACS,IAAI,CAACjB,OAAO,EAAES,MAAM,CAAC;EAC/B,CAAC,CAAC;AACJ;;AAEA;AACA;AACA;AACO,SAASS,OAAOA,CACrBC,GAAW,EACXC,OAAqB,EACrBC,OAAe,EACfC,cAAuB,EACX;EAAA,IAFZD,OAAe;IAAfA,OAAe,GAAG,KAAK;EAAA;EAAA,IACvBC,cAAuB;IAAvBA,cAAuB,GAAG,IAAI;EAAA;EAE9B,IAAIC,QAAQ,GAAGJ,GAAG;EAClB,IAAIG,cAAc,EAAE;IAClBC,QAAQ,GAAGJ,GAAG,CAACK,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAML,GAAG,cAASM,IAAI,CAACC,GAAG,CAAC,CAAC,GAAQP,GAAG,cAASM,IAAI,CAACC,GAAG,CAAC,CAAG;EAChG;EACA,OAAOpB,gBAAgB,CAACe,OAAO,EAAEM,KAAK,CAACJ,QAAQ,EAAEH,OAAO,CAAC,CAAC,CACvDH,IAAI,CAACf,WAAW,CAAC,CACjBe,IAAI,CAACrB,SAAY,CAAC;AACvB,C;;;;;;UChDA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;;;;;;;ACtBA,IAAAgC,IAAA,GAAAjC,mBAAA;AAAgCkC,eAAA,GAAAD,IAAA,CAAAV,OAAA,C","sources":["webpack://@capillarytech/blaze-ui/external commonjs2 \"whatwg-fetch\"","webpack://@capillarytech/blaze-ui/./components/service/api.ts","webpack://@capillarytech/blaze-ui/webpack/bootstrap","webpack://@capillarytech/blaze-ui/./components/service/index.ts"],"sourcesContent":["module.exports = require(\"whatwg-fetch\");","import 'whatwg-fetch';\n\nimport { ApiError } from './api.types';\n\nfunction parseJSON<T>(response: Response): Promise<T> {\n if (response.status === 204) return Promise.resolve('' as unknown as T);\n return response.json() as Promise<T>;\n}\n\nfunction checkStatus(response: Response): Response {\n if ((response.status >= 200 && response.status < 300) || response.status === 500) {\n return response;\n }\n\n const error: ApiError = new Error(response.statusText);\n error.response = response;\n throw error;\n}\n\nfunction fetchWithTimeout<T>(ms: number, promise: Promise<T>): Promise<T> {\n //https://github.com/github/fetch/issues/175#issuecomment-125779262\n return new Promise((resolve, reject) => {\n setTimeout(() => {\n const error: ApiError = new Error('Request timeout');\n error.errors = [{ message: 'Request timeout' }];\n error.errorLocation = window.location.href;\n reject(error);\n }, ms);\n promise.then(resolve, reject);\n });\n}\n\n// isTimeRequired parameter is added to prevent appending time parameter to inTouch APIs\n// while maintaining backward compatibility for existing components that use this function.\n// Default is true to preserve existing behavior.\nexport function request<T = unknown>(\n url: string,\n options?: RequestInit,\n timeout: number = 50000,\n isTimeRequired: boolean = true\n): Promise<T> {\n let fetchUrl = url;\n if (isTimeRequired) {\n fetchUrl = url.indexOf('?') !== -1 ? `${url}&time=${Date.now()}` : `${url}?time=${Date.now()}`;\n }\n return fetchWithTimeout(timeout, fetch(fetchUrl, options))\n .then(checkStatus)\n .then(parseJSON<T>);\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","export { request } from './api';\nexport type { ApiError } from './api.types';\n\n"],"names":["require","parseJSON","response","status","Promise","resolve","json","checkStatus","error","Error","statusText","fetchWithTimeout","ms","promise","reject","setTimeout","errors","message","errorLocation","window","location","href","then","request","url","options","timeout","isTimeRequired","fetchUrl","indexOf","Date","now","fetch","_api","exports"],"sourceRoot":""}
|