node-datachannel 0.5.1 → 0.5.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.
@@ -17,3 +17,4 @@ jobs:
17
17
  node-version: '16.x'
18
18
  - run: npm ci
19
19
  - run: npm run lint
20
+ - run: npm run test-types
package/CMakeLists.txt CHANGED
@@ -35,7 +35,7 @@ include(FetchContent)
35
35
  FetchContent_Declare(
36
36
  libdatachannel
37
37
  GIT_REPOSITORY https://github.com/paullouisageneau/libdatachannel.git
38
- GIT_TAG "v0.19.2"
38
+ GIT_TAG "v0.19.4"
39
39
  )
40
40
 
41
41
  option(NO_MEDIA "Disable media transport support in libdatachannel" OFF)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-datachannel",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "libdatachannel node bindings",
5
5
  "type": "module",
6
6
  "exports": {
@@ -26,7 +26,8 @@
26
26
  "clean": "cmake-js clean",
27
27
  "lint": "eslint lib/**/* test/**/*",
28
28
  "test": "NODE_OPTIONS=--experimental-vm-modules jest",
29
- "wpt-test": "node test/wpt.js"
29
+ "wpt-test": "node test/wpt.js",
30
+ "test-types": "tsc"
30
31
  },
31
32
  "binary": {
32
33
  "napi_versions": [
@@ -72,7 +73,7 @@
72
73
  "node-addon-api": "^7.0.0",
73
74
  "prebuild": "^12.0.0",
74
75
  "prettier": "^2.8.8",
75
- "typescript": "^4.6.3"
76
+ "typescript": "^5.3.2"
76
77
  },
77
78
  "dependencies": {
78
79
  "node-domexception": "^2.0.1",
@@ -35,8 +35,10 @@ export default class _RTCPeerConnection extends EventTarget implements RTCPeerCo
35
35
  addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
36
36
  close(): void;
37
37
  createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
38
+ createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
38
39
  createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
39
40
  createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
41
+ createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;
40
42
  getConfiguration(): RTCConfiguration;
41
43
  getReceivers(): RTCRtpReceiver[];
42
44
  getSenders(): RTCRtpSender[];
package/tsconfig.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "module": "commonjs",
5
+ "declaration": true,
6
+ "strict": true,
7
+ "esModuleInterop": true,
8
+ "noEmit": true
9
+ },
10
+ "exclude": [
11
+ "node_modules",
12
+ "build"
13
+ ]
14
+ }