videomail-client 15.7.4 → 15.7.6
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/cjs/index.cjs +476 -467
- package/dist/esm/index.js +215 -208
- package/dist/esm/types/error.d.ts +7 -8
- package/dist/esm/util/error/VideomailError.d.ts +2 -0
- package/dist/esm/util/isAutomatedUserAgent.d.ts +2 -0
- package/dist/umd/index.js +474 -464
- package/package.json +10 -10
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { ErrorObject } from "serialize-error";
|
|
2
2
|
import type { IBrowser, ICPU, IDevice, IEngine, IOS } from "ua-parser-js";
|
|
3
|
+
export interface VideomailErrorVersions {
|
|
4
|
+
videomailNinjaFormPlugin?: string | undefined;
|
|
5
|
+
videomailClient: string;
|
|
6
|
+
videomailUI?: string | undefined;
|
|
7
|
+
videomailServer?: string | undefined;
|
|
8
|
+
}
|
|
3
9
|
export interface VideomailErrorData {
|
|
4
10
|
cause?: any;
|
|
5
11
|
promise?: any;
|
|
@@ -15,17 +21,12 @@ export interface VideomailErrorData {
|
|
|
15
21
|
status?: number | undefined;
|
|
16
22
|
stack?: string | undefined;
|
|
17
23
|
type?: string | undefined;
|
|
24
|
+
versions?: VideomailErrorVersions | undefined;
|
|
18
25
|
blockedURI?: string | undefined;
|
|
19
26
|
effectiveDirective?: string | undefined;
|
|
20
27
|
violatedDirective?: string | undefined;
|
|
21
28
|
originalPolicy?: string | undefined;
|
|
22
29
|
}
|
|
23
|
-
interface VideomailErrorVersions {
|
|
24
|
-
videomailNinjaFormPlugin?: string | undefined;
|
|
25
|
-
videomailClient: string;
|
|
26
|
-
videomailUI?: string | undefined;
|
|
27
|
-
videomailServer?: string | undefined;
|
|
28
|
-
}
|
|
29
30
|
export interface FullVideomailErrorData extends VideomailErrorData {
|
|
30
31
|
browser: IBrowser;
|
|
31
32
|
cookie?: string[] | undefined;
|
|
@@ -36,7 +37,6 @@ export interface FullVideomailErrorData extends VideomailErrorData {
|
|
|
36
37
|
orientation?: string | undefined;
|
|
37
38
|
os?: IOS | undefined;
|
|
38
39
|
screen: string;
|
|
39
|
-
versions?: VideomailErrorVersions | undefined;
|
|
40
40
|
clientIp?: string | null | undefined;
|
|
41
41
|
userAgent?: string | null | undefined;
|
|
42
42
|
isBot?: boolean | undefined;
|
|
@@ -44,4 +44,3 @@ export interface FullVideomailErrorData extends VideomailErrorData {
|
|
|
44
44
|
enumerateDevices?: MediaDeviceInfo[] | undefined;
|
|
45
45
|
usedConstraints?: MediaStreamConstraints | undefined;
|
|
46
46
|
}
|
|
47
|
-
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IBrowser, ICPU, IDevice, IEngine, IOS } from "ua-parser-js";
|
|
2
|
+
import { VideomailErrorVersions } from "../../types/error.js";
|
|
2
3
|
import { VideomailClientOptions } from "../../types/options.js";
|
|
3
4
|
import HTTPVideomailError from "./HTTPVideomailError.js";
|
|
4
5
|
export interface ErrData extends ErrorOptions {
|
|
@@ -22,6 +23,7 @@ declare class VideomailError extends HTTPVideomailError {
|
|
|
22
23
|
os?: IOS | undefined;
|
|
23
24
|
screen: string;
|
|
24
25
|
orientation?: string | undefined;
|
|
26
|
+
versions?: VideomailErrorVersions | undefined;
|
|
25
27
|
private readonly classList?;
|
|
26
28
|
static readonly PERMISSION_DENIED = "PERMISSION_DENIED";
|
|
27
29
|
static readonly NOT_ALLOWED_ERROR = "NotAllowedError";
|