x-essential-lib 0.5.2 → 0.5.3

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 +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -294,9 +294,9 @@ const Ae = [
294
294
  ];
295
295
  function N(e) {
296
296
  let a, t = 0;
297
- const r = e.split("/");
297
+ const r = e.split("/").filter((o) => o.trim() !== "");
298
298
  return Ae.forEach((o) => {
299
- const n = o.path.split("/");
299
+ const n = o.path.split("/").filter((c) => c.trim() !== "");
300
300
  let l = 0;
301
301
  for (let c = 0; c < r.length && !(c >= n.length || r[c] !== n[c]); c++)
302
302
  l++;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.5.2",
4
+ "version": "0.5.3",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",