videomail-client 10.2.47 → 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.
@@ -14376,7 +14376,7 @@ var __webpack_exports__ = {};
14376
14376
  }
14377
14377
  const wrappers_form = Form;
14378
14378
  var package_namespaceObject = {
14379
- i8: "10.2.47"
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.47"
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
  }
@@ -44,6 +44,7 @@ interface Videomail {
44
44
  subject?: string;
45
45
  to?: string[] | undefined;
46
46
  url: string;
47
+ userKey?: string;
47
48
  versions: {
48
49
  videomailNinjaFormPlugin?: string;
49
50
  videomailClient: string;
@@ -75,6 +75,7 @@ declare class Form extends Despot {
75
75
  subject?: string;
76
76
  to?: string[] | undefined | undefined;
77
77
  url?: string;
78
+ userKey?: string;
78
79
  versions?: {
79
80
  videomailNinjaFormPlugin?: string;
80
81
  videomailClient?: string;
@@ -142,6 +143,7 @@ declare class Form extends Despot {
142
143
  subject?: string;
143
144
  to?: string[] | undefined | undefined;
144
145
  url?: string;
146
+ userKey?: string;
145
147
  versions?: {
146
148
  videomailNinjaFormPlugin?: string;
147
149
  videomailClient?: string;
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.47"
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "10.2.47",
3
+ "version": "10.2.49",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@chromatic-com/storybook": "3.2.6",
77
- "@eslint/js": "9.28.0",
77
+ "@eslint/js": "9.29.0",
78
78
  "@rsbuild/plugin-node-polyfill": "1.3.0",
79
79
  "@rsbuild/plugin-stylus": "1.1.1",
80
80
  "@rsdoctor/rspack-plugin": "1.1.3",
@@ -93,15 +93,15 @@
93
93
  "@types/node": "22.15.30",
94
94
  "@types/superagent": "8.1.9",
95
95
  "@types/ua-parser-js": "0.7.39",
96
- "@vitest/eslint-plugin": "1.2.2",
96
+ "@vitest/eslint-plugin": "1.2.5",
97
97
  "audit-ci": "7.1.0",
98
98
  "chromatic": "11.28.2",
99
99
  "cross-env": "7.0.3",
100
- "eslint": "9.28.0",
100
+ "eslint": "9.29.0",
101
101
  "eslint-import-resolver-typescript": "4.4.3",
102
102
  "eslint-plugin-de-morgan": "1.3.0",
103
103
  "eslint-plugin-depend": "1.2.0",
104
- "eslint-plugin-import-x": "4.15.1",
104
+ "eslint-plugin-import-x": "4.15.2",
105
105
  "eslint-plugin-package-json": "0.33.2",
106
106
  "eslint-plugin-promise": "7.2.1",
107
107
  "eslint-plugin-regexp": "2.9.0",
@@ -124,8 +124,8 @@
124
124
  "vitest": "3.2.3"
125
125
  },
126
126
  "engines": {
127
- "node": "^22.8.0",
128
- "npm": "^10.8.2"
127
+ "node": "^22.16.0",
128
+ "npm": "^10.9.2"
129
129
  },
130
130
  "msw": {
131
131
  "workerDirectory": [