zhi-common
Advanced tools
Comparing version 1.21.0 to 1.22.0
@@ -15,2 +15,10 @@ /** | ||
/** | ||
* 将 YAML 文档的内容解析为对象 | ||
* | ||
* @param content - YAML 文档的内容 | ||
* @returns 解析后的对象 | ||
* @throws 如果找不到 YAML 分隔符,则抛出错误 | ||
*/ | ||
static yaml2ObjAsync(content: string): Promise<any>; | ||
/** | ||
* 对象转yaml字符串 | ||
@@ -25,5 +33,6 @@ * | ||
* @param content - 包含正文和前置数据的字符串 | ||
* @param addSign - 是否包含符号 | ||
*/ | ||
static extractFrontmatter(content: string): any; | ||
static extractFrontmatter(content: string, addSign?: boolean): any; | ||
} | ||
export default YamlUtil; |
{ | ||
"name": "zhi-common", | ||
"version": "1.20.0", | ||
"version": "1.21.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "a collection of util tools", |
{ | ||
"name": "zhi-common", | ||
"version": "1.21.0", | ||
"version": "1.22.0", | ||
"type": "module", | ||
@@ -21,5 +21,5 @@ "description": "a collection of util tools", | ||
"devDependencies": { | ||
"@terwer/vite-config-custom": "0.7.6", | ||
"@terwer/tsconfig": "0.0.7", | ||
"@terwer/eslint-config-custom": "1.3.6", | ||
"@terwer/tsconfig": "0.0.7" | ||
"@terwer/vite-config-custom": "0.7.6" | ||
}, | ||
@@ -26,0 +26,0 @@ "dependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
864505
10060