@docusaurus/utils
Advanced tools
Comparing version 2.0.0-alpha.bd62be93d to 2.0.0-alpha.e90749c6f
@@ -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.e90749c6f", | ||
"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.e90749c6f", | ||
"chalk": "^3.0.0", | ||
@@ -35,3 +35,3 @@ "escape-string-regexp": "^2.0.0", | ||
}, | ||
"gitHead": "056b5525e788ce77b725ff6fdea2be2cdcea3cd9" | ||
"gitHead": "bbb311222a6625fafa732443cc41544d4ec762e2" | ||
} |
@@ -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
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
518566
+ Added@docusaurus/types@2.0.0-alpha.e90749c6f(transitive)
- Removed@docusaurus/types@2.0.0-alpha.bd62be93d(transitive)