bt-core-app 1.4.288 → 1.4.289

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.
@@ -5303,17 +5303,17 @@ function bE(e, t, n = !0) {
5303
5303
  return t ? typeof t == "string" ? Mn(a, t) > Mn(r, t) ? n === !0 ? 1 : -1 : Mn(a, t) < Mn(r, t) ? n === !0 ? -1 : 1 : 0 : t(a) > t(r) ? n === !0 ? 1 : -1 : t(a) < t(r) ? n === !0 ? -1 : 1 : 0 : a > r ? n === !0 ? 1 : -1 : a < r ? n === !0 ? -1 : 1 : 0;
5304
5304
  });
5305
5305
  }
5306
- function Xa(e, t) {
5307
- let n = e ?? "", a = t ?? "";
5308
- if (n.endsWith("/"))
5306
+ function Xa(e, t, n = "/") {
5307
+ let a = e ?? "", r = t ?? "";
5308
+ if (a.endsWith(n))
5309
5309
  do
5310
- n = n.slice(0, n.length - 1);
5311
- while (n.endsWith("/"));
5312
- if (a.startsWith("/"))
5310
+ a = a.slice(0, a.length - 1);
5311
+ while (a.endsWith(n));
5312
+ if (r.startsWith(n))
5313
5313
  do
5314
- a = a.slice(1, a.length);
5315
- while (a.startsWith("/"));
5316
- return `${n}/${a}`;
5314
+ r = r.slice(1, r.length);
5315
+ while (r.startsWith(n));
5316
+ return `${a}${n}${r}`;
5317
5317
  }
5318
5318
  function Wb(e, t, n) {
5319
5319
  let a = new Image();
package/dist/index.d.ts CHANGED
@@ -32,7 +32,7 @@ declare interface ApiActionOptions extends StorePathOptions, DoActionOptions {
32
32
  api?: BTApi;
33
33
  }
34
34
 
35
- export declare function appendUrl(originalVal?: string, additionalVal?: string): string;
35
+ export declare function appendUrl(originalVal?: string, additionalVal?: string, splittingChar?: string): string;
36
36
 
37
37
  export declare interface AuthItem {
38
38
  children?: AuthItem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.288",
3
+ "version": "1.4.289",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {