autotel-subscribers 35.0.2 → 37.0.0
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/amplitude.cjs +64 -64
- package/dist/amplitude.cjs.map +1 -1
- package/dist/amplitude.js +64 -64
- package/dist/amplitude.js.map +1 -1
- package/dist/factories.cjs +269 -239
- package/dist/factories.cjs.map +1 -1
- package/dist/factories.js +269 -239
- package/dist/factories.js.map +1 -1
- package/dist/index.cjs +348 -239
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +348 -240
- package/dist/index.js.map +1 -1
- package/dist/posthog.cjs +150 -127
- package/dist/posthog.cjs.map +1 -1
- package/dist/posthog.js +150 -127
- package/dist/posthog.js.map +1 -1
- package/dist/security.cjs +421 -0
- package/dist/security.cjs.map +1 -0
- package/dist/security.d.cts +94 -0
- package/dist/security.d.ts +94 -0
- package/dist/security.js +419 -0
- package/dist/security.js.map +1 -0
- package/dist/webhook.cjs +51 -44
- package/dist/webhook.cjs.map +1 -1
- package/dist/webhook.d.cts +0 -1
- package/dist/webhook.d.ts +0 -1
- package/dist/webhook.js +51 -44
- package/dist/webhook.js.map +1 -1
- package/package.json +16 -11
- package/src/index.ts +6 -0
- package/src/security.test.ts +251 -0
- package/src/security.ts +200 -0
- package/src/webhook-delivery.ts +88 -0
- package/src/webhook.ts +8 -58
package/dist/index.cjs
CHANGED
|
@@ -13,6 +13,7 @@ var crypto2 = require('crypto');
|
|
|
13
13
|
var http = require('http');
|
|
14
14
|
var https = require('https');
|
|
15
15
|
var slowRedact = require('slow-redact');
|
|
16
|
+
var securitySchema = require('autotel/security-schema');
|
|
16
17
|
var fs = require('fs/promises');
|
|
17
18
|
|
|
18
19
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -114,11 +115,11 @@ function normalizeWindowsPath(path3) {
|
|
|
114
115
|
return path3.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
|
|
115
116
|
}
|
|
116
117
|
var init_module_node = __esm({
|
|
117
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
118
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
|
|
118
119
|
}
|
|
119
120
|
});
|
|
120
121
|
|
|
121
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
122
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/featureFlagUtils.mjs
|
|
122
123
|
function getFlagDetailFromFlagAndPayload(key, value, payload) {
|
|
123
124
|
return {
|
|
124
125
|
key,
|
|
@@ -135,7 +136,7 @@ function getFlagDetailFromFlagAndPayload(key, value, payload) {
|
|
|
135
136
|
}
|
|
136
137
|
var normalizeFlagsResponse, getFlagValuesFromFlags, getPayloadsFromFlags, getFeatureFlagValue, parsePayload;
|
|
137
138
|
var init_featureFlagUtils = __esm({
|
|
138
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
139
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
|
|
139
140
|
normalizeFlagsResponse = (flagsResponse) => {
|
|
140
141
|
if ("flags" in flagsResponse) {
|
|
141
142
|
const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
|
|
@@ -193,10 +194,10 @@ var init_featureFlagUtils = __esm({
|
|
|
193
194
|
}
|
|
194
195
|
});
|
|
195
196
|
|
|
196
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
197
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/types.mjs
|
|
197
198
|
var types_PostHogPersistedProperty, FeatureFlagError;
|
|
198
199
|
var init_types = __esm({
|
|
199
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
200
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/types.mjs"() {
|
|
200
201
|
types_PostHogPersistedProperty = /* @__PURE__ */ (function(PostHogPersistedProperty) {
|
|
201
202
|
PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
|
|
202
203
|
PostHogPersistedProperty["DistinctId"] = "distinct_id";
|
|
@@ -241,7 +242,7 @@ var init_types = __esm({
|
|
|
241
242
|
}
|
|
242
243
|
});
|
|
243
244
|
|
|
244
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
245
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/gzip.mjs
|
|
245
246
|
function isGzipSupported() {
|
|
246
247
|
return "CompressionStream" in globalThis && "TextEncoder" in globalThis && "Response" in globalThis && "function" == typeof Response.prototype.blob;
|
|
247
248
|
}
|
|
@@ -271,7 +272,7 @@ async function gzipCompress(input, isDebug = true, options) {
|
|
|
271
272
|
}
|
|
272
273
|
var NATIVE_GZIP_VALIDATION_ERROR, GZIP_MAGIC_FIRST_BYTE, GZIP_MAGIC_SECOND_BYTE, GZIP_DEFLATE_METHOD, hasGzipMagic, crc32Table, getCrc32Table, crc32, throwNativeGzipValidationError, validateNativeGzip;
|
|
273
274
|
var init_gzip = __esm({
|
|
274
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
275
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/gzip.mjs"() {
|
|
275
276
|
init_types();
|
|
276
277
|
NATIVE_GZIP_VALIDATION_ERROR = "NativeGzipValidationError";
|
|
277
278
|
GZIP_MAGIC_FIRST_BYTE = 31;
|
|
@@ -311,10 +312,10 @@ var init_gzip = __esm({
|
|
|
311
312
|
}
|
|
312
313
|
});
|
|
313
314
|
|
|
314
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
315
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/bot-detection.mjs
|
|
315
316
|
var DEFAULT_BLOCKED_UA_STRS, isBlockedUA;
|
|
316
317
|
var init_bot_detection = __esm({
|
|
317
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
318
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
|
|
318
319
|
DEFAULT_BLOCKED_UA_STRS = [
|
|
319
320
|
"amazonbot",
|
|
320
321
|
"amazonproductbot",
|
|
@@ -405,13 +406,13 @@ var init_bot_detection = __esm({
|
|
|
405
406
|
}
|
|
406
407
|
});
|
|
407
408
|
|
|
408
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
409
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/string-utils.mjs
|
|
409
410
|
var init_string_utils = __esm({
|
|
410
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
411
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
|
|
411
412
|
}
|
|
412
413
|
});
|
|
413
414
|
|
|
414
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
415
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/type-utils.mjs
|
|
415
416
|
function isPrimitive(value) {
|
|
416
417
|
return null === value || "object" != typeof value;
|
|
417
418
|
}
|
|
@@ -436,7 +437,7 @@ function isInstanceOf(candidate, base) {
|
|
|
436
437
|
}
|
|
437
438
|
var nativeIsArray, ObjProto, type_utils_toString, isArray, isObject, isUndefined, isString, isEmptyString, isNumber, isPlainError;
|
|
438
439
|
var init_type_utils = __esm({
|
|
439
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
440
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
|
|
440
441
|
init_types();
|
|
441
442
|
init_string_utils();
|
|
442
443
|
nativeIsArray = Array.isArray;
|
|
@@ -455,7 +456,7 @@ var init_type_utils = __esm({
|
|
|
455
456
|
}
|
|
456
457
|
});
|
|
457
458
|
|
|
458
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
459
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/number-utils.mjs
|
|
459
460
|
function clampToRange(value, min, max, logger, fallbackValue) {
|
|
460
461
|
if (min > max) {
|
|
461
462
|
logger.warn("min cannot be greater than max.");
|
|
@@ -473,15 +474,15 @@ function clampToRange(value, min, max, logger, fallbackValue) {
|
|
|
473
474
|
return clampToRange(max, min, max, logger);
|
|
474
475
|
}
|
|
475
476
|
var init_number_utils = __esm({
|
|
476
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
477
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
|
|
477
478
|
init_type_utils();
|
|
478
479
|
}
|
|
479
480
|
});
|
|
480
481
|
|
|
481
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
482
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
|
|
482
483
|
var ONE_DAY_IN_MS, BucketedRateLimiter;
|
|
483
484
|
var init_bucketed_rate_limiter = __esm({
|
|
484
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
485
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
|
|
485
486
|
init_number_utils();
|
|
486
487
|
ONE_DAY_IN_MS = 864e5;
|
|
487
488
|
BucketedRateLimiter = class {
|
|
@@ -525,10 +526,10 @@ var init_bucketed_rate_limiter = __esm({
|
|
|
525
526
|
}
|
|
526
527
|
});
|
|
527
528
|
|
|
528
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
529
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
|
|
529
530
|
var DIGITS, UUID, V7Generator, getDefaultRandom, defaultGenerator, uuidv7, uuidv7obj;
|
|
530
531
|
var init_uuidv7 = __esm({
|
|
531
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
532
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
|
|
532
533
|
DIGITS = "0123456789abcdef";
|
|
533
534
|
UUID = class _UUID {
|
|
534
535
|
constructor(bytes) {
|
|
@@ -689,10 +690,10 @@ var init_uuidv7 = __esm({
|
|
|
689
690
|
}
|
|
690
691
|
});
|
|
691
692
|
|
|
692
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
693
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/promise-queue.mjs
|
|
693
694
|
var PromiseQueue;
|
|
694
695
|
var init_promise_queue = __esm({
|
|
695
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
696
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
|
|
696
697
|
init_uuidv7();
|
|
697
698
|
PromiseQueue = class {
|
|
698
699
|
add(promise) {
|
|
@@ -723,7 +724,7 @@ var init_promise_queue = __esm({
|
|
|
723
724
|
}
|
|
724
725
|
});
|
|
725
726
|
|
|
726
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
727
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/logger.mjs
|
|
727
728
|
function createConsole(consoleLike = console) {
|
|
728
729
|
const lockedMethods = {
|
|
729
730
|
log: consoleLike.log.bind(consoleLike),
|
|
@@ -738,7 +739,7 @@ function createLogger(prefix, maybeCall = passThrough) {
|
|
|
738
739
|
}
|
|
739
740
|
var _createLogger, passThrough;
|
|
740
741
|
var init_logger = __esm({
|
|
741
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
742
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/logger.mjs"() {
|
|
742
743
|
_createLogger = (prefix, maybeCall, consoleLike) => {
|
|
743
744
|
function _log(level, ...args) {
|
|
744
745
|
maybeCall(() => {
|
|
@@ -770,10 +771,10 @@ var init_logger = __esm({
|
|
|
770
771
|
}
|
|
771
772
|
});
|
|
772
773
|
|
|
773
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
774
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
|
|
774
775
|
var MOBILE, TABLET, GENERIC;
|
|
775
776
|
var init_user_agent_utils = __esm({
|
|
776
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
777
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
|
|
777
778
|
init_string_utils();
|
|
778
779
|
init_type_utils();
|
|
779
780
|
MOBILE = "Mobile";
|
|
@@ -784,7 +785,7 @@ var init_user_agent_utils = __esm({
|
|
|
784
785
|
}
|
|
785
786
|
});
|
|
786
787
|
|
|
787
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
788
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/index.mjs
|
|
788
789
|
function removeTrailingSlash(url) {
|
|
789
790
|
return url?.replace(/\/+$/, "");
|
|
790
791
|
}
|
|
@@ -821,7 +822,7 @@ function allSettled(promises) {
|
|
|
821
822
|
}
|
|
822
823
|
var STRING_FORMAT, isError;
|
|
823
824
|
var init_utils = __esm({
|
|
824
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
825
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/index.mjs"() {
|
|
825
826
|
init_bot_detection();
|
|
826
827
|
init_bucketed_rate_limiter();
|
|
827
828
|
init_number_utils();
|
|
@@ -835,10 +836,10 @@ var init_utils = __esm({
|
|
|
835
836
|
}
|
|
836
837
|
});
|
|
837
838
|
|
|
838
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
839
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/logs/logs-utils.mjs
|
|
839
840
|
var OTLP_SEVERITY_MAP;
|
|
840
841
|
var init_logs_utils = __esm({
|
|
841
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
842
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/logs/logs-utils.mjs"() {
|
|
842
843
|
init_utils();
|
|
843
844
|
OTLP_SEVERITY_MAP = {
|
|
844
845
|
trace: {
|
|
@@ -870,23 +871,23 @@ var init_logs_utils = __esm({
|
|
|
870
871
|
}
|
|
871
872
|
});
|
|
872
873
|
|
|
873
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
874
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/logs/index.mjs
|
|
874
875
|
var init_logs = __esm({
|
|
875
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
876
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/logs/index.mjs"() {
|
|
876
877
|
init_logs_utils();
|
|
877
878
|
init_types();
|
|
878
879
|
init_utils();
|
|
879
880
|
}
|
|
880
881
|
});
|
|
881
882
|
|
|
882
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
883
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/surveys/validation.mjs
|
|
883
884
|
var init_validation = __esm({
|
|
884
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
885
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/surveys/validation.mjs"() {
|
|
885
886
|
init_types();
|
|
886
887
|
}
|
|
887
888
|
});
|
|
888
889
|
|
|
889
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
890
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/cookie.mjs
|
|
890
891
|
function cookieStoreFromHeader(cookieHeader) {
|
|
891
892
|
const cookies = {};
|
|
892
893
|
if (cookieHeader) for (const pair of cookieHeader.split(";")) {
|
|
@@ -954,7 +955,7 @@ function parsePostHogCookie(cookieValue) {
|
|
|
954
955
|
}
|
|
955
956
|
var COOKIE_PREFIX, COOKIE_SUFFIX;
|
|
956
957
|
var init_cookie = __esm({
|
|
957
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
958
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/cookie.mjs"() {
|
|
958
959
|
init_utils();
|
|
959
960
|
init_uuidv7();
|
|
960
961
|
COOKIE_PREFIX = "ph_";
|
|
@@ -962,10 +963,10 @@ var init_cookie = __esm({
|
|
|
962
963
|
}
|
|
963
964
|
});
|
|
964
965
|
|
|
965
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
966
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/eventemitter.mjs
|
|
966
967
|
var SimpleEventEmitter;
|
|
967
968
|
var init_eventemitter = __esm({
|
|
968
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
969
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/eventemitter.mjs"() {
|
|
969
970
|
SimpleEventEmitter = class {
|
|
970
971
|
constructor() {
|
|
971
972
|
this.events = {};
|
|
@@ -986,7 +987,7 @@ var init_eventemitter = __esm({
|
|
|
986
987
|
}
|
|
987
988
|
});
|
|
988
989
|
|
|
989
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
990
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
|
|
990
991
|
function getFilenameToChunkIdMap(stackParser) {
|
|
991
992
|
const chunkIdMap = globalThis._posthogChunkIds;
|
|
992
993
|
if (!chunkIdMap) return;
|
|
@@ -1019,14 +1020,14 @@ function getFilenameToChunkIdMap(stackParser) {
|
|
|
1019
1020
|
}
|
|
1020
1021
|
var parsedStackResults, lastKeysCount, cachedFilenameChunkIds;
|
|
1021
1022
|
var init_chunk_ids = __esm({
|
|
1022
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1023
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
|
|
1023
1024
|
}
|
|
1024
1025
|
});
|
|
1025
1026
|
|
|
1026
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1027
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
|
|
1027
1028
|
var MAX_CAUSE_RECURSION, ErrorPropertiesBuilder;
|
|
1028
1029
|
var init_error_properties_builder = __esm({
|
|
1029
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1030
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
|
|
1030
1031
|
init_utils();
|
|
1031
1032
|
init_chunk_ids();
|
|
1032
1033
|
MAX_CAUSE_RECURSION = 4;
|
|
@@ -1141,7 +1142,7 @@ var init_error_properties_builder = __esm({
|
|
|
1141
1142
|
}
|
|
1142
1143
|
});
|
|
1143
1144
|
|
|
1144
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1145
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
|
|
1145
1146
|
function createFrame(platform, filename, func, lineno, colno) {
|
|
1146
1147
|
const frame = {
|
|
1147
1148
|
platform,
|
|
@@ -1155,16 +1156,16 @@ function createFrame(platform, filename, func, lineno, colno) {
|
|
|
1155
1156
|
}
|
|
1156
1157
|
var UNKNOWN_FUNCTION;
|
|
1157
1158
|
var init_base = __esm({
|
|
1158
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1159
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
|
|
1159
1160
|
init_utils();
|
|
1160
1161
|
UNKNOWN_FUNCTION = "?";
|
|
1161
1162
|
}
|
|
1162
1163
|
});
|
|
1163
1164
|
|
|
1164
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1165
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
|
|
1165
1166
|
var extractSafariExtensionDetails;
|
|
1166
1167
|
var init_safari = __esm({
|
|
1167
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1168
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
|
|
1168
1169
|
init_base();
|
|
1169
1170
|
extractSafariExtensionDetails = (func, filename) => {
|
|
1170
1171
|
const isSafariExtension = -1 !== func.indexOf("safari-extension");
|
|
@@ -1180,10 +1181,10 @@ var init_safari = __esm({
|
|
|
1180
1181
|
}
|
|
1181
1182
|
});
|
|
1182
1183
|
|
|
1183
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1184
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
|
|
1184
1185
|
var chromeRegexNoFnName, chromeRegex, chromeEvalRegex, chromeStackLineParser;
|
|
1185
1186
|
var init_chrome = __esm({
|
|
1186
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1187
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
|
|
1187
1188
|
init_base();
|
|
1188
1189
|
init_safari();
|
|
1189
1190
|
chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
|
|
@@ -1213,10 +1214,10 @@ var init_chrome = __esm({
|
|
|
1213
1214
|
}
|
|
1214
1215
|
});
|
|
1215
1216
|
|
|
1216
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1217
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
|
|
1217
1218
|
var geckoREgex, geckoEvalRegex, geckoStackLineParser;
|
|
1218
1219
|
var init_gecko = __esm({
|
|
1219
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1220
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
|
|
1220
1221
|
init_base();
|
|
1221
1222
|
init_safari();
|
|
1222
1223
|
geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
|
|
@@ -1243,10 +1244,10 @@ var init_gecko = __esm({
|
|
|
1243
1244
|
}
|
|
1244
1245
|
});
|
|
1245
1246
|
|
|
1246
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1247
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
|
|
1247
1248
|
var winjsRegex, winjsStackLineParser;
|
|
1248
1249
|
var init_winjs = __esm({
|
|
1249
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1250
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
|
|
1250
1251
|
init_base();
|
|
1251
1252
|
winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
|
|
1252
1253
|
winjsStackLineParser = (line, platform) => {
|
|
@@ -1256,10 +1257,10 @@ var init_winjs = __esm({
|
|
|
1256
1257
|
}
|
|
1257
1258
|
});
|
|
1258
1259
|
|
|
1259
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1260
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
|
|
1260
1261
|
var opera10Regex, opera10StackLineParser, opera11Regex, opera11StackLineParser;
|
|
1261
1262
|
var init_opera = __esm({
|
|
1262
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1263
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
|
|
1263
1264
|
init_base();
|
|
1264
1265
|
opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
|
|
1265
1266
|
opera10StackLineParser = (line, platform) => {
|
|
@@ -1274,7 +1275,7 @@ var init_opera = __esm({
|
|
|
1274
1275
|
}
|
|
1275
1276
|
});
|
|
1276
1277
|
|
|
1277
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1278
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
|
|
1278
1279
|
function filenameIsInApp(filename, isNative = false) {
|
|
1279
1280
|
const isInternal = isNative || filename && !filename.startsWith("/") && !filename.match(/^[A-Z]:/) && !filename.startsWith(".") && !filename.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//);
|
|
1280
1281
|
return !isInternal && void 0 !== filename && !filename.includes("node_modules/");
|
|
@@ -1284,7 +1285,7 @@ function _parseIntOrUndefined(input) {
|
|
|
1284
1285
|
}
|
|
1285
1286
|
var FILENAME_MATCH, FULL_MATCH, nodeStackLineParser;
|
|
1286
1287
|
var init_node = __esm({
|
|
1287
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1288
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
|
|
1288
1289
|
init_base();
|
|
1289
1290
|
FILENAME_MATCH = /^\s*[-]{4,}$/;
|
|
1290
1291
|
FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
|
|
@@ -1345,7 +1346,7 @@ var init_node = __esm({
|
|
|
1345
1346
|
}
|
|
1346
1347
|
});
|
|
1347
1348
|
|
|
1348
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1349
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
|
|
1349
1350
|
function reverseAndStripFrames(stack) {
|
|
1350
1351
|
if (!stack.length) return [];
|
|
1351
1352
|
const localStack = Array.from(stack);
|
|
@@ -1386,7 +1387,7 @@ function createStackParser(platform, ...parsers) {
|
|
|
1386
1387
|
}
|
|
1387
1388
|
var WEBPACK_ERROR_REGEXP, STACKTRACE_FRAME_LIMIT;
|
|
1388
1389
|
var init_parsers = __esm({
|
|
1389
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1390
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
|
|
1390
1391
|
init_base();
|
|
1391
1392
|
init_chrome();
|
|
1392
1393
|
init_gecko();
|
|
@@ -1398,10 +1399,10 @@ var init_parsers = __esm({
|
|
|
1398
1399
|
}
|
|
1399
1400
|
});
|
|
1400
1401
|
|
|
1401
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1402
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
|
|
1402
1403
|
var DOMExceptionCoercer;
|
|
1403
1404
|
var init_dom_exception_coercer = __esm({
|
|
1404
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1405
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
|
|
1405
1406
|
init_utils();
|
|
1406
1407
|
DOMExceptionCoercer = class {
|
|
1407
1408
|
match(err) {
|
|
@@ -1435,10 +1436,10 @@ var init_dom_exception_coercer = __esm({
|
|
|
1435
1436
|
}
|
|
1436
1437
|
});
|
|
1437
1438
|
|
|
1438
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1439
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
|
|
1439
1440
|
var ErrorCoercer;
|
|
1440
1441
|
var init_error_coercer = __esm({
|
|
1441
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1442
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
|
|
1442
1443
|
init_utils();
|
|
1443
1444
|
ErrorCoercer = class {
|
|
1444
1445
|
match(err) {
|
|
@@ -1468,10 +1469,10 @@ var init_error_coercer = __esm({
|
|
|
1468
1469
|
}
|
|
1469
1470
|
});
|
|
1470
1471
|
|
|
1471
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1472
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
|
|
1472
1473
|
var ErrorEventCoercer;
|
|
1473
1474
|
var init_error_event_coercer = __esm({
|
|
1474
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1475
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
|
|
1475
1476
|
init_utils();
|
|
1476
1477
|
ErrorEventCoercer = class {
|
|
1477
1478
|
constructor() {
|
|
@@ -1493,10 +1494,10 @@ var init_error_event_coercer = __esm({
|
|
|
1493
1494
|
}
|
|
1494
1495
|
});
|
|
1495
1496
|
|
|
1496
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1497
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
|
|
1497
1498
|
var ERROR_TYPES_PATTERN, StringCoercer;
|
|
1498
1499
|
var init_string_coercer = __esm({
|
|
1499
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1500
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
|
|
1500
1501
|
ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
|
|
1501
1502
|
StringCoercer = class {
|
|
1502
1503
|
match(input) {
|
|
@@ -1528,10 +1529,10 @@ var init_string_coercer = __esm({
|
|
|
1528
1529
|
}
|
|
1529
1530
|
});
|
|
1530
1531
|
|
|
1531
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1532
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/types.mjs
|
|
1532
1533
|
var severityLevels;
|
|
1533
1534
|
var init_types2 = __esm({
|
|
1534
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1535
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
|
|
1535
1536
|
severityLevels = [
|
|
1536
1537
|
"fatal",
|
|
1537
1538
|
"error",
|
|
@@ -1543,7 +1544,7 @@ var init_types2 = __esm({
|
|
|
1543
1544
|
}
|
|
1544
1545
|
});
|
|
1545
1546
|
|
|
1546
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1547
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
|
|
1547
1548
|
function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
1548
1549
|
const keys = Object.keys(err);
|
|
1549
1550
|
keys.sort();
|
|
@@ -1558,14 +1559,14 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
|
1558
1559
|
return "";
|
|
1559
1560
|
}
|
|
1560
1561
|
var init_utils2 = __esm({
|
|
1561
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1562
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
|
|
1562
1563
|
}
|
|
1563
1564
|
});
|
|
1564
1565
|
|
|
1565
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1566
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
|
|
1566
1567
|
var ObjectCoercer;
|
|
1567
1568
|
var init_object_coercer = __esm({
|
|
1568
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1569
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
|
|
1569
1570
|
init_utils();
|
|
1570
1571
|
init_types2();
|
|
1571
1572
|
init_utils2();
|
|
@@ -1619,10 +1620,10 @@ var init_object_coercer = __esm({
|
|
|
1619
1620
|
}
|
|
1620
1621
|
});
|
|
1621
1622
|
|
|
1622
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1623
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
|
|
1623
1624
|
var EventCoercer;
|
|
1624
1625
|
var init_event_coercer = __esm({
|
|
1625
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1626
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
|
|
1626
1627
|
init_utils();
|
|
1627
1628
|
init_utils2();
|
|
1628
1629
|
EventCoercer = class {
|
|
@@ -1642,10 +1643,10 @@ var init_event_coercer = __esm({
|
|
|
1642
1643
|
}
|
|
1643
1644
|
});
|
|
1644
1645
|
|
|
1645
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1646
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
|
|
1646
1647
|
var PrimitiveCoercer;
|
|
1647
1648
|
var init_primitive_coercer = __esm({
|
|
1648
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1649
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
|
|
1649
1650
|
init_utils();
|
|
1650
1651
|
PrimitiveCoercer = class {
|
|
1651
1652
|
match(candidate) {
|
|
@@ -1663,10 +1664,10 @@ var init_primitive_coercer = __esm({
|
|
|
1663
1664
|
}
|
|
1664
1665
|
});
|
|
1665
1666
|
|
|
1666
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1667
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
|
|
1667
1668
|
var PromiseRejectionEventCoercer;
|
|
1668
1669
|
var init_promise_rejection_event = __esm({
|
|
1669
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1670
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
|
|
1670
1671
|
init_utils();
|
|
1671
1672
|
PromiseRejectionEventCoercer = class {
|
|
1672
1673
|
match(err) {
|
|
@@ -1703,9 +1704,9 @@ var init_promise_rejection_event = __esm({
|
|
|
1703
1704
|
}
|
|
1704
1705
|
});
|
|
1705
1706
|
|
|
1706
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1707
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
|
|
1707
1708
|
var init_coercers = __esm({
|
|
1708
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1709
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
|
|
1709
1710
|
init_dom_exception_coercer();
|
|
1710
1711
|
init_error_coercer();
|
|
1711
1712
|
init_error_event_coercer();
|
|
@@ -1717,10 +1718,10 @@ var init_coercers = __esm({
|
|
|
1717
1718
|
}
|
|
1718
1719
|
});
|
|
1719
1720
|
|
|
1720
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1721
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/utils.mjs
|
|
1721
1722
|
var ReduceableCache;
|
|
1722
1723
|
var init_utils3 = __esm({
|
|
1723
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1724
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
|
|
1724
1725
|
ReduceableCache = class {
|
|
1725
1726
|
constructor(_maxSize) {
|
|
1726
1727
|
this._maxSize = _maxSize;
|
|
@@ -1746,7 +1747,7 @@ var init_utils3 = __esm({
|
|
|
1746
1747
|
}
|
|
1747
1748
|
});
|
|
1748
1749
|
|
|
1749
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1750
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/exception-steps.mjs
|
|
1750
1751
|
function resolveExceptionStepsConfig(config) {
|
|
1751
1752
|
if (!config) return {
|
|
1752
1753
|
...DEFAULT_EXCEPTION_STEPS_CONFIG
|
|
@@ -1834,7 +1835,7 @@ function getUtf8ByteLength(value) {
|
|
|
1834
1835
|
}
|
|
1835
1836
|
var EXCEPTION_STEP_INTERNAL_FIELDS, RESERVED_EXCEPTION_STEP_KEYS, DEFAULT_EXCEPTION_STEPS_CONFIG, ExceptionStepsBuffer;
|
|
1836
1837
|
var init_exception_steps = __esm({
|
|
1837
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1838
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/exception-steps.mjs"() {
|
|
1838
1839
|
init_utils();
|
|
1839
1840
|
EXCEPTION_STEP_INTERNAL_FIELDS = {
|
|
1840
1841
|
MESSAGE: "$message",
|
|
@@ -1890,7 +1891,7 @@ var init_exception_steps = __esm({
|
|
|
1890
1891
|
}
|
|
1891
1892
|
});
|
|
1892
1893
|
|
|
1893
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1894
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/index.mjs
|
|
1894
1895
|
var error_tracking_exports = {};
|
|
1895
1896
|
__export(error_tracking_exports, {
|
|
1896
1897
|
DEFAULT_EXCEPTION_STEPS_CONFIG: () => DEFAULT_EXCEPTION_STEPS_CONFIG,
|
|
@@ -1920,7 +1921,7 @@ __export(error_tracking_exports, {
|
|
|
1920
1921
|
winjsStackLineParser: () => winjsStackLineParser
|
|
1921
1922
|
});
|
|
1922
1923
|
var init_error_tracking = __esm({
|
|
1923
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1924
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
|
|
1924
1925
|
init_error_properties_builder();
|
|
1925
1926
|
init_parsers();
|
|
1926
1927
|
init_coercers();
|
|
@@ -1929,7 +1930,7 @@ var init_error_tracking = __esm({
|
|
|
1929
1930
|
}
|
|
1930
1931
|
});
|
|
1931
1932
|
|
|
1932
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1933
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
|
|
1933
1934
|
async function logFlushError(err) {
|
|
1934
1935
|
if (err instanceof PostHogFetchHttpError) {
|
|
1935
1936
|
let text = "";
|
|
@@ -1952,7 +1953,7 @@ function isPostHogFetchContentTooLargeError(err) {
|
|
|
1952
1953
|
}
|
|
1953
1954
|
var PostHogFetchHttpError, PostHogFetchNetworkError, PostHogCoreStateless;
|
|
1954
1955
|
var init_posthog_core_stateless = __esm({
|
|
1955
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1956
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
|
|
1956
1957
|
init_eventemitter();
|
|
1957
1958
|
init_featureFlagUtils();
|
|
1958
1959
|
init_gzip();
|
|
@@ -2680,9 +2681,9 @@ var init_posthog_core_stateless = __esm({
|
|
|
2680
2681
|
}
|
|
2681
2682
|
});
|
|
2682
2683
|
|
|
2683
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2684
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/posthog-core.mjs
|
|
2684
2685
|
var init_posthog_core = __esm({
|
|
2685
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2686
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/posthog-core.mjs"() {
|
|
2686
2687
|
init_featureFlagUtils();
|
|
2687
2688
|
init_types();
|
|
2688
2689
|
init_posthog_core_stateless();
|
|
@@ -2691,16 +2692,16 @@ var init_posthog_core = __esm({
|
|
|
2691
2692
|
}
|
|
2692
2693
|
});
|
|
2693
2694
|
|
|
2694
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2695
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/tracing-headers.mjs
|
|
2695
2696
|
var init_tracing_headers = __esm({
|
|
2696
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2697
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/tracing-headers.mjs"() {
|
|
2697
2698
|
init_type_utils();
|
|
2698
2699
|
}
|
|
2699
2700
|
});
|
|
2700
2701
|
|
|
2701
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2702
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/index.mjs
|
|
2702
2703
|
var init_dist = __esm({
|
|
2703
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2704
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/index.mjs"() {
|
|
2704
2705
|
init_featureFlagUtils();
|
|
2705
2706
|
init_gzip();
|
|
2706
2707
|
init_logs_utils();
|
|
@@ -2897,7 +2898,7 @@ function snipLine(line, colno) {
|
|
|
2897
2898
|
}
|
|
2898
2899
|
var LRU_FILE_CONTENTS_CACHE, LRU_FILE_CONTENTS_FS_READ_FAILED, DEFAULT_LINES_OF_CONTEXT, MAX_CONTEXTLINES_COLNO, MAX_CONTEXTLINES_LINENO;
|
|
2899
2900
|
var init_context_lines_node = __esm({
|
|
2900
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
2901
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
|
|
2901
2902
|
init_dist();
|
|
2902
2903
|
LRU_FILE_CONTENTS_CACHE = new error_tracking_exports.ReduceableCache(25);
|
|
2903
2904
|
LRU_FILE_CONTENTS_FS_READ_FAILED = new error_tracking_exports.ReduceableCache(20);
|
|
@@ -2918,22 +2919,22 @@ function createRelativePathModifier(basePath = process.cwd()) {
|
|
|
2918
2919
|
};
|
|
2919
2920
|
}
|
|
2920
2921
|
var init_relative_path_node = __esm({
|
|
2921
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
2922
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/relative-path.node.mjs"() {
|
|
2922
2923
|
}
|
|
2923
2924
|
});
|
|
2924
2925
|
|
|
2925
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
2926
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/version.mjs
|
|
2926
2927
|
var version;
|
|
2927
2928
|
var init_version = __esm({
|
|
2928
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
2929
|
-
version = "5.
|
|
2929
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/version.mjs"() {
|
|
2930
|
+
version = "5.36.4";
|
|
2930
2931
|
}
|
|
2931
2932
|
});
|
|
2932
2933
|
|
|
2933
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
2934
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/types.mjs
|
|
2934
2935
|
var FeatureFlagError2;
|
|
2935
2936
|
var init_types3 = __esm({
|
|
2936
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
2937
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/types.mjs"() {
|
|
2937
2938
|
FeatureFlagError2 = {
|
|
2938
2939
|
ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
|
|
2939
2940
|
FLAG_MISSING: "flag_missing",
|
|
@@ -2943,10 +2944,10 @@ var init_types3 = __esm({
|
|
|
2943
2944
|
}
|
|
2944
2945
|
});
|
|
2945
2946
|
|
|
2946
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
2947
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/feature-flag-evaluations.mjs
|
|
2947
2948
|
var FeatureFlagEvaluations;
|
|
2948
2949
|
var init_feature_flag_evaluations = __esm({
|
|
2949
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
2950
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/feature-flag-evaluations.mjs"() {
|
|
2950
2951
|
init_types3();
|
|
2951
2952
|
FeatureFlagEvaluations = class _FeatureFlagEvaluations {
|
|
2952
2953
|
constructor(init2) {
|
|
@@ -3066,7 +3067,7 @@ var init_feature_flag_evaluations = __esm({
|
|
|
3066
3067
|
}
|
|
3067
3068
|
});
|
|
3068
3069
|
|
|
3069
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
3070
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
|
|
3070
3071
|
async function hashSHA1(text) {
|
|
3071
3072
|
const subtle = globalThis.crypto?.subtle;
|
|
3072
3073
|
if (!subtle) throw new Error("SubtleCrypto API not available");
|
|
@@ -3075,11 +3076,11 @@ async function hashSHA1(text) {
|
|
|
3075
3076
|
return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
3076
3077
|
}
|
|
3077
3078
|
var init_crypto = __esm({
|
|
3078
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
3079
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
|
|
3079
3080
|
}
|
|
3080
3081
|
});
|
|
3081
3082
|
|
|
3082
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
3083
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
|
|
3083
3084
|
async function _hash(key, bucketingValue, salt = "") {
|
|
3084
3085
|
const hashString = await hashSHA1(`${key}.${bucketingValue}${salt}`);
|
|
3085
3086
|
return parseInt(hashString.slice(0, 15), 16) / LONG_SCALE;
|
|
@@ -3404,7 +3405,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
|
|
|
3404
3405
|
}
|
|
3405
3406
|
var SIXTY_SECONDS, LONG_SCALE, NULL_VALUES_ALLOWED_OPERATORS, ClientError, InconclusiveMatchError, RequiresServerEvaluation, FeatureFlagsPoller;
|
|
3406
3407
|
var init_feature_flags = __esm({
|
|
3407
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
3408
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
|
|
3408
3409
|
init_dist();
|
|
3409
3410
|
init_crypto();
|
|
3410
3411
|
SIXTY_SECONDS = 6e4;
|
|
@@ -3877,7 +3878,7 @@ var init_feature_flags = __esm({
|
|
|
3877
3878
|
}
|
|
3878
3879
|
});
|
|
3879
3880
|
|
|
3880
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
3881
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
|
|
3881
3882
|
function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
|
|
3882
3883
|
let calledFatalError = false;
|
|
3883
3884
|
return Object.assign((error) => {
|
|
@@ -3909,14 +3910,14 @@ function addUnhandledRejectionListener(captureFn) {
|
|
|
3909
3910
|
}));
|
|
3910
3911
|
}
|
|
3911
3912
|
var init_autocapture = __esm({
|
|
3912
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
3913
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
|
|
3913
3914
|
}
|
|
3914
3915
|
});
|
|
3915
3916
|
|
|
3916
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
3917
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
|
|
3917
3918
|
var SHUTDOWN_TIMEOUT, ErrorTracking;
|
|
3918
3919
|
var init_error_tracking2 = __esm({
|
|
3919
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
3920
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
|
|
3920
3921
|
init_autocapture();
|
|
3921
3922
|
init_dist();
|
|
3922
3923
|
SHUTDOWN_TIMEOUT = 2e3;
|
|
@@ -3987,10 +3988,10 @@ var init_error_tracking2 = __esm({
|
|
|
3987
3988
|
}
|
|
3988
3989
|
});
|
|
3989
3990
|
|
|
3990
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
3991
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/storage-memory.mjs
|
|
3991
3992
|
var PostHogMemoryStorage;
|
|
3992
3993
|
var init_storage_memory = __esm({
|
|
3993
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
3994
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/storage-memory.mjs"() {
|
|
3994
3995
|
PostHogMemoryStorage = class {
|
|
3995
3996
|
getProperty(key) {
|
|
3996
3997
|
return this._memoryStorage[key];
|
|
@@ -4005,7 +4006,7 @@ var init_storage_memory = __esm({
|
|
|
4005
4006
|
}
|
|
4006
4007
|
});
|
|
4007
4008
|
|
|
4008
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
4009
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/client.mjs
|
|
4009
4010
|
function emitDeprecationWarningOnce(id, message2) {
|
|
4010
4011
|
if (_emittedDeprecations.has(id)) return;
|
|
4011
4012
|
_emittedDeprecations.add(id);
|
|
@@ -4032,7 +4033,7 @@ function buildFlagEventProperties(flagValues) {
|
|
|
4032
4033
|
}
|
|
4033
4034
|
var MINIMUM_POLLING_INTERVAL, THIRTY_SECONDS, MAX_CACHE_SIZE, WAITUNTIL_DEBOUNCE_MS, WAITUNTIL_MAX_WAIT_MS, DEFAULT_NODE_HOST, _emittedDeprecations, PostHogBackendClient;
|
|
4034
4035
|
var init_client = __esm({
|
|
4035
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
4036
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/client.mjs"() {
|
|
4036
4037
|
init_version();
|
|
4037
4038
|
init_dist();
|
|
4038
4039
|
init_types3();
|
|
@@ -4061,7 +4062,7 @@ var init_client = __esm({
|
|
|
4061
4062
|
this.options.featureFlagsPollingInterval = "number" == typeof normalizedOptions.featureFlagsPollingInterval ? Math.max(normalizedOptions.featureFlagsPollingInterval, MINIMUM_POLLING_INTERVAL) : THIRTY_SECONDS;
|
|
4062
4063
|
if ("number" == typeof normalizedOptions.waitUntilDebounceMs) this.options.waitUntilDebounceMs = Math.max(normalizedOptions.waitUntilDebounceMs, 0);
|
|
4063
4064
|
if ("number" == typeof normalizedOptions.waitUntilMaxWaitMs) this.options.waitUntilMaxWaitMs = Math.max(normalizedOptions.waitUntilMaxWaitMs, 0);
|
|
4064
|
-
if (normalizedOptions.personalApiKey) {
|
|
4065
|
+
if (!this.disabled && normalizedOptions.personalApiKey) {
|
|
4065
4066
|
if (normalizedOptions.personalApiKey.includes("phc_")) throw new Error('Your Personal API key is invalid. These keys are prefixed with "phx_" and can be created in PostHog project settings.');
|
|
4066
4067
|
const shouldEnableLocalEvaluation = false !== normalizedOptions.enableLocalEvaluation;
|
|
4067
4068
|
if (shouldEnableLocalEvaluation) this.featureFlagsPoller = new FeatureFlagsPoller({
|
|
@@ -4162,6 +4163,11 @@ var init_client = __esm({
|
|
|
4162
4163
|
getCustomUserAgent() {
|
|
4163
4164
|
return `${this.getLibraryId()}/${this.getLibraryVersion()}`;
|
|
4164
4165
|
}
|
|
4166
|
+
getCommonEventProperties() {
|
|
4167
|
+
const commonProperties = super.getCommonEventProperties();
|
|
4168
|
+
if (this.options.isServer ?? true) commonProperties.$is_server = true;
|
|
4169
|
+
return commonProperties;
|
|
4170
|
+
}
|
|
4165
4171
|
enable() {
|
|
4166
4172
|
return super.optIn();
|
|
4167
4173
|
}
|
|
@@ -4259,6 +4265,7 @@ var init_client = __esm({
|
|
|
4259
4265
|
};
|
|
4260
4266
|
}
|
|
4261
4267
|
async _getFeatureFlagResult(key, distinctId, options = {}, matchValue) {
|
|
4268
|
+
if (this.disabled) return void this._logger.warn("The client is disabled");
|
|
4262
4269
|
const sendFeatureFlagEvents = options.sendFeatureFlagEvents ?? true;
|
|
4263
4270
|
if (void 0 !== this._flagOverrides && key in this._flagOverrides) {
|
|
4264
4271
|
const overrideValue = this._flagOverrides[key];
|
|
@@ -4406,6 +4413,7 @@ var init_client = __esm({
|
|
|
4406
4413
|
});
|
|
4407
4414
|
}
|
|
4408
4415
|
async getRemoteConfigPayload(flagKey) {
|
|
4416
|
+
if (this.disabled) return void this._logger.warn("The client is disabled");
|
|
4409
4417
|
if (!this.options.personalApiKey) throw new Error("Personal API key is required for remote config payload decryption");
|
|
4410
4418
|
const response = await this._requestRemoteConfigPayload(flagKey);
|
|
4411
4419
|
if (!response) return;
|
|
@@ -4445,6 +4453,13 @@ var init_client = __esm({
|
|
|
4445
4453
|
featureFlagPayloads: {}
|
|
4446
4454
|
};
|
|
4447
4455
|
}
|
|
4456
|
+
if (this.disabled) {
|
|
4457
|
+
this._logger.warn("The client is disabled");
|
|
4458
|
+
return {
|
|
4459
|
+
featureFlags: {},
|
|
4460
|
+
featureFlagPayloads: {}
|
|
4461
|
+
};
|
|
4462
|
+
}
|
|
4448
4463
|
const { groups, disableGeoip, flagKeys } = resolvedOptions || {};
|
|
4449
4464
|
let { onlyEvaluateLocally, personProperties, groupProperties } = resolvedOptions || {};
|
|
4450
4465
|
const adjustedProperties = this.addLocalPersonAndGroupProperties(resolvedDistinctId, groups, personProperties, groupProperties);
|
|
@@ -4495,6 +4510,14 @@ var init_client = __esm({
|
|
|
4495
4510
|
flags: {}
|
|
4496
4511
|
});
|
|
4497
4512
|
}
|
|
4513
|
+
if (this.disabled) {
|
|
4514
|
+
this._logger.warn("The client is disabled");
|
|
4515
|
+
return new FeatureFlagEvaluations({
|
|
4516
|
+
host: this._getFeatureFlagEvaluationsHost(),
|
|
4517
|
+
distinctId: resolvedDistinctId,
|
|
4518
|
+
flags: {}
|
|
4519
|
+
});
|
|
4520
|
+
}
|
|
4498
4521
|
const { groups, disableGeoip, flagKeys } = resolvedOptions || {};
|
|
4499
4522
|
let { onlyEvaluateLocally, personProperties, groupProperties } = resolvedOptions || {};
|
|
4500
4523
|
const adjustedProperties = this.addLocalPersonAndGroupProperties(resolvedDistinctId, groups, personProperties, groupProperties);
|
|
@@ -4692,7 +4715,7 @@ var init_client = __esm({
|
|
|
4692
4715
|
}
|
|
4693
4716
|
}
|
|
4694
4717
|
async _requestRemoteConfigPayload(flagKey) {
|
|
4695
|
-
if (!this.options.personalApiKey) return;
|
|
4718
|
+
if (this.disabled || !this.apiKey || !this.options.personalApiKey) return;
|
|
4696
4719
|
const url = `${this.host}/api/projects/@current/feature_flags/${flagKey}/remote_config?token=${encodeURIComponent(this.apiKey)}`;
|
|
4697
4720
|
const options = {
|
|
4698
4721
|
method: "GET",
|
|
@@ -4737,6 +4760,7 @@ var init_client = __esm({
|
|
|
4737
4760
|
};
|
|
4738
4761
|
}
|
|
4739
4762
|
async getFeatureFlagsForEvent(distinctId, groups, disableGeoip, sendFeatureFlagsOptions) {
|
|
4763
|
+
if (this.disabled || !this.apiKey) return void this._logger.warn("The client is disabled");
|
|
4740
4764
|
const finalPersonProperties = sendFeatureFlagsOptions?.personProperties || {};
|
|
4741
4765
|
const finalGroupProperties = sendFeatureFlagsOptions?.groupProperties || {};
|
|
4742
4766
|
const flagKeys = sendFeatureFlagsOptions?.flagKeys;
|
|
@@ -4903,7 +4927,7 @@ var init_client = __esm({
|
|
|
4903
4927
|
});
|
|
4904
4928
|
var PostHogContext;
|
|
4905
4929
|
var init_context = __esm({
|
|
4906
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
4930
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
|
|
4907
4931
|
PostHogContext = class {
|
|
4908
4932
|
constructor() {
|
|
4909
4933
|
this.storage = new async_hooks.AsyncLocalStorage();
|
|
@@ -4933,7 +4957,7 @@ var init_context = __esm({
|
|
|
4933
4957
|
}
|
|
4934
4958
|
});
|
|
4935
4959
|
|
|
4936
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
4960
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
|
|
4937
4961
|
function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
|
|
4938
4962
|
"error"
|
|
4939
4963
|
], sendExceptionsToPostHog = true } = {}) {
|
|
@@ -4989,7 +5013,7 @@ function sentryIntegration(_posthog, options) {
|
|
|
4989
5013
|
}
|
|
4990
5014
|
var NAME, PostHogSentryIntegration;
|
|
4991
5015
|
var init_sentry_integration = __esm({
|
|
4992
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
5016
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
|
|
4993
5017
|
NAME = "posthog-node";
|
|
4994
5018
|
PostHogSentryIntegration = class {
|
|
4995
5019
|
static #_ = this.POSTHOG_ID_TAG = "posthog_distinct_id";
|
|
@@ -5011,7 +5035,7 @@ var init_sentry_integration = __esm({
|
|
|
5011
5035
|
}
|
|
5012
5036
|
});
|
|
5013
5037
|
|
|
5014
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
5038
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/tracing-headers.mjs
|
|
5015
5039
|
function addProperty(properties, key, value) {
|
|
5016
5040
|
if (null != value && "" !== value) properties[key] = value;
|
|
5017
5041
|
}
|
|
@@ -5046,7 +5070,7 @@ function getPostHogTracingHeaderValues(headers) {
|
|
|
5046
5070
|
}
|
|
5047
5071
|
var TRACING_HEADER_MAX_LENGTH, TRACING_HEADER_CONTROL_CHARS_REGEX, POSTHOG_TRACING_HEADERS;
|
|
5048
5072
|
var init_tracing_headers2 = __esm({
|
|
5049
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
5073
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/tracing-headers.mjs"() {
|
|
5050
5074
|
TRACING_HEADER_MAX_LENGTH = 1e3;
|
|
5051
5075
|
TRACING_HEADER_CONTROL_CHARS_REGEX = /[\x00-\x1f\x7f-\x9f]/g;
|
|
5052
5076
|
POSTHOG_TRACING_HEADERS = {
|
|
@@ -5056,7 +5080,7 @@ var init_tracing_headers2 = __esm({
|
|
|
5056
5080
|
}
|
|
5057
5081
|
});
|
|
5058
5082
|
|
|
5059
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
5083
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/express.mjs
|
|
5060
5084
|
function getClientIp(req) {
|
|
5061
5085
|
const forwarded = getFirstHeaderValue(req.headers["x-forwarded-for"]);
|
|
5062
5086
|
if (forwarded) {
|
|
@@ -5120,15 +5144,15 @@ function posthogErrorHandler(posthog) {
|
|
|
5120
5144
|
};
|
|
5121
5145
|
}
|
|
5122
5146
|
var init_express = __esm({
|
|
5123
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
5147
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/express.mjs"() {
|
|
5124
5148
|
init_error_tracking2();
|
|
5125
5149
|
init_tracing_headers2();
|
|
5126
5150
|
}
|
|
5127
5151
|
});
|
|
5128
5152
|
|
|
5129
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
5153
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/exports.mjs
|
|
5130
5154
|
var init_exports = __esm({
|
|
5131
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
5155
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/exports.mjs"() {
|
|
5132
5156
|
init_feature_flag_evaluations();
|
|
5133
5157
|
init_dist();
|
|
5134
5158
|
init_sentry_integration();
|
|
@@ -5137,7 +5161,7 @@ var init_exports = __esm({
|
|
|
5137
5161
|
}
|
|
5138
5162
|
});
|
|
5139
5163
|
|
|
5140
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
5164
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
|
|
5141
5165
|
var index_node_exports = {};
|
|
5142
5166
|
__export(index_node_exports, {
|
|
5143
5167
|
FeatureFlagError: () => FeatureFlagError,
|
|
@@ -5158,7 +5182,7 @@ __export(index_node_exports, {
|
|
|
5158
5182
|
});
|
|
5159
5183
|
var PostHog;
|
|
5160
5184
|
var init_index_node = __esm({
|
|
5161
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
5185
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
|
|
5162
5186
|
init_module_node();
|
|
5163
5187
|
init_context_lines_node();
|
|
5164
5188
|
init_relative_path_node();
|
|
@@ -9070,7 +9094,7 @@ function sleep(timeoutInMs) {
|
|
|
9070
9094
|
return setTimeout(resolve, timeoutInMs);
|
|
9071
9095
|
});
|
|
9072
9096
|
}
|
|
9073
|
-
function invokeCallback(ctx, callback,
|
|
9097
|
+
function invokeCallback(ctx, callback, delay2) {
|
|
9074
9098
|
var cb = function() {
|
|
9075
9099
|
try {
|
|
9076
9100
|
return Promise.resolve(callback(ctx));
|
|
@@ -9078,7 +9102,7 @@ function invokeCallback(ctx, callback, delay) {
|
|
|
9078
9102
|
return Promise.reject(err);
|
|
9079
9103
|
}
|
|
9080
9104
|
};
|
|
9081
|
-
return sleep(
|
|
9105
|
+
return sleep(delay2).then(function() {
|
|
9082
9106
|
return pTimeout(cb(), 1e3);
|
|
9083
9107
|
}).catch(function(err) {
|
|
9084
9108
|
ctx === null || ctx === void 0 ? void 0 : ctx.log("warn", "Callback Error", { error: err });
|
|
@@ -9284,8 +9308,8 @@ var init_priority_queue = __esm({
|
|
|
9284
9308
|
}
|
|
9285
9309
|
return this.scheduleItem(item, timeout);
|
|
9286
9310
|
};
|
|
9287
|
-
PriorityQueue2.prototype.pushWithDelay = function(item,
|
|
9288
|
-
return this.scheduleItem(item,
|
|
9311
|
+
PriorityQueue2.prototype.pushWithDelay = function(item, delay2) {
|
|
9312
|
+
return this.scheduleItem(item, delay2);
|
|
9289
9313
|
};
|
|
9290
9314
|
PriorityQueue2.prototype.scheduleItem = function(item, timeout) {
|
|
9291
9315
|
var _this = this;
|
|
@@ -12471,10 +12495,10 @@ var init_esm4 = __esm({
|
|
|
12471
12495
|
}
|
|
12472
12496
|
});
|
|
12473
12497
|
|
|
12474
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12498
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
|
|
12475
12499
|
var IdentifyOperation, SpecialEventType;
|
|
12476
12500
|
var init_event = __esm({
|
|
12477
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12501
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
|
|
12478
12502
|
(function(IdentifyOperation3) {
|
|
12479
12503
|
IdentifyOperation3["SET"] = "$set";
|
|
12480
12504
|
IdentifyOperation3["SET_ONCE"] = "$setOnce";
|
|
@@ -12495,10 +12519,10 @@ var init_event = __esm({
|
|
|
12495
12519
|
}
|
|
12496
12520
|
});
|
|
12497
12521
|
|
|
12498
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12522
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
|
|
12499
12523
|
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;
|
|
12500
12524
|
var init_constants = __esm({
|
|
12501
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12525
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
|
|
12502
12526
|
UNSET_VALUE = "-";
|
|
12503
12527
|
AMPLITUDE_PREFIX = "AMP";
|
|
12504
12528
|
STORAGE_PREFIX = "".concat(AMPLITUDE_PREFIX, "_unsent");
|
|
@@ -12510,10 +12534,10 @@ var init_constants = __esm({
|
|
|
12510
12534
|
}
|
|
12511
12535
|
});
|
|
12512
12536
|
|
|
12513
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12537
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
|
|
12514
12538
|
var MAX_PROPERTY_KEYS, isValidObject, isValidProperties;
|
|
12515
12539
|
var init_valid_properties = __esm({
|
|
12516
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12540
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
|
|
12517
12541
|
init_tslib_es6();
|
|
12518
12542
|
MAX_PROPERTY_KEYS = 1e3;
|
|
12519
12543
|
isValidObject = function(properties) {
|
|
@@ -12568,10 +12592,10 @@ var init_valid_properties = __esm({
|
|
|
12568
12592
|
}
|
|
12569
12593
|
});
|
|
12570
12594
|
|
|
12571
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12595
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/identify.js
|
|
12572
12596
|
var Identify, IdentifyOperation2, OrderedIdentifyOperations;
|
|
12573
12597
|
var init_identify = __esm({
|
|
12574
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12598
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
|
|
12575
12599
|
init_tslib_es6();
|
|
12576
12600
|
init_constants();
|
|
12577
12601
|
init_valid_properties();
|
|
@@ -12682,10 +12706,10 @@ var init_identify = __esm({
|
|
|
12682
12706
|
}
|
|
12683
12707
|
});
|
|
12684
12708
|
|
|
12685
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12709
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
|
|
12686
12710
|
var SUCCESS_MESSAGE, UNEXPECTED_ERROR_MESSAGE, MAX_RETRIES_EXCEEDED_MESSAGE, OPT_OUT_MESSAGE, MISSING_API_KEY_MESSAGE, INVALID_API_KEY, CLIENT_NOT_INITIALIZED;
|
|
12687
12711
|
var init_messages = __esm({
|
|
12688
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12712
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
|
|
12689
12713
|
SUCCESS_MESSAGE = "Event tracked successfully";
|
|
12690
12714
|
UNEXPECTED_ERROR_MESSAGE = "Unexpected error occurred";
|
|
12691
12715
|
MAX_RETRIES_EXCEEDED_MESSAGE = "Event rejected due to exceeded retry count";
|
|
@@ -12696,10 +12720,10 @@ var init_messages = __esm({
|
|
|
12696
12720
|
}
|
|
12697
12721
|
});
|
|
12698
12722
|
|
|
12699
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12723
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
|
|
12700
12724
|
var Status;
|
|
12701
12725
|
var init_status = __esm({
|
|
12702
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12726
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
|
|
12703
12727
|
(function(Status2) {
|
|
12704
12728
|
Status2["Unknown"] = "unknown";
|
|
12705
12729
|
Status2["Skipped"] = "skipped";
|
|
@@ -12714,10 +12738,10 @@ var init_status = __esm({
|
|
|
12714
12738
|
}
|
|
12715
12739
|
});
|
|
12716
12740
|
|
|
12717
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12741
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
|
|
12718
12742
|
var buildResult;
|
|
12719
12743
|
var init_result_builder = __esm({
|
|
12720
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12744
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
|
|
12721
12745
|
init_status();
|
|
12722
12746
|
buildResult = function(event, code, message2) {
|
|
12723
12747
|
if (code === void 0) {
|
|
@@ -12731,10 +12755,10 @@ var init_result_builder = __esm({
|
|
|
12731
12755
|
}
|
|
12732
12756
|
});
|
|
12733
12757
|
|
|
12734
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12758
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
|
|
12735
12759
|
var getGlobalScope;
|
|
12736
12760
|
var init_global_scope = __esm({
|
|
12737
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12761
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
|
|
12738
12762
|
getGlobalScope = function() {
|
|
12739
12763
|
var ampIntegrationContextName = "ampIntegrationContext";
|
|
12740
12764
|
if (typeof globalThis !== "undefined" && typeof globalThis[ampIntegrationContextName] !== "undefined") {
|
|
@@ -12757,10 +12781,10 @@ var init_global_scope = __esm({
|
|
|
12757
12781
|
}
|
|
12758
12782
|
});
|
|
12759
12783
|
|
|
12760
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12784
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
|
|
12761
12785
|
var legacyUUID, hex, UUID2;
|
|
12762
12786
|
var init_uuid2 = __esm({
|
|
12763
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12787
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
|
|
12764
12788
|
init_tslib_es6();
|
|
12765
12789
|
init_global_scope();
|
|
12766
12790
|
legacyUUID = function(a) {
|
|
@@ -12804,10 +12828,10 @@ var init_uuid2 = __esm({
|
|
|
12804
12828
|
}
|
|
12805
12829
|
});
|
|
12806
12830
|
|
|
12807
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12831
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
|
|
12808
12832
|
var Timeline;
|
|
12809
12833
|
var init_timeline = __esm({
|
|
12810
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
12834
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
|
|
12811
12835
|
init_tslib_es6();
|
|
12812
12836
|
init_result_builder();
|
|
12813
12837
|
init_uuid2();
|
|
@@ -13181,10 +13205,10 @@ var init_timeline = __esm({
|
|
|
13181
13205
|
}
|
|
13182
13206
|
});
|
|
13183
13207
|
|
|
13184
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13208
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
|
|
13185
13209
|
var createTrackEvent, createIdentifyEvent, createGroupIdentifyEvent, createGroupEvent, createRevenueEvent;
|
|
13186
13210
|
var init_event_builder = __esm({
|
|
13187
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13211
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
|
|
13188
13212
|
init_tslib_es6();
|
|
13189
13213
|
init_identify();
|
|
13190
13214
|
init_event();
|
|
@@ -13214,10 +13238,10 @@ var init_event_builder = __esm({
|
|
|
13214
13238
|
}
|
|
13215
13239
|
});
|
|
13216
13240
|
|
|
13217
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13241
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
|
|
13218
13242
|
var returnWrapper;
|
|
13219
13243
|
var init_return_wrapper = __esm({
|
|
13220
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13244
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
|
|
13221
13245
|
returnWrapper = function(awaitable) {
|
|
13222
13246
|
return {
|
|
13223
13247
|
promise: awaitable || Promise.resolve()
|
|
@@ -13226,10 +13250,10 @@ var init_return_wrapper = __esm({
|
|
|
13226
13250
|
}
|
|
13227
13251
|
});
|
|
13228
13252
|
|
|
13229
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13253
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
|
|
13230
13254
|
var AmplitudeCore;
|
|
13231
13255
|
var init_core_client = __esm({
|
|
13232
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13256
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
|
|
13233
13257
|
init_tslib_es6();
|
|
13234
13258
|
init_event();
|
|
13235
13259
|
init_identify();
|
|
@@ -13501,10 +13525,10 @@ var init_core_client = __esm({
|
|
|
13501
13525
|
}
|
|
13502
13526
|
});
|
|
13503
13527
|
|
|
13504
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13528
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
|
|
13505
13529
|
var Revenue, RevenueProperty;
|
|
13506
13530
|
var init_revenue = __esm({
|
|
13507
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13531
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
|
|
13508
13532
|
init_tslib_es6();
|
|
13509
13533
|
init_valid_properties();
|
|
13510
13534
|
Revenue = /** @class */
|
|
@@ -13585,10 +13609,10 @@ var init_revenue = __esm({
|
|
|
13585
13609
|
}
|
|
13586
13610
|
});
|
|
13587
13611
|
|
|
13588
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13612
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
|
|
13589
13613
|
var chunk;
|
|
13590
13614
|
var init_chunk = __esm({
|
|
13591
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13615
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
|
|
13592
13616
|
chunk = function(arr, size) {
|
|
13593
13617
|
var chunkSize = Math.max(size, 1);
|
|
13594
13618
|
return arr.reduce(function(chunks, element, index) {
|
|
@@ -13603,10 +13627,10 @@ var init_chunk = __esm({
|
|
|
13603
13627
|
}
|
|
13604
13628
|
});
|
|
13605
13629
|
|
|
13606
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13630
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
|
|
13607
13631
|
var LogLevel;
|
|
13608
13632
|
var init_loglevel = __esm({
|
|
13609
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13633
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
|
|
13610
13634
|
(function(LogLevel2) {
|
|
13611
13635
|
LogLevel2[LogLevel2["None"] = 0] = "None";
|
|
13612
13636
|
LogLevel2[LogLevel2["Error"] = 1] = "Error";
|
|
@@ -13617,10 +13641,10 @@ var init_loglevel = __esm({
|
|
|
13617
13641
|
}
|
|
13618
13642
|
});
|
|
13619
13643
|
|
|
13620
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13644
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/logger.js
|
|
13621
13645
|
var PREFIX, Logger;
|
|
13622
13646
|
var init_logger3 = __esm({
|
|
13623
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13647
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
|
|
13624
13648
|
init_loglevel();
|
|
13625
13649
|
PREFIX = "Amplitude Logger ";
|
|
13626
13650
|
Logger = /** @class */
|
|
@@ -13682,10 +13706,10 @@ var init_logger3 = __esm({
|
|
|
13682
13706
|
}
|
|
13683
13707
|
});
|
|
13684
13708
|
|
|
13685
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13709
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/config.js
|
|
13686
13710
|
var getDefaultConfig, Config, getServerUrl, createServerConfig, RequestMetadata;
|
|
13687
13711
|
var init_config = __esm({
|
|
13688
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13712
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
|
|
13689
13713
|
init_constants();
|
|
13690
13714
|
init_logger3();
|
|
13691
13715
|
init_loglevel();
|
|
@@ -13786,19 +13810,19 @@ var init_config = __esm({
|
|
|
13786
13810
|
}
|
|
13787
13811
|
});
|
|
13788
13812
|
|
|
13789
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13813
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
|
|
13790
13814
|
function isSuccessStatusCode(code) {
|
|
13791
13815
|
return code >= 200 && code < 300;
|
|
13792
13816
|
}
|
|
13793
13817
|
var init_status_code = __esm({
|
|
13794
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13818
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
|
|
13795
13819
|
}
|
|
13796
13820
|
});
|
|
13797
13821
|
|
|
13798
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13822
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
|
|
13799
13823
|
var getStacktrace, getClientLogConfig, getValueByStringPath, getClientStates, debugWrapper;
|
|
13800
13824
|
var init_debug = __esm({
|
|
13801
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13825
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
|
|
13802
13826
|
init_tslib_es6();
|
|
13803
13827
|
init_loglevel();
|
|
13804
13828
|
getStacktrace = function(ignoreDepth) {
|
|
@@ -13916,7 +13940,7 @@ var init_debug = __esm({
|
|
|
13916
13940
|
}
|
|
13917
13941
|
});
|
|
13918
13942
|
|
|
13919
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13943
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
|
|
13920
13944
|
function getErrorMessage(error) {
|
|
13921
13945
|
if (error instanceof Error)
|
|
13922
13946
|
return error.message;
|
|
@@ -13934,7 +13958,7 @@ function getResponseBodyString(res) {
|
|
|
13934
13958
|
}
|
|
13935
13959
|
var DEFAULT_AMPLITUDE_SERVER_URLS, shouldCompressUploadBodyForRequest, Destination;
|
|
13936
13960
|
var init_destination = __esm({
|
|
13937
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
13961
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
|
|
13938
13962
|
init_tslib_es6();
|
|
13939
13963
|
init_status();
|
|
13940
13964
|
init_messages();
|
|
@@ -14341,10 +14365,10 @@ var init_destination = __esm({
|
|
|
14341
14365
|
}
|
|
14342
14366
|
});
|
|
14343
14367
|
|
|
14344
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
14368
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
|
|
14345
14369
|
var BaseTransport;
|
|
14346
14370
|
var init_base2 = __esm({
|
|
14347
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
14371
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
|
|
14348
14372
|
init_status();
|
|
14349
14373
|
init_status_code();
|
|
14350
14374
|
BaseTransport = /** @class */
|
|
@@ -14446,10 +14470,10 @@ var init_base2 = __esm({
|
|
|
14446
14470
|
}
|
|
14447
14471
|
});
|
|
14448
14472
|
|
|
14449
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
14473
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
|
|
14450
14474
|
var ServerZone;
|
|
14451
14475
|
var init_server_zone = __esm({
|
|
14452
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
14476
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
|
|
14453
14477
|
(function(ServerZone2) {
|
|
14454
14478
|
ServerZone2["US"] = "US";
|
|
14455
14479
|
ServerZone2["EU"] = "EU";
|
|
@@ -14458,17 +14482,17 @@ var init_server_zone = __esm({
|
|
|
14458
14482
|
}
|
|
14459
14483
|
});
|
|
14460
14484
|
|
|
14461
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
14485
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
|
|
14462
14486
|
var OfflineDisabled;
|
|
14463
14487
|
var init_offline = __esm({
|
|
14464
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
14488
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
|
|
14465
14489
|
OfflineDisabled = null;
|
|
14466
14490
|
}
|
|
14467
14491
|
});
|
|
14468
14492
|
|
|
14469
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
14493
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/index.js
|
|
14470
14494
|
var init_esm5 = __esm({
|
|
14471
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
14495
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
|
|
14472
14496
|
init_core_client();
|
|
14473
14497
|
init_identify();
|
|
14474
14498
|
init_revenue();
|
|
@@ -14485,18 +14509,18 @@ var init_esm5 = __esm({
|
|
|
14485
14509
|
}
|
|
14486
14510
|
});
|
|
14487
14511
|
|
|
14488
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
14512
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/version.js
|
|
14489
14513
|
var VERSION;
|
|
14490
14514
|
var init_version3 = __esm({
|
|
14491
|
-
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
14492
|
-
VERSION = "1.5.
|
|
14515
|
+
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
|
|
14516
|
+
VERSION = "1.5.59";
|
|
14493
14517
|
}
|
|
14494
14518
|
});
|
|
14495
14519
|
|
|
14496
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
14520
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
|
|
14497
14521
|
var Context2;
|
|
14498
14522
|
var init_context4 = __esm({
|
|
14499
|
-
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
14523
|
+
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
|
|
14500
14524
|
init_tslib_es6();
|
|
14501
14525
|
init_esm5();
|
|
14502
14526
|
init_version3();
|
|
@@ -14531,7 +14555,7 @@ var init_context4 = __esm({
|
|
|
14531
14555
|
});
|
|
14532
14556
|
var Http;
|
|
14533
14557
|
var init_http = __esm({
|
|
14534
|
-
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
14558
|
+
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
|
|
14535
14559
|
init_tslib_es6();
|
|
14536
14560
|
init_esm5();
|
|
14537
14561
|
Http = /** @class */
|
|
@@ -14593,10 +14617,10 @@ var init_http = __esm({
|
|
|
14593
14617
|
}
|
|
14594
14618
|
});
|
|
14595
14619
|
|
|
14596
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
14620
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/config.js
|
|
14597
14621
|
var NodeConfig, useNodeConfig;
|
|
14598
14622
|
var init_config2 = __esm({
|
|
14599
|
-
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
14623
|
+
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
|
|
14600
14624
|
init_tslib_es6();
|
|
14601
14625
|
init_esm5();
|
|
14602
14626
|
init_http();
|
|
@@ -14614,10 +14638,10 @@ var init_config2 = __esm({
|
|
|
14614
14638
|
}
|
|
14615
14639
|
});
|
|
14616
14640
|
|
|
14617
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
14641
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
|
|
14618
14642
|
var AmplitudeNode, createInstance, node_client_default;
|
|
14619
14643
|
var init_node_client = __esm({
|
|
14620
|
-
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
14644
|
+
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
|
|
14621
14645
|
init_tslib_es6();
|
|
14622
14646
|
init_esm5();
|
|
14623
14647
|
init_context4();
|
|
@@ -14691,7 +14715,7 @@ var init_node_client = __esm({
|
|
|
14691
14715
|
}
|
|
14692
14716
|
});
|
|
14693
14717
|
|
|
14694
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
14718
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/types.js
|
|
14695
14719
|
var types_exports = {};
|
|
14696
14720
|
__export(types_exports, {
|
|
14697
14721
|
IdentifyOperation: () => IdentifyOperation,
|
|
@@ -14702,12 +14726,12 @@ __export(types_exports, {
|
|
|
14702
14726
|
SpecialEventType: () => SpecialEventType
|
|
14703
14727
|
});
|
|
14704
14728
|
var init_types4 = __esm({
|
|
14705
|
-
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
14729
|
+
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
|
|
14706
14730
|
init_esm5();
|
|
14707
14731
|
}
|
|
14708
14732
|
});
|
|
14709
14733
|
|
|
14710
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
14734
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/index.js
|
|
14711
14735
|
var esm_exports2 = {};
|
|
14712
14736
|
__export(esm_exports2, {
|
|
14713
14737
|
Identify: () => Identify,
|
|
@@ -14728,7 +14752,7 @@ __export(esm_exports2, {
|
|
|
14728
14752
|
});
|
|
14729
14753
|
var add, groupIdentify, identify, init, logEvent, remove, revenue, setGroup, setOptOut, track, flush;
|
|
14730
14754
|
var init_esm6 = __esm({
|
|
14731
|
-
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
14755
|
+
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
|
|
14732
14756
|
init_node_client();
|
|
14733
14757
|
init_node_client();
|
|
14734
14758
|
init_esm5();
|
|
@@ -16127,6 +16151,127 @@ function isProviderRetriable(error) {
|
|
|
16127
16151
|
return true;
|
|
16128
16152
|
}
|
|
16129
16153
|
|
|
16154
|
+
// src/webhook-delivery.ts
|
|
16155
|
+
function delay(ms) {
|
|
16156
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
16157
|
+
}
|
|
16158
|
+
async function postJsonWithRetry(client, url, payload, options = {}) {
|
|
16159
|
+
const maxRetries = options.maxRetries ?? 3;
|
|
16160
|
+
const retryDelayMs = options.retryDelayMs ?? 1e3;
|
|
16161
|
+
const method = options.method ?? "POST";
|
|
16162
|
+
const label = options.label ?? "Webhook";
|
|
16163
|
+
let lastError;
|
|
16164
|
+
for (let attempt2 = 1; attempt2 <= maxRetries; attempt2++) {
|
|
16165
|
+
const response = await client.request(url, {
|
|
16166
|
+
method,
|
|
16167
|
+
headers: {
|
|
16168
|
+
"Content-Type": "application/json",
|
|
16169
|
+
...options.headers
|
|
16170
|
+
},
|
|
16171
|
+
body: JSON.stringify(payload)
|
|
16172
|
+
});
|
|
16173
|
+
if (response.ok) return;
|
|
16174
|
+
if (response.kind === "network") {
|
|
16175
|
+
lastError = new SubscriberProviderError({
|
|
16176
|
+
message: response.timedOut ? `${label} request timed out` : `${label} network request failed`,
|
|
16177
|
+
code: "NETWORK",
|
|
16178
|
+
retriable: true,
|
|
16179
|
+
details: response.cause,
|
|
16180
|
+
cause: response.cause
|
|
16181
|
+
});
|
|
16182
|
+
} else {
|
|
16183
|
+
const mapped = mapHttpStatus(response.status);
|
|
16184
|
+
lastError = new SubscriberProviderError({
|
|
16185
|
+
message: `${label} returned ${response.status}: ${response.statusText}`,
|
|
16186
|
+
code: mapped.code,
|
|
16187
|
+
retriable: mapped.retriable,
|
|
16188
|
+
details: response.body
|
|
16189
|
+
});
|
|
16190
|
+
}
|
|
16191
|
+
const canRetry = isProviderRetriable(lastError) && attempt2 < maxRetries;
|
|
16192
|
+
if (!canRetry) break;
|
|
16193
|
+
await delay(retryDelayMs * 2 ** (attempt2 - 1));
|
|
16194
|
+
}
|
|
16195
|
+
throw lastError ?? new Error(`${label} send failed`);
|
|
16196
|
+
}
|
|
16197
|
+
|
|
16198
|
+
// src/security.ts
|
|
16199
|
+
var SecuritySubscriber = class extends EventSubscriber {
|
|
16200
|
+
name = "SecuritySubscriber";
|
|
16201
|
+
version = "1.0.0";
|
|
16202
|
+
config;
|
|
16203
|
+
httpClient;
|
|
16204
|
+
constructor(config) {
|
|
16205
|
+
super();
|
|
16206
|
+
this.config = {
|
|
16207
|
+
webhookUrl: config.webhookUrl,
|
|
16208
|
+
headers: config.headers ?? {},
|
|
16209
|
+
handler: config.handler,
|
|
16210
|
+
minSeverity: config.minSeverity ?? "warning",
|
|
16211
|
+
eventPrefix: config.eventPrefix ?? "security.",
|
|
16212
|
+
filter: config.filter,
|
|
16213
|
+
maxRetries: config.maxRetries,
|
|
16214
|
+
retryDelayMs: config.retryDelayMs
|
|
16215
|
+
};
|
|
16216
|
+
this.httpClient = createHttpClient({ timeoutMs: config.timeoutMs });
|
|
16217
|
+
this.enabled = config.enabled ?? true;
|
|
16218
|
+
if (!this.config.webhookUrl && !this.config.handler) {
|
|
16219
|
+
console.error(
|
|
16220
|
+
"[SecuritySubscriber] No webhookUrl or handler provided - subscriber disabled"
|
|
16221
|
+
);
|
|
16222
|
+
this.enabled = false;
|
|
16223
|
+
}
|
|
16224
|
+
}
|
|
16225
|
+
async sendToDestination(payload) {
|
|
16226
|
+
if (!payload.name.startsWith(this.config.eventPrefix)) {
|
|
16227
|
+
return;
|
|
16228
|
+
}
|
|
16229
|
+
const severity = securitySchema.parseSecuritySeverity(payload.attributes?.severity);
|
|
16230
|
+
if (securitySchema.SECURITY_SEVERITY_RANK[severity] < securitySchema.SECURITY_SEVERITY_RANK[this.config.minSeverity]) {
|
|
16231
|
+
return;
|
|
16232
|
+
}
|
|
16233
|
+
const filterFn = this.config.filter;
|
|
16234
|
+
if (filterFn && !filterFn(payload)) {
|
|
16235
|
+
return;
|
|
16236
|
+
}
|
|
16237
|
+
const alert = this.toAlert(payload, severity);
|
|
16238
|
+
if (this.config.handler) {
|
|
16239
|
+
await this.config.handler(alert);
|
|
16240
|
+
return;
|
|
16241
|
+
}
|
|
16242
|
+
await postJsonWithRetry(
|
|
16243
|
+
this.httpClient,
|
|
16244
|
+
this.config.webhookUrl,
|
|
16245
|
+
alert,
|
|
16246
|
+
{
|
|
16247
|
+
headers: this.config.headers,
|
|
16248
|
+
maxRetries: this.config.maxRetries,
|
|
16249
|
+
retryDelayMs: this.config.retryDelayMs,
|
|
16250
|
+
label: "Security webhook"
|
|
16251
|
+
}
|
|
16252
|
+
);
|
|
16253
|
+
}
|
|
16254
|
+
toAlert(payload, severity) {
|
|
16255
|
+
const {
|
|
16256
|
+
severity: _severity,
|
|
16257
|
+
category,
|
|
16258
|
+
outcome,
|
|
16259
|
+
reason,
|
|
16260
|
+
...rest
|
|
16261
|
+
} = payload.attributes ?? {};
|
|
16262
|
+
return {
|
|
16263
|
+
event: payload.name,
|
|
16264
|
+
severity,
|
|
16265
|
+
...typeof category === "string" && { category },
|
|
16266
|
+
...typeof outcome === "string" && { outcome },
|
|
16267
|
+
...typeof reason === "string" && { reason },
|
|
16268
|
+
...Object.keys(rest).length > 0 && { attributes: rest },
|
|
16269
|
+
timestamp: payload.timestamp,
|
|
16270
|
+
...payload.autotel && { trace: payload.autotel }
|
|
16271
|
+
};
|
|
16272
|
+
}
|
|
16273
|
+
};
|
|
16274
|
+
|
|
16130
16275
|
// src/webhook.ts
|
|
16131
16276
|
var WebhookSubscriber = class {
|
|
16132
16277
|
name = "WebhookSubscriber";
|
|
@@ -16140,52 +16285,15 @@ var WebhookSubscriber = class {
|
|
|
16140
16285
|
this.enabled = config.enabled ?? true;
|
|
16141
16286
|
this.httpClient = createHttpClient({ timeoutMs: config.timeoutMs });
|
|
16142
16287
|
}
|
|
16143
|
-
async delay(ms) {
|
|
16144
|
-
await new Promise((resolve) => setTimeout(resolve, ms));
|
|
16145
|
-
}
|
|
16146
16288
|
async send(payload) {
|
|
16147
16289
|
if (!this.enabled) return;
|
|
16148
|
-
|
|
16149
|
-
|
|
16150
|
-
|
|
16151
|
-
|
|
16152
|
-
|
|
16153
|
-
|
|
16154
|
-
|
|
16155
|
-
{
|
|
16156
|
-
method,
|
|
16157
|
-
headers: {
|
|
16158
|
-
"Content-Type": "application/json",
|
|
16159
|
-
...this.config.headers
|
|
16160
|
-
},
|
|
16161
|
-
body: JSON.stringify(payload),
|
|
16162
|
-
timeoutMs: this.config.timeoutMs
|
|
16163
|
-
}
|
|
16164
|
-
);
|
|
16165
|
-
if (response.ok) return;
|
|
16166
|
-
if (response.kind === "network") {
|
|
16167
|
-
lastError = new SubscriberProviderError({
|
|
16168
|
-
message: response.timedOut ? "Webhook request timed out" : "Webhook network request failed",
|
|
16169
|
-
code: "NETWORK",
|
|
16170
|
-
retriable: true,
|
|
16171
|
-
details: response.cause,
|
|
16172
|
-
cause: response.cause
|
|
16173
|
-
});
|
|
16174
|
-
} else {
|
|
16175
|
-
const mapped = mapHttpStatus(response.status);
|
|
16176
|
-
lastError = new SubscriberProviderError({
|
|
16177
|
-
message: `Webhook returned ${response.status}: ${response.statusText}`,
|
|
16178
|
-
code: mapped.code,
|
|
16179
|
-
retriable: mapped.retriable,
|
|
16180
|
-
details: response.body
|
|
16181
|
-
});
|
|
16182
|
-
}
|
|
16183
|
-
const canRetry = isProviderRetriable(lastError) && attempt2 < maxRetries;
|
|
16184
|
-
if (!canRetry) break;
|
|
16185
|
-
const backoffMs = retryDelayMs * 2 ** (attempt2 - 1);
|
|
16186
|
-
await this.delay(backoffMs);
|
|
16187
|
-
}
|
|
16188
|
-
throw lastError ?? new Error("Webhook send failed");
|
|
16290
|
+
await postJsonWithRetry(this.httpClient, this.config.url, payload, {
|
|
16291
|
+
method: this.config.method,
|
|
16292
|
+
headers: this.config.headers,
|
|
16293
|
+
maxRetries: this.config.maxRetries,
|
|
16294
|
+
retryDelayMs: this.config.retryDelayMs,
|
|
16295
|
+
label: "Webhook"
|
|
16296
|
+
});
|
|
16189
16297
|
}
|
|
16190
16298
|
async trackEvent(name, attributes, options) {
|
|
16191
16299
|
const request = this.send({
|
|
@@ -16696,6 +16804,7 @@ exports.EventSubscriber = EventSubscriber;
|
|
|
16696
16804
|
exports.FileSubscriber = FileSubscriber;
|
|
16697
16805
|
exports.MixpanelSubscriber = MixpanelSubscriber;
|
|
16698
16806
|
exports.PostHogSubscriber = PostHogSubscriber;
|
|
16807
|
+
exports.SecuritySubscriber = SecuritySubscriber;
|
|
16699
16808
|
exports.SegmentSubscriber = SegmentSubscriber;
|
|
16700
16809
|
exports.SlackSubscriber = SlackSubscriber;
|
|
16701
16810
|
exports.StreamingEventSubscriber = StreamingEventSubscriber;
|