bare-tty 2.1.4 → 2.1.5
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 +3 -11
- package/package.json +2 -2
package/binding.c
CHANGED
|
@@ -243,13 +243,6 @@ 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
|
-
if (err < 0) {
|
|
249
|
-
js_throw_error(env, uv_err_name(err), uv_strerror(err));
|
|
250
|
-
return NULL;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
246
|
tty->env = env;
|
|
254
247
|
|
|
255
248
|
err = js_get_typedarray_info(env, argv[1], NULL, (void **) &tty->read.base, &tty->read.len, NULL, NULL);
|
|
@@ -423,10 +416,9 @@ bare_tty_close (js_env_t *env, js_callback_info_t *info) {
|
|
|
423
416
|
|
|
424
417
|
err = uv_tty_set_mode(&tty->handle, UV_TTY_MODE_NORMAL);
|
|
425
418
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
}
|
|
419
|
+
// Resetting the mode won't always work, in particular on Windows when we
|
|
420
|
+
// close an output stream.
|
|
421
|
+
(void) err;
|
|
430
422
|
|
|
431
423
|
uv_close((uv_handle_t *) &tty->handle, on_close);
|
|
432
424
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bare-tty",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "Native TTY streams for JavaScript",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
|
-
"url": "https://github.com/holepunchto/bare-tty.git"
|
|
18
|
+
"url": "git+https://github.com/holepunchto/bare-tty.git"
|
|
19
19
|
},
|
|
20
20
|
"author": "Holepunch",
|
|
21
21
|
"license": "Apache-2.0",
|