sip-connector 14.0.1-0 → 14.1.0
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/dist/SipConnector-BPIL3yLc.js +1343 -0
- package/dist/SipConnector-BUbfMgHs.cjs +1 -0
- package/dist/{src/SipConnector.d.ts → SipConnector.d.ts} +77 -63
- package/dist/{src/__fixtures__ → __fixtures__}/BaseSession.mock.d.ts +31 -19
- package/dist/{src/__fixtures__ → __fixtures__}/RTCPeerConnectionMock.d.ts +14 -14
- package/dist/{src/__fixtures__ → __fixtures__}/RTCRtpSenderMock.d.ts +2 -2
- package/dist/{src/__fixtures__ → __fixtures__}/RTCSessionMock.d.ts +27 -23
- package/dist/{src/__fixtures__ → __fixtures__}/UA.mock.d.ts +43 -24
- package/dist/{src/__fixtures__ → __fixtures__}/channelsNotify.d.ts +2 -2
- package/dist/{src/__fixtures__ → __fixtures__}/jssip.mock.d.ts +1 -1
- package/dist/{src/__fixtures__ → __fixtures__}/participantNotify.d.ts +2 -2
- package/dist/doMock.cjs +1 -1
- package/dist/doMock.js +390 -379
- package/dist/index.cjs +1 -1
- package/dist/{src/index.d.ts → index.d.ts} +1 -1
- package/dist/index.js +519 -510
- package/dist/{src/types.d.ts → types.d.ts} +1 -2
- package/dist/utils.d.ts +4 -0
- package/package.json +32 -32
- package/dist/SipConnector-CJN8qKAC.js +0 -1316
- package/dist/SipConnector-DO0YvSq6.cjs +0 -1
- /package/dist/{src/SipConnectorFacade → SipConnectorFacade}/SipConnectorFacade.d.ts +0 -0
- /package/dist/{src/SipConnectorFacade → SipConnectorFacade}/index.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/Registrator.mock.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/Request.mock.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/WebSocketInterface.mock.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/accountNotify.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/channels.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/conferenceParticipantTokenIssuedNotify.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/delayPromise.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/enterRoom.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/index.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/mediaState.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/participantMoveRequests.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/remoteCallerData.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/utils.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/webcastNotify.d.ts +0 -0
- /package/dist/{src/causes.d.ts → causes.d.ts} +0 -0
- /package/dist/{src/constants.d.ts → constants.d.ts} +0 -0
- /package/dist/{src/doMock.d.ts → doMock.d.ts} +0 -0
- /package/dist/{src/eventNames.d.ts → eventNames.d.ts} +0 -0
- /package/dist/{src/getExtraHeadersRemoteAddress.d.ts → getExtraHeadersRemoteAddress.d.ts} +0 -0
- /package/dist/{src/headers.d.ts → headers.d.ts} +0 -0
- /package/dist/{src/logger.d.ts → logger.d.ts} +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/configureDegradationPreference.d.ts +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/configureEmptyEncodings.d.ts +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/configureEncodings.d.ts +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/configureMaxBitrate.d.ts +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/configureScaleResolutionDownBy.d.ts +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/hasChangedRTCRtpSendParameters.d.ts +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/index.d.ts +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/resolveHasNeedToUpdateItemEncoding.d.ts +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/setParametersToSender.d.ts +0 -0
- /package/dist/{src/tools → tools}/__fixtures__/call.d.ts +0 -0
- /package/dist/{src/tools → tools}/__fixtures__/connectToServer.d.ts +0 -0
- /package/dist/{src/tools → tools}/__fixtures__/hasValidUri.d.ts +0 -0
- /package/dist/{src/tools → tools}/__fixtures__/permissions.d.ts +0 -0
- /package/dist/{src/tools → tools}/__fixtures__/processRequest.d.ts +0 -0
- /package/dist/{src/tools → tools}/__tests-utils__/parseObject.d.ts +0 -0
- /package/dist/{src/tools → tools}/__tests-utils__/resolveParseArray.d.ts +0 -0
- /package/dist/{src/tools → tools}/error/getLinkError.d.ts +0 -0
- /package/dist/{src/tools → tools}/error/getTypeFromError.d.ts +0 -0
- /package/dist/{src/tools → tools}/error/getValuesFromError.d.ts +0 -0
- /package/dist/{src/tools → tools}/error/index.d.ts +0 -0
- /package/dist/{src/tools → tools}/error/stringifyMessage.d.ts +0 -0
- /package/dist/{src/tools → tools}/generateSimulcastEncodings.d.ts +0 -0
- /package/dist/{src/tools → tools}/getExtraHeaders.d.ts +0 -0
- /package/dist/{src/tools → tools}/getUserAgent.d.ts +0 -0
- /package/dist/{src/tools → tools}/hasPurgatory.d.ts +0 -0
- /package/dist/{src/tools → tools}/index.d.ts +0 -0
- /package/dist/{src/tools → tools}/prepareMediaStream.d.ts +0 -0
- /package/dist/{src/tools → tools}/resolveUpdateTransceiver.d.ts +0 -0
- /package/dist/{src/tools → tools}/sendDTMFAccumulated.d.ts +0 -0
- /package/dist/{src/tools → tools}/setVideoTrackContentHints.d.ts +0 -0
- /package/dist/{src/tools → tools}/syncMediaState/index.d.ts +0 -0
- /package/dist/{src/tools → tools}/syncMediaState/resolveOnStartMainCam.d.ts +0 -0
- /package/dist/{src/tools → tools}/syncMediaState/resolveOnStartMic.d.ts +0 -0
- /package/dist/{src/tools → tools}/syncMediaState/resolveOnStopMainCam.d.ts +0 -0
- /package/dist/{src/tools → tools}/syncMediaState/resolveOnStopMic.d.ts +0 -0
- /package/dist/{src/utils → utils}/errors.d.ts +0 -0
- /package/dist/{src/utils → utils}/findSenderByStream.d.ts +0 -0
- /package/dist/{src/utils → utils}/findVideoSender.d.ts +0 -0
- /package/dist/{src/utils → utils}/findVideoTrack.d.ts +0 -0
- /package/dist/{src/utils → utils}/getCodecFromSender.d.ts +0 -0
- /package/dist/{src/utils → utils}/replaceForbiddenSymbolsWithUnderscore.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/balance.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/getMaxBitrateByWidth.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/getMaxBitrateByWidthAndCodec.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/hasAv1Codec.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/hasIncludesString.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/index.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/processSender.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/scaleBitrate.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/scaleBitrateByCodec.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/scaleResolutionAndBitrate.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/setEncodingsToSender.d.ts +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { UA, WebSocketInterface } from '@krivega/jssip';
|
|
2
|
-
import { Originator } from './constants';
|
|
3
2
|
export declare enum EEventsMainCAM {
|
|
4
3
|
PAUSE_MAIN_CAM = "PAUSEMAINCAM",
|
|
5
4
|
RESUME_MAIN_CAM = "RESUMEMAINCAM",
|
|
@@ -21,7 +20,7 @@ export declare enum EUseLicense {
|
|
|
21
20
|
AUDIOPLUSPRESENTATION = "AUDIOPLUSPRESENTATION"
|
|
22
21
|
}
|
|
23
22
|
export type TCustomError = Error & {
|
|
24
|
-
originator?:
|
|
23
|
+
originator?: string;
|
|
25
24
|
cause?: unknown;
|
|
26
25
|
message: unknown;
|
|
27
26
|
_ws?: unknown;
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function resolveSipUrl(serverUrl: string): (string: string) => string;
|
|
2
|
+
export declare const parseDisplayName: (displayName: string) => string;
|
|
3
|
+
export declare const generateUserId: () => number;
|
|
4
|
+
export declare const hasVideoTracks: (remoteTracks: MediaStreamTrack[]) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sip-connector",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.1.0",
|
|
4
4
|
"description": "Module for connect to Vinteo server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webrtc",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "vite build",
|
|
50
50
|
"lint": "yarn lint:ts && yarn lint:js",
|
|
51
|
-
"lint:js": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0
|
|
51
|
+
"lint:js": "eslint src --ext ts,tsx --ignore-path .gitignore --report-unused-disable-directives --max-warnings 0",
|
|
52
52
|
"lint:ts": "tsc",
|
|
53
53
|
"prepare": "husky",
|
|
54
54
|
"prepublishOnly": "yarn build",
|
|
@@ -57,56 +57,56 @@
|
|
|
57
57
|
"release:major": "standard-version --release-as major && npm run release:publish",
|
|
58
58
|
"release:pre": "standard-version --prerelease && npm run release:publish",
|
|
59
59
|
"release:publish": "git push --follow-tags origin master && npm publish --access=public",
|
|
60
|
-
"test": "jest",
|
|
60
|
+
"test": "jest --watch",
|
|
61
61
|
"test:ci": "cross-env CI=true jest",
|
|
62
|
-
"test:coverage": "yarn test:ci --coverage --reporters=default --reporters=jest-junit"
|
|
63
|
-
"test:watch": "jest --watch"
|
|
62
|
+
"test:coverage": "yarn test:ci --coverage --reporters=default --reporters=jest-junit"
|
|
64
63
|
},
|
|
65
64
|
"dependencies": {
|
|
66
65
|
"@krivega/cancelable-promise": "^1.1.4",
|
|
67
66
|
"@krivega/jssip": "^5.1.2",
|
|
68
67
|
"debug": "^4.4.1",
|
|
69
68
|
"events-constructor": "^1.3.0",
|
|
70
|
-
"repeated-calls": "^2.3.
|
|
69
|
+
"repeated-calls": "^2.3.3",
|
|
71
70
|
"sequent-promises": "^2.0.1",
|
|
72
71
|
"stack-promises": "^2.0.3",
|
|
73
72
|
"ts-debounce": "^4.0.0",
|
|
74
73
|
"webrtc-mock": "^1.1.7"
|
|
75
74
|
},
|
|
76
75
|
"devDependencies": {
|
|
77
|
-
"@babel/preset-typescript": "^7.
|
|
78
|
-
"@commitlint/cli": "^19.
|
|
79
|
-
"@commitlint/config-conventional": "^19.
|
|
80
|
-
"@eslint/compat": "^1.3.1",
|
|
76
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
77
|
+
"@commitlint/cli": "^19.7.1",
|
|
78
|
+
"@commitlint/config-conventional": "^19.7.1",
|
|
81
79
|
"@nabla/vite-plugin-eslint": "^2.0.5",
|
|
82
|
-
"@stylistic/eslint-plugin": "^5.1.0",
|
|
83
80
|
"@types/debug": "^4.1.12",
|
|
84
|
-
"@types/dom-mediacapture-transform": "^0.1.
|
|
85
|
-
"@types/jest": "^
|
|
86
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
87
|
-
"@typescript-eslint/parser": "^
|
|
81
|
+
"@types/dom-mediacapture-transform": "^0.1.10",
|
|
82
|
+
"@types/jest": "^29.5.14",
|
|
83
|
+
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
|
84
|
+
"@typescript-eslint/parser": "^7.15.0",
|
|
88
85
|
"cross-env": "^7.0.3",
|
|
89
|
-
"eslint": "^
|
|
90
|
-
"eslint-
|
|
86
|
+
"eslint": "^8.57.0",
|
|
87
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
88
|
+
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
89
|
+
"eslint-config-prettier": "^10.0.1",
|
|
90
|
+
"eslint-import-resolver-typescript": "^3.7.0",
|
|
91
91
|
"eslint-plugin-flowtype": "^8.0.3",
|
|
92
|
-
"eslint-plugin-import": "^2.
|
|
93
|
-
"eslint-plugin-jest": "^
|
|
94
|
-
"eslint-plugin-prettier": "^5.
|
|
95
|
-
"eslint-plugin-unicorn": "^
|
|
92
|
+
"eslint-plugin-import": "^2.31.0",
|
|
93
|
+
"eslint-plugin-jest": "^28.11.0",
|
|
94
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
95
|
+
"eslint-plugin-unicorn": "^56.0.1",
|
|
96
96
|
"husky": "^9.1.7",
|
|
97
|
-
"jest": "^
|
|
98
|
-
"jest-environment-jsdom": "^
|
|
99
|
-
"jest-extended": "^
|
|
97
|
+
"jest": "^29.7.0",
|
|
98
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
99
|
+
"jest-extended": "^4.0.2",
|
|
100
100
|
"jest-junit": "^16.0.0",
|
|
101
|
-
"lint-staged": "^
|
|
102
|
-
"prettier": "^3.
|
|
101
|
+
"lint-staged": "^15.4.3",
|
|
102
|
+
"prettier": "^3.5.0",
|
|
103
103
|
"standard-version": "^9.5.0",
|
|
104
|
-
"ts-jest": "^29.
|
|
104
|
+
"ts-jest": "^29.2.5",
|
|
105
105
|
"ts-node": "^10.9.2",
|
|
106
106
|
"tsc-files": "^1.1.4",
|
|
107
|
-
"typescript": "^5.
|
|
108
|
-
"vite": "^
|
|
109
|
-
"vite-plugin-dts": "^4.5.
|
|
107
|
+
"typescript": "^5.7.3",
|
|
108
|
+
"vite": "^6.1.0",
|
|
109
|
+
"vite-plugin-dts": "^4.5.0",
|
|
110
110
|
"vite-tsconfig-paths": "^5.1.4"
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
@@ -114,11 +114,11 @@
|
|
|
114
114
|
"@krivega/jssip": "^5.1.2",
|
|
115
115
|
"debug": "^4.4.1",
|
|
116
116
|
"events-constructor": "^1.3.0",
|
|
117
|
-
"repeated-calls": "^2.
|
|
117
|
+
"repeated-calls": "^2.3.3",
|
|
118
118
|
"sequent-promises": "^2.0.1",
|
|
119
119
|
"stack-promises": "^2.0.3",
|
|
120
120
|
"ts-debounce": "^4.0.0",
|
|
121
|
-
"webrtc-mock": "^1.
|
|
121
|
+
"webrtc-mock": "^1.0.7"
|
|
122
122
|
},
|
|
123
123
|
"packageManager": "yarn@1.22.22",
|
|
124
124
|
"main:src": "src/index.ts"
|