node-datachannel 0.2.2 → 0.2.3

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.
@@ -42,13 +42,7 @@ jobs:
42
42
  runs-on: windows-latest
43
43
  strategy:
44
44
  matrix:
45
- node_version:
46
- - 10
47
- - 11
48
- - 12
49
- - 13
50
- - 14
51
- - 15
45
+ node_version: [10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x]
52
46
  node_arch:
53
47
  - x86
54
48
  steps:
package/CMakeLists.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  cmake_minimum_required(VERSION 3.15)
2
2
  cmake_policy(SET CMP0091 NEW)
3
- project(node_datachannel VERSION 0.2.2)
3
+ project(node_datachannel VERSION 0.2.3)
4
4
 
5
5
  include_directories(${CMAKE_JS_INC})
6
6
 
@@ -27,7 +27,7 @@ include(FetchContent)
27
27
  FetchContent_Declare(
28
28
  libdatachannel
29
29
  GIT_REPOSITORY https://github.com/paullouisageneau/libdatachannel.git
30
- GIT_TAG "v0.16.4"
30
+ GIT_TAG "v0.16.5"
31
31
  )
32
32
 
33
33
  option(NO_MEDIA "Disable media transport support in libdatachannel" OFF)
package/lib/index.d.ts CHANGED
@@ -90,7 +90,7 @@ export interface SelectedCandidateInfo {
90
90
  }
91
91
 
92
92
  // Must be same as rtc enum class Direction
93
- export enum Direction {
93
+ export const enum Direction {
94
94
  SendOnly = 'SendOnly',
95
95
  RecvOnly = 'RecvOnly',
96
96
  SendRecv = 'SendRecv',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-datachannel",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "libdatachannel node bindings",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -51,7 +51,7 @@ AudioWrapper::AudioWrapper(const Napi::CallbackInfo &info) : Napi::ObjectWrap<Au
51
51
  rtc::Description::Direction dir = rtc::Description::Direction::SendOnly;
52
52
 
53
53
  // optional
54
- if (length > 1)
54
+ if (length > 0)
55
55
  {
56
56
  if (!info[0].IsString())
57
57
  {
@@ -62,7 +62,7 @@ AudioWrapper::AudioWrapper(const Napi::CallbackInfo &info) : Napi::ObjectWrap<Au
62
62
  }
63
63
 
64
64
  // ootional
65
- if (length > 2)
65
+ if (length > 1)
66
66
  {
67
67
  if (!info[1].IsString())
68
68
  {