@luxass/utils 2.6.1 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { isNotNull, isNotNullish, isNotUndefined, isTruthy } from "./guards-O1HG
|
|
|
2
2
|
import { capitalize, dedent, dedentRaw, formatStr, sanitizeIdentifier, toCamelCase, toKebabCase, toPascalCase, toSnakeCase } from "./string-BlwTLoKD.js";
|
|
3
3
|
import { clamp } from "./number-BS9T5WGO.js";
|
|
4
4
|
import { getChangedKeys, getOwnProperty, hasOwnProperty, omit } from "./object-CyGLe77G.js";
|
|
5
|
-
import { appendTrailingSlash, prependLeadingSlash, trimLeadingSlash, trimTrailingSlash } from "./path-
|
|
5
|
+
import { appendTrailingSlash, prependLeadingSlash, trimLeadingSlash, trimTrailingSlash } from "./path-BcSxT2uo.js";
|
|
6
6
|
import pRetry from "p-retry";
|
|
7
7
|
|
|
8
8
|
//#region src/common.ts
|
|
@@ -115,7 +115,7 @@ function joinURL(base, ...segments) {
|
|
|
115
115
|
};
|
|
116
116
|
let path = base;
|
|
117
117
|
for (const seg of segments) {
|
|
118
|
-
if (!seg) continue;
|
|
118
|
+
if (!seg || seg === ".") continue;
|
|
119
119
|
if (path.length > 0) {
|
|
120
120
|
const pathTrailing = path[path.length - 1] === "/";
|
|
121
121
|
const segLeading = seg[0] === "/";
|
package/dist/path.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { appendTrailingSlash, joinURL, prependLeadingSlash, trimLeadingSlash, trimTrailingSlash } from "./path-
|
|
1
|
+
import { appendTrailingSlash, joinURL, prependLeadingSlash, trimLeadingSlash, trimTrailingSlash } from "./path-BcSxT2uo.js";
|
|
2
2
|
|
|
3
3
|
export { appendTrailingSlash, joinURL, prependLeadingSlash, trimLeadingSlash, trimTrailingSlash };
|