autotel-subscribers 22.0.0 → 22.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of autotel-subscribers might be problematic. Click here for more details.
- package/binding.gyp +9 -0
- package/dist/factories.cjs +119 -115
- package/dist/factories.cjs.map +1 -1
- package/dist/factories.js +119 -115
- package/dist/factories.js.map +1 -1
- package/dist/index.cjs +119 -115
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +119 -115
- package/dist/index.js.map +1 -1
- package/dist/posthog.cjs +119 -115
- package/dist/posthog.cjs.map +1 -1
- package/dist/posthog.js +119 -115
- package/dist/posthog.js.map +1 -1
- package/index.js +1 -0
- package/package.json +7 -7
package/dist/posthog.cjs
CHANGED
|
@@ -43,11 +43,11 @@ function normalizeWindowsPath(path) {
|
|
|
43
43
|
return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
|
|
44
44
|
}
|
|
45
45
|
var init_module_node = __esm({
|
|
46
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
46
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
50
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs
|
|
51
51
|
function getFlagDetailFromFlagAndPayload(key, value, payload) {
|
|
52
52
|
return {
|
|
53
53
|
key,
|
|
@@ -64,7 +64,7 @@ function getFlagDetailFromFlagAndPayload(key, value, payload) {
|
|
|
64
64
|
}
|
|
65
65
|
var normalizeFlagsResponse, getFlagValuesFromFlags, getPayloadsFromFlags, getFeatureFlagValue, parsePayload;
|
|
66
66
|
var init_featureFlagUtils = __esm({
|
|
67
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
67
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
|
|
68
68
|
normalizeFlagsResponse = (flagsResponse) => {
|
|
69
69
|
if ("flags" in flagsResponse) {
|
|
70
70
|
const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
|
|
@@ -122,10 +122,10 @@ var init_featureFlagUtils = __esm({
|
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
|
|
125
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
125
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
|
|
126
126
|
var DIGITS, UUID, V7Generator, getDefaultRandom, defaultGenerator, uuidv7, uuidv7obj;
|
|
127
127
|
var init_uuidv7 = __esm({
|
|
128
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
128
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
|
|
129
129
|
DIGITS = "0123456789abcdef";
|
|
130
130
|
UUID = class _UUID {
|
|
131
131
|
constructor(bytes) {
|
|
@@ -286,10 +286,10 @@ var init_uuidv7 = __esm({
|
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
288
|
|
|
289
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
289
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs
|
|
290
290
|
var DEFAULT_BLOCKED_UA_STRS, isBlockedUA;
|
|
291
291
|
var init_bot_detection = __esm({
|
|
292
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
292
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
|
|
293
293
|
DEFAULT_BLOCKED_UA_STRS = [
|
|
294
294
|
"amazonbot",
|
|
295
295
|
"amazonproductbot",
|
|
@@ -380,10 +380,10 @@ var init_bot_detection = __esm({
|
|
|
380
380
|
}
|
|
381
381
|
});
|
|
382
382
|
|
|
383
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
383
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/types.mjs
|
|
384
384
|
var types_PostHogPersistedProperty, FeatureFlagError;
|
|
385
385
|
var init_types = __esm({
|
|
386
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
386
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/types.mjs"() {
|
|
387
387
|
types_PostHogPersistedProperty = /* @__PURE__ */ (function(PostHogPersistedProperty) {
|
|
388
388
|
PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
|
|
389
389
|
PostHogPersistedProperty["DistinctId"] = "distinct_id";
|
|
@@ -426,13 +426,13 @@ var init_types = __esm({
|
|
|
426
426
|
}
|
|
427
427
|
});
|
|
428
428
|
|
|
429
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
429
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/string-utils.mjs
|
|
430
430
|
var init_string_utils = __esm({
|
|
431
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
431
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
|
|
432
432
|
}
|
|
433
433
|
});
|
|
434
434
|
|
|
435
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
435
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/type-utils.mjs
|
|
436
436
|
function isPrimitive(value) {
|
|
437
437
|
return null === value || "object" != typeof value;
|
|
438
438
|
}
|
|
@@ -457,7 +457,7 @@ function isInstanceOf(candidate, base) {
|
|
|
457
457
|
}
|
|
458
458
|
var nativeIsArray, ObjProto, type_utils_toString, isArray, isObject, isUndefined, isString, isEmptyString, isNumber, isPlainError;
|
|
459
459
|
var init_type_utils = __esm({
|
|
460
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
460
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
|
|
461
461
|
init_types();
|
|
462
462
|
init_string_utils();
|
|
463
463
|
nativeIsArray = Array.isArray;
|
|
@@ -476,7 +476,7 @@ var init_type_utils = __esm({
|
|
|
476
476
|
}
|
|
477
477
|
});
|
|
478
478
|
|
|
479
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
479
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/number-utils.mjs
|
|
480
480
|
function clampToRange(value, min, max, logger, fallbackValue) {
|
|
481
481
|
if (min > max) {
|
|
482
482
|
logger.warn("min cannot be greater than max.");
|
|
@@ -494,15 +494,15 @@ function clampToRange(value, min, max, logger, fallbackValue) {
|
|
|
494
494
|
return clampToRange(max, min, max, logger);
|
|
495
495
|
}
|
|
496
496
|
var init_number_utils = __esm({
|
|
497
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
497
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
|
|
498
498
|
init_type_utils();
|
|
499
499
|
}
|
|
500
500
|
});
|
|
501
501
|
|
|
502
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
502
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
|
|
503
503
|
var ONE_DAY_IN_MS, BucketedRateLimiter;
|
|
504
504
|
var init_bucketed_rate_limiter = __esm({
|
|
505
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
505
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
|
|
506
506
|
init_number_utils();
|
|
507
507
|
ONE_DAY_IN_MS = 864e5;
|
|
508
508
|
BucketedRateLimiter = class {
|
|
@@ -546,10 +546,10 @@ var init_bucketed_rate_limiter = __esm({
|
|
|
546
546
|
}
|
|
547
547
|
});
|
|
548
548
|
|
|
549
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
549
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs
|
|
550
550
|
var PromiseQueue;
|
|
551
551
|
var init_promise_queue = __esm({
|
|
552
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
552
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
|
|
553
553
|
init_uuidv7();
|
|
554
554
|
PromiseQueue = class {
|
|
555
555
|
add(promise) {
|
|
@@ -580,7 +580,7 @@ var init_promise_queue = __esm({
|
|
|
580
580
|
}
|
|
581
581
|
});
|
|
582
582
|
|
|
583
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
583
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/logger.mjs
|
|
584
584
|
function createConsole(consoleLike = console) {
|
|
585
585
|
const lockedMethods = {
|
|
586
586
|
log: consoleLike.log.bind(consoleLike),
|
|
@@ -595,7 +595,7 @@ function createLogger(prefix, maybeCall = passThrough) {
|
|
|
595
595
|
}
|
|
596
596
|
var _createLogger, passThrough;
|
|
597
597
|
var init_logger = __esm({
|
|
598
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
598
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/logger.mjs"() {
|
|
599
599
|
_createLogger = (prefix, maybeCall, consoleLike) => {
|
|
600
600
|
function _log(level, ...args) {
|
|
601
601
|
maybeCall(() => {
|
|
@@ -624,10 +624,10 @@ var init_logger = __esm({
|
|
|
624
624
|
}
|
|
625
625
|
});
|
|
626
626
|
|
|
627
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
627
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
|
|
628
628
|
var MOBILE, TABLET, GENERIC;
|
|
629
629
|
var init_user_agent_utils = __esm({
|
|
630
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
630
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
|
|
631
631
|
init_string_utils();
|
|
632
632
|
init_type_utils();
|
|
633
633
|
MOBILE = "Mobile";
|
|
@@ -638,7 +638,7 @@ var init_user_agent_utils = __esm({
|
|
|
638
638
|
}
|
|
639
639
|
});
|
|
640
640
|
|
|
641
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
641
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/index.mjs
|
|
642
642
|
function assert(truthyValue, message) {
|
|
643
643
|
if (!truthyValue || "string" != typeof truthyValue || isEmpty(truthyValue)) throw new Error(message);
|
|
644
644
|
}
|
|
@@ -682,7 +682,7 @@ function allSettled(promises) {
|
|
|
682
682
|
}
|
|
683
683
|
var STRING_FORMAT, isError;
|
|
684
684
|
var init_utils = __esm({
|
|
685
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
685
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/index.mjs"() {
|
|
686
686
|
init_bot_detection();
|
|
687
687
|
init_bucketed_rate_limiter();
|
|
688
688
|
init_number_utils();
|
|
@@ -696,10 +696,10 @@ var init_utils = __esm({
|
|
|
696
696
|
}
|
|
697
697
|
});
|
|
698
698
|
|
|
699
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
699
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/eventemitter.mjs
|
|
700
700
|
var SimpleEventEmitter;
|
|
701
701
|
var init_eventemitter = __esm({
|
|
702
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
702
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/eventemitter.mjs"() {
|
|
703
703
|
SimpleEventEmitter = class {
|
|
704
704
|
constructor() {
|
|
705
705
|
this.events = {};
|
|
@@ -720,7 +720,7 @@ var init_eventemitter = __esm({
|
|
|
720
720
|
}
|
|
721
721
|
});
|
|
722
722
|
|
|
723
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
723
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/gzip.mjs
|
|
724
724
|
function isGzipSupported() {
|
|
725
725
|
return "CompressionStream" in globalThis;
|
|
726
726
|
}
|
|
@@ -739,11 +739,11 @@ async function gzipCompress(input, isDebug = true) {
|
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
var init_gzip = __esm({
|
|
742
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
742
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/gzip.mjs"() {
|
|
743
743
|
}
|
|
744
744
|
});
|
|
745
745
|
|
|
746
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
746
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
|
|
747
747
|
async function logFlushError(err) {
|
|
748
748
|
if (err instanceof PostHogFetchHttpError) {
|
|
749
749
|
let text = "";
|
|
@@ -763,7 +763,7 @@ function isPostHogFetchContentTooLargeError(err) {
|
|
|
763
763
|
}
|
|
764
764
|
var PostHogFetchHttpError, PostHogFetchNetworkError, PostHogCoreStateless;
|
|
765
765
|
var init_posthog_core_stateless = __esm({
|
|
766
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
766
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
|
|
767
767
|
init_eventemitter();
|
|
768
768
|
init_featureFlagUtils();
|
|
769
769
|
init_gzip();
|
|
@@ -1177,6 +1177,8 @@ var init_posthog_core_stateless = __esm({
|
|
|
1177
1177
|
processBeforeEnqueue(message) {
|
|
1178
1178
|
return message;
|
|
1179
1179
|
}
|
|
1180
|
+
async flushStorage() {
|
|
1181
|
+
}
|
|
1180
1182
|
enqueue(type, _message, options) {
|
|
1181
1183
|
this.wrap(() => {
|
|
1182
1184
|
if (this.optedOut) return void this._events.emit(type, "Library is disabled. Not sending event. To re-enable, call posthog.optIn()");
|
|
@@ -1292,11 +1294,12 @@ var init_posthog_core_stateless = __esm({
|
|
|
1292
1294
|
while (queue.length > 0 && sentMessages.length < originalQueueLength) {
|
|
1293
1295
|
const batchItems = queue.slice(0, this.maxBatchSize);
|
|
1294
1296
|
const batchMessages = batchItems.map((item) => item.message);
|
|
1295
|
-
const persistQueueChange = () => {
|
|
1297
|
+
const persistQueueChange = async () => {
|
|
1296
1298
|
const refreshedQueue = this.getPersistedProperty(types_PostHogPersistedProperty.Queue) || [];
|
|
1297
1299
|
const newQueue = refreshedQueue.slice(batchItems.length);
|
|
1298
1300
|
this.setPersistedProperty(types_PostHogPersistedProperty.Queue, newQueue);
|
|
1299
1301
|
queue = newQueue;
|
|
1302
|
+
await this.flushStorage();
|
|
1300
1303
|
};
|
|
1301
1304
|
const data = {
|
|
1302
1305
|
api_key: this.apiKey,
|
|
@@ -1332,11 +1335,11 @@ var init_posthog_core_stateless = __esm({
|
|
|
1332
1335
|
this._logger.warn(`Received 413 when sending batch of size ${batchMessages.length}, reducing batch size to ${this.maxBatchSize}`);
|
|
1333
1336
|
continue;
|
|
1334
1337
|
}
|
|
1335
|
-
if (!(err instanceof PostHogFetchNetworkError)) persistQueueChange();
|
|
1338
|
+
if (!(err instanceof PostHogFetchNetworkError)) await persistQueueChange();
|
|
1336
1339
|
this._events.emit("error", err);
|
|
1337
1340
|
throw err;
|
|
1338
1341
|
}
|
|
1339
|
-
persistQueueChange();
|
|
1342
|
+
await persistQueueChange();
|
|
1340
1343
|
sentMessages.push(...batchMessages);
|
|
1341
1344
|
}
|
|
1342
1345
|
this._events.emit("flush", sentMessages);
|
|
@@ -1416,9 +1419,9 @@ var init_posthog_core_stateless = __esm({
|
|
|
1416
1419
|
}
|
|
1417
1420
|
});
|
|
1418
1421
|
|
|
1419
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1422
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/posthog-core.mjs
|
|
1420
1423
|
var init_posthog_core = __esm({
|
|
1421
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1424
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/posthog-core.mjs"() {
|
|
1422
1425
|
init_featureFlagUtils();
|
|
1423
1426
|
init_types();
|
|
1424
1427
|
init_posthog_core_stateless();
|
|
@@ -1427,7 +1430,7 @@ var init_posthog_core = __esm({
|
|
|
1427
1430
|
}
|
|
1428
1431
|
});
|
|
1429
1432
|
|
|
1430
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1433
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
|
|
1431
1434
|
function getFilenameToChunkIdMap(stackParser) {
|
|
1432
1435
|
const chunkIdMap = globalThis._posthogChunkIds;
|
|
1433
1436
|
if (!chunkIdMap) return;
|
|
@@ -1460,14 +1463,14 @@ function getFilenameToChunkIdMap(stackParser) {
|
|
|
1460
1463
|
}
|
|
1461
1464
|
var parsedStackResults, lastKeysCount, cachedFilenameChunkIds;
|
|
1462
1465
|
var init_chunk_ids = __esm({
|
|
1463
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1466
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
|
|
1464
1467
|
}
|
|
1465
1468
|
});
|
|
1466
1469
|
|
|
1467
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1470
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
|
|
1468
1471
|
var MAX_CAUSE_RECURSION, ErrorPropertiesBuilder;
|
|
1469
1472
|
var init_error_properties_builder = __esm({
|
|
1470
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1473
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
|
|
1471
1474
|
init_utils();
|
|
1472
1475
|
init_chunk_ids();
|
|
1473
1476
|
MAX_CAUSE_RECURSION = 4;
|
|
@@ -1485,7 +1488,7 @@ var init_error_properties_builder = __esm({
|
|
|
1485
1488
|
};
|
|
1486
1489
|
const coercingContext = this.buildCoercingContext(mechanism, hint, 0);
|
|
1487
1490
|
const exceptionWithCause = coercingContext.apply(input);
|
|
1488
|
-
const parsingContext = this.buildParsingContext();
|
|
1491
|
+
const parsingContext = this.buildParsingContext(hint);
|
|
1489
1492
|
const exceptionWithStack = this.parseStacktrace(exceptionWithCause, parsingContext);
|
|
1490
1493
|
const exceptionList = this.convertToExceptionList(exceptionWithStack, mechanism);
|
|
1491
1494
|
return {
|
|
@@ -1509,7 +1512,7 @@ var init_error_properties_builder = __esm({
|
|
|
1509
1512
|
let cause;
|
|
1510
1513
|
if (null != err.cause) cause = this.parseStacktrace(err.cause, ctx);
|
|
1511
1514
|
let stack;
|
|
1512
|
-
if ("" != err.stack && null != err.stack) stack = this.applyChunkIds(this.stackParser(err.stack, err.synthetic ?
|
|
1515
|
+
if ("" != err.stack && null != err.stack) stack = this.applyChunkIds(this.stackParser(err.stack, err.synthetic ? ctx.skipFirstLines : 0), ctx.chunkIdMap);
|
|
1513
1516
|
return {
|
|
1514
1517
|
...err,
|
|
1515
1518
|
cause,
|
|
@@ -1554,9 +1557,10 @@ var init_error_properties_builder = __esm({
|
|
|
1554
1557
|
}));
|
|
1555
1558
|
return exceptionList;
|
|
1556
1559
|
}
|
|
1557
|
-
buildParsingContext() {
|
|
1560
|
+
buildParsingContext(hint) {
|
|
1558
1561
|
const context = {
|
|
1559
|
-
chunkIdMap: getFilenameToChunkIdMap(this.stackParser)
|
|
1562
|
+
chunkIdMap: getFilenameToChunkIdMap(this.stackParser),
|
|
1563
|
+
skipFirstLines: hint.skipFirstLines ?? 1
|
|
1560
1564
|
};
|
|
1561
1565
|
return context;
|
|
1562
1566
|
}
|
|
@@ -1581,7 +1585,7 @@ var init_error_properties_builder = __esm({
|
|
|
1581
1585
|
}
|
|
1582
1586
|
});
|
|
1583
1587
|
|
|
1584
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1588
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
|
|
1585
1589
|
function createFrame(platform, filename, func, lineno, colno) {
|
|
1586
1590
|
const frame = {
|
|
1587
1591
|
platform,
|
|
@@ -1595,16 +1599,16 @@ function createFrame(platform, filename, func, lineno, colno) {
|
|
|
1595
1599
|
}
|
|
1596
1600
|
var UNKNOWN_FUNCTION;
|
|
1597
1601
|
var init_base = __esm({
|
|
1598
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1602
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
|
|
1599
1603
|
init_utils();
|
|
1600
1604
|
UNKNOWN_FUNCTION = "?";
|
|
1601
1605
|
}
|
|
1602
1606
|
});
|
|
1603
1607
|
|
|
1604
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1608
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
|
|
1605
1609
|
var extractSafariExtensionDetails;
|
|
1606
1610
|
var init_safari = __esm({
|
|
1607
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1611
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
|
|
1608
1612
|
init_base();
|
|
1609
1613
|
extractSafariExtensionDetails = (func, filename) => {
|
|
1610
1614
|
const isSafariExtension = -1 !== func.indexOf("safari-extension");
|
|
@@ -1620,10 +1624,10 @@ var init_safari = __esm({
|
|
|
1620
1624
|
}
|
|
1621
1625
|
});
|
|
1622
1626
|
|
|
1623
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1627
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
|
|
1624
1628
|
var chromeRegexNoFnName, chromeRegex, chromeEvalRegex, chromeStackLineParser;
|
|
1625
1629
|
var init_chrome = __esm({
|
|
1626
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1630
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
|
|
1627
1631
|
init_base();
|
|
1628
1632
|
init_safari();
|
|
1629
1633
|
chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
|
|
@@ -1653,10 +1657,10 @@ var init_chrome = __esm({
|
|
|
1653
1657
|
}
|
|
1654
1658
|
});
|
|
1655
1659
|
|
|
1656
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1660
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
|
|
1657
1661
|
var geckoREgex, geckoEvalRegex, geckoStackLineParser;
|
|
1658
1662
|
var init_gecko = __esm({
|
|
1659
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1663
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
|
|
1660
1664
|
init_base();
|
|
1661
1665
|
init_safari();
|
|
1662
1666
|
geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
|
|
@@ -1683,10 +1687,10 @@ var init_gecko = __esm({
|
|
|
1683
1687
|
}
|
|
1684
1688
|
});
|
|
1685
1689
|
|
|
1686
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1690
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
|
|
1687
1691
|
var winjsRegex, winjsStackLineParser;
|
|
1688
1692
|
var init_winjs = __esm({
|
|
1689
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1693
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
|
|
1690
1694
|
init_base();
|
|
1691
1695
|
winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
|
|
1692
1696
|
winjsStackLineParser = (line, platform) => {
|
|
@@ -1696,10 +1700,10 @@ var init_winjs = __esm({
|
|
|
1696
1700
|
}
|
|
1697
1701
|
});
|
|
1698
1702
|
|
|
1699
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1703
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
|
|
1700
1704
|
var opera10Regex, opera10StackLineParser, opera11Regex, opera11StackLineParser;
|
|
1701
1705
|
var init_opera = __esm({
|
|
1702
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1706
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
|
|
1703
1707
|
init_base();
|
|
1704
1708
|
opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
|
|
1705
1709
|
opera10StackLineParser = (line, platform) => {
|
|
@@ -1714,7 +1718,7 @@ var init_opera = __esm({
|
|
|
1714
1718
|
}
|
|
1715
1719
|
});
|
|
1716
1720
|
|
|
1717
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1721
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
|
|
1718
1722
|
function filenameIsInApp(filename, isNative = false) {
|
|
1719
1723
|
const isInternal = isNative || filename && !filename.startsWith("/") && !filename.match(/^[A-Z]:/) && !filename.startsWith(".") && !filename.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//);
|
|
1720
1724
|
return !isInternal && void 0 !== filename && !filename.includes("node_modules/");
|
|
@@ -1724,7 +1728,7 @@ function _parseIntOrUndefined(input) {
|
|
|
1724
1728
|
}
|
|
1725
1729
|
var FILENAME_MATCH, FULL_MATCH, nodeStackLineParser;
|
|
1726
1730
|
var init_node = __esm({
|
|
1727
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1731
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
|
|
1728
1732
|
init_base();
|
|
1729
1733
|
FILENAME_MATCH = /^\s*[-]{4,}$/;
|
|
1730
1734
|
FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
|
|
@@ -1785,7 +1789,7 @@ var init_node = __esm({
|
|
|
1785
1789
|
}
|
|
1786
1790
|
});
|
|
1787
1791
|
|
|
1788
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1792
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
|
|
1789
1793
|
function reverseAndStripFrames(stack) {
|
|
1790
1794
|
if (!stack.length) return [];
|
|
1791
1795
|
const localStack = Array.from(stack);
|
|
@@ -1826,7 +1830,7 @@ function createStackParser(platform, ...parsers) {
|
|
|
1826
1830
|
}
|
|
1827
1831
|
var WEBPACK_ERROR_REGEXP, STACKTRACE_FRAME_LIMIT;
|
|
1828
1832
|
var init_parsers = __esm({
|
|
1829
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1833
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
|
|
1830
1834
|
init_base();
|
|
1831
1835
|
init_chrome();
|
|
1832
1836
|
init_gecko();
|
|
@@ -1838,10 +1842,10 @@ var init_parsers = __esm({
|
|
|
1838
1842
|
}
|
|
1839
1843
|
});
|
|
1840
1844
|
|
|
1841
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1845
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
|
|
1842
1846
|
var DOMExceptionCoercer;
|
|
1843
1847
|
var init_dom_exception_coercer = __esm({
|
|
1844
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1848
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
|
|
1845
1849
|
init_utils();
|
|
1846
1850
|
DOMExceptionCoercer = class {
|
|
1847
1851
|
match(err) {
|
|
@@ -1875,10 +1879,10 @@ var init_dom_exception_coercer = __esm({
|
|
|
1875
1879
|
}
|
|
1876
1880
|
});
|
|
1877
1881
|
|
|
1878
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1882
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
|
|
1879
1883
|
var ErrorCoercer;
|
|
1880
1884
|
var init_error_coercer = __esm({
|
|
1881
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1885
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
|
|
1882
1886
|
init_utils();
|
|
1883
1887
|
ErrorCoercer = class {
|
|
1884
1888
|
match(err) {
|
|
@@ -1908,10 +1912,10 @@ var init_error_coercer = __esm({
|
|
|
1908
1912
|
}
|
|
1909
1913
|
});
|
|
1910
1914
|
|
|
1911
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1915
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
|
|
1912
1916
|
var ErrorEventCoercer;
|
|
1913
1917
|
var init_error_event_coercer = __esm({
|
|
1914
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1918
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
|
|
1915
1919
|
init_utils();
|
|
1916
1920
|
ErrorEventCoercer = class {
|
|
1917
1921
|
constructor() {
|
|
@@ -1933,10 +1937,10 @@ var init_error_event_coercer = __esm({
|
|
|
1933
1937
|
}
|
|
1934
1938
|
});
|
|
1935
1939
|
|
|
1936
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1940
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
|
|
1937
1941
|
var ERROR_TYPES_PATTERN, StringCoercer;
|
|
1938
1942
|
var init_string_coercer = __esm({
|
|
1939
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1943
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
|
|
1940
1944
|
ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
|
|
1941
1945
|
StringCoercer = class {
|
|
1942
1946
|
match(input) {
|
|
@@ -1968,10 +1972,10 @@ var init_string_coercer = __esm({
|
|
|
1968
1972
|
}
|
|
1969
1973
|
});
|
|
1970
1974
|
|
|
1971
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1975
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/types.mjs
|
|
1972
1976
|
var severityLevels;
|
|
1973
1977
|
var init_types2 = __esm({
|
|
1974
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1978
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
|
|
1975
1979
|
severityLevels = [
|
|
1976
1980
|
"fatal",
|
|
1977
1981
|
"error",
|
|
@@ -1983,7 +1987,7 @@ var init_types2 = __esm({
|
|
|
1983
1987
|
}
|
|
1984
1988
|
});
|
|
1985
1989
|
|
|
1986
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1990
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
|
|
1987
1991
|
function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
1988
1992
|
const keys = Object.keys(err);
|
|
1989
1993
|
keys.sort();
|
|
@@ -1998,14 +2002,14 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
|
1998
2002
|
return "";
|
|
1999
2003
|
}
|
|
2000
2004
|
var init_utils2 = __esm({
|
|
2001
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2005
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
|
|
2002
2006
|
}
|
|
2003
2007
|
});
|
|
2004
2008
|
|
|
2005
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2009
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
|
|
2006
2010
|
var ObjectCoercer;
|
|
2007
2011
|
var init_object_coercer = __esm({
|
|
2008
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2012
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
|
|
2009
2013
|
init_utils();
|
|
2010
2014
|
init_types2();
|
|
2011
2015
|
init_utils2();
|
|
@@ -2059,10 +2063,10 @@ var init_object_coercer = __esm({
|
|
|
2059
2063
|
}
|
|
2060
2064
|
});
|
|
2061
2065
|
|
|
2062
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2066
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
|
|
2063
2067
|
var EventCoercer;
|
|
2064
2068
|
var init_event_coercer = __esm({
|
|
2065
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2069
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
|
|
2066
2070
|
init_utils();
|
|
2067
2071
|
init_utils2();
|
|
2068
2072
|
EventCoercer = class {
|
|
@@ -2082,10 +2086,10 @@ var init_event_coercer = __esm({
|
|
|
2082
2086
|
}
|
|
2083
2087
|
});
|
|
2084
2088
|
|
|
2085
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2089
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
|
|
2086
2090
|
var PrimitiveCoercer;
|
|
2087
2091
|
var init_primitive_coercer = __esm({
|
|
2088
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2092
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
|
|
2089
2093
|
init_utils();
|
|
2090
2094
|
PrimitiveCoercer = class {
|
|
2091
2095
|
match(candidate) {
|
|
@@ -2103,10 +2107,10 @@ var init_primitive_coercer = __esm({
|
|
|
2103
2107
|
}
|
|
2104
2108
|
});
|
|
2105
2109
|
|
|
2106
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2110
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
|
|
2107
2111
|
var PromiseRejectionEventCoercer;
|
|
2108
2112
|
var init_promise_rejection_event = __esm({
|
|
2109
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2113
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
|
|
2110
2114
|
init_utils();
|
|
2111
2115
|
PromiseRejectionEventCoercer = class {
|
|
2112
2116
|
match(err) {
|
|
@@ -2135,9 +2139,9 @@ var init_promise_rejection_event = __esm({
|
|
|
2135
2139
|
}
|
|
2136
2140
|
});
|
|
2137
2141
|
|
|
2138
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2142
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
|
|
2139
2143
|
var init_coercers = __esm({
|
|
2140
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2144
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
|
|
2141
2145
|
init_dom_exception_coercer();
|
|
2142
2146
|
init_error_coercer();
|
|
2143
2147
|
init_error_event_coercer();
|
|
@@ -2149,10 +2153,10 @@ var init_coercers = __esm({
|
|
|
2149
2153
|
}
|
|
2150
2154
|
});
|
|
2151
2155
|
|
|
2152
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2156
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs
|
|
2153
2157
|
var ReduceableCache;
|
|
2154
2158
|
var init_utils3 = __esm({
|
|
2155
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2159
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
|
|
2156
2160
|
ReduceableCache = class {
|
|
2157
2161
|
constructor(_maxSize) {
|
|
2158
2162
|
this._maxSize = _maxSize;
|
|
@@ -2178,7 +2182,7 @@ var init_utils3 = __esm({
|
|
|
2178
2182
|
}
|
|
2179
2183
|
});
|
|
2180
2184
|
|
|
2181
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2185
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/index.mjs
|
|
2182
2186
|
var error_tracking_exports = {};
|
|
2183
2187
|
__export(error_tracking_exports, {
|
|
2184
2188
|
DOMExceptionCoercer: () => DOMExceptionCoercer,
|
|
@@ -2202,7 +2206,7 @@ __export(error_tracking_exports, {
|
|
|
2202
2206
|
winjsStackLineParser: () => winjsStackLineParser
|
|
2203
2207
|
});
|
|
2204
2208
|
var init_error_tracking = __esm({
|
|
2205
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2209
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
|
|
2206
2210
|
init_error_properties_builder();
|
|
2207
2211
|
init_parsers();
|
|
2208
2212
|
init_coercers();
|
|
@@ -2210,9 +2214,9 @@ var init_error_tracking = __esm({
|
|
|
2210
2214
|
}
|
|
2211
2215
|
});
|
|
2212
2216
|
|
|
2213
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2217
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/index.mjs
|
|
2214
2218
|
var init_dist = __esm({
|
|
2215
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2219
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/index.mjs"() {
|
|
2216
2220
|
init_featureFlagUtils();
|
|
2217
2221
|
init_uuidv7();
|
|
2218
2222
|
init_utils();
|
|
@@ -2403,7 +2407,7 @@ function snipLine(line, colno) {
|
|
|
2403
2407
|
}
|
|
2404
2408
|
var LRU_FILE_CONTENTS_CACHE, LRU_FILE_CONTENTS_FS_READ_FAILED, DEFAULT_LINES_OF_CONTEXT, MAX_CONTEXTLINES_COLNO, MAX_CONTEXTLINES_LINENO;
|
|
2405
2409
|
var init_context_lines_node = __esm({
|
|
2406
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2410
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
|
|
2407
2411
|
init_dist();
|
|
2408
2412
|
LRU_FILE_CONTENTS_CACHE = new error_tracking_exports.ReduceableCache(25);
|
|
2409
2413
|
LRU_FILE_CONTENTS_FS_READ_FAILED = new error_tracking_exports.ReduceableCache(20);
|
|
@@ -2413,7 +2417,7 @@ var init_context_lines_node = __esm({
|
|
|
2413
2417
|
}
|
|
2414
2418
|
});
|
|
2415
2419
|
|
|
2416
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2420
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
|
|
2417
2421
|
function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
|
|
2418
2422
|
let calledFatalError = false;
|
|
2419
2423
|
return Object.assign((error) => {
|
|
@@ -2445,14 +2449,14 @@ function addUnhandledRejectionListener(captureFn) {
|
|
|
2445
2449
|
}));
|
|
2446
2450
|
}
|
|
2447
2451
|
var init_autocapture = __esm({
|
|
2448
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2452
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
|
|
2449
2453
|
}
|
|
2450
2454
|
});
|
|
2451
2455
|
|
|
2452
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2456
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
|
|
2453
2457
|
var SHUTDOWN_TIMEOUT, ErrorTracking;
|
|
2454
2458
|
var init_error_tracking2 = __esm({
|
|
2455
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2459
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
|
|
2456
2460
|
init_autocapture();
|
|
2457
2461
|
init_dist();
|
|
2458
2462
|
SHUTDOWN_TIMEOUT = 2e3;
|
|
@@ -2523,18 +2527,18 @@ var init_error_tracking2 = __esm({
|
|
|
2523
2527
|
}
|
|
2524
2528
|
});
|
|
2525
2529
|
|
|
2526
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2530
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/version.mjs
|
|
2527
2531
|
var version;
|
|
2528
2532
|
var init_version = __esm({
|
|
2529
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2530
|
-
version = "5.24.
|
|
2533
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/version.mjs"() {
|
|
2534
|
+
version = "5.24.11";
|
|
2531
2535
|
}
|
|
2532
2536
|
});
|
|
2533
2537
|
|
|
2534
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2538
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/types.mjs
|
|
2535
2539
|
var FeatureFlagError2;
|
|
2536
2540
|
var init_types3 = __esm({
|
|
2537
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2541
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/types.mjs"() {
|
|
2538
2542
|
FeatureFlagError2 = {
|
|
2539
2543
|
ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
|
|
2540
2544
|
FLAG_MISSING: "flag_missing",
|
|
@@ -2544,7 +2548,7 @@ var init_types3 = __esm({
|
|
|
2544
2548
|
}
|
|
2545
2549
|
});
|
|
2546
2550
|
|
|
2547
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2551
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
|
|
2548
2552
|
async function hashSHA1(text) {
|
|
2549
2553
|
const subtle = globalThis.crypto?.subtle;
|
|
2550
2554
|
if (!subtle) throw new Error("SubtleCrypto API not available");
|
|
@@ -2553,11 +2557,11 @@ async function hashSHA1(text) {
|
|
|
2553
2557
|
return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
2554
2558
|
}
|
|
2555
2559
|
var init_crypto = __esm({
|
|
2556
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2560
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
|
|
2557
2561
|
}
|
|
2558
2562
|
});
|
|
2559
2563
|
|
|
2560
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2564
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
|
|
2561
2565
|
async function _hash(key, distinctId, salt = "") {
|
|
2562
2566
|
const hashString = await hashSHA1(`${key}.${distinctId}${salt}`);
|
|
2563
2567
|
return parseInt(hashString.slice(0, 15), 16) / LONG_SCALE;
|
|
@@ -2725,7 +2729,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
|
|
|
2725
2729
|
}
|
|
2726
2730
|
var SIXTY_SECONDS, LONG_SCALE, NULL_VALUES_ALLOWED_OPERATORS, ClientError, InconclusiveMatchError, RequiresServerEvaluation, FeatureFlagsPoller;
|
|
2727
2731
|
var init_feature_flags = __esm({
|
|
2728
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2732
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
|
|
2729
2733
|
init_dist();
|
|
2730
2734
|
init_crypto();
|
|
2731
2735
|
SIXTY_SECONDS = 6e4;
|
|
@@ -3138,10 +3142,10 @@ var init_feature_flags = __esm({
|
|
|
3138
3142
|
}
|
|
3139
3143
|
});
|
|
3140
3144
|
|
|
3141
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3145
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/storage-memory.mjs
|
|
3142
3146
|
var PostHogMemoryStorage;
|
|
3143
3147
|
var init_storage_memory = __esm({
|
|
3144
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3148
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/storage-memory.mjs"() {
|
|
3145
3149
|
PostHogMemoryStorage = class {
|
|
3146
3150
|
getProperty(key) {
|
|
3147
3151
|
return this._memoryStorage[key];
|
|
@@ -3156,10 +3160,10 @@ var init_storage_memory = __esm({
|
|
|
3156
3160
|
}
|
|
3157
3161
|
});
|
|
3158
3162
|
|
|
3159
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3163
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/client.mjs
|
|
3160
3164
|
var MINIMUM_POLLING_INTERVAL, THIRTY_SECONDS, MAX_CACHE_SIZE, PostHogBackendClient;
|
|
3161
3165
|
var init_client = __esm({
|
|
3162
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3166
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/client.mjs"() {
|
|
3163
3167
|
init_version();
|
|
3164
3168
|
init_dist();
|
|
3165
3169
|
init_types3();
|
|
@@ -3767,7 +3771,7 @@ var init_client = __esm({
|
|
|
3767
3771
|
});
|
|
3768
3772
|
var PostHogContext;
|
|
3769
3773
|
var init_context = __esm({
|
|
3770
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3774
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
|
|
3771
3775
|
PostHogContext = class {
|
|
3772
3776
|
constructor() {
|
|
3773
3777
|
this.storage = new async_hooks.AsyncLocalStorage();
|
|
@@ -3795,7 +3799,7 @@ var init_context = __esm({
|
|
|
3795
3799
|
}
|
|
3796
3800
|
});
|
|
3797
3801
|
|
|
3798
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3802
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
|
|
3799
3803
|
function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
|
|
3800
3804
|
"error"
|
|
3801
3805
|
], sendExceptionsToPostHog = true } = {}) {
|
|
@@ -3851,7 +3855,7 @@ function sentryIntegration(_posthog, options) {
|
|
|
3851
3855
|
}
|
|
3852
3856
|
var NAME, PostHogSentryIntegration;
|
|
3853
3857
|
var init_sentry_integration = __esm({
|
|
3854
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3858
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
|
|
3855
3859
|
NAME = "posthog-node";
|
|
3856
3860
|
PostHogSentryIntegration = class {
|
|
3857
3861
|
static #_ = this.POSTHOG_ID_TAG = "posthog_distinct_id";
|
|
@@ -3873,7 +3877,7 @@ var init_sentry_integration = __esm({
|
|
|
3873
3877
|
}
|
|
3874
3878
|
});
|
|
3875
3879
|
|
|
3876
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3880
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/express.mjs
|
|
3877
3881
|
function setupExpressErrorHandler(_posthog, app) {
|
|
3878
3882
|
app.use(posthogErrorHandler(_posthog));
|
|
3879
3883
|
}
|
|
@@ -3905,14 +3909,14 @@ function posthogErrorHandler(posthog) {
|
|
|
3905
3909
|
};
|
|
3906
3910
|
}
|
|
3907
3911
|
var init_express = __esm({
|
|
3908
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3912
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/express.mjs"() {
|
|
3909
3913
|
init_error_tracking2();
|
|
3910
3914
|
}
|
|
3911
3915
|
});
|
|
3912
3916
|
|
|
3913
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3917
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/exports.mjs
|
|
3914
3918
|
var init_exports = __esm({
|
|
3915
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3919
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/exports.mjs"() {
|
|
3916
3920
|
init_dist();
|
|
3917
3921
|
init_sentry_integration();
|
|
3918
3922
|
init_express();
|
|
@@ -3920,7 +3924,7 @@ var init_exports = __esm({
|
|
|
3920
3924
|
}
|
|
3921
3925
|
});
|
|
3922
3926
|
|
|
3923
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3927
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/entrypoints/index.node.mjs
|
|
3924
3928
|
var index_node_exports = {};
|
|
3925
3929
|
__export(index_node_exports, {
|
|
3926
3930
|
FeatureFlagError: () => FeatureFlagError,
|
|
@@ -3932,7 +3936,7 @@ __export(index_node_exports, {
|
|
|
3932
3936
|
});
|
|
3933
3937
|
var PostHog;
|
|
3934
3938
|
var init_index_node = __esm({
|
|
3935
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3939
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
|
|
3936
3940
|
init_module_node();
|
|
3937
3941
|
init_context_lines_node();
|
|
3938
3942
|
init_error_tracking2();
|