@naanlang/naan 1.0.16 → 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 (41) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/bin/index.js +4 -4
  4. package/dist/naan.min.js +6 -6
  5. package/frameworks/browser/https_request.nlg +23 -9
  6. package/frameworks/browser/sworker.js +26 -25
  7. package/frameworks/browser/terminals.nlg +56 -15
  8. package/frameworks/browser/ws_client.nlg +124 -0
  9. package/frameworks/client/apiclient.nlg +3 -2
  10. package/frameworks/client/psm_client.nlg +1 -1
  11. package/frameworks/client/relaycon.nlg +308 -0
  12. package/frameworks/common/common.nlg +1 -1
  13. package/frameworks/common/utils.nlg +40 -2
  14. package/frameworks/node/apiserver.nlg +342 -103
  15. package/frameworks/node/https_request.nlg +30 -5
  16. package/frameworks/node/node.nlg +60 -2
  17. package/frameworks/node/psm_server.nlg +9 -5
  18. package/frameworks/node/worker.nlg +22 -9
  19. package/frameworks/node/ws_client.nlg +127 -0
  20. package/frameworks/project/build.nlg +2 -2
  21. package/frameworks/project/projects.nlg +8 -2
  22. package/frameworks/running/debugnub.nlg +2 -2
  23. package/frameworks/running/debugutil.nlg +1 -1
  24. package/frameworks/running/executors.nlg +59 -12
  25. package/frameworks/running/sourcecode.nlg +2 -2
  26. package/frameworks/running/taskexec.nlg +23 -24
  27. package/frameworks/storage/dbt_pouch.nlg +8 -6
  28. package/frameworks/storage/file_manager.nlg +6 -3
  29. package/frameworks/storage/psm.nlg +3 -2
  30. package/frameworks/storage/psm_dbtables.nlg +53 -41
  31. package/frameworks/storage/resources.nlg +4 -2
  32. package/lib/browser/env_web.js +6 -6
  33. package/lib/browser/env_webworker.js +1 -1
  34. package/lib/core/naanlib.js +6 -6
  35. package/lib/env_node.js +97 -8
  36. package/lib/env_nodeworker.js +22 -4
  37. package/package.json +1 -1
  38. package/plugins/serviceAws/aws/lambda_rest_index.js +5 -1
  39. package/plugins/serviceAws/dbt_aws.nlg +2 -2
  40. package/plugins/serviceAws/psm_aws.nlg +2 -2
  41. package/test/test_01_core.nlg +30 -4
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
- **Naan for NPM** version **1.0.16+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.16+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
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.16");
61
+ console.log("1.1.0");
62
62
  process.exit(0);
63
63
  }
64
64
  if (val == "--buildno") {
65
- console.log("1.0.16+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