videomail-client 5.0.2 → 5.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "5.0.2",
3
+ "version": "5.0.3",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "author": "Michael Heuberger <michael.heuberger@binarykitchen.com>",
6
6
  "contributors": [
@@ -25899,7 +25899,7 @@ function wrappy (fn, cb) {
25899
25899
  },{}],345:[function(_dereq_,module,exports){
25900
25900
  module.exports={
25901
25901
  "name": "videomail-client",
25902
- "version": "5.0.2",
25902
+ "version": "5.0.3",
25903
25903
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
25904
25904
  "author": "Michael Heuberger <michael.heuberger@binarykitchen.com>",
25905
25905
  "contributors": [
@@ -26598,6 +26598,7 @@ var _superagent = _interopRequireDefault(_dereq_("superagent"));
26598
26598
  var _constants = _interopRequireDefault(_dereq_("./constants"));
26599
26599
 
26600
26600
  var CACHE_KEY = 'alias';
26601
+ var timezoneId = Intl.DateTimeFormat().resolvedOptions().timeZone;
26601
26602
 
26602
26603
  function _default(options) {
26603
26604
  var cache = {};
@@ -26635,9 +26636,7 @@ function _default(options) {
26635
26636
  }
26636
26637
 
26637
26638
  function fetch(alias, cb) {
26638
- var timezoneId = Intl.DateTimeFormat().resolvedOptions().timeZone;
26639
-
26640
- _superagent.default.get('/videomail/' + alias + '/snapshot').set('Accept', 'application/json').set('Accept-Timezone', timezoneId).set(_constants.default.SITE_NAME_LABEL, options.siteName).timeout(options.timeouts.connection).end(function (err, res) {
26639
+ _superagent.default.get('/videomail/' + alias + '/snapshot').set('Accept', 'application/json').set('Timezone-Id', timezoneId).set(_constants.default.SITE_NAME_LABEL, options.siteName).timeout(options.timeouts.connection).end(function (err, res) {
26641
26640
  err = packError(err, res);
26642
26641
 
26643
26642
  if (err) {
@@ -26669,7 +26668,7 @@ function _default(options) {
26669
26668
 
26670
26669
  var request = (0, _superagent.default)(method, url);
26671
26670
  queryParams[_constants.default.SITE_NAME_LABEL] = options.siteName;
26672
- request.query(queryParams).send(videomail).timeout(options.timeout).end(function (err, res) {
26671
+ request.query(queryParams).set('Timezone-Id', timezoneId).send(videomail).timeout(options.timeout).end(function (err, res) {
26673
26672
  err = packError(err, res);
26674
26673
 
26675
26674
  if (err) {
@@ -26756,7 +26755,7 @@ function _default(options) {
26756
26755
  }
26757
26756
 
26758
26757
  if (formType) {
26759
- _superagent.default.post(url).type(formType).send(formData).timeout(options.timeout).end(function (err, res) {
26758
+ _superagent.default.post(url).type(formType).set('Timezone-Id', timezoneId).send(formData).timeout(options.timeout).end(function (err, res) {
26760
26759
  err = packError(err, res);
26761
26760
 
26762
26761
  if (err) {