Skip to content

Commit

Permalink
Merge pull request #46 from YOU54F/fix/set_blocking
Browse files Browse the repository at this point in the history
Fix/set blocking
  • Loading branch information
YOU54F authored May 28, 2024
2 parents f79e6c2 + 3733314 commit 055e0af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"build": "tsc --project tsconfig.build.json",
"prerelease": "npm run snyk-protect",
"release": "commit-and-tag-version",
"test": "cross-env LOG_LEVEL=debug PACT_DO_NOT_TRACK=true mocha \"{src,test,bin,standalone}/**/*.spec.ts\"",
"test": "cross-env LOG_LEVEL=trace PACT_DO_NOT_TRACK=true mocha \"{src,test,bin,standalone}/**/*.spec.ts\"",
"snyk-protect": "snyk-protect",
"format:base": "prettier --parser typescript",
"format:check": "npm run format:base -- --list-different \"{src,standalone,bin,test}/**/*.{ts,tsx}\"",
Expand Down
3 changes: 3 additions & 0 deletions src/ffi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ let ffi: typeof ffiLib;
let ffiLogLevel: LogLevel;

const initialiseFfi = (logLevel: LogLevel): typeof ffi => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
process.stdout._handle.setBlocking(true);
logger.debug(`Initalising native core at log level '${logLevel}'`);
ffiLogLevel = logLevel;
try {
Expand Down

0 comments on commit 055e0af

Please sign in to comment.