@astrojs/internal-helpers
Advanced tools
Comparing version 0.2.0-beta.0 to 0.2.0-beta.1
@@ -8,2 +8,3 @@ /** | ||
export declare function prependForwardSlash(path: string): string; | ||
export declare function collapseDuplicateSlashes(path: string): string; | ||
export declare function removeTrailingForwardSlash(path: string): string; | ||
@@ -10,0 +11,0 @@ export declare function removeLeadingForwardSlash(path: string): string; |
@@ -10,2 +10,5 @@ function appendExtension(path, extension) { | ||
} | ||
function collapseDuplicateSlashes(path) { | ||
return path.replace(/(?<!:)\/\/+/g, "/"); | ||
} | ||
function removeTrailingForwardSlash(path) { | ||
@@ -71,2 +74,3 @@ return path.endsWith("/") ? path.slice(0, path.length - 1) : path; | ||
appendForwardSlash, | ||
collapseDuplicateSlashes, | ||
isRelativePath, | ||
@@ -73,0 +77,0 @@ isRemotePath, |
{ | ||
"name": "@astrojs/internal-helpers", | ||
"description": "Internal helpers used by core Astro packages.", | ||
"version": "0.2.0-beta.0", | ||
"version": "0.2.0-beta.1", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "author": "withastro", |
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
8485
109