@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.
- package/LICENSE.md +2 -2
- package/README.md +4 -4
- package/bin/index.js +4 -4
- package/dist/env_web.js +1 -1
- package/dist/naan.min.js +6 -6
- package/frameworks/browser/https_request.nlg +23 -9
- package/frameworks/browser/sworker.js +26 -25
- package/frameworks/browser/terminals.nlg +56 -15
- package/frameworks/browser/ws_client.nlg +124 -0
- package/frameworks/client/apiclient.nlg +3 -2
- package/frameworks/client/psm_client.nlg +1 -1
- package/frameworks/client/relaycon.nlg +308 -0
- package/frameworks/common/common.nlg +1 -1
- package/frameworks/common/utils.nlg +40 -2
- package/frameworks/node/apiserver.nlg +342 -103
- package/frameworks/node/https_request.nlg +30 -5
- package/frameworks/node/node.nlg +60 -2
- package/frameworks/node/psm_server.nlg +9 -5
- package/frameworks/node/worker.nlg +22 -9
- package/frameworks/node/ws_client.nlg +127 -0
- package/frameworks/project/build.nlg +10 -7
- package/frameworks/project/projects.nlg +8 -2
- package/frameworks/running/debugnub.nlg +3 -3
- package/frameworks/running/debugutil.nlg +1 -1
- package/frameworks/running/executors.nlg +59 -12
- package/frameworks/running/sourcecode.nlg +2 -2
- package/frameworks/running/taskexec.nlg +23 -24
- package/frameworks/storage/dbt_pouch.nlg +8 -6
- package/frameworks/storage/file_manager.nlg +6 -3
- package/frameworks/storage/psm.nlg +3 -2
- package/frameworks/storage/psm_dbtables.nlg +53 -41
- package/frameworks/storage/resources.nlg +4 -2
- package/lib/browser/env_web.js +7 -7
- package/lib/browser/env_webworker.js +1 -1
- package/lib/core/naanlib.js +6 -6
- package/lib/env_node.js +97 -8
- package/lib/env_nodeworker.js +22 -4
- package/package.json +1 -1
- package/plugins/serviceAws/aws/lambda_rest_index.js +5 -1
- package/plugins/serviceAws/dbt_aws.nlg +2 -2
- package/plugins/serviceAws/psm_aws.nlg +2 -2
- package/test/test_01_core.nlg +30 -4
- package/test/test_03_jsinterop.nlg +6 -0
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
**Naan for NPM** version **1.0
|
|
1
|
+
**Naan for NPM** version **1.1.0+1** is released under the MIT License:
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2017-
|
|
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
|
|
8
|
-
Copyright (c) 2017-
|
|
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
|
|
61
|
+
console.log("1.1.0");
|
|
62
62
|
process.exit(0);
|
|
63
63
|
}
|
|
64
64
|
if (val == "--buildno") {
|
|
65
|
-
console.log("1.0
|
|
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.
|
|
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.
|
|
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
|
|