bare-tty 2.1.5 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/binding.c CHANGED
@@ -243,6 +243,11 @@ bare_tty_init (js_env_t *env, js_callback_info_t *info) {
243
243
  return NULL;
244
244
  }
245
245
 
246
+ err = uv_stream_set_blocking((uv_stream_t *) &tty->handle, true);
247
+
248
+ // Not all platforms support blocking TTY handles.
249
+ (void) err;
250
+
246
251
  tty->env = env;
247
252
 
248
253
  err = js_get_typedarray_info(env, argv[1], NULL, (void **) &tty->read.base, &tty->read.len, NULL, NULL);
package/binding.js CHANGED
@@ -1 +1 @@
1
- module.exports = process.addon(__dirname)
1
+ module.exports = require.addon()
package/index.js CHANGED
@@ -214,7 +214,7 @@ exports.constants = {
214
214
  MODE_IO: binding.MODE_IO || 0
215
215
  }
216
216
 
217
- process
217
+ Bare
218
218
  .on('exit', () => {
219
219
  for (const stream of exports.ReadStream._streams) {
220
220
  stream.destroy()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-tty",
3
- "version": "2.1.5",
3
+ "version": "3.0.0",
4
4
  "description": "Native TTY streams for JavaScript",
5
5
  "main": "index.js",
6
6
  "files": [