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.
Files changed (96) hide show
  1. package/dist/SipConnector-BPIL3yLc.js +1343 -0
  2. package/dist/SipConnector-BUbfMgHs.cjs +1 -0
  3. package/dist/{src/SipConnector.d.ts → SipConnector.d.ts} +77 -63
  4. package/dist/{src/__fixtures__ → __fixtures__}/BaseSession.mock.d.ts +31 -19
  5. package/dist/{src/__fixtures__ → __fixtures__}/RTCPeerConnectionMock.d.ts +14 -14
  6. package/dist/{src/__fixtures__ → __fixtures__}/RTCRtpSenderMock.d.ts +2 -2
  7. package/dist/{src/__fixtures__ → __fixtures__}/RTCSessionMock.d.ts +27 -23
  8. package/dist/{src/__fixtures__ → __fixtures__}/UA.mock.d.ts +43 -24
  9. package/dist/{src/__fixtures__ → __fixtures__}/channelsNotify.d.ts +2 -2
  10. package/dist/{src/__fixtures__ → __fixtures__}/jssip.mock.d.ts +1 -1
  11. package/dist/{src/__fixtures__ → __fixtures__}/participantNotify.d.ts +2 -2
  12. package/dist/doMock.cjs +1 -1
  13. package/dist/doMock.js +390 -379
  14. package/dist/index.cjs +1 -1
  15. package/dist/{src/index.d.ts → index.d.ts} +1 -1
  16. package/dist/index.js +519 -510
  17. package/dist/{src/types.d.ts → types.d.ts} +1 -2
  18. package/dist/utils.d.ts +4 -0
  19. package/package.json +32 -32
  20. package/dist/SipConnector-CJN8qKAC.js +0 -1316
  21. package/dist/SipConnector-DO0YvSq6.cjs +0 -1
  22. /package/dist/{src/SipConnectorFacade → SipConnectorFacade}/SipConnectorFacade.d.ts +0 -0
  23. /package/dist/{src/SipConnectorFacade → SipConnectorFacade}/index.d.ts +0 -0
  24. /package/dist/{src/__fixtures__ → __fixtures__}/Registrator.mock.d.ts +0 -0
  25. /package/dist/{src/__fixtures__ → __fixtures__}/Request.mock.d.ts +0 -0
  26. /package/dist/{src/__fixtures__ → __fixtures__}/WebSocketInterface.mock.d.ts +0 -0
  27. /package/dist/{src/__fixtures__ → __fixtures__}/accountNotify.d.ts +0 -0
  28. /package/dist/{src/__fixtures__ → __fixtures__}/channels.d.ts +0 -0
  29. /package/dist/{src/__fixtures__ → __fixtures__}/conferenceParticipantTokenIssuedNotify.d.ts +0 -0
  30. /package/dist/{src/__fixtures__ → __fixtures__}/delayPromise.d.ts +0 -0
  31. /package/dist/{src/__fixtures__ → __fixtures__}/enterRoom.d.ts +0 -0
  32. /package/dist/{src/__fixtures__ → __fixtures__}/index.d.ts +0 -0
  33. /package/dist/{src/__fixtures__ → __fixtures__}/mediaState.d.ts +0 -0
  34. /package/dist/{src/__fixtures__ → __fixtures__}/participantMoveRequests.d.ts +0 -0
  35. /package/dist/{src/__fixtures__ → __fixtures__}/remoteCallerData.d.ts +0 -0
  36. /package/dist/{src/__fixtures__ → __fixtures__}/utils.d.ts +0 -0
  37. /package/dist/{src/__fixtures__ → __fixtures__}/webcastNotify.d.ts +0 -0
  38. /package/dist/{src/causes.d.ts → causes.d.ts} +0 -0
  39. /package/dist/{src/constants.d.ts → constants.d.ts} +0 -0
  40. /package/dist/{src/doMock.d.ts → doMock.d.ts} +0 -0
  41. /package/dist/{src/eventNames.d.ts → eventNames.d.ts} +0 -0
  42. /package/dist/{src/getExtraHeadersRemoteAddress.d.ts → getExtraHeadersRemoteAddress.d.ts} +0 -0
  43. /package/dist/{src/headers.d.ts → headers.d.ts} +0 -0
  44. /package/dist/{src/logger.d.ts → logger.d.ts} +0 -0
  45. /package/dist/{src/setParametersToSender → setParametersToSender}/configureDegradationPreference.d.ts +0 -0
  46. /package/dist/{src/setParametersToSender → setParametersToSender}/configureEmptyEncodings.d.ts +0 -0
  47. /package/dist/{src/setParametersToSender → setParametersToSender}/configureEncodings.d.ts +0 -0
  48. /package/dist/{src/setParametersToSender → setParametersToSender}/configureMaxBitrate.d.ts +0 -0
  49. /package/dist/{src/setParametersToSender → setParametersToSender}/configureScaleResolutionDownBy.d.ts +0 -0
  50. /package/dist/{src/setParametersToSender → setParametersToSender}/hasChangedRTCRtpSendParameters.d.ts +0 -0
  51. /package/dist/{src/setParametersToSender → setParametersToSender}/index.d.ts +0 -0
  52. /package/dist/{src/setParametersToSender → setParametersToSender}/resolveHasNeedToUpdateItemEncoding.d.ts +0 -0
  53. /package/dist/{src/setParametersToSender → setParametersToSender}/setParametersToSender.d.ts +0 -0
  54. /package/dist/{src/tools → tools}/__fixtures__/call.d.ts +0 -0
  55. /package/dist/{src/tools → tools}/__fixtures__/connectToServer.d.ts +0 -0
  56. /package/dist/{src/tools → tools}/__fixtures__/hasValidUri.d.ts +0 -0
  57. /package/dist/{src/tools → tools}/__fixtures__/permissions.d.ts +0 -0
  58. /package/dist/{src/tools → tools}/__fixtures__/processRequest.d.ts +0 -0
  59. /package/dist/{src/tools → tools}/__tests-utils__/parseObject.d.ts +0 -0
  60. /package/dist/{src/tools → tools}/__tests-utils__/resolveParseArray.d.ts +0 -0
  61. /package/dist/{src/tools → tools}/error/getLinkError.d.ts +0 -0
  62. /package/dist/{src/tools → tools}/error/getTypeFromError.d.ts +0 -0
  63. /package/dist/{src/tools → tools}/error/getValuesFromError.d.ts +0 -0
  64. /package/dist/{src/tools → tools}/error/index.d.ts +0 -0
  65. /package/dist/{src/tools → tools}/error/stringifyMessage.d.ts +0 -0
  66. /package/dist/{src/tools → tools}/generateSimulcastEncodings.d.ts +0 -0
  67. /package/dist/{src/tools → tools}/getExtraHeaders.d.ts +0 -0
  68. /package/dist/{src/tools → tools}/getUserAgent.d.ts +0 -0
  69. /package/dist/{src/tools → tools}/hasPurgatory.d.ts +0 -0
  70. /package/dist/{src/tools → tools}/index.d.ts +0 -0
  71. /package/dist/{src/tools → tools}/prepareMediaStream.d.ts +0 -0
  72. /package/dist/{src/tools → tools}/resolveUpdateTransceiver.d.ts +0 -0
  73. /package/dist/{src/tools → tools}/sendDTMFAccumulated.d.ts +0 -0
  74. /package/dist/{src/tools → tools}/setVideoTrackContentHints.d.ts +0 -0
  75. /package/dist/{src/tools → tools}/syncMediaState/index.d.ts +0 -0
  76. /package/dist/{src/tools → tools}/syncMediaState/resolveOnStartMainCam.d.ts +0 -0
  77. /package/dist/{src/tools → tools}/syncMediaState/resolveOnStartMic.d.ts +0 -0
  78. /package/dist/{src/tools → tools}/syncMediaState/resolveOnStopMainCam.d.ts +0 -0
  79. /package/dist/{src/tools → tools}/syncMediaState/resolveOnStopMic.d.ts +0 -0
  80. /package/dist/{src/utils → utils}/errors.d.ts +0 -0
  81. /package/dist/{src/utils → utils}/findSenderByStream.d.ts +0 -0
  82. /package/dist/{src/utils → utils}/findVideoSender.d.ts +0 -0
  83. /package/dist/{src/utils → utils}/findVideoTrack.d.ts +0 -0
  84. /package/dist/{src/utils → utils}/getCodecFromSender.d.ts +0 -0
  85. /package/dist/{src/utils → utils}/replaceForbiddenSymbolsWithUnderscore.d.ts +0 -0
  86. /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/balance.d.ts +0 -0
  87. /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/getMaxBitrateByWidth.d.ts +0 -0
  88. /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/getMaxBitrateByWidthAndCodec.d.ts +0 -0
  89. /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/hasAv1Codec.d.ts +0 -0
  90. /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/hasIncludesString.d.ts +0 -0
  91. /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/index.d.ts +0 -0
  92. /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/processSender.d.ts +0 -0
  93. /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/scaleBitrate.d.ts +0 -0
  94. /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/scaleBitrateByCodec.d.ts +0 -0
  95. /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/scaleResolutionAndBitrate.d.ts +0 -0
  96. /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?: Originator;
23
+ originator?: string;
25
24
  cause?: unknown;
26
25
  message: unknown;
27
26
  _ws?: unknown;
@@ -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.0.1-0",
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 --cache --cache-strategy=content",
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.0",
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.27.1",
78
- "@commitlint/cli": "^19.8.1",
79
- "@commitlint/config-conventional": "^19.8.1",
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.11",
85
- "@types/jest": "^30.0.0",
86
- "@typescript-eslint/eslint-plugin": "^8.36.0",
87
- "@typescript-eslint/parser": "^8.36.0",
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": "^9.31.0",
90
- "eslint-import-resolver-typescript": "^4.4.4",
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.32.0",
93
- "eslint-plugin-jest": "^29.0.1",
94
- "eslint-plugin-prettier": "^5.5.1",
95
- "eslint-plugin-unicorn": "^59.0.1",
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": "^30.0.4",
98
- "jest-environment-jsdom": "^30.0.4",
99
- "jest-extended": "^6.0.0",
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": "^16.1.2",
102
- "prettier": "^3.6.2",
101
+ "lint-staged": "^15.4.3",
102
+ "prettier": "^3.5.0",
103
103
  "standard-version": "^9.5.0",
104
- "ts-jest": "^29.4.0",
104
+ "ts-jest": "^29.2.5",
105
105
  "ts-node": "^10.9.2",
106
106
  "tsc-files": "^1.1.4",
107
- "typescript": "^5.8.3",
108
- "vite": "^7.0.4",
109
- "vite-plugin-dts": "^4.5.4",
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.2.1",
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.1.7"
121
+ "webrtc-mock": "^1.0.7"
122
122
  },
123
123
  "packageManager": "yarn@1.22.22",
124
124
  "main:src": "src/index.ts"