@jsenv/core 39.11.0 → 39.11.1
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/jsenv_core.js
CHANGED
|
@@ -19536,14 +19536,16 @@ const generateDirectoryNav = (
|
|
|
19536
19536
|
entryDirectoryUrl,
|
|
19537
19537
|
rootDirectoryUrl,
|
|
19538
19538
|
);
|
|
19539
|
-
const isDir =
|
|
19539
|
+
const isDir =
|
|
19540
|
+
entryDirectoryRelativeUrl === "" || entryDirectoryRelativeUrl.endsWith("/");
|
|
19540
19541
|
const rootDirectoryUrlName = urlToFilename$1(rootDirectoryUrl);
|
|
19541
19542
|
const items = [];
|
|
19542
19543
|
let dirPartsHtml = "";
|
|
19543
|
-
const parts =
|
|
19544
|
-
`${rootDirectoryUrlName}/${entryDirectoryRelativeUrl.slice(0, -1)}`.split(
|
|
19545
|
-
|
|
19546
|
-
|
|
19544
|
+
const parts = entryDirectoryRelativeUrl
|
|
19545
|
+
? `${rootDirectoryUrlName}/${entryDirectoryRelativeUrl.slice(0, -1)}`.split(
|
|
19546
|
+
"/",
|
|
19547
|
+
)
|
|
19548
|
+
: [rootDirectoryUrlName];
|
|
19547
19549
|
let i = 0;
|
|
19548
19550
|
while (i < parts.length) {
|
|
19549
19551
|
const part = parts[i];
|
|
@@ -19559,6 +19561,8 @@ const generateDirectoryNav = (
|
|
|
19559
19561
|
: directoryUrl;
|
|
19560
19562
|
if (href === "") {
|
|
19561
19563
|
href = `/${directoryContentMagicName}`;
|
|
19564
|
+
} else {
|
|
19565
|
+
href = `/${href}`;
|
|
19562
19566
|
}
|
|
19563
19567
|
const text = part;
|
|
19564
19568
|
items.push({
|
|
@@ -19569,7 +19573,7 @@ const generateDirectoryNav = (
|
|
|
19569
19573
|
}
|
|
19570
19574
|
i = 0;
|
|
19571
19575
|
for (const { href, text } of items) {
|
|
19572
|
-
const isLastPart = i ===
|
|
19576
|
+
const isLastPart = i === items.length - 1;
|
|
19573
19577
|
if (isLastPart) {
|
|
19574
19578
|
dirPartsHtml += `
|
|
19575
19579
|
<span class="directory_nav_item" data-current>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "39.11.
|
|
3
|
+
"version": "39.11.1",
|
|
4
4
|
"description": "Tool to develop, test and build js projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -103,13 +103,13 @@
|
|
|
103
103
|
"@jsenv/plugin-as-js-classic": "workspace:*",
|
|
104
104
|
"@jsenv/snapshot": "workspace:*",
|
|
105
105
|
"@jsenv/test": "workspace:*",
|
|
106
|
-
"@playwright/browser-chromium": "1.
|
|
107
|
-
"@playwright/browser-firefox": "1.
|
|
108
|
-
"@playwright/browser-webkit": "1.
|
|
106
|
+
"@playwright/browser-chromium": "1.50.0",
|
|
107
|
+
"@playwright/browser-firefox": "1.50.0",
|
|
108
|
+
"@playwright/browser-webkit": "1.50.0",
|
|
109
109
|
"babel-plugin-transform-async-to-promises": "0.8.18",
|
|
110
|
-
"eslint": "9.
|
|
110
|
+
"eslint": "9.19.0",
|
|
111
111
|
"open": "10.1.0",
|
|
112
|
-
"playwright": "1.
|
|
112
|
+
"playwright": "1.50.0",
|
|
113
113
|
"prettier": "3.4.2",
|
|
114
114
|
"prettier-plugin-organize-imports": "4.1.0",
|
|
115
115
|
"strip-ansi": "7.1.0"
|
|
@@ -238,14 +238,16 @@ const generateDirectoryNav = (
|
|
|
238
238
|
entryDirectoryUrl,
|
|
239
239
|
rootDirectoryUrl,
|
|
240
240
|
);
|
|
241
|
-
const isDir =
|
|
241
|
+
const isDir =
|
|
242
|
+
entryDirectoryRelativeUrl === "" || entryDirectoryRelativeUrl.endsWith("/");
|
|
242
243
|
const rootDirectoryUrlName = urlToFilename(rootDirectoryUrl);
|
|
243
244
|
const items = [];
|
|
244
245
|
let dirPartsHtml = "";
|
|
245
|
-
const parts =
|
|
246
|
-
`${rootDirectoryUrlName}/${entryDirectoryRelativeUrl.slice(0, -1)}`.split(
|
|
247
|
-
|
|
248
|
-
|
|
246
|
+
const parts = entryDirectoryRelativeUrl
|
|
247
|
+
? `${rootDirectoryUrlName}/${entryDirectoryRelativeUrl.slice(0, -1)}`.split(
|
|
248
|
+
"/",
|
|
249
|
+
)
|
|
250
|
+
: [rootDirectoryUrlName];
|
|
249
251
|
let i = 0;
|
|
250
252
|
while (i < parts.length) {
|
|
251
253
|
const part = parts[i];
|
|
@@ -261,6 +263,8 @@ const generateDirectoryNav = (
|
|
|
261
263
|
: directoryUrl;
|
|
262
264
|
if (href === "") {
|
|
263
265
|
href = `/${directoryContentMagicName}`;
|
|
266
|
+
} else {
|
|
267
|
+
href = `/${href}`;
|
|
264
268
|
}
|
|
265
269
|
const text = part;
|
|
266
270
|
items.push({
|
|
@@ -271,7 +275,7 @@ const generateDirectoryNav = (
|
|
|
271
275
|
}
|
|
272
276
|
i = 0;
|
|
273
277
|
for (const { href, text } of items) {
|
|
274
|
-
const isLastPart = i ===
|
|
278
|
+
const isLastPart = i === items.length - 1;
|
|
275
279
|
if (isLastPart) {
|
|
276
280
|
dirPartsHtml += `
|
|
277
281
|
<span class="directory_nav_item" data-current>
|