@vuepress/utils
Advanced tools
Comparing version 2.0.0-rc.9 to 2.0.0-rc.10
@@ -55,2 +55,7 @@ export { default as debug } from 'debug'; | ||
/** | ||
* Transforms a path to a file name, replacing slashes with underscores | ||
*/ | ||
declare const transformPathToFileName: (rawPath: string) => string; | ||
/** | ||
* Render head config to string | ||
@@ -124,2 +129,2 @@ */ | ||
export { TEMPLATE_RENDERER_OUTLETS, type TemplateRenderer, type TemplateRendererContext, createError, error, formatMs, getDirname, importFile, importFileDefault, info, isChildPath, logger, renderHead, renderHeadAttrs, sanitizeFileName, success, templateRenderer, tip, warn, withSpinner }; | ||
export { TEMPLATE_RENDERER_OUTLETS, type TemplateRenderer, type TemplateRendererContext, createError, error, formatMs, getDirname, importFile, importFileDefault, info, isChildPath, logger, renderHead, renderHeadAttrs, sanitizeFileName, success, templateRenderer, tip, transformPathToFileName, warn, withSpinner }; |
@@ -97,2 +97,5 @@ // src/index.ts | ||
// src/module/transformPathToFileName.ts | ||
var transformPathToFileName = (rawPath) => sanitizeFileName(rawPath.replace(/\//g, "_")); | ||
// src/ssr/renderHeadAttrs.ts | ||
@@ -152,4 +155,5 @@ var renderHeadAttrs = (attrs) => Object.entries(attrs).filter((item) => item[1] !== false).map( | ||
tip, | ||
transformPathToFileName, | ||
warn, | ||
withSpinner | ||
}; |
{ | ||
"name": "@vuepress/utils", | ||
"version": "2.0.0-rc.9", | ||
"version": "2.0.0-rc.10", | ||
"description": "Utils package of VuePress", | ||
@@ -38,5 +38,5 @@ "keywords": [ | ||
"ora": "^8.0.1", | ||
"picocolors": "^1.0.0", | ||
"picocolors": "^1.0.1", | ||
"upath": "^2.0.1", | ||
"@vuepress/shared": "2.0.0-rc.9" | ||
"@vuepress/shared": "2.0.0-rc.10" | ||
}, | ||
@@ -43,0 +43,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11224
264
+ Added@vuepress/shared@2.0.0-rc.10(transitive)
- Removed@vuepress/shared@2.0.0-rc.9(transitive)
Updated@vuepress/shared@2.0.0-rc.10
Updatedpicocolors@^1.0.1