sip-connector 6.20.0 → 6.21.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,3 +1,5 @@
1
1
  declare const parseObject: <T = unknown>(object: T) => T;
2
- export declare const parseObjectWithoutUri: (...arguments_: object[]) => object;
2
+ export declare const parseObjectWithoutUri: <T extends object>(argument: T) => Omit<T & {
3
+ uri?: string | undefined;
4
+ }, "uri">;
3
5
  export default parseObject;
@@ -1,2 +1,2 @@
1
- declare const resolveParseArray: <T extends object>(parameter: string) => (array: object[]) => object[];
1
+ declare const resolveParseArray: <T extends object>(parameter: keyof T) => (array: T[]) => T[];
2
2
  export default resolveParseArray;
@@ -1,5 +1,8 @@
1
1
  declare const resolveUpdateRemoteStreams: ({ getRemoteStreams, setRemoteStreams, }: {
2
2
  getRemoteStreams: () => MediaStream[] | undefined;
3
3
  setRemoteStreams: (streams: MediaStream[]) => void;
4
- }) => import("lodash").DebouncedFunc<() => void>;
4
+ }) => {
5
+ (this: unknown, ...args: [] & any[]): Promise<void>;
6
+ cancel: (reason?: any) => void;
7
+ };
5
8
  export default resolveUpdateRemoteStreams;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sip-connector",
3
- "version": "6.20.0",
3
+ "version": "6.21.0",
4
4
  "description": "Module for connect to Vinteo server",
5
5
  "keywords": [
6
6
  "webrtc",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "https://github.com/Krivega/sip-connector.git"
14
+ "url": "git+https://github.com/Krivega/sip-connector.git"
15
15
  },
16
16
  "license": "MIT",
17
17
  "author": {
@@ -24,6 +24,10 @@
24
24
  ".": {
25
25
  "require": "./dist/index.cjs",
26
26
  "import": "./dist/index.js"
27
+ },
28
+ "./doMock": {
29
+ "require": "./dist/doMock.cjs",
30
+ "import": "./dist/doMock.js"
27
31
  }
28
32
  },
29
33
  "main": "./dist/index.js",
@@ -49,12 +53,12 @@
49
53
  },
50
54
  "dependencies": {
51
55
  "@krivega/cancelable-promise": "^1.1.0",
52
- "@krivega/jssip": "^3.23.0",
56
+ "@krivega/jssip": "^3.23.3",
53
57
  "debug": "^4.3.4",
54
58
  "events-constructor": "^1.2.2",
55
- "lodash": "^4.17.21",
56
59
  "sequent-promises": "^1.0.0",
57
- "stack-promises": "^1.0.0",
60
+ "stack-promises": "^1.0.1",
61
+ "ts-debounce": "^4.0.0",
58
62
  "webrtc-mock": "^1.0.0"
59
63
  },
60
64
  "devDependencies": {
@@ -64,7 +68,6 @@
64
68
  "@nabla/vite-plugin-eslint": "^1.5.0",
65
69
  "@types/debug": "^4.1.10",
66
70
  "@types/jest": "^29.5.6",
67
- "@types/lodash": "^4.14.200",
68
71
  "@typescript-eslint/eslint-plugin": "^6.9.0",
69
72
  "@typescript-eslint/parser": "^6.9.0",
70
73
  "cross-env": "^7.0.3",
@@ -99,9 +102,9 @@
99
102
  "@krivega/jssip": "^3.22.0",
100
103
  "debug": "^4.3.4",
101
104
  "events-constructor": "^1.2.2",
102
- "lodash": "^4.17.21",
103
105
  "sequent-promises": "^1.0.0",
104
- "stack-promises": "^1.0.0"
106
+ "stack-promises": "^1.0.0",
107
+ "ts-debounce": "^4.0.0"
105
108
  },
106
109
  "main:src": "src/index.ts"
107
110
  }