sip-connector 5.1.6 → 5.3.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.d.ts +11 -3
- package/dist/SipConnector.d.ts.map +1 -1
- package/dist/SipConnector.js +109 -60
- package/dist/SipConnector.js.map +1 -1
- package/dist/__mocks__/mediaState.d.ts +8 -0
- package/dist/__mocks__/mediaState.d.ts.map +1 -0
- package/dist/__mocks__/mediaState.js +14 -0
- package/dist/__mocks__/mediaState.js.map +1 -0
- package/dist/headers.d.ts +9 -0
- package/dist/headers.d.ts.map +1 -1
- package/dist/headers.js +10 -1
- package/dist/headers.js.map +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.es5.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/utils/errors.d.ts +2 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +9 -0
- package/dist/utils/errors.js.map +1 -0
- package/package.json +18 -18
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hasDeclineResponseFromServer = void 0;
|
|
4
|
+
const DECLINED_RESPONSE = '603';
|
|
5
|
+
const hasDeclineResponseFromServer = (error) => {
|
|
6
|
+
return error.message.includes(DECLINED_RESPONSE) || error.name.includes(DECLINED_RESPONSE);
|
|
7
|
+
};
|
|
8
|
+
exports.hasDeclineResponseFromServer = hasDeclineResponseFromServer;
|
|
9
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":";;;AAAA,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAEzB,MAAM,4BAA4B,GAAG,CAAC,KAAY,EAAW,EAAE;IACpE,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAC7F,CAAC,CAAC;AAFW,QAAA,4BAA4B,gCAEvC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sip-connector",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "Module for connect to Vinteo server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webrtc",
|
|
@@ -40,41 +40,41 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@krivega/cancelable-promise": "^0.3.0",
|
|
43
|
-
"@krivega/jssip": "^3.
|
|
43
|
+
"@krivega/jssip": "^3.15.0",
|
|
44
44
|
"events-constructor": "^1.1.4",
|
|
45
45
|
"promise-delay": "^2.1.0",
|
|
46
46
|
"stack-promises": "^0.0.8",
|
|
47
|
-
"webrtc-mock": "^0.0.
|
|
47
|
+
"webrtc-mock": "^0.0.10"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@commitlint/cli": "^16.2.
|
|
50
|
+
"@commitlint/cli": "^16.2.3",
|
|
51
51
|
"@commitlint/config-conventional": "^16.2.1",
|
|
52
|
-
"@rollup/plugin-commonjs": "^21.0
|
|
53
|
-
"@rollup/plugin-node-resolve": "^13.1
|
|
52
|
+
"@rollup/plugin-commonjs": "^21.1.0",
|
|
53
|
+
"@rollup/plugin-node-resolve": "^13.2.1",
|
|
54
54
|
"@types/jest": "^27.4.1",
|
|
55
|
-
"@types/node": "^17.0.
|
|
56
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
57
|
-
"@typescript-eslint/parser": "^5.
|
|
58
|
-
"eslint": "^8.
|
|
55
|
+
"@types/node": "^17.0.25",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^5.20.0",
|
|
57
|
+
"@typescript-eslint/parser": "^5.20.0",
|
|
58
|
+
"eslint": "^8.13.0",
|
|
59
59
|
"eslint-config-prettier": "^8.5.0",
|
|
60
|
-
"eslint-plugin-import": "^2.
|
|
61
|
-
"eslint-plugin-jest": "^26.1.
|
|
60
|
+
"eslint-plugin-import": "^2.26.0",
|
|
61
|
+
"eslint-plugin-jest": "^26.1.4",
|
|
62
62
|
"eslint-plugin-prettier": "^4.0.0",
|
|
63
63
|
"husky": "^7.0.4",
|
|
64
64
|
"jest": "27.5.1",
|
|
65
|
-
"lint-staged": "^12.
|
|
65
|
+
"lint-staged": "^12.4.0",
|
|
66
66
|
"node-fetch": "^2.6.1",
|
|
67
|
-
"prettier": "^2.
|
|
67
|
+
"prettier": "^2.6.2",
|
|
68
68
|
"promise-delay": "^2.1.0",
|
|
69
|
-
"rollup": "^2.70.
|
|
69
|
+
"rollup": "^2.70.2",
|
|
70
70
|
"rollup-plugin-terser": "^7.0.2",
|
|
71
71
|
"rollup-plugin-typescript2": "0.31.2",
|
|
72
72
|
"standard-version": "^9.3.2",
|
|
73
|
-
"ts-jest": "^27.1.
|
|
74
|
-
"typescript": "^4.6.
|
|
73
|
+
"ts-jest": "^27.1.4",
|
|
74
|
+
"typescript": "^4.6.3"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@krivega/jssip": "^3.
|
|
77
|
+
"@krivega/jssip": "^3.15.0"
|
|
78
78
|
},
|
|
79
79
|
"main:src": "src/index.ts",
|
|
80
80
|
"standard-version": {
|