@naanlang/naan 1.2.1 → 1.3.1
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 +12 -2
- package/dist/naan.min.js +4 -4
- package/frameworks/browser/https_request.nlg +2 -0
- package/frameworks/browser/sworker.js +23 -23
- package/frameworks/browser/terminals.nlg +123 -21
- package/frameworks/browser/workers.nlg +4 -1
- package/frameworks/browser/ws_client.nlg +5 -3
- package/frameworks/client/apiclient.nlg +8 -6
- package/frameworks/client/relaycon.nlg +3 -1
- package/frameworks/common/common.nlg +16 -3
- package/frameworks/node/apiserver.nlg +205 -5
- package/frameworks/node/worker.nlg +112 -10
- package/frameworks/node/ws_client.nlg +5 -3
- package/frameworks/project/build.nlg +5 -1
- package/frameworks/project/projects.nlg +1 -1
- package/frameworks/running/executors.nlg +3 -1
- package/frameworks/running/taskexec.nlg +5 -1
- package/lib/browser/env_web.js +18 -8
- package/lib/browser/env_webworker.js +22 -3
- package/lib/core/naanlib.js +4 -4
- 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/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_03_jsinterop.nlg +2 -2
- package/test/test_04_numerics.nlg +170 -2
- 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.1");
|
|
62
62
|
process.exit(0);
|
|
63
63
|
}
|
|
64
64
|
if (val == "--buildno") {
|
|
65
|
-
console.log("1.
|
|
65
|
+
console.log("1.3.1+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);
|
|
@@ -630,7 +640,7 @@ exports.NaanControllerWeb = function() {
|
|
|
630
640
|
if (querystrings["restart"] || !loadLocal())
|
|
631
641
|
{ // don't load state or can't load state
|
|
632
642
|
naanlib.banner();
|
|
633
|
-
var hostpath = naanlib.js.r("path").dirname(window.location.
|
|
643
|
+
var hostpath = window.location.origin.concat(naanlib.js.r("path").dirname(window.location.pathname));
|
|
634
644
|
naanlib.start({
|
|
635
645
|
cmd: 'App.version = "$Version$";;\r\n'
|
|
636
646
|
+ 'App.cache = "$CacheBuster$";;\r\n'
|