@base-web-kits/base-tools-ts 1.4.10 → 1.4.16
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-ts.umd.global.js +1 -1
- package/dist/base-tools-ts.umd.global.js.map +1 -1
- package/dist/day/index.d.ts +3 -1
- package/dist/day/index.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/ts/clsx/index.ts +3 -3
- package/src/ts/day/index.ts +4 -1
- package/src/ts/url/oss/index.ts +4 -4
package/dist/day/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
2
|
import 'dayjs/locale/zh-cn.js';
|
|
3
|
-
|
|
3
|
+
/** Day.js 实例类型 */
|
|
4
|
+
export type Dayjs = dayjs.Dayjs;
|
|
5
|
+
type BaseTime = number | string | Date | Dayjs | null | undefined;
|
|
4
6
|
/**
|
|
5
7
|
* 创建 dayjs 实例
|
|
6
8
|
* 文档: https://day.js.org/zh-CN/
|
package/dist/day/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts/day/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts/day/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,uBAAuB,CAAC;AAG/B,kBAAkB;AAClB,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;AAShC,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,UAAU,eAmB3D;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,SAAwB,UAGnE;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,SAAe,YASpE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,SAAe,YASnE;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM;;;;;;EAgB7C;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM;;;EAqBlD;AAED;;;;;;GAMG;AACH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -5857,7 +5857,7 @@ function getOSSSegs(type, option) {
|
|
|
5857
5857
|
if (!option && option !== 0) return "";
|
|
5858
5858
|
if (option === true) return type;
|
|
5859
5859
|
if (typeof option === "number" || typeof option === "string") return `${type},${option}`;
|
|
5860
|
-
const segs = Object.entries(option).filter(([, v]) => v !== null && v !== void 0).map(([k, v]) => `${k}_${v}`).join(",");
|
|
5860
|
+
const segs = Object.entries(option).filter(([, v]) => v !== null && v !== void 0 && !Number.isNaN(v)).map(([k, v]) => `${k}_${v}`).join(",");
|
|
5861
5861
|
return segs ? `${type},${segs}` : "";
|
|
5862
5862
|
}
|
|
5863
5863
|
function getWatermark(w) {
|