@base-web-kits/base-tools-web 1.0.2-alpha.0 → 1.0.2-alpha.1
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/base-tools-web.umd.global.js +11 -6
- package/dist/base-tools-web.umd.global.js.map +1 -1
- package/dist/index.cjs +13 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/web/index.ts +1 -0
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/web/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/web/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -215,6 +215,15 @@ function execCopyFromHtml(html) {
|
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
// src/web/config/index.ts
|
|
219
|
+
var appConfig = {};
|
|
220
|
+
function getAppConfig() {
|
|
221
|
+
return appConfig;
|
|
222
|
+
}
|
|
223
|
+
function setAppConfig(newConfig) {
|
|
224
|
+
Object.assign(appConfig, newConfig);
|
|
225
|
+
}
|
|
226
|
+
|
|
218
227
|
// src/web/cookie/index.ts
|
|
219
228
|
function setCookie(name, value, days) {
|
|
220
229
|
const date = /* @__PURE__ */ new Date();
|
|
@@ -1477,12 +1486,6 @@ function isLongitude(s) {
|
|
|
1477
1486
|
return Number.isFinite(v) && v >= -180 && v <= 180;
|
|
1478
1487
|
}
|
|
1479
1488
|
|
|
1480
|
-
// src/web/config/index.ts
|
|
1481
|
-
var appConfig = {};
|
|
1482
|
-
function getAppConfig() {
|
|
1483
|
-
return appConfig;
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
1489
|
// src/web/network/request.ts
|
|
1487
1490
|
var requestCache = /* @__PURE__ */ new Map();
|
|
1488
1491
|
function request(config) {
|
|
@@ -1758,6 +1761,7 @@ export {
|
|
|
1758
1761
|
copyText,
|
|
1759
1762
|
copyUrl,
|
|
1760
1763
|
download,
|
|
1764
|
+
getAppConfig,
|
|
1761
1765
|
getBrowserName,
|
|
1762
1766
|
getBrowserVersion,
|
|
1763
1767
|
getCookie,
|
|
@@ -1792,6 +1796,7 @@ export {
|
|
|
1792
1796
|
removeCookie,
|
|
1793
1797
|
removeLocalStorage,
|
|
1794
1798
|
request,
|
|
1799
|
+
setAppConfig,
|
|
1795
1800
|
setCookie,
|
|
1796
1801
|
setLocalStorage,
|
|
1797
1802
|
unlockBodyScroll,
|