@davi-ai/retorik-map 4.0.1 → 4.0.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13470,8 +13470,16 @@ const xf = /* @__PURE__ */ ar(yf), Cf = (t) => {
13470
13470
  typographer: !0,
13471
13471
  quotes: `""''`
13472
13472
  }), tr = 500, qf = (t) => {
13473
- const i = t.split("/").filter((u) => u !== "");
13474
- return i.splice(-1, 1), i.join("/");
13473
+ if (t.startsWith("https://")) {
13474
+ const i = t.substring(8).split("/").filter((u) => u !== "");
13475
+ return i.splice(-1, 1), `https://${i.join("/")}`;
13476
+ } else if (t.startsWith("http://")) {
13477
+ const i = t.substring(7).split("/").filter((u) => u !== "");
13478
+ return i.splice(-1, 1), `http://${i.join("/")}`;
13479
+ } else {
13480
+ const i = t.split("/").filter((u) => u !== "");
13481
+ return i.splice(-1, 1), i.join("/");
13482
+ }
13475
13483
  }, Rf = ({
13476
13484
  locale: t,
13477
13485
  isWidget: i,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@davi-ai/retorik-map",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "Retorik map package",
5
5
  "author": "DAVI",
6
6
  "license": "MIT",