@flatfile/listener 0.3.19-rc7 → 0.3.19-rc8

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.
@@ -960,12 +960,12 @@ class FlatfileEvent extends AuthenticatedClient {
960
960
  const data = compressRequestBody
961
961
  ? pako.gzip(JSON.stringify(records))
962
962
  : records;
963
- const gzipHeaders = compressRequestBody
963
+ const headers = compressRequestBody
964
964
  ? { 'Content-Encoding': 'gzip', 'Content-Length': data.length.toString() }
965
965
  : {};
966
966
  await this.fetch(this.src.dataUrl, {
967
967
  method: 'PUT',
968
- headers: gzipHeaders,
968
+ headers: headers,
969
969
  data,
970
970
  });
971
971
  }
@@ -956,12 +956,12 @@ class FlatfileEvent extends AuthenticatedClient {
956
956
  const data = compressRequestBody
957
957
  ? pako.gzip(JSON.stringify(records))
958
958
  : records;
959
- const gzipHeaders = compressRequestBody
959
+ const headers = compressRequestBody
960
960
  ? { 'Content-Encoding': 'gzip', 'Content-Length': data.length.toString() }
961
961
  : {};
962
962
  await this.fetch(this.src.dataUrl, {
963
963
  method: 'PUT',
964
- headers: gzipHeaders,
964
+ headers: headers,
965
965
  data,
966
966
  });
967
967
  }
package/dist/index.cjs CHANGED
@@ -81896,12 +81896,12 @@ class FlatfileEvent extends AuthenticatedClient {
81896
81896
  const data = compressRequestBody
81897
81897
  ? pako.gzip(JSON.stringify(records))
81898
81898
  : records;
81899
- const gzipHeaders = compressRequestBody
81899
+ const headers = compressRequestBody
81900
81900
  ? { 'Content-Encoding': 'gzip', 'Content-Length': data.length.toString() }
81901
81901
  : {};
81902
81902
  await this.fetch(this.src.dataUrl, {
81903
81903
  method: 'PUT',
81904
- headers: gzipHeaders,
81904
+ headers: headers,
81905
81905
  data,
81906
81906
  });
81907
81907
  }
package/dist/index.js CHANGED
@@ -81888,12 +81888,12 @@
81888
81888
  const data = compressRequestBody
81889
81889
  ? pako.gzip(JSON.stringify(records))
81890
81890
  : records;
81891
- const gzipHeaders = compressRequestBody
81891
+ const headers = compressRequestBody
81892
81892
  ? { 'Content-Encoding': 'gzip', 'Content-Length': data.length.toString() }
81893
81893
  : {};
81894
81894
  await this.fetch(this.src.dataUrl, {
81895
81895
  method: 'PUT',
81896
- headers: gzipHeaders,
81896
+ headers: headers,
81897
81897
  data,
81898
81898
  });
81899
81899
  }
package/dist/index.mjs CHANGED
@@ -81892,12 +81892,12 @@ class FlatfileEvent extends AuthenticatedClient {
81892
81892
  const data = compressRequestBody
81893
81893
  ? pako.gzip(JSON.stringify(records))
81894
81894
  : records;
81895
- const gzipHeaders = compressRequestBody
81895
+ const headers = compressRequestBody
81896
81896
  ? { 'Content-Encoding': 'gzip', 'Content-Length': data.length.toString() }
81897
81897
  : {};
81898
81898
  await this.fetch(this.src.dataUrl, {
81899
81899
  method: 'PUT',
81900
- headers: gzipHeaders,
81900
+ headers: headers,
81901
81901
  data,
81902
81902
  });
81903
81903
  }