videomail-client 13.12.7 → 13.12.8
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
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.8"
|
|
10856
10856
|
};
|
|
10857
10857
|
function isAudioEnabled(options) {
|
|
10858
10858
|
return Boolean(options.audio.enabled);
|
|
@@ -14188,7 +14188,7 @@ var __webpack_exports__ = {};
|
|
|
14188
14188
|
}
|
|
14189
14189
|
class HTTPVideomailError extends Error {
|
|
14190
14190
|
constructor(...args){
|
|
14191
|
-
super(...args), HTTPVideomailError_define_property(this, "code", void 0), HTTPVideomailError_define_property(this, "status", void 0), HTTPVideomailError_define_property(this, "explanation", void 0);
|
|
14191
|
+
super(...args), HTTPVideomailError_define_property(this, "name", "VideomailError"), HTTPVideomailError_define_property(this, "code", void 0), HTTPVideomailError_define_property(this, "status", void 0), HTTPVideomailError_define_property(this, "explanation", void 0);
|
|
14192
14192
|
}
|
|
14193
14193
|
}
|
|
14194
14194
|
const error_HTTPVideomailError = HTTPVideomailError;
|
|
@@ -14390,6 +14390,27 @@ var __webpack_exports__ = {};
|
|
|
14390
14390
|
return videomailError;
|
|
14391
14391
|
}
|
|
14392
14392
|
const error_createError = createError;
|
|
14393
|
+
function findOriginalExc(exc) {
|
|
14394
|
+
if (exc instanceof Error && "response" in exc) {
|
|
14395
|
+
const response = exc.response;
|
|
14396
|
+
const body = response.body;
|
|
14397
|
+
if ("error" in body) {
|
|
14398
|
+
const message = body.error.message;
|
|
14399
|
+
const cause = body.error.cause;
|
|
14400
|
+
const error = new error_HTTPVideomailError(message, {
|
|
14401
|
+
cause
|
|
14402
|
+
});
|
|
14403
|
+
if (body.error.name) error.name = body.error.name;
|
|
14404
|
+
if (body.error.explanation) error.explanation = body.error.explanation;
|
|
14405
|
+
if (body.error.stack) error.stack = body.error.stack;
|
|
14406
|
+
if (body.error.status) error.status = body.error.status;
|
|
14407
|
+
if (body.error.code) error.code = body.error.code;
|
|
14408
|
+
return error;
|
|
14409
|
+
}
|
|
14410
|
+
}
|
|
14411
|
+
return exc;
|
|
14412
|
+
}
|
|
14413
|
+
const error_findOriginalExc = findOriginalExc;
|
|
14393
14414
|
function _extends() {
|
|
14394
14415
|
_extends = Object.assign || function(target) {
|
|
14395
14416
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -14923,26 +14944,6 @@ var __webpack_exports__ = {};
|
|
|
14923
14944
|
}
|
|
14924
14945
|
return target;
|
|
14925
14946
|
}
|
|
14926
|
-
function findOriginalExc(exc) {
|
|
14927
|
-
if (exc instanceof Error && "response" in exc) {
|
|
14928
|
-
const response = exc.response;
|
|
14929
|
-
const body = response.body;
|
|
14930
|
-
if ("error" in body) {
|
|
14931
|
-
const message = body.error.message;
|
|
14932
|
-
const cause = body.error.cause;
|
|
14933
|
-
const error = new error_HTTPVideomailError(message, {
|
|
14934
|
-
cause
|
|
14935
|
-
});
|
|
14936
|
-
if (body.error.name) error.name = body.error.name;
|
|
14937
|
-
if (body.error.explanation) error.explanation = body.error.explanation;
|
|
14938
|
-
if (body.error.stack) error.stack = body.error.stack;
|
|
14939
|
-
if (body.error.status) error.status = body.error.status;
|
|
14940
|
-
if (body.error.code) error.code = body.error.code;
|
|
14941
|
-
return error;
|
|
14942
|
-
}
|
|
14943
|
-
}
|
|
14944
|
-
return exc;
|
|
14945
|
-
}
|
|
14946
14947
|
class Resource {
|
|
14947
14948
|
applyDefaultValue(videomail, name) {
|
|
14948
14949
|
if (this.options.defaults[name] && !videomail[name]) videomail[name] = this.options.defaults[name];
|
|
@@ -14971,7 +14972,7 @@ var __webpack_exports__ = {};
|
|
|
14971
14972
|
return videomail;
|
|
14972
14973
|
} catch (exc) {
|
|
14973
14974
|
throw error_createError({
|
|
14974
|
-
exc:
|
|
14975
|
+
exc: error_findOriginalExc(exc),
|
|
14975
14976
|
options: this.options
|
|
14976
14977
|
});
|
|
14977
14978
|
}
|
|
@@ -14996,7 +14997,7 @@ var __webpack_exports__ = {};
|
|
|
14996
14997
|
return request;
|
|
14997
14998
|
} catch (exc) {
|
|
14998
14999
|
throw error_createError({
|
|
14999
|
-
exc:
|
|
15000
|
+
exc: error_findOriginalExc(exc),
|
|
15000
15001
|
options: this.options
|
|
15001
15002
|
});
|
|
15002
15003
|
}
|
|
@@ -15077,7 +15078,7 @@ var __webpack_exports__ = {};
|
|
|
15077
15078
|
return res;
|
|
15078
15079
|
} catch (exc) {
|
|
15079
15080
|
throw error_createError({
|
|
15080
|
-
exc:
|
|
15081
|
+
exc: error_findOriginalExc(exc),
|
|
15081
15082
|
options: this.options
|
|
15082
15083
|
});
|
|
15083
15084
|
}
|
|
@@ -15109,7 +15110,7 @@ var __webpack_exports__ = {};
|
|
|
15109
15110
|
return res;
|
|
15110
15111
|
} catch (exc) {
|
|
15111
15112
|
throw error_createError({
|
|
15112
|
-
exc:
|
|
15113
|
+
exc: error_findOriginalExc(exc),
|
|
15113
15114
|
options: this.options
|
|
15114
15115
|
});
|
|
15115
15116
|
}
|
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.8"
|
|
3617
3617
|
};
|
|
3618
3618
|
function isAudioEnabled(options) {
|
|
3619
3619
|
return Boolean(options.audio.enabled);
|
|
@@ -3755,7 +3755,7 @@ function HTTPVideomailError_define_property(obj, key, value) {
|
|
|
3755
3755
|
}
|
|
3756
3756
|
class HTTPVideomailError extends Error {
|
|
3757
3757
|
constructor(...args){
|
|
3758
|
-
super(...args), HTTPVideomailError_define_property(this, "code", void 0), HTTPVideomailError_define_property(this, "status", void 0), HTTPVideomailError_define_property(this, "explanation", void 0);
|
|
3758
|
+
super(...args), HTTPVideomailError_define_property(this, "name", "VideomailError"), HTTPVideomailError_define_property(this, "code", void 0), HTTPVideomailError_define_property(this, "status", void 0), HTTPVideomailError_define_property(this, "explanation", void 0);
|
|
3759
3759
|
}
|
|
3760
3760
|
}
|
|
3761
3761
|
const error_HTTPVideomailError = HTTPVideomailError;
|
|
@@ -3954,6 +3954,27 @@ function createError(errorParams) {
|
|
|
3954
3954
|
return videomailError;
|
|
3955
3955
|
}
|
|
3956
3956
|
const error_createError = createError;
|
|
3957
|
+
function findOriginalExc(exc) {
|
|
3958
|
+
if (exc instanceof Error && "response" in exc) {
|
|
3959
|
+
const response = exc.response;
|
|
3960
|
+
const body = response.body;
|
|
3961
|
+
if ("error" in body) {
|
|
3962
|
+
const message = body.error.message;
|
|
3963
|
+
const cause = body.error.cause;
|
|
3964
|
+
const error = new error_HTTPVideomailError(message, {
|
|
3965
|
+
cause
|
|
3966
|
+
});
|
|
3967
|
+
if (body.error.name) error.name = body.error.name;
|
|
3968
|
+
if (body.error.explanation) error.explanation = body.error.explanation;
|
|
3969
|
+
if (body.error.stack) error.stack = body.error.stack;
|
|
3970
|
+
if (body.error.status) error.status = body.error.status;
|
|
3971
|
+
if (body.error.code) error.code = body.error.code;
|
|
3972
|
+
return error;
|
|
3973
|
+
}
|
|
3974
|
+
}
|
|
3975
|
+
return exc;
|
|
3976
|
+
}
|
|
3977
|
+
const error_findOriginalExc = findOriginalExc;
|
|
3957
3978
|
function Despot_define_property(obj, key, value) {
|
|
3958
3979
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
3959
3980
|
value: value,
|
|
@@ -4304,26 +4325,6 @@ function resource_define_property(obj, key, value) {
|
|
|
4304
4325
|
else obj[key] = value;
|
|
4305
4326
|
return obj;
|
|
4306
4327
|
}
|
|
4307
|
-
function findOriginalExc(exc) {
|
|
4308
|
-
if (exc instanceof Error && "response" in exc) {
|
|
4309
|
-
const response = exc.response;
|
|
4310
|
-
const body = response.body;
|
|
4311
|
-
if ("error" in body) {
|
|
4312
|
-
const message = body.error.message;
|
|
4313
|
-
const cause = body.error.cause;
|
|
4314
|
-
const error = new error_HTTPVideomailError(message, {
|
|
4315
|
-
cause
|
|
4316
|
-
});
|
|
4317
|
-
if (body.error.name) error.name = body.error.name;
|
|
4318
|
-
if (body.error.explanation) error.explanation = body.error.explanation;
|
|
4319
|
-
if (body.error.stack) error.stack = body.error.stack;
|
|
4320
|
-
if (body.error.status) error.status = body.error.status;
|
|
4321
|
-
if (body.error.code) error.code = body.error.code;
|
|
4322
|
-
return error;
|
|
4323
|
-
}
|
|
4324
|
-
}
|
|
4325
|
-
return exc;
|
|
4326
|
-
}
|
|
4327
4328
|
class Resource {
|
|
4328
4329
|
applyDefaultValue(videomail, name) {
|
|
4329
4330
|
if (this.options.defaults[name] && !videomail[name]) videomail[name] = this.options.defaults[name];
|
|
@@ -4353,7 +4354,7 @@ class Resource {
|
|
|
4353
4354
|
return videomail;
|
|
4354
4355
|
} catch (exc) {
|
|
4355
4356
|
throw error_createError({
|
|
4356
|
-
exc:
|
|
4357
|
+
exc: error_findOriginalExc(exc),
|
|
4357
4358
|
options: this.options
|
|
4358
4359
|
});
|
|
4359
4360
|
}
|
|
@@ -4376,7 +4377,7 @@ class Resource {
|
|
|
4376
4377
|
return request;
|
|
4377
4378
|
} catch (exc) {
|
|
4378
4379
|
throw error_createError({
|
|
4379
|
-
exc:
|
|
4380
|
+
exc: error_findOriginalExc(exc),
|
|
4380
4381
|
options: this.options
|
|
4381
4382
|
});
|
|
4382
4383
|
}
|
|
@@ -4444,7 +4445,7 @@ class Resource {
|
|
|
4444
4445
|
return res;
|
|
4445
4446
|
} catch (exc) {
|
|
4446
4447
|
throw error_createError({
|
|
4447
|
-
exc:
|
|
4448
|
+
exc: error_findOriginalExc(exc),
|
|
4448
4449
|
options: this.options
|
|
4449
4450
|
});
|
|
4450
4451
|
}
|
|
@@ -4472,7 +4473,7 @@ class Resource {
|
|
|
4472
4473
|
return res;
|
|
4473
4474
|
} catch (exc) {
|
|
4474
4475
|
throw error_createError({
|
|
4475
|
-
exc:
|
|
4476
|
+
exc: error_findOriginalExc(exc),
|
|
4476
4477
|
options: this.options
|
|
4477
4478
|
});
|
|
4478
4479
|
}
|
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.8"
|
|
10862
10862
|
};
|
|
10863
10863
|
function isAudioEnabled(options) {
|
|
10864
10864
|
return Boolean(options.audio.enabled);
|
|
@@ -14173,6 +14173,7 @@
|
|
|
14173
14173
|
}
|
|
14174
14174
|
const util_getBrowser = getBrowser;
|
|
14175
14175
|
class HTTPVideomailError extends Error {
|
|
14176
|
+
name = "VideomailError";
|
|
14176
14177
|
code;
|
|
14177
14178
|
status;
|
|
14178
14179
|
explanation;
|
|
@@ -14379,6 +14380,27 @@
|
|
|
14379
14380
|
return videomailError;
|
|
14380
14381
|
}
|
|
14381
14382
|
const error_createError = createError;
|
|
14383
|
+
function findOriginalExc(exc) {
|
|
14384
|
+
if (exc instanceof Error && "response" in exc) {
|
|
14385
|
+
const response = exc.response;
|
|
14386
|
+
const body = response.body;
|
|
14387
|
+
if ("error" in body) {
|
|
14388
|
+
const message = body.error.message;
|
|
14389
|
+
const cause = body.error.cause;
|
|
14390
|
+
const error = new error_HTTPVideomailError(message, {
|
|
14391
|
+
cause
|
|
14392
|
+
});
|
|
14393
|
+
if (body.error.name) error.name = body.error.name;
|
|
14394
|
+
if (body.error.explanation) error.explanation = body.error.explanation;
|
|
14395
|
+
if (body.error.stack) error.stack = body.error.stack;
|
|
14396
|
+
if (body.error.status) error.status = body.error.status;
|
|
14397
|
+
if (body.error.code) error.code = body.error.code;
|
|
14398
|
+
return error;
|
|
14399
|
+
}
|
|
14400
|
+
}
|
|
14401
|
+
return exc;
|
|
14402
|
+
}
|
|
14403
|
+
const error_findOriginalExc = findOriginalExc;
|
|
14382
14404
|
function _extends() {
|
|
14383
14405
|
_extends = Object.assign || function(target) {
|
|
14384
14406
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -14816,26 +14838,6 @@
|
|
|
14816
14838
|
}
|
|
14817
14839
|
}
|
|
14818
14840
|
const wrappers_form = Form;
|
|
14819
|
-
function findOriginalExc(exc) {
|
|
14820
|
-
if (exc instanceof Error && "response" in exc) {
|
|
14821
|
-
const response = exc.response;
|
|
14822
|
-
const body = response.body;
|
|
14823
|
-
if ("error" in body) {
|
|
14824
|
-
const message = body.error.message;
|
|
14825
|
-
const cause = body.error.cause;
|
|
14826
|
-
const error = new error_HTTPVideomailError(message, {
|
|
14827
|
-
cause
|
|
14828
|
-
});
|
|
14829
|
-
if (body.error.name) error.name = body.error.name;
|
|
14830
|
-
if (body.error.explanation) error.explanation = body.error.explanation;
|
|
14831
|
-
if (body.error.stack) error.stack = body.error.stack;
|
|
14832
|
-
if (body.error.status) error.status = body.error.status;
|
|
14833
|
-
if (body.error.code) error.code = body.error.code;
|
|
14834
|
-
return error;
|
|
14835
|
-
}
|
|
14836
|
-
}
|
|
14837
|
-
return exc;
|
|
14838
|
-
}
|
|
14839
14841
|
class Resource {
|
|
14840
14842
|
options;
|
|
14841
14843
|
timezoneId;
|
|
@@ -14871,7 +14873,7 @@
|
|
|
14871
14873
|
return videomail;
|
|
14872
14874
|
} catch (exc) {
|
|
14873
14875
|
throw error_createError({
|
|
14874
|
-
exc:
|
|
14876
|
+
exc: error_findOriginalExc(exc),
|
|
14875
14877
|
options: this.options
|
|
14876
14878
|
});
|
|
14877
14879
|
}
|
|
@@ -14894,7 +14896,7 @@
|
|
|
14894
14896
|
return request;
|
|
14895
14897
|
} catch (exc) {
|
|
14896
14898
|
throw error_createError({
|
|
14897
|
-
exc:
|
|
14899
|
+
exc: error_findOriginalExc(exc),
|
|
14898
14900
|
options: this.options
|
|
14899
14901
|
});
|
|
14900
14902
|
}
|
|
@@ -14962,7 +14964,7 @@
|
|
|
14962
14964
|
return res;
|
|
14963
14965
|
} catch (exc) {
|
|
14964
14966
|
throw error_createError({
|
|
14965
|
-
exc:
|
|
14967
|
+
exc: error_findOriginalExc(exc),
|
|
14966
14968
|
options: this.options
|
|
14967
14969
|
});
|
|
14968
14970
|
}
|
|
@@ -14990,7 +14992,7 @@
|
|
|
14990
14992
|
return res;
|
|
14991
14993
|
} catch (exc) {
|
|
14992
14994
|
throw error_createError({
|
|
14993
|
-
exc:
|
|
14995
|
+
exc: error_findOriginalExc(exc),
|
|
14994
14996
|
options: this.options
|
|
14995
14997
|
});
|
|
14996
14998
|
}
|