Fix example build for updated modules (#224)

* Fix example build for updated modules

* Small changes

* Small changes

* Small changes
This commit is contained in:
Roman Demidov
2020-12-03 12:13:15 +03:00
committed by GitHub
parent 9ec7f2e29a
commit 1a2d610039
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,21 @@
--- index.js
+++ index.js
@@ -101,18 +101,11 @@
function nodeNC(port, input) {
const src = nodeNetCatSrc(port, input);
- if (src.length < 1000) {
- return spawnSync(process.execPath, ['-e', src], {
- windowsHide: true,
- maxBuffer: Infinity,
- });
- } else {
return spawnSync(process.execPath, [], {
input: src,
windowsHide: true,
maxBuffer: Infinity,
});
- }
}
function test(fn, port) {