werift 0.15.7 → 0.15.8
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/lib/dtls/src/context/cipher.d.ts +1 -1
- package/lib/dtls/src/transport.d.ts +1 -0
- package/lib/ice/src/stun/protocol.d.ts +1 -1
- package/lib/ice/src/transport.d.ts +2 -0
- package/lib/rtp/src/srtp/context/context.d.ts +1 -0
- package/lib/sctp/src/transport.d.ts +1 -0
- package/lib/webrtc/src/nonstandard/userMedia.d.ts +1 -1
- package/lib/webrtc/src/transport/ice.d.ts +1 -1
- package/package.json +8 -7
|
@@ -28,7 +28,7 @@ export declare class CipherContext {
|
|
|
28
28
|
* @param signatureHash
|
|
29
29
|
* @param namedCurveAlgorithm necessary when use ecdsa
|
|
30
30
|
*/
|
|
31
|
-
static createSelfSignedCertificateWithKey: (signatureHash: SignatureHash, namedCurveAlgorithm?: NamedCurveAlgorithms
|
|
31
|
+
static createSelfSignedCertificateWithKey: (signatureHash: SignatureHash, namedCurveAlgorithm?: NamedCurveAlgorithms) => Promise<{
|
|
32
32
|
certPem: string;
|
|
33
33
|
keyPem: string;
|
|
34
34
|
signatureHash: SignatureHash;
|
|
@@ -19,7 +19,7 @@ export declare class StunProtocol implements Protocol {
|
|
|
19
19
|
private readonly closed;
|
|
20
20
|
constructor(receiver: Connection);
|
|
21
21
|
connectionLost(): void;
|
|
22
|
-
connectionMade: (useIpv4: boolean, portRange?: [number, number]
|
|
22
|
+
connectionMade: (useIpv4: boolean, portRange?: [number, number]) => Promise<void>;
|
|
23
23
|
private datagramReceived;
|
|
24
24
|
getExtraInfo(): Address;
|
|
25
25
|
sendStun(message: Message, addr: Address): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MediaStreamTrack } from "../media/track";
|
|
2
|
-
export declare const getUserMp4: (path: string, loop?: boolean
|
|
2
|
+
export declare const getUserMp4: (path: string, loop?: boolean) => Promise<MediaMp4>;
|
|
3
3
|
declare class MediaMp4 {
|
|
4
4
|
private videoPort;
|
|
5
5
|
private audioPort;
|
|
@@ -11,7 +11,7 @@ export declare class RTCIceTransport {
|
|
|
11
11
|
get iceGather(): RTCIceGatherer;
|
|
12
12
|
get role(): "controlling" | "controlled";
|
|
13
13
|
private setState;
|
|
14
|
-
addRemoteCandidate: (candidate?: IceCandidate
|
|
14
|
+
addRemoteCandidate: (candidate?: IceCandidate) => Promise<void> | undefined;
|
|
15
15
|
setRemoteParams(remoteParameters: RTCIceParameters): void;
|
|
16
16
|
start(): Promise<void>;
|
|
17
17
|
stop(): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "werift",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.8",
|
|
4
4
|
"description": "WebRTC Implementation for TypeScript (Node.js)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"WebRTC",
|
|
@@ -31,13 +31,14 @@
|
|
|
31
31
|
"lint": "eslint ./src --fix",
|
|
32
32
|
"test": "npm run type && jest --runInBand --forceExit --coverage",
|
|
33
33
|
"type": "tsc --noEmit --project ./tsconfig.json",
|
|
34
|
-
"unused": "organize-imports-cli src/**/*.ts"
|
|
34
|
+
"unused": "organize-imports-cli src/**/*.ts",
|
|
35
|
+
"upgrade-interactive": "npx npm-check --update"
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
37
38
|
"@fidm/x509": "^1.2.1",
|
|
38
39
|
"@minhducsun2002/leb128": "^0.2.0",
|
|
39
|
-
"@peculiar/webcrypto": "^1.
|
|
40
|
-
"@peculiar/x509": "^1.
|
|
40
|
+
"@peculiar/webcrypto": "^1.4.0",
|
|
41
|
+
"@peculiar/x509": "^1.7.2",
|
|
41
42
|
"@shinyoshiaki/ebml-builder": "^0.0.1",
|
|
42
43
|
"aes-js": "^3.1.2",
|
|
43
44
|
"binary-data": "^0.6.0",
|
|
@@ -62,13 +63,13 @@
|
|
|
62
63
|
"@types/debug": "^4.1.7",
|
|
63
64
|
"@types/elliptic": "^6.4.14",
|
|
64
65
|
"@types/ip": "^1.1.0",
|
|
65
|
-
"@types/jest": "^
|
|
66
|
+
"@types/jest": "^28.1.3",
|
|
66
67
|
"@types/lodash": "^4.14.178",
|
|
67
|
-
"@types/node": "^
|
|
68
|
+
"@types/node": "^18.0.0",
|
|
68
69
|
"@types/uuid": "^8.3.3"
|
|
69
70
|
},
|
|
70
71
|
"engines": {
|
|
71
|
-
"node": ">=
|
|
72
|
+
"node": ">=16"
|
|
72
73
|
},
|
|
73
74
|
"readme": "README.md"
|
|
74
75
|
}
|