Comparing version 1.1.1 to 1.1.2
'use strict'; | ||
const fs = require('fs'); | ||
const tty = require('tty'); | ||
@@ -7,3 +8,3 @@ | ||
if (process.platform === 'win32') { | ||
const fs = process.binding('fs'); | ||
const cfs = process.binding('fs'); | ||
@@ -14,3 +15,3 @@ // Synchronous, but who cares? | ||
try { | ||
callback(null, fs.open(name, fs.constants.O_RDWR | fs.constants.O_EXCL, 0o666)); | ||
callback(null, cfs.open(name, fs.constants.O_RDWR | fs.constants.O_EXCL, 0o666)); | ||
} catch (e) { | ||
@@ -21,3 +22,2 @@ callback(e); | ||
} else { | ||
const fs = require('fs'); | ||
@@ -24,0 +24,0 @@ openTTY = (kind, callback) => { |
{ | ||
"name": "reopen-tty", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A small library to open /dev/tty in a cross-platform way", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package