init tool
This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+10
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright (c) 2020, Microsoft Corporation (MIT License).
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getWorkerPipeName = void 0;
|
||||
function getWorkerPipeName(conoutPipeName) {
|
||||
return conoutPipeName + "-worker";
|
||||
}
|
||||
exports.getWorkerPipeName = getWorkerPipeName;//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/5235c6bb189b60b01b1f49062f4ffa42384f8c91/node_modules/node-pty/lib/shared/conout.js.map
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright (c) 2020, Microsoft Corporation (MIT License).
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var worker_threads_1 = require("worker_threads");
|
||||
var net_1 = require("net");
|
||||
var conout_1 = require("../shared/conout");
|
||||
var conoutPipeName = worker_threads_1.workerData.conoutPipeName;
|
||||
var conoutSocket = new net_1.Socket();
|
||||
conoutSocket.setEncoding('utf8');
|
||||
conoutSocket.connect(conoutPipeName, function () {
|
||||
var server = net_1.createServer(function (workerSocket) {
|
||||
conoutSocket.pipe(workerSocket);
|
||||
});
|
||||
server.listen(conout_1.getWorkerPipeName(conoutPipeName));
|
||||
worker_threads_1.parentPort.postMessage(1 /* READY */);
|
||||
});//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/5235c6bb189b60b01b1f49062f4ffa42384f8c91/node_modules/node-pty/lib/worker/conoutSocketWorker.js.map
|
||||
Reference in New Issue
Block a user