@naanlang/naan 1.2.1 → 1.3.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.
Files changed (35) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/bin/index.js +5 -2
  4. package/dist/env_web.js +11 -1
  5. package/dist/naan.min.js +4 -4
  6. package/frameworks/browser/https_request.nlg +2 -0
  7. package/frameworks/browser/sworker.js +23 -23
  8. package/frameworks/browser/terminals.nlg +123 -21
  9. package/frameworks/browser/workers.nlg +4 -1
  10. package/frameworks/browser/ws_client.nlg +5 -3
  11. package/frameworks/client/apiclient.nlg +8 -6
  12. package/frameworks/client/relaycon.nlg +3 -1
  13. package/frameworks/node/apiserver.nlg +190 -4
  14. package/frameworks/node/worker.nlg +112 -10
  15. package/frameworks/node/ws_client.nlg +5 -3
  16. package/frameworks/project/build.nlg +3 -1
  17. package/frameworks/project/projects.nlg +1 -1
  18. package/frameworks/running/executors.nlg +3 -1
  19. package/frameworks/running/taskexec.nlg +5 -1
  20. package/lib/browser/env_web.js +17 -7
  21. package/lib/browser/env_webworker.js +22 -3
  22. package/lib/core/naanlib.js +4 -4
  23. package/lib/env_node.js +15 -4
  24. package/lib/env_nodeworker.js +21 -1
  25. package/package.json +8 -5
  26. package/plugins/serviceAws/aws/aws-sdk-node.min.js +2 -2
  27. package/plugins/serviceAws/aws/aws-sdk.min.js +3 -2
  28. package/plugins/serviceAws/aws_dynamo.nlg +19 -19
  29. package/plugins/serviceYC/generic_api.yaml +36 -0
  30. package/plugins/serviceYC/naanide-relay-index.js +148 -0
  31. package/plugins/serviceYC/serviceYC.nlg +60 -0
  32. package/plugins/serviceYC/yc_apigateway.nlg +205 -0
  33. package/plugins/serviceYC/yc_function.nlg +163 -0
  34. package/plugins/serviceYC/yc_vm.nlg +207 -0
  35. package/test/test_07_lingo.nlg +1 -1
package/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- **Naan for NPM** version **1.2.1+1** is released under the MIT License:
1
+ **Naan for NPM** version **1.3.0+1** is released under the MIT License:
2
2
 
3
3
  Copyright (c) 2017-2024 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.2.1+1**
7
+      **Naan for NPM** version **1.3.0+1**
8
8
       Copyright (c) 2017-2024 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.2.1");
61
+ console.log("1.3.0");
62
62
  process.exit(0);
63
63
  }
64
64
  if (val == "--buildno") {
65
- console.log("1.2.1+1");
65
+ console.log("1.3.0+1");
66
66
  process.exit(0);
67
67
  }
68
68
  if (val.substring(0,1) == "-") {
@@ -139,6 +139,9 @@ if (eval_text) {
139
139
 
140
140
  " }\n" +
141
141
  "}();;\n";
142
+ } else if (!process.stdin.isTTY) {
143
+ console.log("naan: nothing specified and no TTY; exiting");
144
+ process.exit(1);
142
145
  }
143
146
 
144
147
 
package/dist/env_web.js CHANGED
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * column positioning: // // !
8
8
  *
9
- * Copyright (c) 2017-2022 by Richard C. Zulch
9
+ * Copyright (c) 2017-2024 by Richard C. Zulch
10
10
  *
11
11
  */
12
12
 
@@ -223,7 +223,17 @@ exports.NaanControllerWeb = function() {
223
223
  }, 1);
224
224
  };
225
225
 
226
+ var replyHook;
227
+ this.OnReplyHook = function OnReplyHook(proc) {
228
+ replyHook = proc;
229
+ return (proc);
230
+ };
231
+
226
232
  this.ReplyMessage = function ReplyMessage(data) { // "remote" -> "local"
233
+ if (replyHook)
234
+ setTimeout(function() {
235
+ replyHook(data);
236
+ }, 1);
227
237
  termlist.forEach(function(term) {
228
238
  if (term.OnMessageOut)
229
239
  term.OnMessageOut(data);