bare-tty 3.0.0 → 3.0.1

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
@@ -250,7 +250,7 @@ bare_tty_init (js_env_t *env, js_callback_info_t *info) {
250
250
 
251
251
  tty->env = env;
252
252
 
253
- err = js_get_typedarray_info(env, argv[1], NULL, (void **) &tty->read.base, &tty->read.len, NULL, NULL);
253
+ err = js_get_typedarray_info(env, argv[1], NULL, (void **) &tty->read.base, (size_t *) &tty->read.len, NULL, NULL);
254
254
  assert(err == 0);
255
255
 
256
256
  err = js_create_reference(env, argv[2], 1, &tty->ctx);
@@ -301,7 +301,7 @@ bare_tty_writev (js_env_t *env, js_callback_info_t *info) {
301
301
  assert(err == 0);
302
302
 
303
303
  uv_buf_t *buf = &bufs[i];
304
- err = js_get_typedarray_info(env, item, NULL, (void **) &buf->base, &buf->len, NULL, NULL);
304
+ err = js_get_typedarray_info(env, item, NULL, (void **) &buf->base, (size_t *) &buf->len, NULL, NULL);
305
305
  assert(err == 0);
306
306
  }
307
307
 
package/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ /* global Bare */
1
2
  const { Readable, Writable } = require('streamx')
2
3
  const binding = require('./binding')
3
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-tty",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Native TTY streams for JavaScript",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -10,6 +10,9 @@
10
10
  "CMakeLists.txt",
11
11
  "prebuilds"
12
12
  ],
13
+ "addon": {
14
+ "target": "bare_tty"
15
+ },
13
16
  "scripts": {
14
17
  "test": "standard && bare test.js"
15
18
  },
@@ -24,6 +27,7 @@
24
27
  },
25
28
  "homepage": "https://github.com/holepunchto/bare-tty#readme",
26
29
  "dependencies": {
30
+ "bare-events": "^2.2.0",
27
31
  "streamx": "^2.13.2"
28
32
  },
29
33
  "devDependencies": {