@jsenv/core 28.5.0 → 29.0.0

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.
@@ -314,7 +314,7 @@ h4 {
314
314
  </section>
315
315
  </article>
316
316
  </div>
317
- <script>
317
+ <script no-supervisor="">
318
318
  // eslint-disable-next-line no-undef
319
319
  const { rootDirectoryUrl, groups, files } = SERVER_PARAMS
320
320
 
@@ -428,7 +428,7 @@ h4 {
428
428
 
429
429
  document.querySelector("main").appendChild(fileListElement)
430
430
  </script>
431
- <script>
431
+ <script no-supervisor="">
432
432
  // make menu scrollable
433
433
  const getMenuWrapperSize = () => {
434
434
  return document.querySelector(".menu-wrapper").getBoundingClientRect()
@@ -370,10 +370,4 @@ window.__server_events__.listenEvents({
370
370
  reload: reloadServerEvent => {
371
371
  reloader.addMessage(reloadServerEvent.data);
372
372
  }
373
- }); // const findHotMetaUrl = (originalFileRelativeUrl) => {
374
- // return Object.keys(urlHotMetas).find((compileUrl) => {
375
- // return (
376
- // parseCompiledUrl(compileUrl).fileRelativeUrl === originalFileRelativeUrl
377
- // )
378
- // })
379
- // }
373
+ });
@@ -230,7 +230,15 @@ window.__supervisor__ = (() => {
230
230
  line,
231
231
  column
232
232
  }) => {
233
- return typeof line === "number" && typeof column === "number" ? `${url}:${line}:${column}` : typeof line === "number" ? `${url}:${line}` : url;
233
+ if (typeof line === "number" && typeof column === "number") {
234
+ return `${url}:${line}:${column}`;
235
+ }
236
+
237
+ if (typeof line === "number") {
238
+ return `${url}:${line}`;
239
+ }
240
+
241
+ return url;
234
242
  };
235
243
 
236
244
  const resolveUrlSite = ({
@@ -1046,11 +1054,7 @@ window.__supervisor__ = (() => {
1046
1054
  return false;
1047
1055
  }
1048
1056
 
1049
- if (supervisedScriptCandidate.src !== src) {
1050
- return false;
1051
- }
1052
-
1053
- return true;
1057
+ return supervisedScriptCandidate.src === src;
1054
1058
  });
1055
1059
 
1056
1060
  if (supervisedScript) {