autotel-subscribers 35.0.2 → 36.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/factories.js
CHANGED
|
@@ -82,11 +82,11 @@ function normalizeWindowsPath(path) {
|
|
|
82
82
|
return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
|
|
83
83
|
}
|
|
84
84
|
var init_module_node = __esm({
|
|
85
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
85
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
|
|
89
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
89
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/featureFlagUtils.mjs
|
|
90
90
|
function getFlagDetailFromFlagAndPayload(key, value, payload) {
|
|
91
91
|
return {
|
|
92
92
|
key,
|
|
@@ -103,7 +103,7 @@ function getFlagDetailFromFlagAndPayload(key, value, payload) {
|
|
|
103
103
|
}
|
|
104
104
|
var normalizeFlagsResponse, getFlagValuesFromFlags, getPayloadsFromFlags, getFeatureFlagValue, parsePayload;
|
|
105
105
|
var init_featureFlagUtils = __esm({
|
|
106
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
106
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
|
|
107
107
|
normalizeFlagsResponse = (flagsResponse) => {
|
|
108
108
|
if ("flags" in flagsResponse) {
|
|
109
109
|
const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
|
|
@@ -161,10 +161,10 @@ var init_featureFlagUtils = __esm({
|
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
|
|
164
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
164
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/types.mjs
|
|
165
165
|
var types_PostHogPersistedProperty, FeatureFlagError;
|
|
166
166
|
var init_types = __esm({
|
|
167
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
167
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/types.mjs"() {
|
|
168
168
|
types_PostHogPersistedProperty = /* @__PURE__ */ (function(PostHogPersistedProperty) {
|
|
169
169
|
PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
|
|
170
170
|
PostHogPersistedProperty["DistinctId"] = "distinct_id";
|
|
@@ -209,7 +209,7 @@ var init_types = __esm({
|
|
|
209
209
|
}
|
|
210
210
|
});
|
|
211
211
|
|
|
212
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
212
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/gzip.mjs
|
|
213
213
|
function isGzipSupported() {
|
|
214
214
|
return "CompressionStream" in globalThis && "TextEncoder" in globalThis && "Response" in globalThis && "function" == typeof Response.prototype.blob;
|
|
215
215
|
}
|
|
@@ -239,7 +239,7 @@ async function gzipCompress(input, isDebug = true, options) {
|
|
|
239
239
|
}
|
|
240
240
|
var NATIVE_GZIP_VALIDATION_ERROR, GZIP_MAGIC_FIRST_BYTE, GZIP_MAGIC_SECOND_BYTE, GZIP_DEFLATE_METHOD, hasGzipMagic, crc32Table, getCrc32Table, crc32, throwNativeGzipValidationError, validateNativeGzip;
|
|
241
241
|
var init_gzip = __esm({
|
|
242
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
242
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/gzip.mjs"() {
|
|
243
243
|
init_types();
|
|
244
244
|
NATIVE_GZIP_VALIDATION_ERROR = "NativeGzipValidationError";
|
|
245
245
|
GZIP_MAGIC_FIRST_BYTE = 31;
|
|
@@ -279,10 +279,10 @@ var init_gzip = __esm({
|
|
|
279
279
|
}
|
|
280
280
|
});
|
|
281
281
|
|
|
282
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
282
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/bot-detection.mjs
|
|
283
283
|
var DEFAULT_BLOCKED_UA_STRS, isBlockedUA;
|
|
284
284
|
var init_bot_detection = __esm({
|
|
285
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
285
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
|
|
286
286
|
DEFAULT_BLOCKED_UA_STRS = [
|
|
287
287
|
"amazonbot",
|
|
288
288
|
"amazonproductbot",
|
|
@@ -373,13 +373,13 @@ var init_bot_detection = __esm({
|
|
|
373
373
|
}
|
|
374
374
|
});
|
|
375
375
|
|
|
376
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
376
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/string-utils.mjs
|
|
377
377
|
var init_string_utils = __esm({
|
|
378
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
378
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
381
|
|
|
382
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
382
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/type-utils.mjs
|
|
383
383
|
function isPrimitive(value) {
|
|
384
384
|
return null === value || "object" != typeof value;
|
|
385
385
|
}
|
|
@@ -404,7 +404,7 @@ function isInstanceOf(candidate, base) {
|
|
|
404
404
|
}
|
|
405
405
|
var nativeIsArray, ObjProto, type_utils_toString, isArray, isObject, isUndefined, isString, isEmptyString, isNumber, isPlainError;
|
|
406
406
|
var init_type_utils = __esm({
|
|
407
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
407
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
|
|
408
408
|
init_types();
|
|
409
409
|
init_string_utils();
|
|
410
410
|
nativeIsArray = Array.isArray;
|
|
@@ -423,7 +423,7 @@ var init_type_utils = __esm({
|
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
425
|
|
|
426
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
426
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/number-utils.mjs
|
|
427
427
|
function clampToRange(value, min, max, logger, fallbackValue) {
|
|
428
428
|
if (min > max) {
|
|
429
429
|
logger.warn("min cannot be greater than max.");
|
|
@@ -441,15 +441,15 @@ function clampToRange(value, min, max, logger, fallbackValue) {
|
|
|
441
441
|
return clampToRange(max, min, max, logger);
|
|
442
442
|
}
|
|
443
443
|
var init_number_utils = __esm({
|
|
444
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
444
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
|
|
445
445
|
init_type_utils();
|
|
446
446
|
}
|
|
447
447
|
});
|
|
448
448
|
|
|
449
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
449
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
|
|
450
450
|
var ONE_DAY_IN_MS, BucketedRateLimiter;
|
|
451
451
|
var init_bucketed_rate_limiter = __esm({
|
|
452
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
452
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
|
|
453
453
|
init_number_utils();
|
|
454
454
|
ONE_DAY_IN_MS = 864e5;
|
|
455
455
|
BucketedRateLimiter = class {
|
|
@@ -493,10 +493,10 @@ var init_bucketed_rate_limiter = __esm({
|
|
|
493
493
|
}
|
|
494
494
|
});
|
|
495
495
|
|
|
496
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
496
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
|
|
497
497
|
var DIGITS, UUID, V7Generator, getDefaultRandom, defaultGenerator, uuidv7, uuidv7obj;
|
|
498
498
|
var init_uuidv7 = __esm({
|
|
499
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
499
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
|
|
500
500
|
DIGITS = "0123456789abcdef";
|
|
501
501
|
UUID = class _UUID {
|
|
502
502
|
constructor(bytes) {
|
|
@@ -657,10 +657,10 @@ var init_uuidv7 = __esm({
|
|
|
657
657
|
}
|
|
658
658
|
});
|
|
659
659
|
|
|
660
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
660
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/promise-queue.mjs
|
|
661
661
|
var PromiseQueue;
|
|
662
662
|
var init_promise_queue = __esm({
|
|
663
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
663
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
|
|
664
664
|
init_uuidv7();
|
|
665
665
|
PromiseQueue = class {
|
|
666
666
|
add(promise) {
|
|
@@ -691,7 +691,7 @@ var init_promise_queue = __esm({
|
|
|
691
691
|
}
|
|
692
692
|
});
|
|
693
693
|
|
|
694
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
694
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/logger.mjs
|
|
695
695
|
function createConsole(consoleLike = console) {
|
|
696
696
|
const lockedMethods = {
|
|
697
697
|
log: consoleLike.log.bind(consoleLike),
|
|
@@ -706,7 +706,7 @@ function createLogger(prefix, maybeCall = passThrough) {
|
|
|
706
706
|
}
|
|
707
707
|
var _createLogger, passThrough;
|
|
708
708
|
var init_logger = __esm({
|
|
709
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
709
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/logger.mjs"() {
|
|
710
710
|
_createLogger = (prefix, maybeCall, consoleLike) => {
|
|
711
711
|
function _log(level, ...args) {
|
|
712
712
|
maybeCall(() => {
|
|
@@ -738,10 +738,10 @@ var init_logger = __esm({
|
|
|
738
738
|
}
|
|
739
739
|
});
|
|
740
740
|
|
|
741
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
741
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
|
|
742
742
|
var MOBILE, TABLET, GENERIC;
|
|
743
743
|
var init_user_agent_utils = __esm({
|
|
744
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
744
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
|
|
745
745
|
init_string_utils();
|
|
746
746
|
init_type_utils();
|
|
747
747
|
MOBILE = "Mobile";
|
|
@@ -752,7 +752,7 @@ var init_user_agent_utils = __esm({
|
|
|
752
752
|
}
|
|
753
753
|
});
|
|
754
754
|
|
|
755
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
755
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/index.mjs
|
|
756
756
|
function removeTrailingSlash(url) {
|
|
757
757
|
return url?.replace(/\/+$/, "");
|
|
758
758
|
}
|
|
@@ -789,7 +789,7 @@ function allSettled(promises) {
|
|
|
789
789
|
}
|
|
790
790
|
var STRING_FORMAT, isError;
|
|
791
791
|
var init_utils = __esm({
|
|
792
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
792
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/index.mjs"() {
|
|
793
793
|
init_bot_detection();
|
|
794
794
|
init_bucketed_rate_limiter();
|
|
795
795
|
init_number_utils();
|
|
@@ -803,10 +803,10 @@ var init_utils = __esm({
|
|
|
803
803
|
}
|
|
804
804
|
});
|
|
805
805
|
|
|
806
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
806
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/logs/logs-utils.mjs
|
|
807
807
|
var OTLP_SEVERITY_MAP;
|
|
808
808
|
var init_logs_utils = __esm({
|
|
809
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
809
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/logs/logs-utils.mjs"() {
|
|
810
810
|
init_utils();
|
|
811
811
|
OTLP_SEVERITY_MAP = {
|
|
812
812
|
trace: {
|
|
@@ -838,23 +838,23 @@ var init_logs_utils = __esm({
|
|
|
838
838
|
}
|
|
839
839
|
});
|
|
840
840
|
|
|
841
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
841
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/logs/index.mjs
|
|
842
842
|
var init_logs = __esm({
|
|
843
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
843
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/logs/index.mjs"() {
|
|
844
844
|
init_logs_utils();
|
|
845
845
|
init_types();
|
|
846
846
|
init_utils();
|
|
847
847
|
}
|
|
848
848
|
});
|
|
849
849
|
|
|
850
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
850
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/surveys/validation.mjs
|
|
851
851
|
var init_validation = __esm({
|
|
852
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
852
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/surveys/validation.mjs"() {
|
|
853
853
|
init_types();
|
|
854
854
|
}
|
|
855
855
|
});
|
|
856
856
|
|
|
857
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
857
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/cookie.mjs
|
|
858
858
|
function cookieStoreFromHeader(cookieHeader) {
|
|
859
859
|
const cookies = {};
|
|
860
860
|
if (cookieHeader) for (const pair of cookieHeader.split(";")) {
|
|
@@ -922,7 +922,7 @@ function parsePostHogCookie(cookieValue) {
|
|
|
922
922
|
}
|
|
923
923
|
var COOKIE_PREFIX, COOKIE_SUFFIX;
|
|
924
924
|
var init_cookie = __esm({
|
|
925
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
925
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/cookie.mjs"() {
|
|
926
926
|
init_utils();
|
|
927
927
|
init_uuidv7();
|
|
928
928
|
COOKIE_PREFIX = "ph_";
|
|
@@ -930,10 +930,10 @@ var init_cookie = __esm({
|
|
|
930
930
|
}
|
|
931
931
|
});
|
|
932
932
|
|
|
933
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
933
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/eventemitter.mjs
|
|
934
934
|
var SimpleEventEmitter;
|
|
935
935
|
var init_eventemitter = __esm({
|
|
936
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
936
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/eventemitter.mjs"() {
|
|
937
937
|
SimpleEventEmitter = class {
|
|
938
938
|
constructor() {
|
|
939
939
|
this.events = {};
|
|
@@ -954,7 +954,7 @@ var init_eventemitter = __esm({
|
|
|
954
954
|
}
|
|
955
955
|
});
|
|
956
956
|
|
|
957
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
957
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
|
|
958
958
|
function getFilenameToChunkIdMap(stackParser) {
|
|
959
959
|
const chunkIdMap = globalThis._posthogChunkIds;
|
|
960
960
|
if (!chunkIdMap) return;
|
|
@@ -987,14 +987,14 @@ function getFilenameToChunkIdMap(stackParser) {
|
|
|
987
987
|
}
|
|
988
988
|
var parsedStackResults, lastKeysCount, cachedFilenameChunkIds;
|
|
989
989
|
var init_chunk_ids = __esm({
|
|
990
|
-
"../../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"() {
|
|
991
991
|
}
|
|
992
992
|
});
|
|
993
993
|
|
|
994
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
994
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
|
|
995
995
|
var MAX_CAUSE_RECURSION, ErrorPropertiesBuilder;
|
|
996
996
|
var init_error_properties_builder = __esm({
|
|
997
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
997
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
|
|
998
998
|
init_utils();
|
|
999
999
|
init_chunk_ids();
|
|
1000
1000
|
MAX_CAUSE_RECURSION = 4;
|
|
@@ -1109,7 +1109,7 @@ var init_error_properties_builder = __esm({
|
|
|
1109
1109
|
}
|
|
1110
1110
|
});
|
|
1111
1111
|
|
|
1112
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1112
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
|
|
1113
1113
|
function createFrame(platform, filename, func, lineno, colno) {
|
|
1114
1114
|
const frame = {
|
|
1115
1115
|
platform,
|
|
@@ -1123,16 +1123,16 @@ function createFrame(platform, filename, func, lineno, colno) {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
var UNKNOWN_FUNCTION;
|
|
1125
1125
|
var init_base = __esm({
|
|
1126
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1126
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
|
|
1127
1127
|
init_utils();
|
|
1128
1128
|
UNKNOWN_FUNCTION = "?";
|
|
1129
1129
|
}
|
|
1130
1130
|
});
|
|
1131
1131
|
|
|
1132
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1132
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
|
|
1133
1133
|
var extractSafariExtensionDetails;
|
|
1134
1134
|
var init_safari = __esm({
|
|
1135
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1135
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
|
|
1136
1136
|
init_base();
|
|
1137
1137
|
extractSafariExtensionDetails = (func, filename) => {
|
|
1138
1138
|
const isSafariExtension = -1 !== func.indexOf("safari-extension");
|
|
@@ -1148,10 +1148,10 @@ var init_safari = __esm({
|
|
|
1148
1148
|
}
|
|
1149
1149
|
});
|
|
1150
1150
|
|
|
1151
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1151
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
|
|
1152
1152
|
var chromeRegexNoFnName, chromeRegex, chromeEvalRegex, chromeStackLineParser;
|
|
1153
1153
|
var init_chrome = __esm({
|
|
1154
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1154
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
|
|
1155
1155
|
init_base();
|
|
1156
1156
|
init_safari();
|
|
1157
1157
|
chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
|
|
@@ -1181,10 +1181,10 @@ var init_chrome = __esm({
|
|
|
1181
1181
|
}
|
|
1182
1182
|
});
|
|
1183
1183
|
|
|
1184
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1184
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
|
|
1185
1185
|
var geckoREgex, geckoEvalRegex, geckoStackLineParser;
|
|
1186
1186
|
var init_gecko = __esm({
|
|
1187
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1187
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
|
|
1188
1188
|
init_base();
|
|
1189
1189
|
init_safari();
|
|
1190
1190
|
geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
|
|
@@ -1211,10 +1211,10 @@ var init_gecko = __esm({
|
|
|
1211
1211
|
}
|
|
1212
1212
|
});
|
|
1213
1213
|
|
|
1214
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1214
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
|
|
1215
1215
|
var winjsRegex, winjsStackLineParser;
|
|
1216
1216
|
var init_winjs = __esm({
|
|
1217
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1217
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
|
|
1218
1218
|
init_base();
|
|
1219
1219
|
winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
|
|
1220
1220
|
winjsStackLineParser = (line, platform) => {
|
|
@@ -1224,10 +1224,10 @@ var init_winjs = __esm({
|
|
|
1224
1224
|
}
|
|
1225
1225
|
});
|
|
1226
1226
|
|
|
1227
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1227
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
|
|
1228
1228
|
var opera10Regex, opera10StackLineParser, opera11Regex, opera11StackLineParser;
|
|
1229
1229
|
var init_opera = __esm({
|
|
1230
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1230
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
|
|
1231
1231
|
init_base();
|
|
1232
1232
|
opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
|
|
1233
1233
|
opera10StackLineParser = (line, platform) => {
|
|
@@ -1242,7 +1242,7 @@ var init_opera = __esm({
|
|
|
1242
1242
|
}
|
|
1243
1243
|
});
|
|
1244
1244
|
|
|
1245
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1245
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
|
|
1246
1246
|
function filenameIsInApp(filename, isNative = false) {
|
|
1247
1247
|
const isInternal = isNative || filename && !filename.startsWith("/") && !filename.match(/^[A-Z]:/) && !filename.startsWith(".") && !filename.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//);
|
|
1248
1248
|
return !isInternal && void 0 !== filename && !filename.includes("node_modules/");
|
|
@@ -1252,7 +1252,7 @@ function _parseIntOrUndefined(input) {
|
|
|
1252
1252
|
}
|
|
1253
1253
|
var FILENAME_MATCH, FULL_MATCH, nodeStackLineParser;
|
|
1254
1254
|
var init_node = __esm({
|
|
1255
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1255
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
|
|
1256
1256
|
init_base();
|
|
1257
1257
|
FILENAME_MATCH = /^\s*[-]{4,}$/;
|
|
1258
1258
|
FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
|
|
@@ -1313,7 +1313,7 @@ var init_node = __esm({
|
|
|
1313
1313
|
}
|
|
1314
1314
|
});
|
|
1315
1315
|
|
|
1316
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1316
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
|
|
1317
1317
|
function reverseAndStripFrames(stack) {
|
|
1318
1318
|
if (!stack.length) return [];
|
|
1319
1319
|
const localStack = Array.from(stack);
|
|
@@ -1354,7 +1354,7 @@ function createStackParser(platform, ...parsers) {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
var WEBPACK_ERROR_REGEXP, STACKTRACE_FRAME_LIMIT;
|
|
1356
1356
|
var init_parsers = __esm({
|
|
1357
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1357
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
|
|
1358
1358
|
init_base();
|
|
1359
1359
|
init_chrome();
|
|
1360
1360
|
init_gecko();
|
|
@@ -1366,10 +1366,10 @@ var init_parsers = __esm({
|
|
|
1366
1366
|
}
|
|
1367
1367
|
});
|
|
1368
1368
|
|
|
1369
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1369
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
|
|
1370
1370
|
var DOMExceptionCoercer;
|
|
1371
1371
|
var init_dom_exception_coercer = __esm({
|
|
1372
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1372
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
|
|
1373
1373
|
init_utils();
|
|
1374
1374
|
DOMExceptionCoercer = class {
|
|
1375
1375
|
match(err) {
|
|
@@ -1403,10 +1403,10 @@ var init_dom_exception_coercer = __esm({
|
|
|
1403
1403
|
}
|
|
1404
1404
|
});
|
|
1405
1405
|
|
|
1406
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1406
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
|
|
1407
1407
|
var ErrorCoercer;
|
|
1408
1408
|
var init_error_coercer = __esm({
|
|
1409
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1409
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
|
|
1410
1410
|
init_utils();
|
|
1411
1411
|
ErrorCoercer = class {
|
|
1412
1412
|
match(err) {
|
|
@@ -1436,10 +1436,10 @@ var init_error_coercer = __esm({
|
|
|
1436
1436
|
}
|
|
1437
1437
|
});
|
|
1438
1438
|
|
|
1439
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1439
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
|
|
1440
1440
|
var ErrorEventCoercer;
|
|
1441
1441
|
var init_error_event_coercer = __esm({
|
|
1442
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1442
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
|
|
1443
1443
|
init_utils();
|
|
1444
1444
|
ErrorEventCoercer = class {
|
|
1445
1445
|
constructor() {
|
|
@@ -1461,10 +1461,10 @@ var init_error_event_coercer = __esm({
|
|
|
1461
1461
|
}
|
|
1462
1462
|
});
|
|
1463
1463
|
|
|
1464
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1464
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
|
|
1465
1465
|
var ERROR_TYPES_PATTERN, StringCoercer;
|
|
1466
1466
|
var init_string_coercer = __esm({
|
|
1467
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1467
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
|
|
1468
1468
|
ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
|
|
1469
1469
|
StringCoercer = class {
|
|
1470
1470
|
match(input) {
|
|
@@ -1496,10 +1496,10 @@ var init_string_coercer = __esm({
|
|
|
1496
1496
|
}
|
|
1497
1497
|
});
|
|
1498
1498
|
|
|
1499
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1499
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/types.mjs
|
|
1500
1500
|
var severityLevels;
|
|
1501
1501
|
var init_types2 = __esm({
|
|
1502
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1502
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
|
|
1503
1503
|
severityLevels = [
|
|
1504
1504
|
"fatal",
|
|
1505
1505
|
"error",
|
|
@@ -1511,7 +1511,7 @@ var init_types2 = __esm({
|
|
|
1511
1511
|
}
|
|
1512
1512
|
});
|
|
1513
1513
|
|
|
1514
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1514
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
|
|
1515
1515
|
function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
1516
1516
|
const keys = Object.keys(err);
|
|
1517
1517
|
keys.sort();
|
|
@@ -1526,14 +1526,14 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
|
1526
1526
|
return "";
|
|
1527
1527
|
}
|
|
1528
1528
|
var init_utils2 = __esm({
|
|
1529
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1529
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
|
|
1530
1530
|
}
|
|
1531
1531
|
});
|
|
1532
1532
|
|
|
1533
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1533
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
|
|
1534
1534
|
var ObjectCoercer;
|
|
1535
1535
|
var init_object_coercer = __esm({
|
|
1536
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1536
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
|
|
1537
1537
|
init_utils();
|
|
1538
1538
|
init_types2();
|
|
1539
1539
|
init_utils2();
|
|
@@ -1587,10 +1587,10 @@ var init_object_coercer = __esm({
|
|
|
1587
1587
|
}
|
|
1588
1588
|
});
|
|
1589
1589
|
|
|
1590
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1590
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
|
|
1591
1591
|
var EventCoercer;
|
|
1592
1592
|
var init_event_coercer = __esm({
|
|
1593
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1593
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
|
|
1594
1594
|
init_utils();
|
|
1595
1595
|
init_utils2();
|
|
1596
1596
|
EventCoercer = class {
|
|
@@ -1610,10 +1610,10 @@ var init_event_coercer = __esm({
|
|
|
1610
1610
|
}
|
|
1611
1611
|
});
|
|
1612
1612
|
|
|
1613
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1613
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
|
|
1614
1614
|
var PrimitiveCoercer;
|
|
1615
1615
|
var init_primitive_coercer = __esm({
|
|
1616
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1616
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
|
|
1617
1617
|
init_utils();
|
|
1618
1618
|
PrimitiveCoercer = class {
|
|
1619
1619
|
match(candidate) {
|
|
@@ -1631,10 +1631,10 @@ var init_primitive_coercer = __esm({
|
|
|
1631
1631
|
}
|
|
1632
1632
|
});
|
|
1633
1633
|
|
|
1634
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1634
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
|
|
1635
1635
|
var PromiseRejectionEventCoercer;
|
|
1636
1636
|
var init_promise_rejection_event = __esm({
|
|
1637
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1637
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
|
|
1638
1638
|
init_utils();
|
|
1639
1639
|
PromiseRejectionEventCoercer = class {
|
|
1640
1640
|
match(err) {
|
|
@@ -1671,9 +1671,9 @@ var init_promise_rejection_event = __esm({
|
|
|
1671
1671
|
}
|
|
1672
1672
|
});
|
|
1673
1673
|
|
|
1674
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1674
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
|
|
1675
1675
|
var init_coercers = __esm({
|
|
1676
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1676
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
|
|
1677
1677
|
init_dom_exception_coercer();
|
|
1678
1678
|
init_error_coercer();
|
|
1679
1679
|
init_error_event_coercer();
|
|
@@ -1685,10 +1685,10 @@ var init_coercers = __esm({
|
|
|
1685
1685
|
}
|
|
1686
1686
|
});
|
|
1687
1687
|
|
|
1688
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1688
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/utils.mjs
|
|
1689
1689
|
var ReduceableCache;
|
|
1690
1690
|
var init_utils3 = __esm({
|
|
1691
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1691
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
|
|
1692
1692
|
ReduceableCache = class {
|
|
1693
1693
|
constructor(_maxSize) {
|
|
1694
1694
|
this._maxSize = _maxSize;
|
|
@@ -1714,7 +1714,7 @@ var init_utils3 = __esm({
|
|
|
1714
1714
|
}
|
|
1715
1715
|
});
|
|
1716
1716
|
|
|
1717
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1717
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/exception-steps.mjs
|
|
1718
1718
|
function resolveExceptionStepsConfig(config) {
|
|
1719
1719
|
if (!config) return {
|
|
1720
1720
|
...DEFAULT_EXCEPTION_STEPS_CONFIG
|
|
@@ -1802,7 +1802,7 @@ function getUtf8ByteLength(value) {
|
|
|
1802
1802
|
}
|
|
1803
1803
|
var EXCEPTION_STEP_INTERNAL_FIELDS, RESERVED_EXCEPTION_STEP_KEYS, DEFAULT_EXCEPTION_STEPS_CONFIG, ExceptionStepsBuffer;
|
|
1804
1804
|
var init_exception_steps = __esm({
|
|
1805
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1805
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/exception-steps.mjs"() {
|
|
1806
1806
|
init_utils();
|
|
1807
1807
|
EXCEPTION_STEP_INTERNAL_FIELDS = {
|
|
1808
1808
|
MESSAGE: "$message",
|
|
@@ -1858,7 +1858,7 @@ var init_exception_steps = __esm({
|
|
|
1858
1858
|
}
|
|
1859
1859
|
});
|
|
1860
1860
|
|
|
1861
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1861
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/index.mjs
|
|
1862
1862
|
var error_tracking_exports = {};
|
|
1863
1863
|
__export(error_tracking_exports, {
|
|
1864
1864
|
DEFAULT_EXCEPTION_STEPS_CONFIG: () => DEFAULT_EXCEPTION_STEPS_CONFIG,
|
|
@@ -1888,7 +1888,7 @@ __export(error_tracking_exports, {
|
|
|
1888
1888
|
winjsStackLineParser: () => winjsStackLineParser
|
|
1889
1889
|
});
|
|
1890
1890
|
var init_error_tracking = __esm({
|
|
1891
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1891
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
|
|
1892
1892
|
init_error_properties_builder();
|
|
1893
1893
|
init_parsers();
|
|
1894
1894
|
init_coercers();
|
|
@@ -1897,7 +1897,7 @@ var init_error_tracking = __esm({
|
|
|
1897
1897
|
}
|
|
1898
1898
|
});
|
|
1899
1899
|
|
|
1900
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1900
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
|
|
1901
1901
|
async function logFlushError(err) {
|
|
1902
1902
|
if (err instanceof PostHogFetchHttpError) {
|
|
1903
1903
|
let text = "";
|
|
@@ -1920,7 +1920,7 @@ function isPostHogFetchContentTooLargeError(err) {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
var PostHogFetchHttpError, PostHogFetchNetworkError, PostHogCoreStateless;
|
|
1922
1922
|
var init_posthog_core_stateless = __esm({
|
|
1923
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1923
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
|
|
1924
1924
|
init_eventemitter();
|
|
1925
1925
|
init_featureFlagUtils();
|
|
1926
1926
|
init_gzip();
|
|
@@ -2648,9 +2648,9 @@ var init_posthog_core_stateless = __esm({
|
|
|
2648
2648
|
}
|
|
2649
2649
|
});
|
|
2650
2650
|
|
|
2651
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2651
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/posthog-core.mjs
|
|
2652
2652
|
var init_posthog_core = __esm({
|
|
2653
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2653
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/posthog-core.mjs"() {
|
|
2654
2654
|
init_featureFlagUtils();
|
|
2655
2655
|
init_types();
|
|
2656
2656
|
init_posthog_core_stateless();
|
|
@@ -2659,16 +2659,16 @@ var init_posthog_core = __esm({
|
|
|
2659
2659
|
}
|
|
2660
2660
|
});
|
|
2661
2661
|
|
|
2662
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2662
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/tracing-headers.mjs
|
|
2663
2663
|
var init_tracing_headers = __esm({
|
|
2664
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2664
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/tracing-headers.mjs"() {
|
|
2665
2665
|
init_type_utils();
|
|
2666
2666
|
}
|
|
2667
2667
|
});
|
|
2668
2668
|
|
|
2669
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2669
|
+
// ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/index.mjs
|
|
2670
2670
|
var init_dist = __esm({
|
|
2671
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2671
|
+
"../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/index.mjs"() {
|
|
2672
2672
|
init_featureFlagUtils();
|
|
2673
2673
|
init_gzip();
|
|
2674
2674
|
init_logs_utils();
|
|
@@ -2865,7 +2865,7 @@ function snipLine(line, colno) {
|
|
|
2865
2865
|
}
|
|
2866
2866
|
var LRU_FILE_CONTENTS_CACHE, LRU_FILE_CONTENTS_FS_READ_FAILED, DEFAULT_LINES_OF_CONTEXT, MAX_CONTEXTLINES_COLNO, MAX_CONTEXTLINES_LINENO;
|
|
2867
2867
|
var init_context_lines_node = __esm({
|
|
2868
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
2868
|
+
"../../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"() {
|
|
2869
2869
|
init_dist();
|
|
2870
2870
|
LRU_FILE_CONTENTS_CACHE = new error_tracking_exports.ReduceableCache(25);
|
|
2871
2871
|
LRU_FILE_CONTENTS_FS_READ_FAILED = new error_tracking_exports.ReduceableCache(20);
|
|
@@ -2886,22 +2886,22 @@ function createRelativePathModifier(basePath = process.cwd()) {
|
|
|
2886
2886
|
};
|
|
2887
2887
|
}
|
|
2888
2888
|
var init_relative_path_node = __esm({
|
|
2889
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
2889
|
+
"../../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"() {
|
|
2890
2890
|
}
|
|
2891
2891
|
});
|
|
2892
2892
|
|
|
2893
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
2893
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/version.mjs
|
|
2894
2894
|
var version;
|
|
2895
2895
|
var init_version = __esm({
|
|
2896
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
2897
|
-
version = "5.
|
|
2896
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/version.mjs"() {
|
|
2897
|
+
version = "5.36.4";
|
|
2898
2898
|
}
|
|
2899
2899
|
});
|
|
2900
2900
|
|
|
2901
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
2901
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/types.mjs
|
|
2902
2902
|
var FeatureFlagError2;
|
|
2903
2903
|
var init_types3 = __esm({
|
|
2904
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
2904
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/types.mjs"() {
|
|
2905
2905
|
FeatureFlagError2 = {
|
|
2906
2906
|
ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
|
|
2907
2907
|
FLAG_MISSING: "flag_missing",
|
|
@@ -2911,10 +2911,10 @@ var init_types3 = __esm({
|
|
|
2911
2911
|
}
|
|
2912
2912
|
});
|
|
2913
2913
|
|
|
2914
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
2914
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/feature-flag-evaluations.mjs
|
|
2915
2915
|
var FeatureFlagEvaluations;
|
|
2916
2916
|
var init_feature_flag_evaluations = __esm({
|
|
2917
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
2917
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/feature-flag-evaluations.mjs"() {
|
|
2918
2918
|
init_types3();
|
|
2919
2919
|
FeatureFlagEvaluations = class _FeatureFlagEvaluations {
|
|
2920
2920
|
constructor(init2) {
|
|
@@ -3034,7 +3034,7 @@ var init_feature_flag_evaluations = __esm({
|
|
|
3034
3034
|
}
|
|
3035
3035
|
});
|
|
3036
3036
|
|
|
3037
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
3037
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
|
|
3038
3038
|
async function hashSHA1(text) {
|
|
3039
3039
|
const subtle = globalThis.crypto?.subtle;
|
|
3040
3040
|
if (!subtle) throw new Error("SubtleCrypto API not available");
|
|
@@ -3043,11 +3043,11 @@ async function hashSHA1(text) {
|
|
|
3043
3043
|
return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
3044
3044
|
}
|
|
3045
3045
|
var init_crypto = __esm({
|
|
3046
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
3046
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
|
|
3047
3047
|
}
|
|
3048
3048
|
});
|
|
3049
3049
|
|
|
3050
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
3050
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
|
|
3051
3051
|
async function _hash(key, bucketingValue, salt = "") {
|
|
3052
3052
|
const hashString = await hashSHA1(`${key}.${bucketingValue}${salt}`);
|
|
3053
3053
|
return parseInt(hashString.slice(0, 15), 16) / LONG_SCALE;
|
|
@@ -3372,7 +3372,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
|
|
|
3372
3372
|
}
|
|
3373
3373
|
var SIXTY_SECONDS, LONG_SCALE, NULL_VALUES_ALLOWED_OPERATORS, ClientError, InconclusiveMatchError, RequiresServerEvaluation, FeatureFlagsPoller;
|
|
3374
3374
|
var init_feature_flags = __esm({
|
|
3375
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
3375
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
|
|
3376
3376
|
init_dist();
|
|
3377
3377
|
init_crypto();
|
|
3378
3378
|
SIXTY_SECONDS = 6e4;
|
|
@@ -3845,7 +3845,7 @@ var init_feature_flags = __esm({
|
|
|
3845
3845
|
}
|
|
3846
3846
|
});
|
|
3847
3847
|
|
|
3848
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
3848
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
|
|
3849
3849
|
function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
|
|
3850
3850
|
let calledFatalError = false;
|
|
3851
3851
|
return Object.assign((error) => {
|
|
@@ -3877,14 +3877,14 @@ function addUnhandledRejectionListener(captureFn) {
|
|
|
3877
3877
|
}));
|
|
3878
3878
|
}
|
|
3879
3879
|
var init_autocapture = __esm({
|
|
3880
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
3880
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
|
|
3881
3881
|
}
|
|
3882
3882
|
});
|
|
3883
3883
|
|
|
3884
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
3884
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
|
|
3885
3885
|
var SHUTDOWN_TIMEOUT, ErrorTracking;
|
|
3886
3886
|
var init_error_tracking2 = __esm({
|
|
3887
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
3887
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
|
|
3888
3888
|
init_autocapture();
|
|
3889
3889
|
init_dist();
|
|
3890
3890
|
SHUTDOWN_TIMEOUT = 2e3;
|
|
@@ -3955,10 +3955,10 @@ var init_error_tracking2 = __esm({
|
|
|
3955
3955
|
}
|
|
3956
3956
|
});
|
|
3957
3957
|
|
|
3958
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
3958
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/storage-memory.mjs
|
|
3959
3959
|
var PostHogMemoryStorage;
|
|
3960
3960
|
var init_storage_memory = __esm({
|
|
3961
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
3961
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/storage-memory.mjs"() {
|
|
3962
3962
|
PostHogMemoryStorage = class {
|
|
3963
3963
|
getProperty(key) {
|
|
3964
3964
|
return this._memoryStorage[key];
|
|
@@ -3973,7 +3973,7 @@ var init_storage_memory = __esm({
|
|
|
3973
3973
|
}
|
|
3974
3974
|
});
|
|
3975
3975
|
|
|
3976
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
3976
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/client.mjs
|
|
3977
3977
|
function emitDeprecationWarningOnce(id, message2) {
|
|
3978
3978
|
if (_emittedDeprecations.has(id)) return;
|
|
3979
3979
|
_emittedDeprecations.add(id);
|
|
@@ -4000,7 +4000,7 @@ function buildFlagEventProperties(flagValues) {
|
|
|
4000
4000
|
}
|
|
4001
4001
|
var MINIMUM_POLLING_INTERVAL, THIRTY_SECONDS, MAX_CACHE_SIZE, WAITUNTIL_DEBOUNCE_MS, WAITUNTIL_MAX_WAIT_MS, DEFAULT_NODE_HOST, _emittedDeprecations, PostHogBackendClient;
|
|
4002
4002
|
var init_client = __esm({
|
|
4003
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
4003
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/client.mjs"() {
|
|
4004
4004
|
init_version();
|
|
4005
4005
|
init_dist();
|
|
4006
4006
|
init_types3();
|
|
@@ -4029,7 +4029,7 @@ var init_client = __esm({
|
|
|
4029
4029
|
this.options.featureFlagsPollingInterval = "number" == typeof normalizedOptions.featureFlagsPollingInterval ? Math.max(normalizedOptions.featureFlagsPollingInterval, MINIMUM_POLLING_INTERVAL) : THIRTY_SECONDS;
|
|
4030
4030
|
if ("number" == typeof normalizedOptions.waitUntilDebounceMs) this.options.waitUntilDebounceMs = Math.max(normalizedOptions.waitUntilDebounceMs, 0);
|
|
4031
4031
|
if ("number" == typeof normalizedOptions.waitUntilMaxWaitMs) this.options.waitUntilMaxWaitMs = Math.max(normalizedOptions.waitUntilMaxWaitMs, 0);
|
|
4032
|
-
if (normalizedOptions.personalApiKey) {
|
|
4032
|
+
if (!this.disabled && normalizedOptions.personalApiKey) {
|
|
4033
4033
|
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.');
|
|
4034
4034
|
const shouldEnableLocalEvaluation = false !== normalizedOptions.enableLocalEvaluation;
|
|
4035
4035
|
if (shouldEnableLocalEvaluation) this.featureFlagsPoller = new FeatureFlagsPoller({
|
|
@@ -4130,6 +4130,11 @@ var init_client = __esm({
|
|
|
4130
4130
|
getCustomUserAgent() {
|
|
4131
4131
|
return `${this.getLibraryId()}/${this.getLibraryVersion()}`;
|
|
4132
4132
|
}
|
|
4133
|
+
getCommonEventProperties() {
|
|
4134
|
+
const commonProperties = super.getCommonEventProperties();
|
|
4135
|
+
if (this.options.isServer ?? true) commonProperties.$is_server = true;
|
|
4136
|
+
return commonProperties;
|
|
4137
|
+
}
|
|
4133
4138
|
enable() {
|
|
4134
4139
|
return super.optIn();
|
|
4135
4140
|
}
|
|
@@ -4227,6 +4232,7 @@ var init_client = __esm({
|
|
|
4227
4232
|
};
|
|
4228
4233
|
}
|
|
4229
4234
|
async _getFeatureFlagResult(key, distinctId, options = {}, matchValue) {
|
|
4235
|
+
if (this.disabled) return void this._logger.warn("The client is disabled");
|
|
4230
4236
|
const sendFeatureFlagEvents = options.sendFeatureFlagEvents ?? true;
|
|
4231
4237
|
if (void 0 !== this._flagOverrides && key in this._flagOverrides) {
|
|
4232
4238
|
const overrideValue = this._flagOverrides[key];
|
|
@@ -4374,6 +4380,7 @@ var init_client = __esm({
|
|
|
4374
4380
|
});
|
|
4375
4381
|
}
|
|
4376
4382
|
async getRemoteConfigPayload(flagKey) {
|
|
4383
|
+
if (this.disabled) return void this._logger.warn("The client is disabled");
|
|
4377
4384
|
if (!this.options.personalApiKey) throw new Error("Personal API key is required for remote config payload decryption");
|
|
4378
4385
|
const response = await this._requestRemoteConfigPayload(flagKey);
|
|
4379
4386
|
if (!response) return;
|
|
@@ -4413,6 +4420,13 @@ var init_client = __esm({
|
|
|
4413
4420
|
featureFlagPayloads: {}
|
|
4414
4421
|
};
|
|
4415
4422
|
}
|
|
4423
|
+
if (this.disabled) {
|
|
4424
|
+
this._logger.warn("The client is disabled");
|
|
4425
|
+
return {
|
|
4426
|
+
featureFlags: {},
|
|
4427
|
+
featureFlagPayloads: {}
|
|
4428
|
+
};
|
|
4429
|
+
}
|
|
4416
4430
|
const { groups, disableGeoip, flagKeys } = resolvedOptions || {};
|
|
4417
4431
|
let { onlyEvaluateLocally, personProperties, groupProperties } = resolvedOptions || {};
|
|
4418
4432
|
const adjustedProperties = this.addLocalPersonAndGroupProperties(resolvedDistinctId, groups, personProperties, groupProperties);
|
|
@@ -4463,6 +4477,14 @@ var init_client = __esm({
|
|
|
4463
4477
|
flags: {}
|
|
4464
4478
|
});
|
|
4465
4479
|
}
|
|
4480
|
+
if (this.disabled) {
|
|
4481
|
+
this._logger.warn("The client is disabled");
|
|
4482
|
+
return new FeatureFlagEvaluations({
|
|
4483
|
+
host: this._getFeatureFlagEvaluationsHost(),
|
|
4484
|
+
distinctId: resolvedDistinctId,
|
|
4485
|
+
flags: {}
|
|
4486
|
+
});
|
|
4487
|
+
}
|
|
4466
4488
|
const { groups, disableGeoip, flagKeys } = resolvedOptions || {};
|
|
4467
4489
|
let { onlyEvaluateLocally, personProperties, groupProperties } = resolvedOptions || {};
|
|
4468
4490
|
const adjustedProperties = this.addLocalPersonAndGroupProperties(resolvedDistinctId, groups, personProperties, groupProperties);
|
|
@@ -4660,7 +4682,7 @@ var init_client = __esm({
|
|
|
4660
4682
|
}
|
|
4661
4683
|
}
|
|
4662
4684
|
async _requestRemoteConfigPayload(flagKey) {
|
|
4663
|
-
if (!this.options.personalApiKey) return;
|
|
4685
|
+
if (this.disabled || !this.apiKey || !this.options.personalApiKey) return;
|
|
4664
4686
|
const url = `${this.host}/api/projects/@current/feature_flags/${flagKey}/remote_config?token=${encodeURIComponent(this.apiKey)}`;
|
|
4665
4687
|
const options = {
|
|
4666
4688
|
method: "GET",
|
|
@@ -4705,6 +4727,7 @@ var init_client = __esm({
|
|
|
4705
4727
|
};
|
|
4706
4728
|
}
|
|
4707
4729
|
async getFeatureFlagsForEvent(distinctId, groups, disableGeoip, sendFeatureFlagsOptions) {
|
|
4730
|
+
if (this.disabled || !this.apiKey) return void this._logger.warn("The client is disabled");
|
|
4708
4731
|
const finalPersonProperties = sendFeatureFlagsOptions?.personProperties || {};
|
|
4709
4732
|
const finalGroupProperties = sendFeatureFlagsOptions?.groupProperties || {};
|
|
4710
4733
|
const flagKeys = sendFeatureFlagsOptions?.flagKeys;
|
|
@@ -4871,7 +4894,7 @@ var init_client = __esm({
|
|
|
4871
4894
|
});
|
|
4872
4895
|
var PostHogContext;
|
|
4873
4896
|
var init_context = __esm({
|
|
4874
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
4897
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
|
|
4875
4898
|
PostHogContext = class {
|
|
4876
4899
|
constructor() {
|
|
4877
4900
|
this.storage = new AsyncLocalStorage();
|
|
@@ -4901,7 +4924,7 @@ var init_context = __esm({
|
|
|
4901
4924
|
}
|
|
4902
4925
|
});
|
|
4903
4926
|
|
|
4904
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
4927
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
|
|
4905
4928
|
function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
|
|
4906
4929
|
"error"
|
|
4907
4930
|
], sendExceptionsToPostHog = true } = {}) {
|
|
@@ -4957,7 +4980,7 @@ function sentryIntegration(_posthog, options) {
|
|
|
4957
4980
|
}
|
|
4958
4981
|
var NAME, PostHogSentryIntegration;
|
|
4959
4982
|
var init_sentry_integration = __esm({
|
|
4960
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
4983
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
|
|
4961
4984
|
NAME = "posthog-node";
|
|
4962
4985
|
PostHogSentryIntegration = class {
|
|
4963
4986
|
static #_ = this.POSTHOG_ID_TAG = "posthog_distinct_id";
|
|
@@ -4979,7 +5002,7 @@ var init_sentry_integration = __esm({
|
|
|
4979
5002
|
}
|
|
4980
5003
|
});
|
|
4981
5004
|
|
|
4982
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
5005
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/tracing-headers.mjs
|
|
4983
5006
|
function addProperty(properties, key, value) {
|
|
4984
5007
|
if (null != value && "" !== value) properties[key] = value;
|
|
4985
5008
|
}
|
|
@@ -5014,7 +5037,7 @@ function getPostHogTracingHeaderValues(headers) {
|
|
|
5014
5037
|
}
|
|
5015
5038
|
var TRACING_HEADER_MAX_LENGTH, TRACING_HEADER_CONTROL_CHARS_REGEX, POSTHOG_TRACING_HEADERS;
|
|
5016
5039
|
var init_tracing_headers2 = __esm({
|
|
5017
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
5040
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/tracing-headers.mjs"() {
|
|
5018
5041
|
TRACING_HEADER_MAX_LENGTH = 1e3;
|
|
5019
5042
|
TRACING_HEADER_CONTROL_CHARS_REGEX = /[\x00-\x1f\x7f-\x9f]/g;
|
|
5020
5043
|
POSTHOG_TRACING_HEADERS = {
|
|
@@ -5024,7 +5047,7 @@ var init_tracing_headers2 = __esm({
|
|
|
5024
5047
|
}
|
|
5025
5048
|
});
|
|
5026
5049
|
|
|
5027
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
5050
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/express.mjs
|
|
5028
5051
|
function getClientIp(req) {
|
|
5029
5052
|
const forwarded = getFirstHeaderValue(req.headers["x-forwarded-for"]);
|
|
5030
5053
|
if (forwarded) {
|
|
@@ -5088,15 +5111,15 @@ function posthogErrorHandler(posthog) {
|
|
|
5088
5111
|
};
|
|
5089
5112
|
}
|
|
5090
5113
|
var init_express = __esm({
|
|
5091
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
5114
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/express.mjs"() {
|
|
5092
5115
|
init_error_tracking2();
|
|
5093
5116
|
init_tracing_headers2();
|
|
5094
5117
|
}
|
|
5095
5118
|
});
|
|
5096
5119
|
|
|
5097
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
5120
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/exports.mjs
|
|
5098
5121
|
var init_exports = __esm({
|
|
5099
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
5122
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/exports.mjs"() {
|
|
5100
5123
|
init_feature_flag_evaluations();
|
|
5101
5124
|
init_dist();
|
|
5102
5125
|
init_sentry_integration();
|
|
@@ -5105,7 +5128,7 @@ var init_exports = __esm({
|
|
|
5105
5128
|
}
|
|
5106
5129
|
});
|
|
5107
5130
|
|
|
5108
|
-
// ../../node_modules/.pnpm/posthog-node@5.
|
|
5131
|
+
// ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
|
|
5109
5132
|
var index_node_exports = {};
|
|
5110
5133
|
__export(index_node_exports, {
|
|
5111
5134
|
FeatureFlagError: () => FeatureFlagError,
|
|
@@ -5126,7 +5149,7 @@ __export(index_node_exports, {
|
|
|
5126
5149
|
});
|
|
5127
5150
|
var PostHog;
|
|
5128
5151
|
var init_index_node = __esm({
|
|
5129
|
-
"../../node_modules/.pnpm/posthog-node@5.
|
|
5152
|
+
"../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
|
|
5130
5153
|
init_module_node();
|
|
5131
5154
|
init_context_lines_node();
|
|
5132
5155
|
init_relative_path_node();
|
|
@@ -8721,10 +8744,10 @@ var init_tslib_es6 = __esm({
|
|
|
8721
8744
|
}
|
|
8722
8745
|
});
|
|
8723
8746
|
|
|
8724
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
8747
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
|
|
8725
8748
|
var IdentifyOperation, SpecialEventType;
|
|
8726
8749
|
var init_event = __esm({
|
|
8727
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
8750
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
|
|
8728
8751
|
(function(IdentifyOperation3) {
|
|
8729
8752
|
IdentifyOperation3["SET"] = "$set";
|
|
8730
8753
|
IdentifyOperation3["SET_ONCE"] = "$setOnce";
|
|
@@ -8745,10 +8768,10 @@ var init_event = __esm({
|
|
|
8745
8768
|
}
|
|
8746
8769
|
});
|
|
8747
8770
|
|
|
8748
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
8771
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
|
|
8749
8772
|
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;
|
|
8750
8773
|
var init_constants = __esm({
|
|
8751
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
8774
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
|
|
8752
8775
|
UNSET_VALUE = "-";
|
|
8753
8776
|
AMPLITUDE_PREFIX = "AMP";
|
|
8754
8777
|
STORAGE_PREFIX = "".concat(AMPLITUDE_PREFIX, "_unsent");
|
|
@@ -8760,10 +8783,10 @@ var init_constants = __esm({
|
|
|
8760
8783
|
}
|
|
8761
8784
|
});
|
|
8762
8785
|
|
|
8763
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
8786
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
|
|
8764
8787
|
var MAX_PROPERTY_KEYS, isValidObject, isValidProperties;
|
|
8765
8788
|
var init_valid_properties = __esm({
|
|
8766
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
8789
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
|
|
8767
8790
|
init_tslib_es6();
|
|
8768
8791
|
MAX_PROPERTY_KEYS = 1e3;
|
|
8769
8792
|
isValidObject = function(properties) {
|
|
@@ -8818,10 +8841,10 @@ var init_valid_properties = __esm({
|
|
|
8818
8841
|
}
|
|
8819
8842
|
});
|
|
8820
8843
|
|
|
8821
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
8844
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/identify.js
|
|
8822
8845
|
var Identify, IdentifyOperation2, OrderedIdentifyOperations;
|
|
8823
8846
|
var init_identify = __esm({
|
|
8824
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
8847
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
|
|
8825
8848
|
init_tslib_es6();
|
|
8826
8849
|
init_constants();
|
|
8827
8850
|
init_valid_properties();
|
|
@@ -8932,10 +8955,10 @@ var init_identify = __esm({
|
|
|
8932
8955
|
}
|
|
8933
8956
|
});
|
|
8934
8957
|
|
|
8935
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
8958
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
|
|
8936
8959
|
var SUCCESS_MESSAGE, UNEXPECTED_ERROR_MESSAGE, MAX_RETRIES_EXCEEDED_MESSAGE, OPT_OUT_MESSAGE, MISSING_API_KEY_MESSAGE, INVALID_API_KEY, CLIENT_NOT_INITIALIZED;
|
|
8937
8960
|
var init_messages = __esm({
|
|
8938
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
8961
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
|
|
8939
8962
|
SUCCESS_MESSAGE = "Event tracked successfully";
|
|
8940
8963
|
UNEXPECTED_ERROR_MESSAGE = "Unexpected error occurred";
|
|
8941
8964
|
MAX_RETRIES_EXCEEDED_MESSAGE = "Event rejected due to exceeded retry count";
|
|
@@ -8946,10 +8969,10 @@ var init_messages = __esm({
|
|
|
8946
8969
|
}
|
|
8947
8970
|
});
|
|
8948
8971
|
|
|
8949
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
8972
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
|
|
8950
8973
|
var Status;
|
|
8951
8974
|
var init_status = __esm({
|
|
8952
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
8975
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
|
|
8953
8976
|
(function(Status2) {
|
|
8954
8977
|
Status2["Unknown"] = "unknown";
|
|
8955
8978
|
Status2["Skipped"] = "skipped";
|
|
@@ -8964,10 +8987,10 @@ var init_status = __esm({
|
|
|
8964
8987
|
}
|
|
8965
8988
|
});
|
|
8966
8989
|
|
|
8967
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
8990
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
|
|
8968
8991
|
var buildResult;
|
|
8969
8992
|
var init_result_builder = __esm({
|
|
8970
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
8993
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
|
|
8971
8994
|
init_status();
|
|
8972
8995
|
buildResult = function(event, code, message2) {
|
|
8973
8996
|
if (code === void 0) {
|
|
@@ -8981,10 +9004,10 @@ var init_result_builder = __esm({
|
|
|
8981
9004
|
}
|
|
8982
9005
|
});
|
|
8983
9006
|
|
|
8984
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9007
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
|
|
8985
9008
|
var getGlobalScope;
|
|
8986
9009
|
var init_global_scope = __esm({
|
|
8987
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9010
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
|
|
8988
9011
|
getGlobalScope = function() {
|
|
8989
9012
|
var ampIntegrationContextName = "ampIntegrationContext";
|
|
8990
9013
|
if (typeof globalThis !== "undefined" && typeof globalThis[ampIntegrationContextName] !== "undefined") {
|
|
@@ -9007,10 +9030,10 @@ var init_global_scope = __esm({
|
|
|
9007
9030
|
}
|
|
9008
9031
|
});
|
|
9009
9032
|
|
|
9010
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9033
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
|
|
9011
9034
|
var legacyUUID, hex, UUID2;
|
|
9012
9035
|
var init_uuid = __esm({
|
|
9013
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9036
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
|
|
9014
9037
|
init_tslib_es6();
|
|
9015
9038
|
init_global_scope();
|
|
9016
9039
|
legacyUUID = function(a) {
|
|
@@ -9054,10 +9077,10 @@ var init_uuid = __esm({
|
|
|
9054
9077
|
}
|
|
9055
9078
|
});
|
|
9056
9079
|
|
|
9057
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9080
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
|
|
9058
9081
|
var Timeline;
|
|
9059
9082
|
var init_timeline = __esm({
|
|
9060
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9083
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
|
|
9061
9084
|
init_tslib_es6();
|
|
9062
9085
|
init_result_builder();
|
|
9063
9086
|
init_uuid();
|
|
@@ -9431,10 +9454,10 @@ var init_timeline = __esm({
|
|
|
9431
9454
|
}
|
|
9432
9455
|
});
|
|
9433
9456
|
|
|
9434
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9457
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
|
|
9435
9458
|
var createTrackEvent, createIdentifyEvent, createGroupIdentifyEvent, createGroupEvent, createRevenueEvent;
|
|
9436
9459
|
var init_event_builder = __esm({
|
|
9437
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9460
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
|
|
9438
9461
|
init_tslib_es6();
|
|
9439
9462
|
init_identify();
|
|
9440
9463
|
init_event();
|
|
@@ -9464,10 +9487,10 @@ var init_event_builder = __esm({
|
|
|
9464
9487
|
}
|
|
9465
9488
|
});
|
|
9466
9489
|
|
|
9467
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9490
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
|
|
9468
9491
|
var returnWrapper;
|
|
9469
9492
|
var init_return_wrapper = __esm({
|
|
9470
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9493
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
|
|
9471
9494
|
returnWrapper = function(awaitable) {
|
|
9472
9495
|
return {
|
|
9473
9496
|
promise: awaitable || Promise.resolve()
|
|
@@ -9476,10 +9499,10 @@ var init_return_wrapper = __esm({
|
|
|
9476
9499
|
}
|
|
9477
9500
|
});
|
|
9478
9501
|
|
|
9479
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9502
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
|
|
9480
9503
|
var AmplitudeCore;
|
|
9481
9504
|
var init_core_client = __esm({
|
|
9482
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9505
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
|
|
9483
9506
|
init_tslib_es6();
|
|
9484
9507
|
init_event();
|
|
9485
9508
|
init_identify();
|
|
@@ -9751,10 +9774,10 @@ var init_core_client = __esm({
|
|
|
9751
9774
|
}
|
|
9752
9775
|
});
|
|
9753
9776
|
|
|
9754
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9777
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
|
|
9755
9778
|
var Revenue, RevenueProperty;
|
|
9756
9779
|
var init_revenue = __esm({
|
|
9757
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9780
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
|
|
9758
9781
|
init_tslib_es6();
|
|
9759
9782
|
init_valid_properties();
|
|
9760
9783
|
Revenue = /** @class */
|
|
@@ -9835,10 +9858,10 @@ var init_revenue = __esm({
|
|
|
9835
9858
|
}
|
|
9836
9859
|
});
|
|
9837
9860
|
|
|
9838
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9861
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
|
|
9839
9862
|
var chunk;
|
|
9840
9863
|
var init_chunk = __esm({
|
|
9841
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9864
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
|
|
9842
9865
|
chunk = function(arr, size) {
|
|
9843
9866
|
var chunkSize = Math.max(size, 1);
|
|
9844
9867
|
return arr.reduce(function(chunks, element, index) {
|
|
@@ -9853,10 +9876,10 @@ var init_chunk = __esm({
|
|
|
9853
9876
|
}
|
|
9854
9877
|
});
|
|
9855
9878
|
|
|
9856
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9879
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
|
|
9857
9880
|
var LogLevel;
|
|
9858
9881
|
var init_loglevel = __esm({
|
|
9859
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9882
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
|
|
9860
9883
|
(function(LogLevel2) {
|
|
9861
9884
|
LogLevel2[LogLevel2["None"] = 0] = "None";
|
|
9862
9885
|
LogLevel2[LogLevel2["Error"] = 1] = "Error";
|
|
@@ -9867,10 +9890,10 @@ var init_loglevel = __esm({
|
|
|
9867
9890
|
}
|
|
9868
9891
|
});
|
|
9869
9892
|
|
|
9870
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9893
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/logger.js
|
|
9871
9894
|
var PREFIX, Logger;
|
|
9872
9895
|
var init_logger2 = __esm({
|
|
9873
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9896
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
|
|
9874
9897
|
init_loglevel();
|
|
9875
9898
|
PREFIX = "Amplitude Logger ";
|
|
9876
9899
|
Logger = /** @class */
|
|
@@ -9932,10 +9955,10 @@ var init_logger2 = __esm({
|
|
|
9932
9955
|
}
|
|
9933
9956
|
});
|
|
9934
9957
|
|
|
9935
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9958
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/config.js
|
|
9936
9959
|
var getDefaultConfig, Config, getServerUrl, createServerConfig, RequestMetadata;
|
|
9937
9960
|
var init_config = __esm({
|
|
9938
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
9961
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
|
|
9939
9962
|
init_constants();
|
|
9940
9963
|
init_logger2();
|
|
9941
9964
|
init_loglevel();
|
|
@@ -10036,19 +10059,19 @@ var init_config = __esm({
|
|
|
10036
10059
|
}
|
|
10037
10060
|
});
|
|
10038
10061
|
|
|
10039
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
10062
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
|
|
10040
10063
|
function isSuccessStatusCode(code) {
|
|
10041
10064
|
return code >= 200 && code < 300;
|
|
10042
10065
|
}
|
|
10043
10066
|
var init_status_code = __esm({
|
|
10044
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
10067
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
|
|
10045
10068
|
}
|
|
10046
10069
|
});
|
|
10047
10070
|
|
|
10048
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
10071
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
|
|
10049
10072
|
var getStacktrace, getClientLogConfig, getValueByStringPath, getClientStates, debugWrapper;
|
|
10050
10073
|
var init_debug = __esm({
|
|
10051
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
10074
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
|
|
10052
10075
|
init_tslib_es6();
|
|
10053
10076
|
init_loglevel();
|
|
10054
10077
|
getStacktrace = function(ignoreDepth) {
|
|
@@ -10166,7 +10189,7 @@ var init_debug = __esm({
|
|
|
10166
10189
|
}
|
|
10167
10190
|
});
|
|
10168
10191
|
|
|
10169
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
10192
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
|
|
10170
10193
|
function getErrorMessage(error) {
|
|
10171
10194
|
if (error instanceof Error)
|
|
10172
10195
|
return error.message;
|
|
@@ -10184,7 +10207,7 @@ function getResponseBodyString(res) {
|
|
|
10184
10207
|
}
|
|
10185
10208
|
var DEFAULT_AMPLITUDE_SERVER_URLS, shouldCompressUploadBodyForRequest, Destination;
|
|
10186
10209
|
var init_destination = __esm({
|
|
10187
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
10210
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
|
|
10188
10211
|
init_tslib_es6();
|
|
10189
10212
|
init_status();
|
|
10190
10213
|
init_messages();
|
|
@@ -10591,10 +10614,10 @@ var init_destination = __esm({
|
|
|
10591
10614
|
}
|
|
10592
10615
|
});
|
|
10593
10616
|
|
|
10594
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
10617
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
|
|
10595
10618
|
var BaseTransport;
|
|
10596
10619
|
var init_base2 = __esm({
|
|
10597
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
10620
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
|
|
10598
10621
|
init_status();
|
|
10599
10622
|
init_status_code();
|
|
10600
10623
|
BaseTransport = /** @class */
|
|
@@ -10696,10 +10719,10 @@ var init_base2 = __esm({
|
|
|
10696
10719
|
}
|
|
10697
10720
|
});
|
|
10698
10721
|
|
|
10699
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
10722
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
|
|
10700
10723
|
var ServerZone;
|
|
10701
10724
|
var init_server_zone = __esm({
|
|
10702
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
10725
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
|
|
10703
10726
|
(function(ServerZone2) {
|
|
10704
10727
|
ServerZone2["US"] = "US";
|
|
10705
10728
|
ServerZone2["EU"] = "EU";
|
|
@@ -10708,17 +10731,17 @@ var init_server_zone = __esm({
|
|
|
10708
10731
|
}
|
|
10709
10732
|
});
|
|
10710
10733
|
|
|
10711
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
10734
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
|
|
10712
10735
|
var OfflineDisabled;
|
|
10713
10736
|
var init_offline = __esm({
|
|
10714
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
10737
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
|
|
10715
10738
|
OfflineDisabled = null;
|
|
10716
10739
|
}
|
|
10717
10740
|
});
|
|
10718
10741
|
|
|
10719
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
10742
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/index.js
|
|
10720
10743
|
var init_esm = __esm({
|
|
10721
|
-
"../../node_modules/.pnpm/@amplitude+analytics-core@2.
|
|
10744
|
+
"../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
|
|
10722
10745
|
init_core_client();
|
|
10723
10746
|
init_identify();
|
|
10724
10747
|
init_revenue();
|
|
@@ -10735,18 +10758,18 @@ var init_esm = __esm({
|
|
|
10735
10758
|
}
|
|
10736
10759
|
});
|
|
10737
10760
|
|
|
10738
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
10761
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/version.js
|
|
10739
10762
|
var VERSION;
|
|
10740
10763
|
var init_version2 = __esm({
|
|
10741
|
-
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
10742
|
-
VERSION = "1.5.
|
|
10764
|
+
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
|
|
10765
|
+
VERSION = "1.5.59";
|
|
10743
10766
|
}
|
|
10744
10767
|
});
|
|
10745
10768
|
|
|
10746
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
10769
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
|
|
10747
10770
|
var Context;
|
|
10748
10771
|
var init_context2 = __esm({
|
|
10749
|
-
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
10772
|
+
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
|
|
10750
10773
|
init_tslib_es6();
|
|
10751
10774
|
init_esm();
|
|
10752
10775
|
init_version2();
|
|
@@ -10781,7 +10804,7 @@ var init_context2 = __esm({
|
|
|
10781
10804
|
});
|
|
10782
10805
|
var Http;
|
|
10783
10806
|
var init_http = __esm({
|
|
10784
|
-
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
10807
|
+
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
|
|
10785
10808
|
init_tslib_es6();
|
|
10786
10809
|
init_esm();
|
|
10787
10810
|
Http = /** @class */
|
|
@@ -10843,10 +10866,10 @@ var init_http = __esm({
|
|
|
10843
10866
|
}
|
|
10844
10867
|
});
|
|
10845
10868
|
|
|
10846
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
10869
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/config.js
|
|
10847
10870
|
var NodeConfig, useNodeConfig;
|
|
10848
10871
|
var init_config2 = __esm({
|
|
10849
|
-
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
10872
|
+
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
|
|
10850
10873
|
init_tslib_es6();
|
|
10851
10874
|
init_esm();
|
|
10852
10875
|
init_http();
|
|
@@ -10864,10 +10887,10 @@ var init_config2 = __esm({
|
|
|
10864
10887
|
}
|
|
10865
10888
|
});
|
|
10866
10889
|
|
|
10867
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
10890
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
|
|
10868
10891
|
var AmplitudeNode, createInstance, node_client_default;
|
|
10869
10892
|
var init_node_client = __esm({
|
|
10870
|
-
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
10893
|
+
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
|
|
10871
10894
|
init_tslib_es6();
|
|
10872
10895
|
init_esm();
|
|
10873
10896
|
init_context2();
|
|
@@ -10941,7 +10964,7 @@ var init_node_client = __esm({
|
|
|
10941
10964
|
}
|
|
10942
10965
|
});
|
|
10943
10966
|
|
|
10944
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
10967
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/types.js
|
|
10945
10968
|
var types_exports = {};
|
|
10946
10969
|
__export(types_exports, {
|
|
10947
10970
|
IdentifyOperation: () => IdentifyOperation,
|
|
@@ -10952,12 +10975,12 @@ __export(types_exports, {
|
|
|
10952
10975
|
SpecialEventType: () => SpecialEventType
|
|
10953
10976
|
});
|
|
10954
10977
|
var init_types4 = __esm({
|
|
10955
|
-
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
10978
|
+
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
|
|
10956
10979
|
init_esm();
|
|
10957
10980
|
}
|
|
10958
10981
|
});
|
|
10959
10982
|
|
|
10960
|
-
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
10983
|
+
// ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/index.js
|
|
10961
10984
|
var esm_exports = {};
|
|
10962
10985
|
__export(esm_exports, {
|
|
10963
10986
|
Identify: () => Identify,
|
|
@@ -10978,7 +11001,7 @@ __export(esm_exports, {
|
|
|
10978
11001
|
});
|
|
10979
11002
|
var add, groupIdentify, identify, init, logEvent, remove, revenue, setGroup, setOptOut, track, flush;
|
|
10980
11003
|
var init_esm2 = __esm({
|
|
10981
|
-
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.
|
|
11004
|
+
"../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
|
|
10982
11005
|
init_node_client();
|
|
10983
11006
|
init_node_client();
|
|
10984
11007
|
init_esm();
|
|
@@ -11314,7 +11337,7 @@ function sleep(timeoutInMs) {
|
|
|
11314
11337
|
return setTimeout(resolve, timeoutInMs);
|
|
11315
11338
|
});
|
|
11316
11339
|
}
|
|
11317
|
-
function invokeCallback(ctx, callback,
|
|
11340
|
+
function invokeCallback(ctx, callback, delay2) {
|
|
11318
11341
|
var cb = function() {
|
|
11319
11342
|
try {
|
|
11320
11343
|
return Promise.resolve(callback(ctx));
|
|
@@ -11322,7 +11345,7 @@ function invokeCallback(ctx, callback, delay) {
|
|
|
11322
11345
|
return Promise.reject(err);
|
|
11323
11346
|
}
|
|
11324
11347
|
};
|
|
11325
|
-
return sleep(
|
|
11348
|
+
return sleep(delay2).then(function() {
|
|
11326
11349
|
return pTimeout(cb(), 1e3);
|
|
11327
11350
|
}).catch(function(err) {
|
|
11328
11351
|
ctx === null || ctx === void 0 ? void 0 : ctx.log("warn", "Callback Error", { error: err });
|
|
@@ -11528,8 +11551,8 @@ var init_priority_queue = __esm({
|
|
|
11528
11551
|
}
|
|
11529
11552
|
return this.scheduleItem(item, timeout);
|
|
11530
11553
|
};
|
|
11531
|
-
PriorityQueue2.prototype.pushWithDelay = function(item,
|
|
11532
|
-
return this.scheduleItem(item,
|
|
11554
|
+
PriorityQueue2.prototype.pushWithDelay = function(item, delay2) {
|
|
11555
|
+
return this.scheduleItem(item, delay2);
|
|
11533
11556
|
};
|
|
11534
11557
|
PriorityQueue2.prototype.scheduleItem = function(item, timeout) {
|
|
11535
11558
|
var _this = this;
|
|
@@ -15872,6 +15895,50 @@ function isProviderRetriable(error) {
|
|
|
15872
15895
|
return true;
|
|
15873
15896
|
}
|
|
15874
15897
|
|
|
15898
|
+
// src/webhook-delivery.ts
|
|
15899
|
+
function delay(ms) {
|
|
15900
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
15901
|
+
}
|
|
15902
|
+
async function postJsonWithRetry(client, url, payload, options = {}) {
|
|
15903
|
+
const maxRetries = options.maxRetries ?? 3;
|
|
15904
|
+
const retryDelayMs = options.retryDelayMs ?? 1e3;
|
|
15905
|
+
const method = options.method ?? "POST";
|
|
15906
|
+
const label = options.label ?? "Webhook";
|
|
15907
|
+
let lastError;
|
|
15908
|
+
for (let attempt2 = 1; attempt2 <= maxRetries; attempt2++) {
|
|
15909
|
+
const response = await client.request(url, {
|
|
15910
|
+
method,
|
|
15911
|
+
headers: {
|
|
15912
|
+
"Content-Type": "application/json",
|
|
15913
|
+
...options.headers
|
|
15914
|
+
},
|
|
15915
|
+
body: JSON.stringify(payload)
|
|
15916
|
+
});
|
|
15917
|
+
if (response.ok) return;
|
|
15918
|
+
if (response.kind === "network") {
|
|
15919
|
+
lastError = new SubscriberProviderError({
|
|
15920
|
+
message: response.timedOut ? `${label} request timed out` : `${label} network request failed`,
|
|
15921
|
+
code: "NETWORK",
|
|
15922
|
+
retriable: true,
|
|
15923
|
+
details: response.cause,
|
|
15924
|
+
cause: response.cause
|
|
15925
|
+
});
|
|
15926
|
+
} else {
|
|
15927
|
+
const mapped = mapHttpStatus(response.status);
|
|
15928
|
+
lastError = new SubscriberProviderError({
|
|
15929
|
+
message: `${label} returned ${response.status}: ${response.statusText}`,
|
|
15930
|
+
code: mapped.code,
|
|
15931
|
+
retriable: mapped.retriable,
|
|
15932
|
+
details: response.body
|
|
15933
|
+
});
|
|
15934
|
+
}
|
|
15935
|
+
const canRetry = isProviderRetriable(lastError) && attempt2 < maxRetries;
|
|
15936
|
+
if (!canRetry) break;
|
|
15937
|
+
await delay(retryDelayMs * 2 ** (attempt2 - 1));
|
|
15938
|
+
}
|
|
15939
|
+
throw lastError ?? new Error(`${label} send failed`);
|
|
15940
|
+
}
|
|
15941
|
+
|
|
15875
15942
|
// src/webhook.ts
|
|
15876
15943
|
var WebhookSubscriber = class {
|
|
15877
15944
|
name = "WebhookSubscriber";
|
|
@@ -15885,52 +15952,15 @@ var WebhookSubscriber = class {
|
|
|
15885
15952
|
this.enabled = config.enabled ?? true;
|
|
15886
15953
|
this.httpClient = createHttpClient({ timeoutMs: config.timeoutMs });
|
|
15887
15954
|
}
|
|
15888
|
-
async delay(ms) {
|
|
15889
|
-
await new Promise((resolve) => setTimeout(resolve, ms));
|
|
15890
|
-
}
|
|
15891
15955
|
async send(payload) {
|
|
15892
15956
|
if (!this.enabled) return;
|
|
15893
|
-
|
|
15894
|
-
|
|
15895
|
-
|
|
15896
|
-
|
|
15897
|
-
|
|
15898
|
-
|
|
15899
|
-
|
|
15900
|
-
{
|
|
15901
|
-
method,
|
|
15902
|
-
headers: {
|
|
15903
|
-
"Content-Type": "application/json",
|
|
15904
|
-
...this.config.headers
|
|
15905
|
-
},
|
|
15906
|
-
body: JSON.stringify(payload),
|
|
15907
|
-
timeoutMs: this.config.timeoutMs
|
|
15908
|
-
}
|
|
15909
|
-
);
|
|
15910
|
-
if (response.ok) return;
|
|
15911
|
-
if (response.kind === "network") {
|
|
15912
|
-
lastError = new SubscriberProviderError({
|
|
15913
|
-
message: response.timedOut ? "Webhook request timed out" : "Webhook network request failed",
|
|
15914
|
-
code: "NETWORK",
|
|
15915
|
-
retriable: true,
|
|
15916
|
-
details: response.cause,
|
|
15917
|
-
cause: response.cause
|
|
15918
|
-
});
|
|
15919
|
-
} else {
|
|
15920
|
-
const mapped = mapHttpStatus(response.status);
|
|
15921
|
-
lastError = new SubscriberProviderError({
|
|
15922
|
-
message: `Webhook returned ${response.status}: ${response.statusText}`,
|
|
15923
|
-
code: mapped.code,
|
|
15924
|
-
retriable: mapped.retriable,
|
|
15925
|
-
details: response.body
|
|
15926
|
-
});
|
|
15927
|
-
}
|
|
15928
|
-
const canRetry = isProviderRetriable(lastError) && attempt2 < maxRetries;
|
|
15929
|
-
if (!canRetry) break;
|
|
15930
|
-
const backoffMs = retryDelayMs * 2 ** (attempt2 - 1);
|
|
15931
|
-
await this.delay(backoffMs);
|
|
15932
|
-
}
|
|
15933
|
-
throw lastError ?? new Error("Webhook send failed");
|
|
15957
|
+
await postJsonWithRetry(this.httpClient, this.config.url, payload, {
|
|
15958
|
+
method: this.config.method,
|
|
15959
|
+
headers: this.config.headers,
|
|
15960
|
+
maxRetries: this.config.maxRetries,
|
|
15961
|
+
retryDelayMs: this.config.retryDelayMs,
|
|
15962
|
+
label: "Webhook"
|
|
15963
|
+
});
|
|
15934
15964
|
}
|
|
15935
15965
|
async trackEvent(name, attributes, options) {
|
|
15936
15966
|
const request = this.send({
|