@base-web-kits/base-tools-web 1.0.2-alpha.6 → 1.1.0-alpha.0
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/README.md +2 -2
- package/dist/base-tools-web.umd.global.js +4 -4
- package/dist/base-tools-web.umd.global.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/web/config/index.ts +1 -1
- package/src/web/network/request.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -217,7 +217,7 @@ function execCopyFromHtml(html) {
|
|
|
217
217
|
|
|
218
218
|
// src/web/config/index.ts
|
|
219
219
|
var appConfig = {};
|
|
220
|
-
function
|
|
220
|
+
function getBaseToolsConfig() {
|
|
221
221
|
return appConfig;
|
|
222
222
|
}
|
|
223
223
|
function setBaseToolsConfig(newConfig) {
|
|
@@ -1550,7 +1550,7 @@ function request(config) {
|
|
|
1550
1550
|
return;
|
|
1551
1551
|
}
|
|
1552
1552
|
}
|
|
1553
|
-
const appConfig2 =
|
|
1553
|
+
const appConfig2 = getBaseToolsConfig();
|
|
1554
1554
|
if (showLoading) appConfig2.showLoading?.();
|
|
1555
1555
|
let isTimeout = false;
|
|
1556
1556
|
const timeoutId = setTimeout(() => {
|
|
@@ -1617,7 +1617,7 @@ function request(config) {
|
|
|
1617
1617
|
return promise;
|
|
1618
1618
|
}
|
|
1619
1619
|
function logRequestInfo(options) {
|
|
1620
|
-
const { log } =
|
|
1620
|
+
const { log } = getBaseToolsConfig();
|
|
1621
1621
|
const { isLog = true } = options.config;
|
|
1622
1622
|
if (!log || !isLog) return;
|
|
1623
1623
|
const { config, res, fromCache = false, startTime, status, e } = options;
|
|
@@ -1762,7 +1762,7 @@ export {
|
|
|
1762
1762
|
copyText,
|
|
1763
1763
|
copyUrl,
|
|
1764
1764
|
download,
|
|
1765
|
-
|
|
1765
|
+
getBaseToolsConfig,
|
|
1766
1766
|
getBrowserName,
|
|
1767
1767
|
getBrowserVersion,
|
|
1768
1768
|
getCookie,
|