@naanlang/naan 1.0.15 → 1.1.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 (43) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +4 -4
  3. package/bin/index.js +4 -4
  4. package/dist/env_web.js +1 -1
  5. package/dist/naan.min.js +6 -6
  6. package/frameworks/browser/https_request.nlg +23 -9
  7. package/frameworks/browser/sworker.js +26 -25
  8. package/frameworks/browser/terminals.nlg +56 -15
  9. package/frameworks/browser/ws_client.nlg +124 -0
  10. package/frameworks/client/apiclient.nlg +3 -2
  11. package/frameworks/client/psm_client.nlg +1 -1
  12. package/frameworks/client/relaycon.nlg +308 -0
  13. package/frameworks/common/common.nlg +1 -1
  14. package/frameworks/common/utils.nlg +40 -2
  15. package/frameworks/node/apiserver.nlg +342 -103
  16. package/frameworks/node/https_request.nlg +30 -5
  17. package/frameworks/node/node.nlg +60 -2
  18. package/frameworks/node/psm_server.nlg +9 -5
  19. package/frameworks/node/worker.nlg +22 -9
  20. package/frameworks/node/ws_client.nlg +127 -0
  21. package/frameworks/project/build.nlg +10 -7
  22. package/frameworks/project/projects.nlg +8 -2
  23. package/frameworks/running/debugnub.nlg +3 -3
  24. package/frameworks/running/debugutil.nlg +1 -1
  25. package/frameworks/running/executors.nlg +59 -12
  26. package/frameworks/running/sourcecode.nlg +2 -2
  27. package/frameworks/running/taskexec.nlg +23 -24
  28. package/frameworks/storage/dbt_pouch.nlg +8 -6
  29. package/frameworks/storage/file_manager.nlg +6 -3
  30. package/frameworks/storage/psm.nlg +3 -2
  31. package/frameworks/storage/psm_dbtables.nlg +53 -41
  32. package/frameworks/storage/resources.nlg +4 -2
  33. package/lib/browser/env_web.js +7 -7
  34. package/lib/browser/env_webworker.js +1 -1
  35. package/lib/core/naanlib.js +6 -6
  36. package/lib/env_node.js +97 -8
  37. package/lib/env_nodeworker.js +22 -4
  38. package/package.json +1 -1
  39. package/plugins/serviceAws/aws/lambda_rest_index.js +5 -1
  40. package/plugins/serviceAws/dbt_aws.nlg +2 -2
  41. package/plugins/serviceAws/psm_aws.nlg +2 -2
  42. package/test/test_01_core.nlg +30 -4
  43. package/test/test_03_jsinterop.nlg +6 -0
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
- **Naan for NPM** version **1.0.15+1** is released under the MIT License:
1
+ **Naan for NPM** version **1.1.0+1** is released under the MIT License:
2
2
 
3
- Copyright (c) 2017-2023 Zulch Laboratories, Inc.
3
+ Copyright (c) 2017-2024 Zulch Laboratories, Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -4,8 +4,8 @@
4
4
  Naan is an async-first software platform for rapid development.
5
5
 
6
6
  #### Release:
7
-      **Naan for NPM** version **1.0.15+1**
8
-      Copyright (c) 2017-2023 Zulch Laboratories, Inc.
7
+      **Naan for NPM** version **1.1.0+1**
8
+      Copyright (c) 2017-2024 Zulch Laboratories, Inc.
9
9
 
10
10
  #### Features
11
11
  - **Naan** runs in NodeJS and web browsers using JavaScript
@@ -27,11 +27,11 @@ Please ensure you have a recent version of [node.js](http://nodejs.org/). The mi
27
27
 
28
28
  For use everywhere as a command line app:
29
29
 
30
- npm install @naanlang/naan -g
30
+ sudo npm install @naanlang/naan -g
31
31
 
32
32
  For use as a library in the current project:
33
33
 
34
- npm install @naanlang/naan
34
+ sudo npm install @naanlang/naan
35
35
 
36
36
  #### Command line execution
37
37
 
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.15");
61
+ console.log("1.1.0");
62
62
  process.exit(0);
63
63
  }
64
64
  if (val == "--buildno") {
65
- console.log("1.0.15+1");
65
+ console.log("1.1.0+1");
66
66
  process.exit(0);
67
67
  }
68
68
  if (val.substring(0,1) == "-") {
@@ -104,7 +104,7 @@ if (eval_text) {
104
104
  " sudo(putproc(`exception, false))\n") +
105
105
 
106
106
  " input = new(textstream, js.expr)\n" +
107
- " Naan.runtimelib.driver.setOptions({prompt:false})\n" +
107
+ " Naan.runtimelib.curdriver().setOptions({prompt:false})\n" +
108
108
  " try {\n" +
109
109
  " loop {\n" +
110
110
  " `(error, expr) = Dialect.parse(input)\n" +
@@ -133,7 +133,7 @@ if (eval_text) {
133
133
  " }\n" +
134
134
  " } finally {\n" +
135
135
 
136
- (do_interactive ? "Naan.runtimelib.driver.setOptions({prompt:true})\n" :
136
+ (do_interactive ? "Naan.runtimelib.curdriver().setOptions({prompt:true})\n" :
137
137
  " sleep(1)\n" +
138
138
  " exec(quote(js.g.process.exit(if error 1 else 0)))\n") +
139
139
 
package/dist/env_web.js CHANGED
@@ -201,7 +201,7 @@ exports.NaanControllerWeb = function() {
201
201
  this.Interrupt = function Interrupt(terminal) {
202
202
  window.setTimeout(function () {
203
203
  naanlib.escape();
204
- }, 1);
204
+ }, 0);
205
205
  };
206
206
 
207
207
  //