@signalwire/js 1.2.5-beta.1 → 1.2.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/README.md +4 -2
- package/dist/esm/common/src/BaseSession.d.ts +2 -1
- package/dist/esm/common/src/BaseSession.js +15 -6
- package/dist/esm/common/src/BrowserSession.d.ts +4 -3
- package/dist/esm/common/src/BrowserSession.js +9 -4
- package/dist/esm/common/src/messages/Verto.d.ts +1 -1
- package/dist/esm/common/src/messages/Verto.js +1 -1
- package/dist/esm/common/src/services/Connection.js +3 -3
- package/dist/esm/common/src/util/constants/index.d.ts +0 -44
- package/dist/esm/common/src/util/constants/index.js +0 -49
- package/dist/esm/common/src/util/helpers.d.ts +1 -0
- package/dist/esm/common/src/util/helpers.js +3 -0
- package/dist/esm/common/src/util/interfaces.d.ts +47 -38
- package/dist/esm/common/src/webrtc/BaseCall.d.ts +3 -4
- package/dist/esm/common/src/webrtc/BaseCall.js +2 -2
- package/dist/esm/common/src/webrtc/Call.d.ts +1 -1
- package/dist/esm/common/src/webrtc/CantinaAuth.d.ts +22 -0
- package/dist/esm/common/src/webrtc/CantinaAuth.js +68 -0
- package/dist/esm/common/src/webrtc/LayoutHandler.js +2 -2
- package/dist/esm/common/src/webrtc/Peer.d.ts +2 -2
- package/dist/esm/common/src/webrtc/Peer.js +3 -2
- package/dist/esm/common/src/webrtc/VertoHandler.js +3 -2
- package/dist/esm/common/src/webrtc/constants.d.ts +74 -0
- package/dist/esm/common/src/{util/constants/call.js → webrtc/constants.js} +43 -3
- package/dist/esm/common/src/webrtc/helpers.d.ts +2 -2
- package/dist/esm/common/src/webrtc/helpers.js +9 -15
- package/dist/esm/common/src/webrtc/interfaces.d.ts +87 -0
- package/dist/esm/common/src/webrtc/interfaces.js +0 -0
- package/dist/esm/js/index.d.ts +4 -2
- package/dist/esm/js/index.js +3 -2
- package/dist/esm/js/src/SignalWire.d.ts +1 -1
- package/dist/esm/js/src/Verto.d.ts +3 -1
- package/dist/esm/js/src/Verto.js +5 -0
- package/dist/index.min.js +2 -2
- package/package.json +15 -15
- package/CHANGELOG.md +0 -101
- package/dist/.DS_Store +0 -0
- package/dist/esm/common/src/util/constants/call.d.ts +0 -35
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signalwire/js",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"description": "Relay SDK for JavaScript to connect to SignalWire.",
|
|
5
5
|
"author": "SignalWire Team <open.source@signalwire.com>",
|
|
6
6
|
"main": "dist/index.min.js",
|
|
@@ -40,23 +40,23 @@
|
|
|
40
40
|
"homepage": "https://github.com/signalwire/signalwire-node",
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"loglevel": "^1.6.
|
|
44
|
-
"uuid": "^
|
|
43
|
+
"loglevel": "^1.6.8",
|
|
44
|
+
"uuid": "^7.0.3"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@
|
|
48
|
-
"@types/
|
|
47
|
+
"@babel/plugin-transform-runtime": "^7.9.0",
|
|
48
|
+
"@types/jest": "^25.2.1",
|
|
49
|
+
"@types/uuid": "^7.0.2",
|
|
49
50
|
"babel-core": "^6.26.3",
|
|
50
|
-
"babel-loader": "^
|
|
51
|
-
"babel-plugin-transform-runtime": "^6.23.0",
|
|
51
|
+
"babel-loader": "^8.1.0",
|
|
52
52
|
"babel-preset-env": "^1.7.0",
|
|
53
|
-
"jest": "^
|
|
54
|
-
"ts-jest": "^
|
|
55
|
-
"ts-loader": "^
|
|
56
|
-
"tslint": "^
|
|
57
|
-
"typescript": "^3.
|
|
58
|
-
"webpack": "^4.
|
|
59
|
-
"webpack-cli": "^3.3.
|
|
60
|
-
"webpack-dev-server": "^3.
|
|
53
|
+
"jest": "^25.3.0",
|
|
54
|
+
"ts-jest": "^25.3.1",
|
|
55
|
+
"ts-loader": "^6.2.2",
|
|
56
|
+
"tslint": "^6.1.1",
|
|
57
|
+
"typescript": "^3.8.3",
|
|
58
|
+
"webpack": "^4.42.1",
|
|
59
|
+
"webpack-cli": "^3.3.11",
|
|
60
|
+
"webpack-dev-server": "^3.10.3"
|
|
61
61
|
}
|
|
62
62
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
All notable changes to this project will be documented in this file.
|
|
3
|
-
|
|
4
|
-
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
|
-
|
|
6
|
-
<!-- ## [Unreleased] -->
|
|
7
|
-
|
|
8
|
-
## [1.2.5-beta.1] - 2019-12-19
|
|
9
|
-
### Added
|
|
10
|
-
- Ability to set `googleMaxBitrate`, `googleMinBitrate` and `googleStartBitrate` values per Call.
|
|
11
|
-
|
|
12
|
-
### Fixed
|
|
13
|
-
- Fix `getVideoDevices()`, `getAudioInDevices()`, `getAudioOutDevices()` methods to avoid return a deviceList with empty labels.
|
|
14
|
-
|
|
15
|
-
## [1.2.4] - 2019-12-04
|
|
16
|
-
### Fixed
|
|
17
|
-
- Keep trying to reconnect WS in case of network failure - even if it never has been connected.
|
|
18
|
-
|
|
19
|
-
## [1.2.4-beta.2] - 2019-12-02
|
|
20
|
-
### Changed
|
|
21
|
-
- Support Rollup.js as module bundler - Minor fix into Es6 export version
|
|
22
|
-
|
|
23
|
-
### Security
|
|
24
|
-
- Update devDependencies
|
|
25
|
-
|
|
26
|
-
## [1.2.4-beta.1] - 2019-11-12
|
|
27
|
-
### Added
|
|
28
|
-
- WebRTC video improvements (increase bitrate)
|
|
29
|
-
|
|
30
|
-
## [1.2.3] - 2019-10-29
|
|
31
|
-
### Fixed
|
|
32
|
-
- Update and use the proper extension to open the screenshare. Even after a transfer.
|
|
33
|
-
- Remove deprecated warnings and minor bug fixes.
|
|
34
|
-
|
|
35
|
-
## [1.2.2] - 2019-09-27
|
|
36
|
-
### Added
|
|
37
|
-
- Ability to configure whether the SDK should automatically recover the call after page refresh. `autoRecoverCalls` default to true.
|
|
38
|
-
### Changed
|
|
39
|
-
- Stop caching device's resolution in localStorage because, sometimes, a resolution is supported but not returned because the webcam is already using it on another tab/application.
|
|
40
|
-
|
|
41
|
-
## [1.2.1] - 2019-08-26
|
|
42
|
-
### Fixed
|
|
43
|
-
- Bugfix on SDP hack to force stereo audio if browser does not support it.
|
|
44
|
-
### Changed
|
|
45
|
-
- Default `useStereo` to false since is not supported by all browsers.
|
|
46
|
-
|
|
47
|
-
## [1.2.0] - 2019-08-22
|
|
48
|
-
### Fixed
|
|
49
|
-
- Try to re-establish the previous protocol only if the signature has not changed.
|
|
50
|
-
### Security
|
|
51
|
-
- Update dependencies
|
|
52
|
-
|
|
53
|
-
## [1.2.0-beta.1] - 2019-08-02
|
|
54
|
-
### Added
|
|
55
|
-
- New methods to manage browser devices: `getDevices()`, `getVideoDevices()`, `getAudioInDevices()`, `getAudioOutDevices()`.
|
|
56
|
-
### Deprecated
|
|
57
|
-
- Deprecated getters to retrieve cached values for devices: `devices`, `videoDevices`, `audioInDevices`, `audioOutDevices`.
|
|
58
|
-
- Deprecated `refreshDevices()` method to refresh cached devices. Use `getDevices()` instead.
|
|
59
|
-
|
|
60
|
-
## [1.1.3] - 2019-07-31
|
|
61
|
-
### Changed
|
|
62
|
-
- Auto-discover webrtc devices if all `deviceIds` or `labels` are empty. (Help on Safari)
|
|
63
|
-
|
|
64
|
-
## [1.1.2] - 2019-07-17
|
|
65
|
-
### Fixed
|
|
66
|
-
- Fix reconnection logic on Verto client.
|
|
67
|
-
|
|
68
|
-
## [1.1.1] - 2019-06-26
|
|
69
|
-
### Fixed
|
|
70
|
-
- Update Call.localStream if microphone or webcam has changed.
|
|
71
|
-
|
|
72
|
-
## [1.0.0-rc.3] - 2018-12-18
|
|
73
|
-
### Fixed
|
|
74
|
-
- Bugfix to really accept both `passwd` and `password` on Verto client initialization.
|
|
75
|
-
|
|
76
|
-
## [1.0.0-rc.2] - 2018-12-11
|
|
77
|
-
### Added
|
|
78
|
-
- Accept both `passwd` and `password` to setup Verto client.
|
|
79
|
-
- Add `userVariables` object property on Verto init parameters.
|
|
80
|
-
- Add event `signalwire.notification`. See [Notification](https://github.com/signalwire/signalwire-client-js/wiki/Notification) for further details.
|
|
81
|
-
### Changed
|
|
82
|
-
- `client.newCall()` parameters are now camelCase instead of snake_case.
|
|
83
|
-
### Removed
|
|
84
|
-
- These events are no longer used. All of these will be supplied under `signalwire.notification` event callback.
|
|
85
|
-
- `signalwire.verto.dialogChange`
|
|
86
|
-
- `signalwire.verto.display`
|
|
87
|
-
- `signalwire.verto.info`
|
|
88
|
-
- `signalwire.verto.event`
|
|
89
|
-
- `signalwire.verto.pvtEvent`
|
|
90
|
-
- `signalwire.verto.clientReady`
|
|
91
|
-
- Removed callbacks from `client.newCall()`. Use global `signalwire.notification` event or `onNotification` callback.
|
|
92
|
-
- onChange
|
|
93
|
-
- onUserMediaError
|
|
94
|
-
|
|
95
|
-
<!---
|
|
96
|
-
### Added
|
|
97
|
-
### Changed
|
|
98
|
-
### Removed
|
|
99
|
-
### Fixed
|
|
100
|
-
### Security
|
|
101
|
-
-->
|
package/dist/.DS_Store
DELETED
|
Binary file
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { CallOptions } from '../interfaces';
|
|
2
|
-
export declare const DEFAULT_CALL_OPTIONS: CallOptions;
|
|
3
|
-
export declare enum State {
|
|
4
|
-
New = 0,
|
|
5
|
-
Requesting = 1,
|
|
6
|
-
Trying = 2,
|
|
7
|
-
Recovering = 3,
|
|
8
|
-
Ringing = 4,
|
|
9
|
-
Answering = 5,
|
|
10
|
-
Early = 6,
|
|
11
|
-
Active = 7,
|
|
12
|
-
Held = 8,
|
|
13
|
-
Hangup = 9,
|
|
14
|
-
Destroy = 10,
|
|
15
|
-
Purge = 11
|
|
16
|
-
}
|
|
17
|
-
export declare enum Role {
|
|
18
|
-
Participant = "participant",
|
|
19
|
-
Moderator = "moderator"
|
|
20
|
-
}
|
|
21
|
-
export declare enum ConferenceAction {
|
|
22
|
-
Join = "join",
|
|
23
|
-
Leave = "leave",
|
|
24
|
-
Bootstrap = "bootstrap",
|
|
25
|
-
Add = "add",
|
|
26
|
-
Modify = "modify",
|
|
27
|
-
Delete = "delete",
|
|
28
|
-
Clear = "clear",
|
|
29
|
-
ChatMessage = "chatMessage",
|
|
30
|
-
LayerInfo = "layerInfo",
|
|
31
|
-
LogoInfo = "logoInfo",
|
|
32
|
-
LayoutInfo = "layoutInfo",
|
|
33
|
-
LayoutList = "layoutList",
|
|
34
|
-
ModCmdResponse = "modCommandResponse"
|
|
35
|
-
}
|