@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.
Files changed (38) hide show
  1. package/README.md +4 -2
  2. package/dist/esm/common/src/BaseSession.d.ts +2 -1
  3. package/dist/esm/common/src/BaseSession.js +15 -6
  4. package/dist/esm/common/src/BrowserSession.d.ts +4 -3
  5. package/dist/esm/common/src/BrowserSession.js +9 -4
  6. package/dist/esm/common/src/messages/Verto.d.ts +1 -1
  7. package/dist/esm/common/src/messages/Verto.js +1 -1
  8. package/dist/esm/common/src/services/Connection.js +3 -3
  9. package/dist/esm/common/src/util/constants/index.d.ts +0 -44
  10. package/dist/esm/common/src/util/constants/index.js +0 -49
  11. package/dist/esm/common/src/util/helpers.d.ts +1 -0
  12. package/dist/esm/common/src/util/helpers.js +3 -0
  13. package/dist/esm/common/src/util/interfaces.d.ts +47 -38
  14. package/dist/esm/common/src/webrtc/BaseCall.d.ts +3 -4
  15. package/dist/esm/common/src/webrtc/BaseCall.js +2 -2
  16. package/dist/esm/common/src/webrtc/Call.d.ts +1 -1
  17. package/dist/esm/common/src/webrtc/CantinaAuth.d.ts +22 -0
  18. package/dist/esm/common/src/webrtc/CantinaAuth.js +68 -0
  19. package/dist/esm/common/src/webrtc/LayoutHandler.js +2 -2
  20. package/dist/esm/common/src/webrtc/Peer.d.ts +2 -2
  21. package/dist/esm/common/src/webrtc/Peer.js +3 -2
  22. package/dist/esm/common/src/webrtc/VertoHandler.js +3 -2
  23. package/dist/esm/common/src/webrtc/constants.d.ts +74 -0
  24. package/dist/esm/common/src/{util/constants/call.js → webrtc/constants.js} +43 -3
  25. package/dist/esm/common/src/webrtc/helpers.d.ts +2 -2
  26. package/dist/esm/common/src/webrtc/helpers.js +9 -15
  27. package/dist/esm/common/src/webrtc/interfaces.d.ts +87 -0
  28. package/dist/esm/common/src/webrtc/interfaces.js +0 -0
  29. package/dist/esm/js/index.d.ts +4 -2
  30. package/dist/esm/js/index.js +3 -2
  31. package/dist/esm/js/src/SignalWire.d.ts +1 -1
  32. package/dist/esm/js/src/Verto.d.ts +3 -1
  33. package/dist/esm/js/src/Verto.js +5 -0
  34. package/dist/index.min.js +2 -2
  35. package/package.json +15 -15
  36. package/CHANGELOG.md +0 -101
  37. package/dist/.DS_Store +0 -0
  38. 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.5-beta.1",
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.4",
44
- "uuid": "^3.3.3"
43
+ "loglevel": "^1.6.8",
44
+ "uuid": "^7.0.3"
45
45
  },
46
46
  "devDependencies": {
47
- "@types/jest": "^24.0.21",
48
- "@types/uuid": "^3.4.6",
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": "^7.1.5",
51
- "babel-plugin-transform-runtime": "^6.23.0",
51
+ "babel-loader": "^8.1.0",
52
52
  "babel-preset-env": "^1.7.0",
53
- "jest": "^24.9.0",
54
- "ts-jest": "^24.1.0",
55
- "ts-loader": "^5.4.5",
56
- "tslint": "^5.20.0",
57
- "typescript": "^3.6.4",
58
- "webpack": "^4.41.2",
59
- "webpack-cli": "^3.3.10",
60
- "webpack-dev-server": "^3.9.0"
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
- }