@jupyterlab/coreutils
Advanced tools
Comparing version 6.1.0-alpha.2 to 6.1.0-alpha.3
@@ -97,3 +97,3 @@ "use strict"; | ||
MarkdownCodeBlocks.findMarkdownCodeBlocks = findMarkdownCodeBlocks; | ||
})(MarkdownCodeBlocks = exports.MarkdownCodeBlocks || (exports.MarkdownCodeBlocks = {})); | ||
})(MarkdownCodeBlocks || (exports.MarkdownCodeBlocks = MarkdownCodeBlocks = {})); | ||
//# sourceMappingURL=markdowncodeblocks.js.map |
@@ -287,3 +287,3 @@ "use strict"; | ||
})(Extension = PageConfig.Extension || (PageConfig.Extension = {})); | ||
})(PageConfig = exports.PageConfig || (exports.PageConfig = {})); | ||
})(PageConfig || (exports.PageConfig = PageConfig = {})); | ||
//# sourceMappingURL=pageconfig.js.map |
@@ -15,2 +15,8 @@ /** | ||
/** | ||
* Join all arguments together and normalize the resulting path and preserve the leading slash. | ||
* | ||
* @param paths - The string paths to join. | ||
*/ | ||
function joinWithLeadingSlash(...paths: string[]): string; | ||
/** | ||
* Return the last portion of a path. Similar to the Unix basename command. | ||
@@ -17,0 +23,0 @@ * Often used to extract the file name from a fully qualified path. |
@@ -26,2 +26,12 @@ "use strict"; | ||
/** | ||
* Join all arguments together and normalize the resulting path and preserve the leading slash. | ||
* | ||
* @param paths - The string paths to join. | ||
*/ | ||
function joinWithLeadingSlash(...paths) { | ||
const path = path_1.posix.join(...paths); | ||
return path === '.' ? '' : path; | ||
} | ||
PathExt.joinWithLeadingSlash = joinWithLeadingSlash; | ||
/** | ||
* Return the last portion of a path. Similar to the Unix basename command. | ||
@@ -142,3 +152,3 @@ * Often used to extract the file name from a fully qualified path. | ||
PathExt.removeSlash = removeSlash; | ||
})(PathExt = exports.PathExt || (exports.PathExt = {})); | ||
})(PathExt || (exports.PathExt = PathExt = {})); | ||
//# sourceMappingURL=path.js.map |
@@ -112,3 +112,3 @@ "use strict"; | ||
Text.titleCase = titleCase; | ||
})(Text = exports.Text || (exports.Text = {})); | ||
})(Text || (exports.Text = Text = {})); | ||
//# sourceMappingURL=text.js.map |
@@ -59,3 +59,3 @@ "use strict"; | ||
Time.format = format; | ||
})(Time = exports.Time || (exports.Time = {})); | ||
})(Time || (exports.Time = Time = {})); | ||
//# sourceMappingURL=time.js.map |
@@ -136,3 +136,3 @@ "use strict"; | ||
URLExt.isLocal = isLocal; | ||
})(URLExt = exports.URLExt || (exports.URLExt = {})); | ||
})(URLExt || (exports.URLExt = URLExt = {})); | ||
//# sourceMappingURL=url.js.map |
{ | ||
"name": "@jupyterlab/coreutils", | ||
"version": "6.1.0-alpha.2", | ||
"version": "6.1.0-alpha.3", | ||
"description": "JupyterLab - Core Utilities", | ||
@@ -59,6 +59,6 @@ "homepage": "https://github.com/jupyterlab/jupyterlab", | ||
"jest-junit": "^15.0.0", | ||
"rimraf": "~3.0.0", | ||
"rimraf": "~5.0.5", | ||
"ts-jest": "^29.1.0", | ||
"typedoc": "~0.24.7", | ||
"typescript": "~5.0.4" | ||
"typescript": "~5.1.6" | ||
}, | ||
@@ -65,0 +65,0 @@ "publishConfig": { |
@@ -24,2 +24,12 @@ // Copyright (c) Jupyter Development Team. | ||
/** | ||
* Join all arguments together and normalize the resulting path and preserve the leading slash. | ||
* | ||
* @param paths - The string paths to join. | ||
*/ | ||
export function joinWithLeadingSlash(...paths: string[]): string { | ||
const path = posix.join(...paths); | ||
return path === '.' ? '' : path; | ||
} | ||
/** | ||
* Return the last portion of a path. Similar to the Unix basename command. | ||
@@ -26,0 +36,0 @@ * Often used to extract the file name from a fully qualified path. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
114003
2765