@naanlang/naan 1.6.0 → 1.7.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.
Files changed (54) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/bin/index.js +2 -2
  4. package/dist/env_web.js +3 -32
  5. package/dist/naan.min.js +10 -10
  6. package/frameworks/browser/sworker.js +23 -23
  7. package/frameworks/browser/terminals.nlg +161 -212
  8. package/frameworks/browser/worker.nlg +78 -30
  9. package/frameworks/browser/workers.nlg +1 -1
  10. package/frameworks/browser/ws_client.nlg +23 -87
  11. package/frameworks/client/apiclient.nlg +91 -58
  12. package/frameworks/client/client.nlg +22 -2
  13. package/frameworks/client/psm_client.nlg +10 -14
  14. package/frameworks/client/relaycon.nlg +1 -1
  15. package/frameworks/common/common.nlg +13 -9
  16. package/frameworks/node/apiserver.nlg +1 -2
  17. package/frameworks/node/node.nlg +1 -0
  18. package/frameworks/node/pty.nlg +21 -21
  19. package/frameworks/node/shell.nlg +26 -3
  20. package/frameworks/node/worker.nlg +166 -84
  21. package/frameworks/node/ws_client.nlg +25 -84
  22. package/frameworks/project/build.nlg +83 -32
  23. package/frameworks/project/projects.nlg +2 -2
  24. package/frameworks/running/debugcom.nlg +20 -3
  25. package/frameworks/running/debugnub.nlg +16 -7
  26. package/frameworks/running/executors.nlg +36 -26
  27. package/frameworks/running/instances.nlg +34 -22
  28. package/frameworks/running/remote_req.nlg +6 -9
  29. package/frameworks/running/remote_res.nlg +2 -2
  30. package/frameworks/running/sourcecode.nlg +3 -2
  31. package/frameworks/running/taskexec.nlg +14 -57
  32. package/frameworks/service/imp.nlg +37 -5
  33. package/frameworks/service/nubnode.nlg +39 -8
  34. package/frameworks/service/nubweb.nlg +28 -10
  35. package/frameworks/storage/file_manager.nlg +3 -2
  36. package/lib/browser/env_web.js +10 -39
  37. package/lib/browser/env_webworker.js +1 -30
  38. package/lib/core/naanlib.js +10 -10
  39. package/lib/env_node.js +5 -22
  40. package/lib/env_nodeworker.js +8 -43
  41. package/lib/node_server_init.nlg +149 -0
  42. package/lib/node_worker.js +36 -0
  43. package/lib/node_worker_init.nlg +43 -0
  44. package/package.json +1 -1
  45. package/plugins/openSearch/openSearch.nlg +3 -2
  46. package/plugins/openSearch/os_dynamo.nlg +3 -2
  47. package/plugins/serviceAws/aws_cloudwatchlogs.nlg +44 -2
  48. package/plugins/serviceAws/aws_dynamo.nlg +144 -63
  49. package/plugins/serviceAws/aws_utils.nlg +6 -11
  50. package/plugins/serviceAws/serviceAws.nlg +3 -2
  51. package/test/test_01_core.nlg +2 -2
  52. package/test/test_02_context.nlg +8 -8
  53. package/test/test_03_jsinterop.nlg +3 -3
  54. package/test/test_07_lingo.nlg +1 -1
package/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- **NaaN for NPM** version **1.6.0+1** is released under the MIT License:
1
+ **NaaN for NPM** version **1.7.1+1** is released under the MIT License:
2
2
 
3
3
  Copyright (c) 2017-2026 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.6.0+1**
7
+      **NaaN for NPM** version **1.7.1+1**
8
8
       Copyright (c) 2017-2026 Zulch Laboratories, Inc.
9
9
 
10
10
  #### Features
package/bin/index.js CHANGED
@@ -73,11 +73,11 @@ process.argv.every((val, index) => {
73
73
  return (true);
74
74
  }
75
75
  if (val == "--version") {
76
- console.log("1.6.0");
76
+ console.log("1.7.1");
77
77
  process.exit(0);
78
78
  }
79
79
  if (val == "--buildno") {
80
- console.log("1.6.0+1");
80
+ console.log("1.7.1+1");
81
81
  process.exit(0);
82
82
  }
83
83
  if (val.substring(0,1) == "-") {
package/dist/env_web.js CHANGED
@@ -171,7 +171,7 @@ exports.NaanControllerWeb = function() {
171
171
  if (repdex < 0)
172
172
  termlist.push(terminal);
173
173
  takePending(); // output all pending terminal messages
174
- this.ioctl_event("term-attach", "");
174
+ this.ioctl_event("term-attach", terminal.guid);
175
175
  };
176
176
 
177
177
  //
@@ -186,7 +186,7 @@ exports.NaanControllerWeb = function() {
186
186
  termlist.splice(repdex, 1);
187
187
  if (termlist.length === 0)
188
188
  replstate = terminal.StateSave(); // save ultimate repl state
189
- this.ioctl_event("term-detach", "");
189
+ this.ioctl_event("term-detach", terminal.guid);
190
190
  };
191
191
 
192
192
  //
@@ -220,24 +220,6 @@ exports.NaanControllerWeb = function() {
220
220
  }, 1);
221
221
  };
222
222
 
223
- var replyHook;
224
- this.OnReplyHook = function OnReplyHook(proc) {
225
- replyHook = proc;
226
- return (proc);
227
- };
228
-
229
- this.ReplyMessage = function ReplyMessage(data) { // "remote" -> "local"
230
- if (replyHook)
231
- setTimeout(function() {
232
- replyHook(data);
233
- }, 1);
234
- termlist.forEach(function(term) {
235
- if (term.OnMessageOut)
236
- term.OnMessageOut(data);
237
- });
238
- return (data);
239
- };
240
-
241
223
  var nideListener;
242
224
  this.OnMessage = function OnMessage(proc) {
243
225
  nideListener = proc;
@@ -425,6 +407,7 @@ exports.NaanControllerWeb = function() {
425
407
  }
426
408
  else if (msg.id == "targetin")
427
409
  {
410
+ console.log("env_web targetin");
428
411
  if (nideListener)
429
412
  nideListener(msg.data); // target received a message
430
413
  }
@@ -446,17 +429,6 @@ exports.NaanControllerWeb = function() {
446
429
  return (msg);
447
430
  };
448
431
 
449
- //
450
- // report messages back to opener
451
- //
452
- termSelf.OnMessageOut = function OnMessageOut(data) {
453
- var msg = { // target is sending debug data
454
- id: "targetout",
455
- data: data
456
- };
457
- return (termSelf.OnMessage(msg));
458
- };
459
-
460
432
  //
461
433
  // report debug messages back to opener
462
434
  //
@@ -749,7 +721,6 @@ exports.NaanControllerWeb = function() {
749
721
  naancont: contSelf,
750
722
  title: vsiteName + " $Version$"
751
723
  });
752
- termTextOut("\x1b[90m\x1b[3m".concat("\nwindow closed", "\x1b[0m\n"));
753
724
  }
754
725
  } catch (e) {
755
726
  }