@docusaurus/utils
Advanced tools
Comparing version 2.0.0-alpha.bd62be93d to 2.0.0-alpha.c4aeb1982
@@ -67,3 +67,3 @@ /** | ||
export declare function isValidPathname(str: string): boolean; | ||
export declare function resolvePathname(to: string, from?: string): any; | ||
export declare function resolvePathname(to: string, from?: string): string; | ||
export declare function addLeadingSlash(str: string): string; | ||
@@ -70,0 +70,0 @@ export declare function addTrailingSlash(str: string): string; |
@@ -230,3 +230,3 @@ "use strict"; | ||
throw new Error(`Error while parsing markdown front matter. | ||
This can happen if you use special characteres like : in frontmatter values (try using "" around that value) | ||
This can happen if you use special characters like : in frontmatter values (try using "" around that value) | ||
${e.message}`); | ||
@@ -233,0 +233,0 @@ } |
{ | ||
"name": "@docusaurus/utils", | ||
"version": "2.0.0-alpha.bd62be93d", | ||
"version": "2.0.0-alpha.c4aeb1982", | ||
"description": "Node utility functions for Docusaurus packages", | ||
@@ -21,3 +21,3 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@docusaurus/types": "2.0.0-alpha.bd62be93d", | ||
"@docusaurus/types": "2.0.0-alpha.c4aeb1982", | ||
"chalk": "^3.0.0", | ||
@@ -35,3 +35,3 @@ "escape-string-regexp": "^2.0.0", | ||
}, | ||
"gitHead": "056b5525e788ce77b725ff6fdea2be2cdcea3cd9" | ||
"gitHead": "8722069a6264478c39bea74bf0168f841895d593" | ||
} |
@@ -269,3 +269,3 @@ /** | ||
throw new Error(`Error while parsing markdown front matter. | ||
This can happen if you use special characteres like : in frontmatter values (try using "" around that value) | ||
This can happen if you use special characters like : in frontmatter values (try using "" around that value) | ||
${e.message}`); | ||
@@ -398,3 +398,3 @@ } | ||
// resolve pathname and fail fast if resolution fails | ||
export function resolvePathname(to: string, from?: string) { | ||
export function resolvePathname(to: string, from?: string): string { | ||
return resolvePathnameUnsafe(to, from); | ||
@@ -461,3 +461,3 @@ } | ||
subPaths?: string[]; | ||
}) { | ||
}): string { | ||
return path.join( | ||
@@ -464,0 +464,0 @@ siteDir, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
518566
+ Added@docusaurus/types@2.0.0-alpha.c4aeb1982(transitive)
- Removed@docusaurus/types@2.0.0-alpha.bd62be93d(transitive)