videomail-client 13.12.4 → 13.12.5
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 +9 -11
- package/dist/esm/index.js +9 -11
- package/dist/umd/index.js +9 -11
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -10852,7 +10852,7 @@ var __webpack_exports__ = {};
|
|
|
10852
10852
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10853
10853
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10854
10854
|
var package_namespaceObject = {
|
|
10855
|
-
rE: "13.12.
|
|
10855
|
+
rE: "13.12.5"
|
|
10856
10856
|
};
|
|
10857
10857
|
function isAudioEnabled(options) {
|
|
10858
10858
|
return Boolean(options.audio.enabled);
|
|
@@ -14278,8 +14278,10 @@ var __webpack_exports__ = {};
|
|
|
14278
14278
|
if (err && "constraint" in err) {
|
|
14279
14279
|
const overconstrainedError = err;
|
|
14280
14280
|
const constraint = overconstrainedError.constraint;
|
|
14281
|
-
|
|
14282
|
-
|
|
14281
|
+
if ("width" === constraint) explanation = "Your webcam does not meet the width requirement.";
|
|
14282
|
+
else if (constraint) explanation = `Unmet constraint: ${constraint}`;
|
|
14283
|
+
else if (err.message) explanation = err.message;
|
|
14284
|
+
} else if (null == err ? void 0 : err.message) explanation = err.message;
|
|
14283
14285
|
break;
|
|
14284
14286
|
case "MediaDeviceFailedDueToShutdown":
|
|
14285
14287
|
message = "Webcam is shutting down";
|
|
@@ -14345,11 +14347,11 @@ var __webpack_exports__ = {};
|
|
|
14345
14347
|
break;
|
|
14346
14348
|
case error_VideomailError.DOM_EXCEPTION:
|
|
14347
14349
|
message = "DOM Exception";
|
|
14348
|
-
explanation = util_pretty(err);
|
|
14350
|
+
if (err) explanation = util_pretty(err);
|
|
14349
14351
|
break;
|
|
14350
14352
|
case error_VideomailError.MEDIA_DEVICE_NOT_SUPPORTED:
|
|
14351
14353
|
message = "Media device not supported";
|
|
14352
|
-
explanation = util_pretty(err);
|
|
14354
|
+
if (err) explanation = util_pretty(err);
|
|
14353
14355
|
break;
|
|
14354
14356
|
default:
|
|
14355
14357
|
{
|
|
@@ -14358,11 +14360,7 @@ var __webpack_exports__ = {};
|
|
|
14358
14360
|
if (!explanation && originalExplanation) explanation = `Inspected: ${originalExplanation}`;
|
|
14359
14361
|
if (!explanation && (null == err ? void 0 : err.explanation)) explanation = err.explanation;
|
|
14360
14362
|
if (!message && (null == err ? void 0 : err.message)) message = err.message;
|
|
14361
|
-
if (!message) {
|
|
14362
|
-
if (errName) message = `${errName} (weird)`;
|
|
14363
|
-
if (!explanation) explanation = util_pretty(err);
|
|
14364
|
-
if (util_pretty(message) === explanation) explanation = void 0;
|
|
14365
|
-
}
|
|
14363
|
+
if (!message && errName) message = `${errName} (weird)`;
|
|
14366
14364
|
break;
|
|
14367
14365
|
}
|
|
14368
14366
|
}
|
|
@@ -14374,7 +14372,7 @@ var __webpack_exports__ = {};
|
|
|
14374
14372
|
].filter(Boolean).join(", ");
|
|
14375
14373
|
options.logger.debug(`VideomailError: create(${args})`);
|
|
14376
14374
|
const errData = {
|
|
14377
|
-
explanation,
|
|
14375
|
+
explanation: null != explanation ? explanation : "(undefined explanation)",
|
|
14378
14376
|
logLines,
|
|
14379
14377
|
err
|
|
14380
14378
|
};
|
package/dist/esm/index.js
CHANGED
|
@@ -3613,7 +3613,7 @@ const constants = {
|
|
|
3613
3613
|
}
|
|
3614
3614
|
};
|
|
3615
3615
|
var package_namespaceObject = {
|
|
3616
|
-
rE: "13.12.
|
|
3616
|
+
rE: "13.12.5"
|
|
3617
3617
|
};
|
|
3618
3618
|
function isAudioEnabled(options) {
|
|
3619
3619
|
return Boolean(options.audio.enabled);
|
|
@@ -3842,8 +3842,10 @@ function createError(errorParams) {
|
|
|
3842
3842
|
if (err && "constraint" in err) {
|
|
3843
3843
|
const overconstrainedError = err;
|
|
3844
3844
|
const constraint = overconstrainedError.constraint;
|
|
3845
|
-
|
|
3846
|
-
|
|
3845
|
+
if ("width" === constraint) explanation = "Your webcam does not meet the width requirement.";
|
|
3846
|
+
else if (constraint) explanation = `Unmet constraint: ${constraint}`;
|
|
3847
|
+
else if (err.message) explanation = err.message;
|
|
3848
|
+
} else if (err?.message) explanation = err.message;
|
|
3847
3849
|
break;
|
|
3848
3850
|
case "MediaDeviceFailedDueToShutdown":
|
|
3849
3851
|
message = "Webcam is shutting down";
|
|
@@ -3909,11 +3911,11 @@ function createError(errorParams) {
|
|
|
3909
3911
|
break;
|
|
3910
3912
|
case error_VideomailError.DOM_EXCEPTION:
|
|
3911
3913
|
message = "DOM Exception";
|
|
3912
|
-
explanation = util_pretty(err);
|
|
3914
|
+
if (err) explanation = util_pretty(err);
|
|
3913
3915
|
break;
|
|
3914
3916
|
case error_VideomailError.MEDIA_DEVICE_NOT_SUPPORTED:
|
|
3915
3917
|
message = "Media device not supported";
|
|
3916
|
-
explanation = util_pretty(err);
|
|
3918
|
+
if (err) explanation = util_pretty(err);
|
|
3917
3919
|
break;
|
|
3918
3920
|
default:
|
|
3919
3921
|
{
|
|
@@ -3922,11 +3924,7 @@ function createError(errorParams) {
|
|
|
3922
3924
|
if (!explanation && originalExplanation) explanation = `Inspected: ${originalExplanation}`;
|
|
3923
3925
|
if (!explanation && err?.explanation) explanation = err.explanation;
|
|
3924
3926
|
if (!message && err?.message) message = err.message;
|
|
3925
|
-
if (!message) {
|
|
3926
|
-
if (errName) message = `${errName} (weird)`;
|
|
3927
|
-
if (!explanation) explanation = util_pretty(err);
|
|
3928
|
-
if (util_pretty(message) === explanation) explanation = void 0;
|
|
3929
|
-
}
|
|
3927
|
+
if (!message && errName) message = `${errName} (weird)`;
|
|
3930
3928
|
break;
|
|
3931
3929
|
}
|
|
3932
3930
|
}
|
|
@@ -3938,7 +3936,7 @@ function createError(errorParams) {
|
|
|
3938
3936
|
].filter(Boolean).join(", ");
|
|
3939
3937
|
options.logger.debug(`VideomailError: create(${args})`);
|
|
3940
3938
|
const errData = {
|
|
3941
|
-
explanation,
|
|
3939
|
+
explanation: explanation ?? "(undefined explanation)",
|
|
3942
3940
|
logLines,
|
|
3943
3941
|
err
|
|
3944
3942
|
};
|
package/dist/umd/index.js
CHANGED
|
@@ -10858,7 +10858,7 @@
|
|
|
10858
10858
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10859
10859
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10860
10860
|
var package_namespaceObject = {
|
|
10861
|
-
rE: "13.12.
|
|
10861
|
+
rE: "13.12.5"
|
|
10862
10862
|
};
|
|
10863
10863
|
function isAudioEnabled(options) {
|
|
10864
10864
|
return Boolean(options.audio.enabled);
|
|
@@ -14267,8 +14267,10 @@
|
|
|
14267
14267
|
if (err && "constraint" in err) {
|
|
14268
14268
|
const overconstrainedError = err;
|
|
14269
14269
|
const constraint = overconstrainedError.constraint;
|
|
14270
|
-
|
|
14271
|
-
|
|
14270
|
+
if ("width" === constraint) explanation = "Your webcam does not meet the width requirement.";
|
|
14271
|
+
else if (constraint) explanation = `Unmet constraint: ${constraint}`;
|
|
14272
|
+
else if (err.message) explanation = err.message;
|
|
14273
|
+
} else if (err?.message) explanation = err.message;
|
|
14272
14274
|
break;
|
|
14273
14275
|
case "MediaDeviceFailedDueToShutdown":
|
|
14274
14276
|
message = "Webcam is shutting down";
|
|
@@ -14334,11 +14336,11 @@
|
|
|
14334
14336
|
break;
|
|
14335
14337
|
case error_VideomailError.DOM_EXCEPTION:
|
|
14336
14338
|
message = "DOM Exception";
|
|
14337
|
-
explanation = util_pretty(err);
|
|
14339
|
+
if (err) explanation = util_pretty(err);
|
|
14338
14340
|
break;
|
|
14339
14341
|
case error_VideomailError.MEDIA_DEVICE_NOT_SUPPORTED:
|
|
14340
14342
|
message = "Media device not supported";
|
|
14341
|
-
explanation = util_pretty(err);
|
|
14343
|
+
if (err) explanation = util_pretty(err);
|
|
14342
14344
|
break;
|
|
14343
14345
|
default:
|
|
14344
14346
|
{
|
|
@@ -14347,11 +14349,7 @@
|
|
|
14347
14349
|
if (!explanation && originalExplanation) explanation = `Inspected: ${originalExplanation}`;
|
|
14348
14350
|
if (!explanation && err?.explanation) explanation = err.explanation;
|
|
14349
14351
|
if (!message && err?.message) message = err.message;
|
|
14350
|
-
if (!message) {
|
|
14351
|
-
if (errName) message = `${errName} (weird)`;
|
|
14352
|
-
if (!explanation) explanation = util_pretty(err);
|
|
14353
|
-
if (util_pretty(message) === explanation) explanation = void 0;
|
|
14354
|
-
}
|
|
14352
|
+
if (!message && errName) message = `${errName} (weird)`;
|
|
14355
14353
|
break;
|
|
14356
14354
|
}
|
|
14357
14355
|
}
|
|
@@ -14363,7 +14361,7 @@
|
|
|
14363
14361
|
].filter(Boolean).join(", ");
|
|
14364
14362
|
options.logger.debug(`VideomailError: create(${args})`);
|
|
14365
14363
|
const errData = {
|
|
14366
|
-
explanation,
|
|
14364
|
+
explanation: explanation ?? "(undefined explanation)",
|
|
14367
14365
|
logLines,
|
|
14368
14366
|
err
|
|
14369
14367
|
};
|