@naanlang/naan 1.6.0 → 1.7.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 +2 -2
- package/dist/env_web.js +3 -32
- package/dist/naan.min.js +10 -10
- package/frameworks/browser/sworker.js +23 -23
- package/frameworks/browser/terminals.nlg +161 -212
- package/frameworks/browser/worker.nlg +78 -30
- package/frameworks/browser/workers.nlg +1 -1
- package/frameworks/browser/ws_client.nlg +23 -87
- package/frameworks/client/apiclient.nlg +91 -58
- package/frameworks/client/client.nlg +22 -2
- package/frameworks/client/psm_client.nlg +10 -14
- package/frameworks/client/relaycon.nlg +1 -1
- package/frameworks/common/common.nlg +13 -9
- package/frameworks/node/apiserver.nlg +1 -2
- package/frameworks/node/node.nlg +1 -0
- package/frameworks/node/pty.nlg +21 -21
- package/frameworks/node/shell.nlg +26 -3
- package/frameworks/node/worker.nlg +166 -84
- package/frameworks/node/ws_client.nlg +25 -84
- package/frameworks/project/build.nlg +83 -32
- package/frameworks/project/projects.nlg +2 -2
- package/frameworks/running/debugcom.nlg +20 -3
- package/frameworks/running/debugnub.nlg +16 -7
- package/frameworks/running/executors.nlg +36 -26
- package/frameworks/running/instances.nlg +34 -22
- package/frameworks/running/remote_req.nlg +6 -9
- package/frameworks/running/remote_res.nlg +2 -2
- package/frameworks/running/sourcecode.nlg +3 -2
- package/frameworks/running/taskexec.nlg +14 -57
- package/frameworks/service/imp.nlg +37 -5
- package/frameworks/service/nubnode.nlg +39 -8
- package/frameworks/service/nubweb.nlg +28 -10
- package/frameworks/storage/file_manager.nlg +3 -2
- package/lib/browser/env_web.js +10 -39
- package/lib/browser/env_webworker.js +1 -30
- package/lib/core/naanlib.js +10 -10
- package/lib/env_node.js +5 -22
- package/lib/env_nodeworker.js +8 -43
- package/lib/node_server_init.nlg +149 -0
- package/lib/node_worker.js +36 -0
- package/lib/node_worker_init.nlg +43 -0
- package/package.json +1 -1
- package/plugins/openSearch/openSearch.nlg +3 -2
- package/plugins/openSearch/os_dynamo.nlg +3 -2
- package/plugins/serviceAws/aws_cloudwatchlogs.nlg +44 -2
- package/plugins/serviceAws/aws_dynamo.nlg +144 -63
- package/plugins/serviceAws/aws_utils.nlg +6 -11
- package/plugins/serviceAws/serviceAws.nlg +3 -2
- package/test/test_01_core.nlg +2 -2
- package/test/test_02_context.nlg +8 -8
- package/test/test_03_jsinterop.nlg +3 -3
- package/test/test_07_lingo.nlg +1 -1
package/LICENSE.md
CHANGED
package/README.md
CHANGED
package/bin/index.js
CHANGED
|
@@ -73,11 +73,11 @@ process.argv.every((val, index) => {
|
|
|
73
73
|
return (true);
|
|
74
74
|
}
|
|
75
75
|
if (val == "--version") {
|
|
76
|
-
console.log("1.
|
|
76
|
+
console.log("1.7.1");
|
|
77
77
|
process.exit(0);
|
|
78
78
|
}
|
|
79
79
|
if (val == "--buildno") {
|
|
80
|
-
console.log("1.
|
|
80
|
+
console.log("1.7.1+1");
|
|
81
81
|
process.exit(0);
|
|
82
82
|
}
|
|
83
83
|
if (val.substring(0,1) == "-") {
|
package/dist/env_web.js
CHANGED
|
@@ -171,7 +171,7 @@ exports.NaanControllerWeb = function() {
|
|
|
171
171
|
if (repdex < 0)
|
|
172
172
|
termlist.push(terminal);
|
|
173
173
|
takePending(); // output all pending terminal messages
|
|
174
|
-
this.ioctl_event("term-attach",
|
|
174
|
+
this.ioctl_event("term-attach", terminal.guid);
|
|
175
175
|
};
|
|
176
176
|
|
|
177
177
|
//
|
|
@@ -186,7 +186,7 @@ exports.NaanControllerWeb = function() {
|
|
|
186
186
|
termlist.splice(repdex, 1);
|
|
187
187
|
if (termlist.length === 0)
|
|
188
188
|
replstate = terminal.StateSave(); // save ultimate repl state
|
|
189
|
-
this.ioctl_event("term-detach",
|
|
189
|
+
this.ioctl_event("term-detach", terminal.guid);
|
|
190
190
|
};
|
|
191
191
|
|
|
192
192
|
//
|
|
@@ -220,24 +220,6 @@ exports.NaanControllerWeb = function() {
|
|
|
220
220
|
}, 1);
|
|
221
221
|
};
|
|
222
222
|
|
|
223
|
-
var replyHook;
|
|
224
|
-
this.OnReplyHook = function OnReplyHook(proc) {
|
|
225
|
-
replyHook = proc;
|
|
226
|
-
return (proc);
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
this.ReplyMessage = function ReplyMessage(data) { // "remote" -> "local"
|
|
230
|
-
if (replyHook)
|
|
231
|
-
setTimeout(function() {
|
|
232
|
-
replyHook(data);
|
|
233
|
-
}, 1);
|
|
234
|
-
termlist.forEach(function(term) {
|
|
235
|
-
if (term.OnMessageOut)
|
|
236
|
-
term.OnMessageOut(data);
|
|
237
|
-
});
|
|
238
|
-
return (data);
|
|
239
|
-
};
|
|
240
|
-
|
|
241
223
|
var nideListener;
|
|
242
224
|
this.OnMessage = function OnMessage(proc) {
|
|
243
225
|
nideListener = proc;
|
|
@@ -425,6 +407,7 @@ exports.NaanControllerWeb = function() {
|
|
|
425
407
|
}
|
|
426
408
|
else if (msg.id == "targetin")
|
|
427
409
|
{
|
|
410
|
+
console.log("env_web targetin");
|
|
428
411
|
if (nideListener)
|
|
429
412
|
nideListener(msg.data); // target received a message
|
|
430
413
|
}
|
|
@@ -446,17 +429,6 @@ exports.NaanControllerWeb = function() {
|
|
|
446
429
|
return (msg);
|
|
447
430
|
};
|
|
448
431
|
|
|
449
|
-
//
|
|
450
|
-
// report messages back to opener
|
|
451
|
-
//
|
|
452
|
-
termSelf.OnMessageOut = function OnMessageOut(data) {
|
|
453
|
-
var msg = { // target is sending debug data
|
|
454
|
-
id: "targetout",
|
|
455
|
-
data: data
|
|
456
|
-
};
|
|
457
|
-
return (termSelf.OnMessage(msg));
|
|
458
|
-
};
|
|
459
|
-
|
|
460
432
|
//
|
|
461
433
|
// report debug messages back to opener
|
|
462
434
|
//
|
|
@@ -749,7 +721,6 @@ exports.NaanControllerWeb = function() {
|
|
|
749
721
|
naancont: contSelf,
|
|
750
722
|
title: vsiteName + " $Version$"
|
|
751
723
|
});
|
|
752
|
-
termTextOut("\x1b[90m\x1b[3m".concat("\nwindow closed", "\x1b[0m\n"));
|
|
753
724
|
}
|
|
754
725
|
} catch (e) {
|
|
755
726
|
}
|