node-datachannel 0.3.0 → 0.3.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/CMakeLists.txt +3 -3
- package/lib/index.d.ts +3 -3
- package/package.json +1 -1
package/CMakeLists.txt
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
cmake_minimum_required(VERSION 3.15)
|
|
2
2
|
cmake_policy(SET CMP0091 NEW)
|
|
3
|
-
project(node_datachannel VERSION 0.
|
|
3
|
+
project(node_datachannel VERSION 0.3.1)
|
|
4
4
|
|
|
5
5
|
# Workaround for https://github.com/murat-dogan/node-datachannel/issues/65
|
|
6
6
|
if( NODE_RUNTIMEVERSION VERSION_GREATER_EQUAL "17.0.0")
|
|
7
7
|
add_compile_definitions(OPENSSL_API_COMPAT=0x10100001L)
|
|
8
|
-
add_compile_definitions(OPENSSL_CONFIGURED_API=0x30000000L)
|
|
8
|
+
add_compile_definitions(OPENSSL_CONFIGURED_API=0x30000000L)
|
|
9
9
|
endif()
|
|
10
10
|
|
|
11
11
|
include_directories(${CMAKE_JS_INC})
|
|
@@ -33,7 +33,7 @@ include(FetchContent)
|
|
|
33
33
|
FetchContent_Declare(
|
|
34
34
|
libdatachannel
|
|
35
35
|
GIT_REPOSITORY https://github.com/paullouisageneau/libdatachannel.git
|
|
36
|
-
GIT_TAG "v0.17.
|
|
36
|
+
GIT_TAG "v0.17.1"
|
|
37
37
|
)
|
|
38
38
|
|
|
39
39
|
option(NO_MEDIA "Disable media transport support in libdatachannel" OFF)
|
package/lib/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export function cleanup(): void;
|
|
|
22
22
|
export function setSctpSettings(settings: SctpSettings): void;
|
|
23
23
|
|
|
24
24
|
// Proxy Server
|
|
25
|
-
export type ProxyServerType = '
|
|
25
|
+
export type ProxyServerType = 'Socks5' | 'Http';
|
|
26
26
|
export interface ProxyServer {
|
|
27
27
|
type: ProxyServerType;
|
|
28
28
|
ip: string;
|
|
@@ -113,7 +113,7 @@ export class Audio {
|
|
|
113
113
|
addOpusCodec: (payloadType: number, profile?: string) => string;
|
|
114
114
|
|
|
115
115
|
direction: () => Direction;
|
|
116
|
-
generateSdp: (eol: string, addr: string, port:
|
|
116
|
+
generateSdp: (eol: string, addr: string, port: number) => string;
|
|
117
117
|
mid: () => string;
|
|
118
118
|
setDirection: (dir: Direction) => void;
|
|
119
119
|
description: () => string;
|
|
@@ -140,7 +140,7 @@ export class Video {
|
|
|
140
140
|
addVP9Codec: (payloadType: number) => void;
|
|
141
141
|
|
|
142
142
|
direction: () => Direction;
|
|
143
|
-
generateSdp: (eol: string, addr: string, port:
|
|
143
|
+
generateSdp: (eol: string, addr: string, port: number) => string;
|
|
144
144
|
mid: () => string;
|
|
145
145
|
setDirection: (dir: Direction) => void;
|
|
146
146
|
description: () => string;
|