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.
- 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/factories.cjs
CHANGED
|
@@ -115,11 +115,11 @@ function normalizeWindowsPath(path) {
|
|
|
115
115
|
return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
|
|
116
116
|
}
|
|
117
117
|
var init_module_node = __esm({
|
|
118
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
118
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
122
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs
|
|
123
123
|
function getFlagDetailFromFlagAndPayload(key, value, payload) {
|
|
124
124
|
return {
|
|
125
125
|
key,
|
|
@@ -136,7 +136,7 @@ function getFlagDetailFromFlagAndPayload(key, value, payload) {
|
|
|
136
136
|
}
|
|
137
137
|
var normalizeFlagsResponse, getFlagValuesFromFlags, getPayloadsFromFlags, getFeatureFlagValue, parsePayload;
|
|
138
138
|
var init_featureFlagUtils = __esm({
|
|
139
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
139
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
|
|
140
140
|
normalizeFlagsResponse = (flagsResponse) => {
|
|
141
141
|
if ("flags" in flagsResponse) {
|
|
142
142
|
const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
|
|
@@ -194,10 +194,10 @@ var init_featureFlagUtils = __esm({
|
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
196
|
|
|
197
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
197
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
|
|
198
198
|
var DIGITS, UUID, V7Generator, getDefaultRandom, defaultGenerator, uuidv7, uuidv7obj;
|
|
199
199
|
var init_uuidv7 = __esm({
|
|
200
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
200
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
|
|
201
201
|
DIGITS = "0123456789abcdef";
|
|
202
202
|
UUID = class _UUID {
|
|
203
203
|
constructor(bytes) {
|
|
@@ -358,10 +358,10 @@ var init_uuidv7 = __esm({
|
|
|
358
358
|
}
|
|
359
359
|
});
|
|
360
360
|
|
|
361
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
361
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs
|
|
362
362
|
var DEFAULT_BLOCKED_UA_STRS, isBlockedUA;
|
|
363
363
|
var init_bot_detection = __esm({
|
|
364
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
364
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
|
|
365
365
|
DEFAULT_BLOCKED_UA_STRS = [
|
|
366
366
|
"amazonbot",
|
|
367
367
|
"amazonproductbot",
|
|
@@ -452,10 +452,10 @@ var init_bot_detection = __esm({
|
|
|
452
452
|
}
|
|
453
453
|
});
|
|
454
454
|
|
|
455
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
455
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/types.mjs
|
|
456
456
|
var types_PostHogPersistedProperty, FeatureFlagError;
|
|
457
457
|
var init_types = __esm({
|
|
458
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
458
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/types.mjs"() {
|
|
459
459
|
types_PostHogPersistedProperty = /* @__PURE__ */ (function(PostHogPersistedProperty) {
|
|
460
460
|
PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
|
|
461
461
|
PostHogPersistedProperty["DistinctId"] = "distinct_id";
|
|
@@ -498,13 +498,13 @@ var init_types = __esm({
|
|
|
498
498
|
}
|
|
499
499
|
});
|
|
500
500
|
|
|
501
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
501
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/string-utils.mjs
|
|
502
502
|
var init_string_utils = __esm({
|
|
503
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
503
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
|
|
504
504
|
}
|
|
505
505
|
});
|
|
506
506
|
|
|
507
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
507
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/type-utils.mjs
|
|
508
508
|
function isPrimitive(value) {
|
|
509
509
|
return null === value || "object" != typeof value;
|
|
510
510
|
}
|
|
@@ -529,7 +529,7 @@ function isInstanceOf(candidate, base) {
|
|
|
529
529
|
}
|
|
530
530
|
var nativeIsArray, ObjProto, type_utils_toString, isArray, isObject, isUndefined, isString, isEmptyString, isNumber, isPlainError;
|
|
531
531
|
var init_type_utils = __esm({
|
|
532
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
532
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
|
|
533
533
|
init_types();
|
|
534
534
|
init_string_utils();
|
|
535
535
|
nativeIsArray = Array.isArray;
|
|
@@ -548,7 +548,7 @@ var init_type_utils = __esm({
|
|
|
548
548
|
}
|
|
549
549
|
});
|
|
550
550
|
|
|
551
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
551
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/number-utils.mjs
|
|
552
552
|
function clampToRange(value, min, max, logger, fallbackValue) {
|
|
553
553
|
if (min > max) {
|
|
554
554
|
logger.warn("min cannot be greater than max.");
|
|
@@ -566,15 +566,15 @@ function clampToRange(value, min, max, logger, fallbackValue) {
|
|
|
566
566
|
return clampToRange(max, min, max, logger);
|
|
567
567
|
}
|
|
568
568
|
var init_number_utils = __esm({
|
|
569
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
569
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
|
|
570
570
|
init_type_utils();
|
|
571
571
|
}
|
|
572
572
|
});
|
|
573
573
|
|
|
574
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
574
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
|
|
575
575
|
var ONE_DAY_IN_MS, BucketedRateLimiter;
|
|
576
576
|
var init_bucketed_rate_limiter = __esm({
|
|
577
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
577
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
|
|
578
578
|
init_number_utils();
|
|
579
579
|
ONE_DAY_IN_MS = 864e5;
|
|
580
580
|
BucketedRateLimiter = class {
|
|
@@ -618,10 +618,10 @@ var init_bucketed_rate_limiter = __esm({
|
|
|
618
618
|
}
|
|
619
619
|
});
|
|
620
620
|
|
|
621
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
621
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs
|
|
622
622
|
var PromiseQueue;
|
|
623
623
|
var init_promise_queue = __esm({
|
|
624
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
624
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
|
|
625
625
|
init_uuidv7();
|
|
626
626
|
PromiseQueue = class {
|
|
627
627
|
add(promise) {
|
|
@@ -652,7 +652,7 @@ var init_promise_queue = __esm({
|
|
|
652
652
|
}
|
|
653
653
|
});
|
|
654
654
|
|
|
655
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
655
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/logger.mjs
|
|
656
656
|
function createConsole(consoleLike = console) {
|
|
657
657
|
const lockedMethods = {
|
|
658
658
|
log: consoleLike.log.bind(consoleLike),
|
|
@@ -667,7 +667,7 @@ function createLogger(prefix, maybeCall = passThrough) {
|
|
|
667
667
|
}
|
|
668
668
|
var _createLogger, passThrough;
|
|
669
669
|
var init_logger = __esm({
|
|
670
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
670
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/logger.mjs"() {
|
|
671
671
|
_createLogger = (prefix, maybeCall, consoleLike) => {
|
|
672
672
|
function _log(level, ...args) {
|
|
673
673
|
maybeCall(() => {
|
|
@@ -696,10 +696,10 @@ var init_logger = __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/utils/user-agent-utils.mjs
|
|
700
700
|
var MOBILE, TABLET, GENERIC;
|
|
701
701
|
var init_user_agent_utils = __esm({
|
|
702
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
702
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
|
|
703
703
|
init_string_utils();
|
|
704
704
|
init_type_utils();
|
|
705
705
|
MOBILE = "Mobile";
|
|
@@ -710,7 +710,7 @@ var init_user_agent_utils = __esm({
|
|
|
710
710
|
}
|
|
711
711
|
});
|
|
712
712
|
|
|
713
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
713
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/index.mjs
|
|
714
714
|
function assert(truthyValue, message2) {
|
|
715
715
|
if (!truthyValue || "string" != typeof truthyValue || isEmpty(truthyValue)) throw new Error(message2);
|
|
716
716
|
}
|
|
@@ -754,7 +754,7 @@ function allSettled(promises) {
|
|
|
754
754
|
}
|
|
755
755
|
var STRING_FORMAT, isError;
|
|
756
756
|
var init_utils = __esm({
|
|
757
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
757
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/index.mjs"() {
|
|
758
758
|
init_bot_detection();
|
|
759
759
|
init_bucketed_rate_limiter();
|
|
760
760
|
init_number_utils();
|
|
@@ -768,10 +768,10 @@ var init_utils = __esm({
|
|
|
768
768
|
}
|
|
769
769
|
});
|
|
770
770
|
|
|
771
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
771
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/eventemitter.mjs
|
|
772
772
|
var SimpleEventEmitter;
|
|
773
773
|
var init_eventemitter = __esm({
|
|
774
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
774
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/eventemitter.mjs"() {
|
|
775
775
|
SimpleEventEmitter = class {
|
|
776
776
|
constructor() {
|
|
777
777
|
this.events = {};
|
|
@@ -792,7 +792,7 @@ var init_eventemitter = __esm({
|
|
|
792
792
|
}
|
|
793
793
|
});
|
|
794
794
|
|
|
795
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
795
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/gzip.mjs
|
|
796
796
|
function isGzipSupported() {
|
|
797
797
|
return "CompressionStream" in globalThis;
|
|
798
798
|
}
|
|
@@ -811,11 +811,11 @@ async function gzipCompress(input, isDebug = true) {
|
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
var init_gzip = __esm({
|
|
814
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
814
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/gzip.mjs"() {
|
|
815
815
|
}
|
|
816
816
|
});
|
|
817
817
|
|
|
818
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
818
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
|
|
819
819
|
async function logFlushError(err) {
|
|
820
820
|
if (err instanceof PostHogFetchHttpError) {
|
|
821
821
|
let text = "";
|
|
@@ -835,7 +835,7 @@ function isPostHogFetchContentTooLargeError(err) {
|
|
|
835
835
|
}
|
|
836
836
|
var PostHogFetchHttpError, PostHogFetchNetworkError, PostHogCoreStateless;
|
|
837
837
|
var init_posthog_core_stateless = __esm({
|
|
838
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
838
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
|
|
839
839
|
init_eventemitter();
|
|
840
840
|
init_featureFlagUtils();
|
|
841
841
|
init_gzip();
|
|
@@ -1249,6 +1249,8 @@ var init_posthog_core_stateless = __esm({
|
|
|
1249
1249
|
processBeforeEnqueue(message2) {
|
|
1250
1250
|
return message2;
|
|
1251
1251
|
}
|
|
1252
|
+
async flushStorage() {
|
|
1253
|
+
}
|
|
1252
1254
|
enqueue(type, _message, options) {
|
|
1253
1255
|
this.wrap(() => {
|
|
1254
1256
|
if (this.optedOut) return void this._events.emit(type, "Library is disabled. Not sending event. To re-enable, call posthog.optIn()");
|
|
@@ -1364,11 +1366,12 @@ var init_posthog_core_stateless = __esm({
|
|
|
1364
1366
|
while (queue.length > 0 && sentMessages.length < originalQueueLength) {
|
|
1365
1367
|
const batchItems = queue.slice(0, this.maxBatchSize);
|
|
1366
1368
|
const batchMessages = batchItems.map((item) => item.message);
|
|
1367
|
-
const persistQueueChange = () => {
|
|
1369
|
+
const persistQueueChange = async () => {
|
|
1368
1370
|
const refreshedQueue = this.getPersistedProperty(types_PostHogPersistedProperty.Queue) || [];
|
|
1369
1371
|
const newQueue = refreshedQueue.slice(batchItems.length);
|
|
1370
1372
|
this.setPersistedProperty(types_PostHogPersistedProperty.Queue, newQueue);
|
|
1371
1373
|
queue = newQueue;
|
|
1374
|
+
await this.flushStorage();
|
|
1372
1375
|
};
|
|
1373
1376
|
const data = {
|
|
1374
1377
|
api_key: this.apiKey,
|
|
@@ -1404,11 +1407,11 @@ var init_posthog_core_stateless = __esm({
|
|
|
1404
1407
|
this._logger.warn(`Received 413 when sending batch of size ${batchMessages.length}, reducing batch size to ${this.maxBatchSize}`);
|
|
1405
1408
|
continue;
|
|
1406
1409
|
}
|
|
1407
|
-
if (!(err instanceof PostHogFetchNetworkError)) persistQueueChange();
|
|
1410
|
+
if (!(err instanceof PostHogFetchNetworkError)) await persistQueueChange();
|
|
1408
1411
|
this._events.emit("error", err);
|
|
1409
1412
|
throw err;
|
|
1410
1413
|
}
|
|
1411
|
-
persistQueueChange();
|
|
1414
|
+
await persistQueueChange();
|
|
1412
1415
|
sentMessages.push(...batchMessages);
|
|
1413
1416
|
}
|
|
1414
1417
|
this._events.emit("flush", sentMessages);
|
|
@@ -1488,9 +1491,9 @@ var init_posthog_core_stateless = __esm({
|
|
|
1488
1491
|
}
|
|
1489
1492
|
});
|
|
1490
1493
|
|
|
1491
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1494
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/posthog-core.mjs
|
|
1492
1495
|
var init_posthog_core = __esm({
|
|
1493
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1496
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/posthog-core.mjs"() {
|
|
1494
1497
|
init_featureFlagUtils();
|
|
1495
1498
|
init_types();
|
|
1496
1499
|
init_posthog_core_stateless();
|
|
@@ -1499,7 +1502,7 @@ var init_posthog_core = __esm({
|
|
|
1499
1502
|
}
|
|
1500
1503
|
});
|
|
1501
1504
|
|
|
1502
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1505
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
|
|
1503
1506
|
function getFilenameToChunkIdMap(stackParser) {
|
|
1504
1507
|
const chunkIdMap = globalThis._posthogChunkIds;
|
|
1505
1508
|
if (!chunkIdMap) return;
|
|
@@ -1532,14 +1535,14 @@ function getFilenameToChunkIdMap(stackParser) {
|
|
|
1532
1535
|
}
|
|
1533
1536
|
var parsedStackResults, lastKeysCount, cachedFilenameChunkIds;
|
|
1534
1537
|
var init_chunk_ids = __esm({
|
|
1535
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1538
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
|
|
1536
1539
|
}
|
|
1537
1540
|
});
|
|
1538
1541
|
|
|
1539
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1542
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
|
|
1540
1543
|
var MAX_CAUSE_RECURSION, ErrorPropertiesBuilder;
|
|
1541
1544
|
var init_error_properties_builder = __esm({
|
|
1542
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1545
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
|
|
1543
1546
|
init_utils();
|
|
1544
1547
|
init_chunk_ids();
|
|
1545
1548
|
MAX_CAUSE_RECURSION = 4;
|
|
@@ -1557,7 +1560,7 @@ var init_error_properties_builder = __esm({
|
|
|
1557
1560
|
};
|
|
1558
1561
|
const coercingContext = this.buildCoercingContext(mechanism, hint, 0);
|
|
1559
1562
|
const exceptionWithCause = coercingContext.apply(input);
|
|
1560
|
-
const parsingContext = this.buildParsingContext();
|
|
1563
|
+
const parsingContext = this.buildParsingContext(hint);
|
|
1561
1564
|
const exceptionWithStack = this.parseStacktrace(exceptionWithCause, parsingContext);
|
|
1562
1565
|
const exceptionList = this.convertToExceptionList(exceptionWithStack, mechanism);
|
|
1563
1566
|
return {
|
|
@@ -1581,7 +1584,7 @@ var init_error_properties_builder = __esm({
|
|
|
1581
1584
|
let cause;
|
|
1582
1585
|
if (null != err.cause) cause = this.parseStacktrace(err.cause, ctx);
|
|
1583
1586
|
let stack;
|
|
1584
|
-
if ("" != err.stack && null != err.stack) stack = this.applyChunkIds(this.stackParser(err.stack, err.synthetic ?
|
|
1587
|
+
if ("" != err.stack && null != err.stack) stack = this.applyChunkIds(this.stackParser(err.stack, err.synthetic ? ctx.skipFirstLines : 0), ctx.chunkIdMap);
|
|
1585
1588
|
return {
|
|
1586
1589
|
...err,
|
|
1587
1590
|
cause,
|
|
@@ -1626,9 +1629,10 @@ var init_error_properties_builder = __esm({
|
|
|
1626
1629
|
}));
|
|
1627
1630
|
return exceptionList;
|
|
1628
1631
|
}
|
|
1629
|
-
buildParsingContext() {
|
|
1632
|
+
buildParsingContext(hint) {
|
|
1630
1633
|
const context = {
|
|
1631
|
-
chunkIdMap: getFilenameToChunkIdMap(this.stackParser)
|
|
1634
|
+
chunkIdMap: getFilenameToChunkIdMap(this.stackParser),
|
|
1635
|
+
skipFirstLines: hint.skipFirstLines ?? 1
|
|
1632
1636
|
};
|
|
1633
1637
|
return context;
|
|
1634
1638
|
}
|
|
@@ -1653,7 +1657,7 @@ var init_error_properties_builder = __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/base.mjs
|
|
1657
1661
|
function createFrame(platform, filename, func, lineno, colno) {
|
|
1658
1662
|
const frame = {
|
|
1659
1663
|
platform,
|
|
@@ -1667,16 +1671,16 @@ function createFrame(platform, filename, func, lineno, colno) {
|
|
|
1667
1671
|
}
|
|
1668
1672
|
var UNKNOWN_FUNCTION;
|
|
1669
1673
|
var init_base = __esm({
|
|
1670
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1674
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
|
|
1671
1675
|
init_utils();
|
|
1672
1676
|
UNKNOWN_FUNCTION = "?";
|
|
1673
1677
|
}
|
|
1674
1678
|
});
|
|
1675
1679
|
|
|
1676
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1680
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
|
|
1677
1681
|
var extractSafariExtensionDetails;
|
|
1678
1682
|
var init_safari = __esm({
|
|
1679
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1683
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
|
|
1680
1684
|
init_base();
|
|
1681
1685
|
extractSafariExtensionDetails = (func, filename) => {
|
|
1682
1686
|
const isSafariExtension = -1 !== func.indexOf("safari-extension");
|
|
@@ -1692,10 +1696,10 @@ var init_safari = __esm({
|
|
|
1692
1696
|
}
|
|
1693
1697
|
});
|
|
1694
1698
|
|
|
1695
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1699
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
|
|
1696
1700
|
var chromeRegexNoFnName, chromeRegex, chromeEvalRegex, chromeStackLineParser;
|
|
1697
1701
|
var init_chrome = __esm({
|
|
1698
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1702
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
|
|
1699
1703
|
init_base();
|
|
1700
1704
|
init_safari();
|
|
1701
1705
|
chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
|
|
@@ -1725,10 +1729,10 @@ var init_chrome = __esm({
|
|
|
1725
1729
|
}
|
|
1726
1730
|
});
|
|
1727
1731
|
|
|
1728
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1732
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
|
|
1729
1733
|
var geckoREgex, geckoEvalRegex, geckoStackLineParser;
|
|
1730
1734
|
var init_gecko = __esm({
|
|
1731
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1735
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
|
|
1732
1736
|
init_base();
|
|
1733
1737
|
init_safari();
|
|
1734
1738
|
geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
|
|
@@ -1755,10 +1759,10 @@ var init_gecko = __esm({
|
|
|
1755
1759
|
}
|
|
1756
1760
|
});
|
|
1757
1761
|
|
|
1758
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1762
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
|
|
1759
1763
|
var winjsRegex, winjsStackLineParser;
|
|
1760
1764
|
var init_winjs = __esm({
|
|
1761
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1765
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
|
|
1762
1766
|
init_base();
|
|
1763
1767
|
winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
|
|
1764
1768
|
winjsStackLineParser = (line, platform) => {
|
|
@@ -1768,10 +1772,10 @@ var init_winjs = __esm({
|
|
|
1768
1772
|
}
|
|
1769
1773
|
});
|
|
1770
1774
|
|
|
1771
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1775
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
|
|
1772
1776
|
var opera10Regex, opera10StackLineParser, opera11Regex, opera11StackLineParser;
|
|
1773
1777
|
var init_opera = __esm({
|
|
1774
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1778
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
|
|
1775
1779
|
init_base();
|
|
1776
1780
|
opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
|
|
1777
1781
|
opera10StackLineParser = (line, platform) => {
|
|
@@ -1786,7 +1790,7 @@ var init_opera = __esm({
|
|
|
1786
1790
|
}
|
|
1787
1791
|
});
|
|
1788
1792
|
|
|
1789
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1793
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
|
|
1790
1794
|
function filenameIsInApp(filename, isNative = false) {
|
|
1791
1795
|
const isInternal = isNative || filename && !filename.startsWith("/") && !filename.match(/^[A-Z]:/) && !filename.startsWith(".") && !filename.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//);
|
|
1792
1796
|
return !isInternal && void 0 !== filename && !filename.includes("node_modules/");
|
|
@@ -1796,7 +1800,7 @@ function _parseIntOrUndefined(input) {
|
|
|
1796
1800
|
}
|
|
1797
1801
|
var FILENAME_MATCH, FULL_MATCH, nodeStackLineParser;
|
|
1798
1802
|
var init_node = __esm({
|
|
1799
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1803
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
|
|
1800
1804
|
init_base();
|
|
1801
1805
|
FILENAME_MATCH = /^\s*[-]{4,}$/;
|
|
1802
1806
|
FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
|
|
@@ -1857,7 +1861,7 @@ var init_node = __esm({
|
|
|
1857
1861
|
}
|
|
1858
1862
|
});
|
|
1859
1863
|
|
|
1860
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1864
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
|
|
1861
1865
|
function reverseAndStripFrames(stack) {
|
|
1862
1866
|
if (!stack.length) return [];
|
|
1863
1867
|
const localStack = Array.from(stack);
|
|
@@ -1898,7 +1902,7 @@ function createStackParser(platform, ...parsers) {
|
|
|
1898
1902
|
}
|
|
1899
1903
|
var WEBPACK_ERROR_REGEXP, STACKTRACE_FRAME_LIMIT;
|
|
1900
1904
|
var init_parsers = __esm({
|
|
1901
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1905
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
|
|
1902
1906
|
init_base();
|
|
1903
1907
|
init_chrome();
|
|
1904
1908
|
init_gecko();
|
|
@@ -1910,10 +1914,10 @@ var init_parsers = __esm({
|
|
|
1910
1914
|
}
|
|
1911
1915
|
});
|
|
1912
1916
|
|
|
1913
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1917
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
|
|
1914
1918
|
var DOMExceptionCoercer;
|
|
1915
1919
|
var init_dom_exception_coercer = __esm({
|
|
1916
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1920
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
|
|
1917
1921
|
init_utils();
|
|
1918
1922
|
DOMExceptionCoercer = class {
|
|
1919
1923
|
match(err) {
|
|
@@ -1947,10 +1951,10 @@ var init_dom_exception_coercer = __esm({
|
|
|
1947
1951
|
}
|
|
1948
1952
|
});
|
|
1949
1953
|
|
|
1950
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1954
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
|
|
1951
1955
|
var ErrorCoercer;
|
|
1952
1956
|
var init_error_coercer = __esm({
|
|
1953
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1957
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
|
|
1954
1958
|
init_utils();
|
|
1955
1959
|
ErrorCoercer = class {
|
|
1956
1960
|
match(err) {
|
|
@@ -1980,10 +1984,10 @@ var init_error_coercer = __esm({
|
|
|
1980
1984
|
}
|
|
1981
1985
|
});
|
|
1982
1986
|
|
|
1983
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1987
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
|
|
1984
1988
|
var ErrorEventCoercer;
|
|
1985
1989
|
var init_error_event_coercer = __esm({
|
|
1986
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1990
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
|
|
1987
1991
|
init_utils();
|
|
1988
1992
|
ErrorEventCoercer = class {
|
|
1989
1993
|
constructor() {
|
|
@@ -2005,10 +2009,10 @@ var init_error_event_coercer = __esm({
|
|
|
2005
2009
|
}
|
|
2006
2010
|
});
|
|
2007
2011
|
|
|
2008
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2012
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
|
|
2009
2013
|
var ERROR_TYPES_PATTERN, StringCoercer;
|
|
2010
2014
|
var init_string_coercer = __esm({
|
|
2011
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2015
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
|
|
2012
2016
|
ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
|
|
2013
2017
|
StringCoercer = class {
|
|
2014
2018
|
match(input) {
|
|
@@ -2040,10 +2044,10 @@ var init_string_coercer = __esm({
|
|
|
2040
2044
|
}
|
|
2041
2045
|
});
|
|
2042
2046
|
|
|
2043
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2047
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/types.mjs
|
|
2044
2048
|
var severityLevels;
|
|
2045
2049
|
var init_types2 = __esm({
|
|
2046
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2050
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
|
|
2047
2051
|
severityLevels = [
|
|
2048
2052
|
"fatal",
|
|
2049
2053
|
"error",
|
|
@@ -2055,7 +2059,7 @@ var init_types2 = __esm({
|
|
|
2055
2059
|
}
|
|
2056
2060
|
});
|
|
2057
2061
|
|
|
2058
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2062
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
|
|
2059
2063
|
function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
2060
2064
|
const keys = Object.keys(err);
|
|
2061
2065
|
keys.sort();
|
|
@@ -2070,14 +2074,14 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
|
2070
2074
|
return "";
|
|
2071
2075
|
}
|
|
2072
2076
|
var init_utils2 = __esm({
|
|
2073
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2077
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
|
|
2074
2078
|
}
|
|
2075
2079
|
});
|
|
2076
2080
|
|
|
2077
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2081
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
|
|
2078
2082
|
var ObjectCoercer;
|
|
2079
2083
|
var init_object_coercer = __esm({
|
|
2080
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2084
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
|
|
2081
2085
|
init_utils();
|
|
2082
2086
|
init_types2();
|
|
2083
2087
|
init_utils2();
|
|
@@ -2131,10 +2135,10 @@ var init_object_coercer = __esm({
|
|
|
2131
2135
|
}
|
|
2132
2136
|
});
|
|
2133
2137
|
|
|
2134
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2138
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
|
|
2135
2139
|
var EventCoercer;
|
|
2136
2140
|
var init_event_coercer = __esm({
|
|
2137
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2141
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
|
|
2138
2142
|
init_utils();
|
|
2139
2143
|
init_utils2();
|
|
2140
2144
|
EventCoercer = class {
|
|
@@ -2154,10 +2158,10 @@ var init_event_coercer = __esm({
|
|
|
2154
2158
|
}
|
|
2155
2159
|
});
|
|
2156
2160
|
|
|
2157
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2161
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
|
|
2158
2162
|
var PrimitiveCoercer;
|
|
2159
2163
|
var init_primitive_coercer = __esm({
|
|
2160
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2164
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
|
|
2161
2165
|
init_utils();
|
|
2162
2166
|
PrimitiveCoercer = class {
|
|
2163
2167
|
match(candidate) {
|
|
@@ -2175,10 +2179,10 @@ var init_primitive_coercer = __esm({
|
|
|
2175
2179
|
}
|
|
2176
2180
|
});
|
|
2177
2181
|
|
|
2178
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2182
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
|
|
2179
2183
|
var PromiseRejectionEventCoercer;
|
|
2180
2184
|
var init_promise_rejection_event = __esm({
|
|
2181
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2185
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
|
|
2182
2186
|
init_utils();
|
|
2183
2187
|
PromiseRejectionEventCoercer = class {
|
|
2184
2188
|
match(err) {
|
|
@@ -2207,9 +2211,9 @@ var init_promise_rejection_event = __esm({
|
|
|
2207
2211
|
}
|
|
2208
2212
|
});
|
|
2209
2213
|
|
|
2210
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2214
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
|
|
2211
2215
|
var init_coercers = __esm({
|
|
2212
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2216
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
|
|
2213
2217
|
init_dom_exception_coercer();
|
|
2214
2218
|
init_error_coercer();
|
|
2215
2219
|
init_error_event_coercer();
|
|
@@ -2221,10 +2225,10 @@ var init_coercers = __esm({
|
|
|
2221
2225
|
}
|
|
2222
2226
|
});
|
|
2223
2227
|
|
|
2224
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2228
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs
|
|
2225
2229
|
var ReduceableCache;
|
|
2226
2230
|
var init_utils3 = __esm({
|
|
2227
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2231
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
|
|
2228
2232
|
ReduceableCache = class {
|
|
2229
2233
|
constructor(_maxSize) {
|
|
2230
2234
|
this._maxSize = _maxSize;
|
|
@@ -2250,7 +2254,7 @@ var init_utils3 = __esm({
|
|
|
2250
2254
|
}
|
|
2251
2255
|
});
|
|
2252
2256
|
|
|
2253
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2257
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/index.mjs
|
|
2254
2258
|
var error_tracking_exports = {};
|
|
2255
2259
|
__export(error_tracking_exports, {
|
|
2256
2260
|
DOMExceptionCoercer: () => DOMExceptionCoercer,
|
|
@@ -2274,7 +2278,7 @@ __export(error_tracking_exports, {
|
|
|
2274
2278
|
winjsStackLineParser: () => winjsStackLineParser
|
|
2275
2279
|
});
|
|
2276
2280
|
var init_error_tracking = __esm({
|
|
2277
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2281
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
|
|
2278
2282
|
init_error_properties_builder();
|
|
2279
2283
|
init_parsers();
|
|
2280
2284
|
init_coercers();
|
|
@@ -2282,9 +2286,9 @@ var init_error_tracking = __esm({
|
|
|
2282
2286
|
}
|
|
2283
2287
|
});
|
|
2284
2288
|
|
|
2285
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2289
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/index.mjs
|
|
2286
2290
|
var init_dist = __esm({
|
|
2287
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2291
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/index.mjs"() {
|
|
2288
2292
|
init_featureFlagUtils();
|
|
2289
2293
|
init_uuidv7();
|
|
2290
2294
|
init_utils();
|
|
@@ -2475,7 +2479,7 @@ function snipLine(line, colno) {
|
|
|
2475
2479
|
}
|
|
2476
2480
|
var LRU_FILE_CONTENTS_CACHE, LRU_FILE_CONTENTS_FS_READ_FAILED, DEFAULT_LINES_OF_CONTEXT, MAX_CONTEXTLINES_COLNO, MAX_CONTEXTLINES_LINENO;
|
|
2477
2481
|
var init_context_lines_node = __esm({
|
|
2478
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2482
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
|
|
2479
2483
|
init_dist();
|
|
2480
2484
|
LRU_FILE_CONTENTS_CACHE = new error_tracking_exports.ReduceableCache(25);
|
|
2481
2485
|
LRU_FILE_CONTENTS_FS_READ_FAILED = new error_tracking_exports.ReduceableCache(20);
|
|
@@ -2485,7 +2489,7 @@ var init_context_lines_node = __esm({
|
|
|
2485
2489
|
}
|
|
2486
2490
|
});
|
|
2487
2491
|
|
|
2488
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2492
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
|
|
2489
2493
|
function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
|
|
2490
2494
|
let calledFatalError = false;
|
|
2491
2495
|
return Object.assign((error) => {
|
|
@@ -2517,14 +2521,14 @@ function addUnhandledRejectionListener(captureFn) {
|
|
|
2517
2521
|
}));
|
|
2518
2522
|
}
|
|
2519
2523
|
var init_autocapture = __esm({
|
|
2520
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2524
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
|
|
2521
2525
|
}
|
|
2522
2526
|
});
|
|
2523
2527
|
|
|
2524
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2528
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
|
|
2525
2529
|
var SHUTDOWN_TIMEOUT, ErrorTracking;
|
|
2526
2530
|
var init_error_tracking2 = __esm({
|
|
2527
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2531
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
|
|
2528
2532
|
init_autocapture();
|
|
2529
2533
|
init_dist();
|
|
2530
2534
|
SHUTDOWN_TIMEOUT = 2e3;
|
|
@@ -2595,18 +2599,18 @@ var init_error_tracking2 = __esm({
|
|
|
2595
2599
|
}
|
|
2596
2600
|
});
|
|
2597
2601
|
|
|
2598
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2602
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/version.mjs
|
|
2599
2603
|
var version;
|
|
2600
2604
|
var init_version = __esm({
|
|
2601
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2602
|
-
version = "5.24.
|
|
2605
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/version.mjs"() {
|
|
2606
|
+
version = "5.24.11";
|
|
2603
2607
|
}
|
|
2604
2608
|
});
|
|
2605
2609
|
|
|
2606
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2610
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/types.mjs
|
|
2607
2611
|
var FeatureFlagError2;
|
|
2608
2612
|
var init_types3 = __esm({
|
|
2609
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2613
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/types.mjs"() {
|
|
2610
2614
|
FeatureFlagError2 = {
|
|
2611
2615
|
ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
|
|
2612
2616
|
FLAG_MISSING: "flag_missing",
|
|
@@ -2616,7 +2620,7 @@ var init_types3 = __esm({
|
|
|
2616
2620
|
}
|
|
2617
2621
|
});
|
|
2618
2622
|
|
|
2619
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2623
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
|
|
2620
2624
|
async function hashSHA1(text) {
|
|
2621
2625
|
const subtle = globalThis.crypto?.subtle;
|
|
2622
2626
|
if (!subtle) throw new Error("SubtleCrypto API not available");
|
|
@@ -2625,11 +2629,11 @@ async function hashSHA1(text) {
|
|
|
2625
2629
|
return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
2626
2630
|
}
|
|
2627
2631
|
var init_crypto = __esm({
|
|
2628
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2632
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
|
|
2629
2633
|
}
|
|
2630
2634
|
});
|
|
2631
2635
|
|
|
2632
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2636
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
|
|
2633
2637
|
async function _hash(key, distinctId, salt = "") {
|
|
2634
2638
|
const hashString = await hashSHA1(`${key}.${distinctId}${salt}`);
|
|
2635
2639
|
return parseInt(hashString.slice(0, 15), 16) / LONG_SCALE;
|
|
@@ -2797,7 +2801,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
|
|
|
2797
2801
|
}
|
|
2798
2802
|
var SIXTY_SECONDS, LONG_SCALE, NULL_VALUES_ALLOWED_OPERATORS, ClientError, InconclusiveMatchError, RequiresServerEvaluation, FeatureFlagsPoller;
|
|
2799
2803
|
var init_feature_flags = __esm({
|
|
2800
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2804
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
|
|
2801
2805
|
init_dist();
|
|
2802
2806
|
init_crypto();
|
|
2803
2807
|
SIXTY_SECONDS = 6e4;
|
|
@@ -3210,10 +3214,10 @@ var init_feature_flags = __esm({
|
|
|
3210
3214
|
}
|
|
3211
3215
|
});
|
|
3212
3216
|
|
|
3213
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3217
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/storage-memory.mjs
|
|
3214
3218
|
var PostHogMemoryStorage;
|
|
3215
3219
|
var init_storage_memory = __esm({
|
|
3216
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3220
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/storage-memory.mjs"() {
|
|
3217
3221
|
PostHogMemoryStorage = class {
|
|
3218
3222
|
getProperty(key) {
|
|
3219
3223
|
return this._memoryStorage[key];
|
|
@@ -3228,10 +3232,10 @@ var init_storage_memory = __esm({
|
|
|
3228
3232
|
}
|
|
3229
3233
|
});
|
|
3230
3234
|
|
|
3231
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3235
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/client.mjs
|
|
3232
3236
|
var MINIMUM_POLLING_INTERVAL, THIRTY_SECONDS, MAX_CACHE_SIZE, PostHogBackendClient;
|
|
3233
3237
|
var init_client = __esm({
|
|
3234
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3238
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/client.mjs"() {
|
|
3235
3239
|
init_version();
|
|
3236
3240
|
init_dist();
|
|
3237
3241
|
init_types3();
|
|
@@ -3839,7 +3843,7 @@ var init_client = __esm({
|
|
|
3839
3843
|
});
|
|
3840
3844
|
var PostHogContext;
|
|
3841
3845
|
var init_context = __esm({
|
|
3842
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3846
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
|
|
3843
3847
|
PostHogContext = class {
|
|
3844
3848
|
constructor() {
|
|
3845
3849
|
this.storage = new async_hooks.AsyncLocalStorage();
|
|
@@ -3867,7 +3871,7 @@ var init_context = __esm({
|
|
|
3867
3871
|
}
|
|
3868
3872
|
});
|
|
3869
3873
|
|
|
3870
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3874
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
|
|
3871
3875
|
function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
|
|
3872
3876
|
"error"
|
|
3873
3877
|
], sendExceptionsToPostHog = true } = {}) {
|
|
@@ -3923,7 +3927,7 @@ function sentryIntegration(_posthog, options) {
|
|
|
3923
3927
|
}
|
|
3924
3928
|
var NAME, PostHogSentryIntegration;
|
|
3925
3929
|
var init_sentry_integration = __esm({
|
|
3926
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3930
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
|
|
3927
3931
|
NAME = "posthog-node";
|
|
3928
3932
|
PostHogSentryIntegration = class {
|
|
3929
3933
|
static #_ = this.POSTHOG_ID_TAG = "posthog_distinct_id";
|
|
@@ -3945,7 +3949,7 @@ var init_sentry_integration = __esm({
|
|
|
3945
3949
|
}
|
|
3946
3950
|
});
|
|
3947
3951
|
|
|
3948
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3952
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/express.mjs
|
|
3949
3953
|
function setupExpressErrorHandler(_posthog, app) {
|
|
3950
3954
|
app.use(posthogErrorHandler(_posthog));
|
|
3951
3955
|
}
|
|
@@ -3977,14 +3981,14 @@ function posthogErrorHandler(posthog) {
|
|
|
3977
3981
|
};
|
|
3978
3982
|
}
|
|
3979
3983
|
var init_express = __esm({
|
|
3980
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3984
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/express.mjs"() {
|
|
3981
3985
|
init_error_tracking2();
|
|
3982
3986
|
}
|
|
3983
3987
|
});
|
|
3984
3988
|
|
|
3985
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3989
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/exports.mjs
|
|
3986
3990
|
var init_exports = __esm({
|
|
3987
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3991
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/exports.mjs"() {
|
|
3988
3992
|
init_dist();
|
|
3989
3993
|
init_sentry_integration();
|
|
3990
3994
|
init_express();
|
|
@@ -3992,7 +3996,7 @@ var init_exports = __esm({
|
|
|
3992
3996
|
}
|
|
3993
3997
|
});
|
|
3994
3998
|
|
|
3995
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3999
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/entrypoints/index.node.mjs
|
|
3996
4000
|
var index_node_exports = {};
|
|
3997
4001
|
__export(index_node_exports, {
|
|
3998
4002
|
FeatureFlagError: () => FeatureFlagError,
|
|
@@ -4004,7 +4008,7 @@ __export(index_node_exports, {
|
|
|
4004
4008
|
});
|
|
4005
4009
|
var PostHog;
|
|
4006
4010
|
var init_index_node = __esm({
|
|
4007
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
4011
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
|
|
4008
4012
|
init_module_node();
|
|
4009
4013
|
init_context_lines_node();
|
|
4010
4014
|
init_error_tracking2();
|