@base-web-kits/base-tools-ts 1.3.11 → 1.3.13
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/index.mjs
CHANGED
|
@@ -3500,7 +3500,7 @@ function getOSSSegs(type, option) {
|
|
|
3500
3500
|
if (!option && option !== 0) return "";
|
|
3501
3501
|
if (option === true) return type;
|
|
3502
3502
|
if (typeof option === "number" || typeof option === "string") return `${type},${option}`;
|
|
3503
|
-
const segs = Object.entries(option).map(([k, v]) => `${k}_${v}`).join(",");
|
|
3503
|
+
const segs = Object.entries(option).filter(([, v]) => v !== null && v !== void 0).map(([k, v]) => `${k}_${v}`).join(",");
|
|
3504
3504
|
return segs ? `${type},${segs}` : "";
|
|
3505
3505
|
}
|
|
3506
3506
|
function getWatermark(w) {
|