@naanlang/naan 1.0.6 → 1.0.7

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/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Naan for NPM version 1.0.6-2 is released under the MIT License:
1
+ Naan for NPM version 1.0.7+2 is released under the MIT License:
2
2
 
3
3
  Copyright (c) 2017-2022 Zulch Laboratories, Inc.
4
4
 
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  Naan is an async-first software platform for rapid development.
5
5
 
6
6
  #### Release:
7
-      Naan for NPM version 1.0.6-2
7
+      Naan for NPM version 1.0.7+2
8
8
       Copyright (c) 2017-2022 Zulch Laboratories, Inc.
9
9
 
10
10
  #### Features
package/bin/index.js CHANGED
@@ -58,11 +58,11 @@ process.argv.every((val, index) => {
58
58
  return (true);
59
59
  }
60
60
  if (val == "--version") {
61
- console.log("1.0.6");
61
+ console.log("1.0.7");
62
62
  process.exit(0);
63
63
  }
64
64
  if (val == "--buildno") {
65
- console.log("1.0.6-2");
65
+ console.log("1.0.7+2");
66
66
  process.exit(0);
67
67
  }
68
68
  if (val.substring(0,1) == "-") {
package/dist/env_web.js CHANGED
@@ -309,7 +309,7 @@ exports.NaanControllerWeb = function() {
309
309
  //
310
310
 
311
311
  this.VsiteRefresh = function VsiteRefresh(url_origin) {
312
- if (window.location.href.startsWith(url_origin)) {
312
+ if (vsiteName && window.location.href.startsWith(url_origin)) {
313
313
  window.location.reload(); // we have changed underneath
314
314
  return (true);
315
315
  }
@@ -546,6 +546,7 @@ exports.NaanControllerWeb = function() {
546
546
  naancont: contSelf,
547
547
  title: vsiteName + " $Version$"
548
548
  });
549
+ vsiteName = false; // window is going away
549
550
  termTextOut("\x1b[90m\x1b[3m".concat("\nwindow closed", "\x1b[0m\n"));
550
551
  }
551
552
  }
@@ -556,7 +557,10 @@ exports.NaanControllerWeb = function() {
556
557
  naanlib.banner();
557
558
  var hostpath = naanlib.js.r("path").dirname(window.location.href);
558
559
  naanlib.start({
559
- cmd: 'Naan.module.webparse("naan_init.nlg", "' + hostpath + '"' + ');;\r\n'
560
+ cmd: 'App.version = "$Version$";;\r\n'
561
+ + 'App.cache = "$CacheBuster$";;\r\n'
562
+ + 'Naan.module.requireQuery({ naanver: App.cache });;\r\n'
563
+ + 'Naan.module.webparse("naan_init.nlg", "' + hostpath + '", { naanver: App.cache });;\r\n'
560
564
  });
561
565
  } else {
562
566
  if (!replstate) { // saved state but never opened a terminal