dozy 1.0.83 → 1.0.85
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.d.ts +12 -4
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -184,6 +184,14 @@ declare function $getFileType(fileName: string): FileType;
|
|
|
184
184
|
* @returns 输入为空时返回 `false`;否则返回是否匹配内部 URL 规则。
|
|
185
185
|
*/
|
|
186
186
|
declare function $isValidOrBriefURL(url?: string): boolean;
|
|
187
|
+
/**
|
|
188
|
+
* 补全 URL: 如果缺少协议头 (http:// 或 https://) 则自动补上 https://。
|
|
189
|
+
* 适用于用户输入的简写 URL, 例如 `a.ac` → `https://a.ac`。
|
|
190
|
+
*
|
|
191
|
+
* @param url 待补全的 URL 字符串。
|
|
192
|
+
* @returns 补全后的 URL;空字符串原样返回。
|
|
193
|
+
*/
|
|
194
|
+
declare function $ensureUrl(url: string): string;
|
|
187
195
|
/**
|
|
188
196
|
* 将 tick 时间格式化为可读字符串。
|
|
189
197
|
*
|
|
@@ -794,13 +802,13 @@ type ScaleResponsiveOptions = {
|
|
|
794
802
|
/**
|
|
795
803
|
* xls 横屏模式下的 base 乘数。
|
|
796
804
|
*
|
|
797
|
-
* 默认写成 `
|
|
805
|
+
* 默认写成 `640 / 320`,方便直观看出是从 320 基准扩展到 640 基准。
|
|
798
806
|
*/
|
|
799
807
|
baseMultiplier?: number;
|
|
800
808
|
/**
|
|
801
809
|
* xls 横屏模式下的最大宽高比。
|
|
802
810
|
*
|
|
803
|
-
* 默认写成 `1
|
|
811
|
+
* 默认写成 `1.2`。
|
|
804
812
|
*/
|
|
805
813
|
xlsMaxAspectRatio?: number;
|
|
806
814
|
/** xls 状态变化时触发,方便业务侧保存状态。 */
|
|
@@ -1415,6 +1423,6 @@ declare function toRgbString(input: string | Color | any): string | undefined;
|
|
|
1415
1423
|
*/
|
|
1416
1424
|
declare function toHslString(input: string | Color | any): string | undefined;
|
|
1417
1425
|
|
|
1418
|
-
declare const DOZY = "1.0.
|
|
1426
|
+
declare const DOZY = "1.0.85";
|
|
1419
1427
|
|
|
1420
|
-
export { $Headers, $Request, $Response, $URL, $URLSearchParams, $arrayFrom, $arrayIsArray, $assign, $backgroundColor, $borderColor, $capitalize, $checkValidEmailWithUnicode, $clamp, $clearInterval, $clearTimeout, $clone, $compressImage, $compressImageBase64, $compressImageDefaultOptions, $copy, $crypto, $date, $decodeBase64ToBinary, $decodeBase64ToUnicode, $deepClone, $defineProperty, $document, $encodeUnicodeToBase64, $entries, $escapeHTML, $fallbackCopy, $fetch, $fileToBase64, $formatDate, $formatPoints, $formatPointsWithChange, $formatWithCommas, $freeze, $genSSF, $getFileType, $getHue, $getTimeString, $hasKey, $if, $inRange, $inRange2, $inferExtensionFormPureBase64, $inferMimeTypeFormPureBase64, $is, $isObject, $isPlainClass, $isValidEmailWithUnicode, $isValidOrBriefURL, $jsonParse, $jsonStringify, $keys, $lastIndex, $lindex, $loadOpt, $location, $log, $lplus, $magic, $math, $now, $numberIsFinite, $numberIsNaN, $oc, $open, $parseParams, $promise, $pureText, $purifyBase64, $randomByte, $replaceHolesWithUndefined, $rmvSlash, $rsValue, $rsetValue, $rvalue, $s, $sc, $setInterval, $setRange, $setTimeout, $stringFromCharCode, $stringFromCodePoint, $stringToRange, $strings, $toDataUrlFromBase64, $validName, $values, $window, type Any, type Atoa, type Coord, type Coord3, DOZY, type DozyConfig, type DozyConfigItem, type FileType, Gens, type Hel, type IOpt, type Items, type Null, type Nullable, RainbowGen, RepoStore, type ScaleComputer, type ScaleIniter, type ScaleResponsiveOptions, StringObfuscator, type UNumber, __GensDirectives, _res, boxShadow, dozy, enableScaler, err403, errArg, errCode, errContent, errMsg, errNotLoggedIn, errToString, getBrightness, getColorMap, isNowAroundUtcHour, isNull, isValidColor, maybeString, registerCustomColor, s, shanghaiDateFormatter, smallChance, smartParse, smartString, standardIniter, textShadow, toHexString, toHslString, toRgbString, toRgbaArray, web$enableHttpsRedirect, web$enableProdProtector, web$encodeURI, web$pathStartData, web$redirectToDomain, web$setPathTarget, xtrim };
|
|
1428
|
+
export { $Headers, $Request, $Response, $URL, $URLSearchParams, $arrayFrom, $arrayIsArray, $assign, $backgroundColor, $borderColor, $capitalize, $checkValidEmailWithUnicode, $clamp, $clearInterval, $clearTimeout, $clone, $compressImage, $compressImageBase64, $compressImageDefaultOptions, $copy, $crypto, $date, $decodeBase64ToBinary, $decodeBase64ToUnicode, $deepClone, $defineProperty, $document, $encodeUnicodeToBase64, $ensureUrl, $entries, $escapeHTML, $fallbackCopy, $fetch, $fileToBase64, $formatDate, $formatPoints, $formatPointsWithChange, $formatWithCommas, $freeze, $genSSF, $getFileType, $getHue, $getTimeString, $hasKey, $if, $inRange, $inRange2, $inferExtensionFormPureBase64, $inferMimeTypeFormPureBase64, $is, $isObject, $isPlainClass, $isValidEmailWithUnicode, $isValidOrBriefURL, $jsonParse, $jsonStringify, $keys, $lastIndex, $lindex, $loadOpt, $location, $log, $lplus, $magic, $math, $now, $numberIsFinite, $numberIsNaN, $oc, $open, $parseParams, $promise, $pureText, $purifyBase64, $randomByte, $replaceHolesWithUndefined, $rmvSlash, $rsValue, $rsetValue, $rvalue, $s, $sc, $setInterval, $setRange, $setTimeout, $stringFromCharCode, $stringFromCodePoint, $stringToRange, $strings, $toDataUrlFromBase64, $validName, $values, $window, type Any, type Atoa, type Coord, type Coord3, DOZY, type DozyConfig, type DozyConfigItem, type FileType, Gens, type Hel, type IOpt, type Items, type Null, type Nullable, RainbowGen, RepoStore, type ScaleComputer, type ScaleIniter, type ScaleResponsiveOptions, StringObfuscator, type UNumber, __GensDirectives, _res, boxShadow, dozy, enableScaler, err403, errArg, errCode, errContent, errMsg, errNotLoggedIn, errToString, getBrightness, getColorMap, isNowAroundUtcHour, isNull, isValidColor, maybeString, registerCustomColor, s, shanghaiDateFormatter, smallChance, smartParse, smartString, standardIniter, textShadow, toHexString, toHslString, toRgbString, toRgbaArray, web$enableHttpsRedirect, web$enableProdProtector, web$encodeURI, web$pathStartData, web$redirectToDomain, web$setPathTarget, xtrim };
|