sip-connector 5.4.0 → 5.5.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.
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.hasDeclineResponseFromServer = void 0;
4
- const DECLINED_RESPONSE = '603';
4
+ const DECLINE_ERROR_MESSAGE = 'Error decline with 603';
5
5
  const hasDeclineResponseFromServer = (error) => {
6
- return error.message.includes(DECLINED_RESPONSE) || error.name.includes(DECLINED_RESPONSE);
6
+ return error.message === DECLINE_ERROR_MESSAGE;
7
7
  };
8
8
  exports.hasDeclineResponseFromServer = hasDeclineResponseFromServer;
9
9
  //# sourceMappingURL=errors.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":";;;AAAA,MAAM,qBAAqB,GAAG,wBAAwB,CAAC;AAEhD,MAAM,4BAA4B,GAAG,CAAC,KAAY,EAAW,EAAE;IACpE,OAAO,KAAK,CAAC,OAAO,KAAK,qBAAqB,CAAC;AACjD,CAAC,CAAC;AAFW,QAAA,4BAA4B,gCAEvC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sip-connector",
3
- "version": "5.4.0",
3
+ "version": "5.5.0",
4
4
  "description": "Module for connect to Vinteo server",
5
5
  "keywords": [
6
6
  "webrtc",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@krivega/cancelable-promise": "^0.3.0",
43
- "@krivega/jssip": "^3.16.0",
43
+ "@krivega/jssip": "^3.17.0",
44
44
  "events-constructor": "^1.1.4",
45
45
  "promise-delay": "^2.1.0",
46
46
  "stack-promises": "^0.0.8",
@@ -51,7 +51,7 @@
51
51
  "@commitlint/config-conventional": "^16.2.4",
52
52
  "@rollup/plugin-commonjs": "^22.0.0",
53
53
  "@rollup/plugin-node-resolve": "^13.3.0",
54
- "@types/jest": "^27.5.0",
54
+ "@types/jest": "^27.5.1",
55
55
  "@types/node": "^17.0.32",
56
56
  "@typescript-eslint/eslint-plugin": "^5.23.0",
57
57
  "@typescript-eslint/parser": "^5.23.0",