bare-http1 2.0.0 → 2.0.2

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/CMakeLists.txt CHANGED
@@ -7,7 +7,15 @@ include(bare)
7
7
  add_bare_module(bare_http1)
8
8
 
9
9
  target_sources(
10
- bare_http1
10
+ ${bare_http1}
11
11
  PRIVATE
12
12
  binding.c
13
13
  )
14
+
15
+ if(WIN32)
16
+ target_link_libraries(
17
+ ${bare_http1}
18
+ INTERFACE
19
+ ws2_32
20
+ )
21
+ endif()
package/binding.c CHANGED
@@ -452,7 +452,7 @@ bare_http_connection_write (js_env_t *env, js_callback_info_t *info) {
452
452
  assert(err == 0);
453
453
 
454
454
  uv_buf_t *buf = &bufs[i];
455
- err = js_get_typedarray_info(env, item, NULL, (void **) &buf->base, &buf->len, NULL, NULL);
455
+ err = js_get_typedarray_info(env, item, NULL, (void **) &buf->base, (size_t *) &buf->len, NULL, NULL);
456
456
  assert(err == 0);
457
457
  }
458
458
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-http1",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Native HTTP/1 library for JavaScript",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -10,15 +10,13 @@
10
10
  "CMakeLists.txt",
11
11
  "prebuilds"
12
12
  ],
13
- "imports": {
14
- "events": "bare-events"
15
- },
13
+ "addon": true,
16
14
  "scripts": {
17
15
  "test": "standard && bare test.js"
18
16
  },
19
17
  "repository": {
20
18
  "type": "git",
21
- "url": "https://github.com/holepunchto/bare-http1.git"
19
+ "url": "git+https://github.com/holepunchto/bare-http1.git"
22
20
  },
23
21
  "author": "Holepunch",
24
22
  "license": "Apache-2.0",