videomail-client 10.2.48 → 10.2.49
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 +4 -4
- package/dist/esm/index.js +4 -4
- package/dist/umd/index.js +4 -4
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -14376,7 +14376,7 @@ var __webpack_exports__ = {};
|
|
|
14376
14376
|
}
|
|
14377
14377
|
const wrappers_form = Form;
|
|
14378
14378
|
var package_namespaceObject = {
|
|
14379
|
-
i8: "10.2.
|
|
14379
|
+
i8: "10.2.49"
|
|
14380
14380
|
};
|
|
14381
14381
|
function resource_define_property(obj, key, value) {
|
|
14382
14382
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
@@ -14428,7 +14428,7 @@ var __webpack_exports__ = {};
|
|
|
14428
14428
|
async get(identifierName, identifierValue) {
|
|
14429
14429
|
const url = `${this.options.baseUrl}/videomail/${identifierName}/${identifierValue}/snapshot`;
|
|
14430
14430
|
try {
|
|
14431
|
-
const request = await client_default()("get", url).type("json").set("Accept", "application/json").set("Timezone-Id", this.timezoneId).set(constants.SITE_NAME_LABEL, this.options.siteName).timeout(this.options.timeouts.connection);
|
|
14431
|
+
const request = await client_default()("get", url).type("json").set("Accept", "application/json").withCredentials().set("Timezone-Id", this.timezoneId).set(constants.SITE_NAME_LABEL, this.options.siteName).timeout(this.options.timeouts.connection);
|
|
14432
14432
|
const videomail = request.body;
|
|
14433
14433
|
return videomail;
|
|
14434
14434
|
} catch (exc) {
|
|
@@ -14445,7 +14445,7 @@ var __webpack_exports__ = {};
|
|
|
14445
14445
|
let url = `${this.options.baseUrl}/videomail/`;
|
|
14446
14446
|
if (method === form_FormMethod.PUT && videomail.key) url += videomail.key;
|
|
14447
14447
|
try {
|
|
14448
|
-
const request = await client_default()(method, url).query(queryParams).set("Timezone-Id", this.timezoneId).send(videomail).timeout(this.options.timeouts.connection);
|
|
14448
|
+
const request = await client_default()(method, url).query(queryParams).set("Timezone-Id", this.timezoneId).withCredentials().send(videomail).timeout(this.options.timeouts.connection);
|
|
14449
14449
|
return request;
|
|
14450
14450
|
} catch (exc) {
|
|
14451
14451
|
throw error_createError({
|
|
@@ -14491,7 +14491,7 @@ var __webpack_exports__ = {};
|
|
|
14491
14491
|
videomailNinjaFormPlugin: null == (_this_options_versions = this.options.versions) ? void 0 : _this_options_versions.videomailNinjaFormPlugin
|
|
14492
14492
|
}
|
|
14493
14493
|
};
|
|
14494
|
-
await client_default()(form_FormMethod.POST, url).query(queryParams).set("Timezone-Id", this.timezoneId).send(fullVideomailErrorData).timeout(this.options.timeouts.connection);
|
|
14494
|
+
await client_default()(form_FormMethod.POST, url).query(queryParams).set("Timezone-Id", this.timezoneId).withCredentials().send(fullVideomailErrorData).timeout(this.options.timeouts.connection);
|
|
14495
14495
|
} catch (exc) {
|
|
14496
14496
|
console.error(exc);
|
|
14497
14497
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -4183,7 +4183,7 @@ class Form extends util_Despot {
|
|
|
4183
4183
|
}
|
|
4184
4184
|
const wrappers_form = Form;
|
|
4185
4185
|
var package_namespaceObject = {
|
|
4186
|
-
i8: "10.2.
|
|
4186
|
+
i8: "10.2.49"
|
|
4187
4187
|
};
|
|
4188
4188
|
function findOriginalExc(exc) {
|
|
4189
4189
|
if (exc instanceof Error && "response" in exc) {
|
|
@@ -4231,7 +4231,7 @@ class Resource {
|
|
|
4231
4231
|
async get(identifierName, identifierValue) {
|
|
4232
4232
|
const url = `${this.options.baseUrl}/videomail/${identifierName}/${identifierValue}/snapshot`;
|
|
4233
4233
|
try {
|
|
4234
|
-
const request = await external_superagent_default("get", url).type("json").set("Accept", "application/json").set("Timezone-Id", this.timezoneId).set(constants.SITE_NAME_LABEL, this.options.siteName).timeout(this.options.timeouts.connection);
|
|
4234
|
+
const request = await external_superagent_default("get", url).type("json").set("Accept", "application/json").withCredentials().set("Timezone-Id", this.timezoneId).set(constants.SITE_NAME_LABEL, this.options.siteName).timeout(this.options.timeouts.connection);
|
|
4235
4235
|
const videomail = request.body;
|
|
4236
4236
|
return videomail;
|
|
4237
4237
|
} catch (exc) {
|
|
@@ -4248,7 +4248,7 @@ class Resource {
|
|
|
4248
4248
|
let url = `${this.options.baseUrl}/videomail/`;
|
|
4249
4249
|
if (method === form_FormMethod.PUT && videomail.key) url += videomail.key;
|
|
4250
4250
|
try {
|
|
4251
|
-
const request = await external_superagent_default(method, url).query(queryParams).set("Timezone-Id", this.timezoneId).send(videomail).timeout(this.options.timeouts.connection);
|
|
4251
|
+
const request = await external_superagent_default(method, url).query(queryParams).set("Timezone-Id", this.timezoneId).withCredentials().send(videomail).timeout(this.options.timeouts.connection);
|
|
4252
4252
|
return request;
|
|
4253
4253
|
} catch (exc) {
|
|
4254
4254
|
throw error_createError({
|
|
@@ -4293,7 +4293,7 @@ class Resource {
|
|
|
4293
4293
|
videomailNinjaFormPlugin: this.options.versions?.videomailNinjaFormPlugin
|
|
4294
4294
|
}
|
|
4295
4295
|
};
|
|
4296
|
-
await external_superagent_default(form_FormMethod.POST, url).query(queryParams).set("Timezone-Id", this.timezoneId).send(fullVideomailErrorData).timeout(this.options.timeouts.connection);
|
|
4296
|
+
await external_superagent_default(form_FormMethod.POST, url).query(queryParams).set("Timezone-Id", this.timezoneId).withCredentials().send(fullVideomailErrorData).timeout(this.options.timeouts.connection);
|
|
4297
4297
|
} catch (exc) {
|
|
4298
4298
|
console.error(exc);
|
|
4299
4299
|
}
|
package/dist/umd/index.js
CHANGED
|
@@ -14343,7 +14343,7 @@
|
|
|
14343
14343
|
}
|
|
14344
14344
|
const wrappers_form = Form;
|
|
14345
14345
|
var package_namespaceObject = {
|
|
14346
|
-
i8: "10.2.
|
|
14346
|
+
i8: "10.2.49"
|
|
14347
14347
|
};
|
|
14348
14348
|
function findOriginalExc(exc) {
|
|
14349
14349
|
if (exc instanceof Error && "response" in exc) {
|
|
@@ -14391,7 +14391,7 @@
|
|
|
14391
14391
|
async get(identifierName, identifierValue) {
|
|
14392
14392
|
const url = `${this.options.baseUrl}/videomail/${identifierName}/${identifierValue}/snapshot`;
|
|
14393
14393
|
try {
|
|
14394
|
-
const request = await client_default()("get", url).type("json").set("Accept", "application/json").set("Timezone-Id", this.timezoneId).set(constants.SITE_NAME_LABEL, this.options.siteName).timeout(this.options.timeouts.connection);
|
|
14394
|
+
const request = await client_default()("get", url).type("json").set("Accept", "application/json").withCredentials().set("Timezone-Id", this.timezoneId).set(constants.SITE_NAME_LABEL, this.options.siteName).timeout(this.options.timeouts.connection);
|
|
14395
14395
|
const videomail = request.body;
|
|
14396
14396
|
return videomail;
|
|
14397
14397
|
} catch (exc) {
|
|
@@ -14408,7 +14408,7 @@
|
|
|
14408
14408
|
let url = `${this.options.baseUrl}/videomail/`;
|
|
14409
14409
|
if (method === form_FormMethod.PUT && videomail.key) url += videomail.key;
|
|
14410
14410
|
try {
|
|
14411
|
-
const request = await client_default()(method, url).query(queryParams).set("Timezone-Id", this.timezoneId).send(videomail).timeout(this.options.timeouts.connection);
|
|
14411
|
+
const request = await client_default()(method, url).query(queryParams).set("Timezone-Id", this.timezoneId).withCredentials().send(videomail).timeout(this.options.timeouts.connection);
|
|
14412
14412
|
return request;
|
|
14413
14413
|
} catch (exc) {
|
|
14414
14414
|
throw error_createError({
|
|
@@ -14453,7 +14453,7 @@
|
|
|
14453
14453
|
videomailNinjaFormPlugin: this.options.versions?.videomailNinjaFormPlugin
|
|
14454
14454
|
}
|
|
14455
14455
|
};
|
|
14456
|
-
await client_default()(form_FormMethod.POST, url).query(queryParams).set("Timezone-Id", this.timezoneId).send(fullVideomailErrorData).timeout(this.options.timeouts.connection);
|
|
14456
|
+
await client_default()(form_FormMethod.POST, url).query(queryParams).set("Timezone-Id", this.timezoneId).withCredentials().send(fullVideomailErrorData).timeout(this.options.timeouts.connection);
|
|
14457
14457
|
} catch (exc) {
|
|
14458
14458
|
console.error(exc);
|
|
14459
14459
|
}
|