@naanlang/naan 1.2.0 → 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.
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/bin/index.js +5 -2
- package/dist/env_web.js +11 -1
- package/dist/naan.min.js +5 -5
- package/frameworks/browser/https_request.nlg +2 -0
- package/frameworks/browser/sworker.js +23 -23
- package/frameworks/browser/terminals.nlg +132 -20
- package/frameworks/browser/workers.nlg +4 -1
- package/frameworks/browser/ws_client.nlg +9 -3
- package/frameworks/client/apiclient.nlg +8 -6
- package/frameworks/client/psm_client.nlg +4 -4
- package/frameworks/client/relaycon.nlg +5 -1
- package/frameworks/common/common.nlg +10 -4
- package/frameworks/node/apiserver.nlg +190 -4
- package/frameworks/node/worker.nlg +112 -10
- package/frameworks/node/ws_client.nlg +10 -3
- package/frameworks/project/build.nlg +13 -11
- package/frameworks/project/projects.nlg +7 -5
- package/frameworks/running/executors.nlg +124 -34
- package/frameworks/running/taskexec.nlg +5 -1
- package/lib/browser/env_web.js +17 -7
- package/lib/browser/env_webworker.js +22 -3
- package/lib/core/naanlib.js +5 -5
- package/lib/env_node.js +15 -4
- package/lib/env_nodeworker.js +21 -1
- package/package.json +8 -5
- package/plugins/serviceAws/aws/aws-sdk-node.min.js +2 -2
- package/plugins/serviceAws/aws/aws-sdk.min.js +3 -2
- package/plugins/serviceAws/aws_dynamo.nlg +19 -19
- package/plugins/serviceAws/dbt_aws.nlg +1 -1
- package/plugins/serviceYC/generic_api.yaml +36 -0
- package/plugins/serviceYC/naanide-relay-index.js +148 -0
- package/plugins/serviceYC/serviceYC.nlg +60 -0
- package/plugins/serviceYC/yc_apigateway.nlg +205 -0
- package/plugins/serviceYC/yc_function.nlg +163 -0
- package/plugins/serviceYC/yc_vm.nlg +207 -0
- package/test/test_02_context.nlg +1 -1
- package/test/test_03_jsinterop.nlg +2 -2
- package/test/test_05_strings.nlg +7 -4
- package/test/test_07_lingo.nlg +1 -1
package/LICENSE.md
CHANGED
package/README.md
CHANGED
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.
|
|
61
|
+
console.log("1.3.0");
|
|
62
62
|
process.exit(0);
|
|
63
63
|
}
|
|
64
64
|
if (val == "--buildno") {
|
|
65
|
-
console.log("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-
|
|
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);
|