@pawover/kit 0.0.0-beta.10 → 0.0.0-beta.12
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/enums.d.ts +130 -18
- package/dist/enums.d.ts.map +1 -1
- package/dist/enums.js +67 -18
- package/dist/enums.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/enums.d.ts
CHANGED
|
@@ -22,25 +22,137 @@ declare const BREAK_POINT_TOKEN_ENUM: {
|
|
|
22
22
|
};
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/enums/mime.d.ts
|
|
25
|
+
/**
|
|
26
|
+
* 标准 MIME 类型常量,用于文件类型标识和 HTTP Content-Type 头部
|
|
27
|
+
* 基于 IANA 注册标准和浏览器兼容性验证
|
|
28
|
+
*/
|
|
25
29
|
declare const MIME: {
|
|
26
|
-
|
|
27
|
-
readonly
|
|
28
|
-
|
|
29
|
-
readonly
|
|
30
|
-
|
|
31
|
-
readonly
|
|
32
|
-
|
|
33
|
-
readonly
|
|
34
|
-
|
|
35
|
-
readonly
|
|
36
|
-
|
|
37
|
-
readonly
|
|
38
|
-
|
|
39
|
-
readonly
|
|
40
|
-
|
|
41
|
-
readonly
|
|
42
|
-
|
|
43
|
-
readonly
|
|
30
|
+
/** 普通文本文件 */
|
|
31
|
+
readonly TEXT: "text/plain";
|
|
32
|
+
/** 超文本标记语言文档 */
|
|
33
|
+
readonly HTML: "text/html";
|
|
34
|
+
/** 层叠样式表文件 */
|
|
35
|
+
readonly CSS: "text/css";
|
|
36
|
+
/** 逗号分隔值文件(表格数据) */
|
|
37
|
+
readonly CSV: "text/csv";
|
|
38
|
+
/** 制表符分隔值文件 */
|
|
39
|
+
readonly TSV: "text/tab-separated-values";
|
|
40
|
+
/** XML 文档 */
|
|
41
|
+
readonly XML: "text/xml";
|
|
42
|
+
/** XHTML 文档(XML 严格格式的 HTML) */
|
|
43
|
+
readonly XHTML: "application/xhtml+xml";
|
|
44
|
+
/** JavaScript 脚本文件(标准推荐) */
|
|
45
|
+
readonly JS: "text/javascript";
|
|
46
|
+
/** Markdown 格式文档 */
|
|
47
|
+
readonly MARKDOWN: "text/markdown";
|
|
48
|
+
/** 富文本格式文档(.rtf) */
|
|
49
|
+
readonly RTF: "application/rtf";
|
|
50
|
+
/** iCalendar 日历格式(.ics) */
|
|
51
|
+
readonly CALENDAR: "text/calendar";
|
|
52
|
+
/** JPEG 图像(.jpg/.jpeg) */
|
|
53
|
+
readonly JPEG: "image/jpeg";
|
|
54
|
+
/** PNG 图像(无损压缩,支持透明) */
|
|
55
|
+
readonly PNG: "image/png";
|
|
56
|
+
/** GIF 图像(支持动画) */
|
|
57
|
+
readonly GIF: "image/gif";
|
|
58
|
+
/** Windows 位图(.bmp) */
|
|
59
|
+
readonly BMP: "image/bmp";
|
|
60
|
+
/** SVG 向量图形(.svg) */
|
|
61
|
+
readonly SVG: "image/svg+xml";
|
|
62
|
+
/** APNG 动态图像(.apng) */
|
|
63
|
+
readonly APNG: "image/apng";
|
|
64
|
+
/** AVIF 图像(高效压缩) */
|
|
65
|
+
readonly AVIF: "image/avif";
|
|
66
|
+
/** 图标文件格式(.ico) */
|
|
67
|
+
readonly ICO: "image/vnd.microsoft.icon";
|
|
68
|
+
/** WebP 图像(高效压缩) */
|
|
69
|
+
readonly WEBP: "image/webp";
|
|
70
|
+
/** MP3 音频(.mp3) */
|
|
71
|
+
readonly MP3: "audio/mpeg";
|
|
72
|
+
/** AAC 音频(.aac) */
|
|
73
|
+
readonly AAC: "audio/aac";
|
|
74
|
+
/** MIDI 音乐文件(.mid/.midi) */
|
|
75
|
+
readonly MIDI: "audio/midi";
|
|
76
|
+
/** OGG 音频(.oga) */
|
|
77
|
+
readonly OGG_AUDIO: "audio/ogg";
|
|
78
|
+
/** Opus 音频(.opus) */
|
|
79
|
+
readonly OPUS: "audio/opus";
|
|
80
|
+
/** WAV 音频(.wav) */
|
|
81
|
+
readonly WAV: "audio/wav";
|
|
82
|
+
/** RealAudio 音频(.ra/.ram) */
|
|
83
|
+
readonly REAL_AUDIO: "audio/x-pn-realaudio";
|
|
84
|
+
/** MP4 视频(.mp4) */
|
|
85
|
+
readonly MP4: "video/mp4";
|
|
86
|
+
/** MPEG 视频(.mpeg/.mpg) */
|
|
87
|
+
readonly MPEG: "video/mpeg";
|
|
88
|
+
/** OGG 视频(.ogv) */
|
|
89
|
+
readonly OGG_VIDEO: "video/ogg";
|
|
90
|
+
/** AVI 视频(.avi) */
|
|
91
|
+
readonly AVI: "video/x-msvideo";
|
|
92
|
+
/** 3GPP 视频(.3gp) */
|
|
93
|
+
readonly THREE_GPP: "video/3gpp";
|
|
94
|
+
/** 3GPP2 视频(.3g2) */
|
|
95
|
+
readonly THREE_GPP2: "video/3gpp2";
|
|
96
|
+
/** WebM 视频(.webm) */
|
|
97
|
+
readonly WEBM: "video/webm";
|
|
98
|
+
/** PDF 文档 */
|
|
99
|
+
readonly PDF: "application/pdf";
|
|
100
|
+
/** Word 97-2003 文档(.doc) */
|
|
101
|
+
readonly DOC: "application/msword";
|
|
102
|
+
/** Word 2007+ 文档(.docx) */
|
|
103
|
+
readonly DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
104
|
+
/** Excel 2007+ 工作簿(.xlsx) */
|
|
105
|
+
readonly XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
106
|
+
/** 启用宏的Excel工作簿(.xlsm) */
|
|
107
|
+
readonly XLSM: "application/vnd.ms-excel.sheet.macroEnabled.12";
|
|
108
|
+
/** Excel模板文件(.xltx) */
|
|
109
|
+
readonly XLTX: "application/vnd.openxmlformats-officedocument.spreadsheetml.template";
|
|
110
|
+
/** PowerPoint 2007+ 演示文稿(.pptx) */
|
|
111
|
+
readonly PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
|
112
|
+
/** PowerPoint 97-2003 演示文稿(.ppt) */
|
|
113
|
+
readonly PPT: "application/vnd.ms-powerpoint";
|
|
114
|
+
/** OpenDocument 文本文档(.odt) */
|
|
115
|
+
readonly ODT: "application/vnd.oasis.opendocument.text";
|
|
116
|
+
/** OpenDocument 表格文档(.ods) */
|
|
117
|
+
readonly ODS: "application/vnd.oasis.opendocument.spreadsheet";
|
|
118
|
+
/** OpenDocument 演示文稿(.odp) */
|
|
119
|
+
readonly ODP: "application/vnd.oasis.opendocument.presentation";
|
|
120
|
+
/** EPUB 电子书(.epub) */
|
|
121
|
+
readonly EPUB: "application/epub+zip";
|
|
122
|
+
/** Kindle 电子书(.azw) */
|
|
123
|
+
readonly AZW: "application/vnd.amazon.ebook";
|
|
124
|
+
/** ZIP 压缩文件(.zip) */
|
|
125
|
+
readonly ZIP: "application/zip";
|
|
126
|
+
/** GZIP 压缩文件(.gz) */
|
|
127
|
+
readonly GZIP: "application/gzip";
|
|
128
|
+
/** GZIP 压缩文件(旧格式) */
|
|
129
|
+
readonly X_GZIP: "application/x-gzip";
|
|
130
|
+
/** TAR 归档文件(.tar) */
|
|
131
|
+
readonly TAR: "application/x-tar";
|
|
132
|
+
/** BZip 归档(.bz) */
|
|
133
|
+
readonly BZIP: "application/x-bzip";
|
|
134
|
+
/** BZip2 归档(.bz2) */
|
|
135
|
+
readonly BZIP2: "application/x-bzip2";
|
|
136
|
+
/** 7-Zip 压缩文件(.7z) */
|
|
137
|
+
readonly SEVEN_Z: "application/x-7z-compressed";
|
|
138
|
+
/** 通用二进制数据(默认类型) */
|
|
139
|
+
readonly OCTET_STREAM: "application/octet-stream";
|
|
140
|
+
/** JSON 数据格式(.json) */
|
|
141
|
+
readonly JSON: "application/json";
|
|
142
|
+
/** JSON-LD 格式(.jsonld) */
|
|
143
|
+
readonly LD_JSON: "application/ld+json";
|
|
144
|
+
/** Java 归档文件(.jar) */
|
|
145
|
+
readonly JAR: "application/java-archive";
|
|
146
|
+
/** MS 嵌入式 OpenType 字体(.eot) */
|
|
147
|
+
readonly EOT: "application/vnd.ms-fontobject";
|
|
148
|
+
/** OpenType 字体(.otf) */
|
|
149
|
+
readonly OTF: "font/otf";
|
|
150
|
+
/** Excel 97-2003 工作簿(.xls) */
|
|
151
|
+
readonly XLS: "application/vnd.ms-excel";
|
|
152
|
+
/** Microsoft XPS 文档(.xps) */
|
|
153
|
+
readonly XPS: "application/vnd.ms-xpsdocument";
|
|
154
|
+
/** Word 启用宏文档(.docm) */
|
|
155
|
+
readonly DOCM: "application/vnd.ms-word.document.macroEnabled.12";
|
|
44
156
|
};
|
|
45
157
|
//#endregion
|
|
46
158
|
export { BREAK_POINT_TOKEN_ENUM, BREAK_POINT_TOKEN_TYPE, MIME };
|
package/dist/enums.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","names":[],"sources":["../src/enums/grid.ts","../src/enums/mime.ts"],"sourcesContent":[],"mappings":";KAAY,sBAAA,GAAyB,oBAAoB;AAAzD;AAEa,cAAA,sBAkBH,EAAA;;;;
|
|
1
|
+
{"version":3,"file":"enums.d.ts","names":[],"sources":["../src/enums/grid.ts","../src/enums/mime.ts"],"sourcesContent":[],"mappings":";KAAY,sBAAA,GAAyB,oBAAoB;AAAzD;AAEa,cAAA,sBAkBH,EAAA;;;;EChBG,SA+HH,EAAA,EAAA,GAAA;;;;;;;;;;;;;;;;;;ADnIV;AAEA;;cCEa;;EAAA,SA+HH,IAAA,EAAA,YAAA"}
|
package/dist/enums.js
CHANGED
|
@@ -22,25 +22,74 @@ const BREAK_POINT_TOKEN_ENUM = {
|
|
|
22
22
|
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/enums/mime.ts
|
|
25
|
+
/**
|
|
26
|
+
* 标准 MIME 类型常量,用于文件类型标识和 HTTP Content-Type 头部
|
|
27
|
+
* 基于 IANA 注册标准和浏览器兼容性验证
|
|
28
|
+
*/
|
|
25
29
|
const MIME = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
TEXT: "text/plain",
|
|
31
|
+
HTML: "text/html",
|
|
32
|
+
CSS: "text/css",
|
|
33
|
+
CSV: "text/csv",
|
|
34
|
+
TSV: "text/tab-separated-values",
|
|
35
|
+
XML: "text/xml",
|
|
36
|
+
XHTML: "application/xhtml+xml",
|
|
37
|
+
JS: "text/javascript",
|
|
38
|
+
MARKDOWN: "text/markdown",
|
|
39
|
+
RTF: "application/rtf",
|
|
40
|
+
CALENDAR: "text/calendar",
|
|
41
|
+
JPEG: "image/jpeg",
|
|
42
|
+
PNG: "image/png",
|
|
43
|
+
GIF: "image/gif",
|
|
44
|
+
BMP: "image/bmp",
|
|
45
|
+
SVG: "image/svg+xml",
|
|
46
|
+
APNG: "image/apng",
|
|
47
|
+
AVIF: "image/avif",
|
|
48
|
+
ICO: "image/vnd.microsoft.icon",
|
|
49
|
+
WEBP: "image/webp",
|
|
50
|
+
MP3: "audio/mpeg",
|
|
51
|
+
AAC: "audio/aac",
|
|
52
|
+
MIDI: "audio/midi",
|
|
53
|
+
OGG_AUDIO: "audio/ogg",
|
|
54
|
+
OPUS: "audio/opus",
|
|
55
|
+
WAV: "audio/wav",
|
|
56
|
+
REAL_AUDIO: "audio/x-pn-realaudio",
|
|
57
|
+
MP4: "video/mp4",
|
|
58
|
+
MPEG: "video/mpeg",
|
|
59
|
+
OGG_VIDEO: "video/ogg",
|
|
60
|
+
AVI: "video/x-msvideo",
|
|
61
|
+
THREE_GPP: "video/3gpp",
|
|
62
|
+
THREE_GPP2: "video/3gpp2",
|
|
63
|
+
WEBM: "video/webm",
|
|
64
|
+
PDF: "application/pdf",
|
|
65
|
+
DOC: "application/msword",
|
|
66
|
+
DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
67
|
+
XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
68
|
+
XLSM: "application/vnd.ms-excel.sheet.macroEnabled.12",
|
|
69
|
+
XLTX: "application/vnd.openxmlformats-officedocument.spreadsheetml.template",
|
|
70
|
+
PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
71
|
+
PPT: "application/vnd.ms-powerpoint",
|
|
72
|
+
ODT: "application/vnd.oasis.opendocument.text",
|
|
73
|
+
ODS: "application/vnd.oasis.opendocument.spreadsheet",
|
|
74
|
+
ODP: "application/vnd.oasis.opendocument.presentation",
|
|
75
|
+
EPUB: "application/epub+zip",
|
|
76
|
+
AZW: "application/vnd.amazon.ebook",
|
|
77
|
+
ZIP: "application/zip",
|
|
78
|
+
GZIP: "application/gzip",
|
|
79
|
+
X_GZIP: "application/x-gzip",
|
|
80
|
+
TAR: "application/x-tar",
|
|
81
|
+
BZIP: "application/x-bzip",
|
|
82
|
+
BZIP2: "application/x-bzip2",
|
|
83
|
+
SEVEN_Z: "application/x-7z-compressed",
|
|
84
|
+
OCTET_STREAM: "application/octet-stream",
|
|
85
|
+
JSON: "application/json",
|
|
86
|
+
LD_JSON: "application/ld+json",
|
|
87
|
+
JAR: "application/java-archive",
|
|
88
|
+
EOT: "application/vnd.ms-fontobject",
|
|
89
|
+
OTF: "font/otf",
|
|
90
|
+
XLS: "application/vnd.ms-excel",
|
|
91
|
+
XPS: "application/vnd.ms-xpsdocument",
|
|
92
|
+
DOCM: "application/vnd.ms-word.document.macroEnabled.12"
|
|
44
93
|
};
|
|
45
94
|
|
|
46
95
|
//#endregion
|
package/dist/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","names":[],"sources":["../src/enums/grid.ts","../src/enums/mime.ts"],"sourcesContent":["export type BREAK_POINT_TOKEN_TYPE = Record<keyof typeof BREAK_POINT_TOKEN_ENUM, number>;\n/** 屏幕响应断点 token 配置 */\nexport const BREAK_POINT_TOKEN_ENUM = {\n XS: 576,\n XSMin: 576,\n XSMax: 767,\n SM: 768,\n SMMin: 768,\n SMMax: 991,\n MD: 992,\n MDMin: 992,\n MDMax: 1199,\n LG: 1200,\n LGMin: 1200,\n LGMax: 1599,\n XL: 1600,\n XLMin: 1600,\n XLMax: 1919,\n XXL: 1920,\n XXLMin: 1920,\n} as const;\n","
|
|
1
|
+
{"version":3,"file":"enums.js","names":[],"sources":["../src/enums/grid.ts","../src/enums/mime.ts"],"sourcesContent":["export type BREAK_POINT_TOKEN_TYPE = Record<keyof typeof BREAK_POINT_TOKEN_ENUM, number>;\n/** 屏幕响应断点 token 配置 */\nexport const BREAK_POINT_TOKEN_ENUM = {\n XS: 576,\n XSMin: 576,\n XSMax: 767,\n SM: 768,\n SMMin: 768,\n SMMax: 991,\n MD: 992,\n MDMin: 992,\n MDMax: 1199,\n LG: 1200,\n LGMin: 1200,\n LGMax: 1599,\n XL: 1600,\n XLMin: 1600,\n XLMax: 1919,\n XXL: 1920,\n XXLMin: 1920,\n} as const;\n","/**\n * 标准 MIME 类型常量,用于文件类型标识和 HTTP Content-Type 头部\n * 基于 IANA 注册标准和浏览器兼容性验证\n */\nexport const MIME = {\n /** 普通文本文件 */\n TEXT: \"text/plain\",\n /** 超文本标记语言文档 */\n HTML: \"text/html\",\n /** 层叠样式表文件 */\n CSS: \"text/css\",\n /** 逗号分隔值文件(表格数据) */\n CSV: \"text/csv\",\n /** 制表符分隔值文件 */\n TSV: \"text/tab-separated-values\",\n /** XML 文档 */\n XML: \"text/xml\",\n /** XHTML 文档(XML 严格格式的 HTML) */\n XHTML: \"application/xhtml+xml\",\n /** JavaScript 脚本文件(标准推荐) */\n JS: \"text/javascript\",\n /** Markdown 格式文档 */\n MARKDOWN: \"text/markdown\",\n /** 富文本格式文档(.rtf) */\n RTF: \"application/rtf\",\n /** iCalendar 日历格式(.ics) */\n CALENDAR: \"text/calendar\",\n /** JPEG 图像(.jpg/.jpeg) */\n JPEG: \"image/jpeg\",\n /** PNG 图像(无损压缩,支持透明) */\n PNG: \"image/png\",\n /** GIF 图像(支持动画) */\n GIF: \"image/gif\",\n /** Windows 位图(.bmp) */\n BMP: \"image/bmp\",\n /** SVG 向量图形(.svg) */\n SVG: \"image/svg+xml\",\n /** APNG 动态图像(.apng) */\n APNG: \"image/apng\",\n /** AVIF 图像(高效压缩) */\n AVIF: \"image/avif\",\n /** 图标文件格式(.ico) */\n ICO: \"image/vnd.microsoft.icon\",\n /** WebP 图像(高效压缩) */\n WEBP: \"image/webp\",\n /** MP3 音频(.mp3) */\n MP3: \"audio/mpeg\",\n /** AAC 音频(.aac) */\n AAC: \"audio/aac\",\n /** MIDI 音乐文件(.mid/.midi) */\n MIDI: \"audio/midi\",\n /** OGG 音频(.oga) */\n OGG_AUDIO: \"audio/ogg\",\n /** Opus 音频(.opus) */\n OPUS: \"audio/opus\",\n /** WAV 音频(.wav) */\n WAV: \"audio/wav\",\n /** RealAudio 音频(.ra/.ram) */\n REAL_AUDIO: \"audio/x-pn-realaudio\",\n /** MP4 视频(.mp4) */\n MP4: \"video/mp4\",\n /** MPEG 视频(.mpeg/.mpg) */\n MPEG: \"video/mpeg\",\n /** OGG 视频(.ogv) */\n OGG_VIDEO: \"video/ogg\",\n /** AVI 视频(.avi) */\n AVI: \"video/x-msvideo\",\n /** 3GPP 视频(.3gp) */\n THREE_GPP: \"video/3gpp\",\n /** 3GPP2 视频(.3g2) */\n THREE_GPP2: \"video/3gpp2\",\n /** WebM 视频(.webm) */\n WEBM: \"video/webm\",\n /** PDF 文档 */\n PDF: \"application/pdf\",\n /** Word 97-2003 文档(.doc) */\n DOC: \"application/msword\",\n /** Word 2007+ 文档(.docx) */\n DOCX: \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n /** Excel 2007+ 工作簿(.xlsx) */\n XLSX: \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\n /** 启用宏的Excel工作簿(.xlsm) */\n XLSM: \"application/vnd.ms-excel.sheet.macroEnabled.12\",\n /** Excel模板文件(.xltx) */\n XLTX: \"application/vnd.openxmlformats-officedocument.spreadsheetml.template\",\n /** PowerPoint 2007+ 演示文稿(.pptx) */\n PPTX: \"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\n /** PowerPoint 97-2003 演示文稿(.ppt) */\n PPT: \"application/vnd.ms-powerpoint\",\n /** OpenDocument 文本文档(.odt) */\n ODT: \"application/vnd.oasis.opendocument.text\",\n /** OpenDocument 表格文档(.ods) */\n ODS: \"application/vnd.oasis.opendocument.spreadsheet\",\n /** OpenDocument 演示文稿(.odp) */\n ODP: \"application/vnd.oasis.opendocument.presentation\",\n /** EPUB 电子书(.epub) */\n EPUB: \"application/epub+zip\",\n /** Kindle 电子书(.azw) */\n AZW: \"application/vnd.amazon.ebook\",\n /** ZIP 压缩文件(.zip) */\n ZIP: \"application/zip\",\n /** GZIP 压缩文件(.gz) */\n GZIP: \"application/gzip\",\n /** GZIP 压缩文件(旧格式) */\n X_GZIP: \"application/x-gzip\",\n /** TAR 归档文件(.tar) */\n TAR: \"application/x-tar\",\n /** BZip 归档(.bz) */\n BZIP: \"application/x-bzip\",\n /** BZip2 归档(.bz2) */\n BZIP2: \"application/x-bzip2\",\n /** 7-Zip 压缩文件(.7z) */\n SEVEN_Z: \"application/x-7z-compressed\",\n /** 通用二进制数据(默认类型) */\n OCTET_STREAM: \"application/octet-stream\",\n /** JSON 数据格式(.json) */\n JSON: \"application/json\",\n /** JSON-LD 格式(.jsonld) */\n LD_JSON: \"application/ld+json\",\n /** Java 归档文件(.jar) */\n JAR: \"application/java-archive\",\n /** MS 嵌入式 OpenType 字体(.eot) */\n EOT: \"application/vnd.ms-fontobject\",\n /** OpenType 字体(.otf) */\n OTF: \"font/otf\",\n /** Excel 97-2003 工作簿(.xls) */\n XLS: \"application/vnd.ms-excel\",\n /** Microsoft XPS 文档(.xps) */\n XPS: \"application/vnd.ms-xpsdocument\",\n /** Word 启用宏文档(.docm) */\n DOCM: \"application/vnd.ms-word.document.macroEnabled.12\",\n} as const;\n"],"mappings":";;AAEA,MAAa,yBAAyB;CACpC,IAAI;CACJ,OAAO;CACP,OAAO;CACP,IAAI;CACJ,OAAO;CACP,OAAO;CACP,IAAI;CACJ,OAAO;CACP,OAAO;CACP,IAAI;CACJ,OAAO;CACP,OAAO;CACP,IAAI;CACJ,OAAO;CACP,OAAO;CACP,KAAK;CACL,QAAQ;CACT;;;;;;;;AChBD,MAAa,OAAO;CAElB,MAAM;CAEN,MAAM;CAEN,KAAK;CAEL,KAAK;CAEL,KAAK;CAEL,KAAK;CAEL,OAAO;CAEP,IAAI;CAEJ,UAAU;CAEV,KAAK;CAEL,UAAU;CAEV,MAAM;CAEN,KAAK;CAEL,KAAK;CAEL,KAAK;CAEL,KAAK;CAEL,MAAM;CAEN,MAAM;CAEN,KAAK;CAEL,MAAM;CAEN,KAAK;CAEL,KAAK;CAEL,MAAM;CAEN,WAAW;CAEX,MAAM;CAEN,KAAK;CAEL,YAAY;CAEZ,KAAK;CAEL,MAAM;CAEN,WAAW;CAEX,KAAK;CAEL,WAAW;CAEX,YAAY;CAEZ,MAAM;CAEN,KAAK;CAEL,KAAK;CAEL,MAAM;CAEN,MAAM;CAEN,MAAM;CAEN,MAAM;CAEN,MAAM;CAEN,KAAK;CAEL,KAAK;CAEL,KAAK;CAEL,KAAK;CAEL,MAAM;CAEN,KAAK;CAEL,KAAK;CAEL,MAAM;CAEN,QAAQ;CAER,KAAK;CAEL,MAAM;CAEN,OAAO;CAEP,SAAS;CAET,cAAc;CAEd,MAAM;CAEN,SAAS;CAET,KAAK;CAEL,KAAK;CAEL,KAAK;CAEL,KAAK;CAEL,KAAK;CAEL,MAAM;CACP"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3439,7 +3439,7 @@ declare function stringTemplate(input: string, template: PlainObject, regex?: Re
|
|
|
3439
3439
|
* @param input 待处理字符串
|
|
3440
3440
|
* @param safeValue 安全值
|
|
3441
3441
|
*/
|
|
3442
|
-
declare function stringToJson<
|
|
3442
|
+
declare function stringToJson<D extends AnyObject = AnyObject>(input: string | null | undefined, safeValue: D): D;
|
|
3443
3443
|
//#endregion
|
|
3444
3444
|
//#region src/utils/string/stringToNumber.d.ts
|
|
3445
3445
|
/**
|