Comparing version 1.0.1 to 1.1.0
@@ -8,3 +8,2 @@ 'use strict'; | ||
const fs = process.binding('fs'); | ||
const constants = require('constants'); | ||
@@ -15,3 +14,3 @@ // Synchronous, but who cares? | ||
try { | ||
callback(null, fs.open(name, constants.O_RDWR | constants.O_EXCL, 0o666)); | ||
callback(null, fs.open(name, fs.constants.O_RDWR | fs.constants.O_EXCL, 0o666)); | ||
} catch (e) { | ||
@@ -18,0 +17,0 @@ callback(e); |
{ | ||
"name": "reopen-tty", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "A small library to open /dev/tty in a cross-platform way", | ||
@@ -9,2 +9,5 @@ "main": "index.js", | ||
}, | ||
"engines": { | ||
"node": ">= 8.0.0" | ||
}, | ||
"repository": { | ||
@@ -11,0 +14,0 @@ "type": "git", |
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
4317
5
67