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/index.js
CHANGED
|
@@ -86,11 +86,11 @@ function normalizeWindowsPath(path) {
|
|
|
86
86
|
return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
|
|
87
87
|
}
|
|
88
88
|
var init_module_node = __esm({
|
|
89
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
89
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
|
|
93
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
93
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs
|
|
94
94
|
function getFlagDetailFromFlagAndPayload(key, value, payload) {
|
|
95
95
|
return {
|
|
96
96
|
key,
|
|
@@ -107,7 +107,7 @@ function getFlagDetailFromFlagAndPayload(key, value, payload) {
|
|
|
107
107
|
}
|
|
108
108
|
var normalizeFlagsResponse, getFlagValuesFromFlags, getPayloadsFromFlags, getFeatureFlagValue, parsePayload;
|
|
109
109
|
var init_featureFlagUtils = __esm({
|
|
110
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
110
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
|
|
111
111
|
normalizeFlagsResponse = (flagsResponse) => {
|
|
112
112
|
if ("flags" in flagsResponse) {
|
|
113
113
|
const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
|
|
@@ -165,10 +165,10 @@ var init_featureFlagUtils = __esm({
|
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
167
|
|
|
168
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
168
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
|
|
169
169
|
var DIGITS, UUID, V7Generator, getDefaultRandom, defaultGenerator, uuidv7, uuidv7obj;
|
|
170
170
|
var init_uuidv7 = __esm({
|
|
171
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
171
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
|
|
172
172
|
DIGITS = "0123456789abcdef";
|
|
173
173
|
UUID = class _UUID {
|
|
174
174
|
constructor(bytes) {
|
|
@@ -329,10 +329,10 @@ var init_uuidv7 = __esm({
|
|
|
329
329
|
}
|
|
330
330
|
});
|
|
331
331
|
|
|
332
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
332
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs
|
|
333
333
|
var DEFAULT_BLOCKED_UA_STRS, isBlockedUA;
|
|
334
334
|
var init_bot_detection = __esm({
|
|
335
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
335
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
|
|
336
336
|
DEFAULT_BLOCKED_UA_STRS = [
|
|
337
337
|
"amazonbot",
|
|
338
338
|
"amazonproductbot",
|
|
@@ -423,10 +423,10 @@ var init_bot_detection = __esm({
|
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
425
|
|
|
426
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
426
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/types.mjs
|
|
427
427
|
var types_PostHogPersistedProperty, FeatureFlagError;
|
|
428
428
|
var init_types = __esm({
|
|
429
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
429
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/types.mjs"() {
|
|
430
430
|
types_PostHogPersistedProperty = /* @__PURE__ */ (function(PostHogPersistedProperty) {
|
|
431
431
|
PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
|
|
432
432
|
PostHogPersistedProperty["DistinctId"] = "distinct_id";
|
|
@@ -469,13 +469,13 @@ var init_types = __esm({
|
|
|
469
469
|
}
|
|
470
470
|
});
|
|
471
471
|
|
|
472
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
472
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/string-utils.mjs
|
|
473
473
|
var init_string_utils = __esm({
|
|
474
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
474
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
|
|
475
475
|
}
|
|
476
476
|
});
|
|
477
477
|
|
|
478
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
478
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/type-utils.mjs
|
|
479
479
|
function isPrimitive(value) {
|
|
480
480
|
return null === value || "object" != typeof value;
|
|
481
481
|
}
|
|
@@ -500,7 +500,7 @@ function isInstanceOf(candidate, base) {
|
|
|
500
500
|
}
|
|
501
501
|
var nativeIsArray, ObjProto, type_utils_toString, isArray, isObject, isUndefined, isString, isEmptyString, isNumber, isPlainError;
|
|
502
502
|
var init_type_utils = __esm({
|
|
503
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
503
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
|
|
504
504
|
init_types();
|
|
505
505
|
init_string_utils();
|
|
506
506
|
nativeIsArray = Array.isArray;
|
|
@@ -519,7 +519,7 @@ var init_type_utils = __esm({
|
|
|
519
519
|
}
|
|
520
520
|
});
|
|
521
521
|
|
|
522
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
522
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/number-utils.mjs
|
|
523
523
|
function clampToRange(value, min, max, logger, fallbackValue) {
|
|
524
524
|
if (min > max) {
|
|
525
525
|
logger.warn("min cannot be greater than max.");
|
|
@@ -537,15 +537,15 @@ function clampToRange(value, min, max, logger, fallbackValue) {
|
|
|
537
537
|
return clampToRange(max, min, max, logger);
|
|
538
538
|
}
|
|
539
539
|
var init_number_utils = __esm({
|
|
540
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
540
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
|
|
541
541
|
init_type_utils();
|
|
542
542
|
}
|
|
543
543
|
});
|
|
544
544
|
|
|
545
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
545
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
|
|
546
546
|
var ONE_DAY_IN_MS, BucketedRateLimiter;
|
|
547
547
|
var init_bucketed_rate_limiter = __esm({
|
|
548
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
548
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
|
|
549
549
|
init_number_utils();
|
|
550
550
|
ONE_DAY_IN_MS = 864e5;
|
|
551
551
|
BucketedRateLimiter = class {
|
|
@@ -589,10 +589,10 @@ var init_bucketed_rate_limiter = __esm({
|
|
|
589
589
|
}
|
|
590
590
|
});
|
|
591
591
|
|
|
592
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
592
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs
|
|
593
593
|
var PromiseQueue;
|
|
594
594
|
var init_promise_queue = __esm({
|
|
595
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
595
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
|
|
596
596
|
init_uuidv7();
|
|
597
597
|
PromiseQueue = class {
|
|
598
598
|
add(promise) {
|
|
@@ -623,7 +623,7 @@ var init_promise_queue = __esm({
|
|
|
623
623
|
}
|
|
624
624
|
});
|
|
625
625
|
|
|
626
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
626
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/logger.mjs
|
|
627
627
|
function createConsole(consoleLike = console) {
|
|
628
628
|
const lockedMethods = {
|
|
629
629
|
log: consoleLike.log.bind(consoleLike),
|
|
@@ -638,7 +638,7 @@ function createLogger(prefix, maybeCall = passThrough) {
|
|
|
638
638
|
}
|
|
639
639
|
var _createLogger, passThrough;
|
|
640
640
|
var init_logger = __esm({
|
|
641
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
641
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/logger.mjs"() {
|
|
642
642
|
_createLogger = (prefix, maybeCall, consoleLike) => {
|
|
643
643
|
function _log(level, ...args) {
|
|
644
644
|
maybeCall(() => {
|
|
@@ -667,10 +667,10 @@ var init_logger = __esm({
|
|
|
667
667
|
}
|
|
668
668
|
});
|
|
669
669
|
|
|
670
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
670
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
|
|
671
671
|
var MOBILE, TABLET, GENERIC;
|
|
672
672
|
var init_user_agent_utils = __esm({
|
|
673
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
673
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
|
|
674
674
|
init_string_utils();
|
|
675
675
|
init_type_utils();
|
|
676
676
|
MOBILE = "Mobile";
|
|
@@ -681,7 +681,7 @@ var init_user_agent_utils = __esm({
|
|
|
681
681
|
}
|
|
682
682
|
});
|
|
683
683
|
|
|
684
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
684
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/index.mjs
|
|
685
685
|
function assert(truthyValue, message2) {
|
|
686
686
|
if (!truthyValue || "string" != typeof truthyValue || isEmpty(truthyValue)) throw new Error(message2);
|
|
687
687
|
}
|
|
@@ -725,7 +725,7 @@ function allSettled(promises) {
|
|
|
725
725
|
}
|
|
726
726
|
var STRING_FORMAT, isError;
|
|
727
727
|
var init_utils = __esm({
|
|
728
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
728
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/utils/index.mjs"() {
|
|
729
729
|
init_bot_detection();
|
|
730
730
|
init_bucketed_rate_limiter();
|
|
731
731
|
init_number_utils();
|
|
@@ -739,10 +739,10 @@ var init_utils = __esm({
|
|
|
739
739
|
}
|
|
740
740
|
});
|
|
741
741
|
|
|
742
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
742
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/eventemitter.mjs
|
|
743
743
|
var SimpleEventEmitter;
|
|
744
744
|
var init_eventemitter = __esm({
|
|
745
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
745
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/eventemitter.mjs"() {
|
|
746
746
|
SimpleEventEmitter = class {
|
|
747
747
|
constructor() {
|
|
748
748
|
this.events = {};
|
|
@@ -763,7 +763,7 @@ var init_eventemitter = __esm({
|
|
|
763
763
|
}
|
|
764
764
|
});
|
|
765
765
|
|
|
766
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
766
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/gzip.mjs
|
|
767
767
|
function isGzipSupported() {
|
|
768
768
|
return "CompressionStream" in globalThis;
|
|
769
769
|
}
|
|
@@ -782,11 +782,11 @@ async function gzipCompress(input, isDebug = true) {
|
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
784
|
var init_gzip = __esm({
|
|
785
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
785
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/gzip.mjs"() {
|
|
786
786
|
}
|
|
787
787
|
});
|
|
788
788
|
|
|
789
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
789
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
|
|
790
790
|
async function logFlushError(err) {
|
|
791
791
|
if (err instanceof PostHogFetchHttpError) {
|
|
792
792
|
let text = "";
|
|
@@ -806,7 +806,7 @@ function isPostHogFetchContentTooLargeError(err) {
|
|
|
806
806
|
}
|
|
807
807
|
var PostHogFetchHttpError, PostHogFetchNetworkError, PostHogCoreStateless;
|
|
808
808
|
var init_posthog_core_stateless = __esm({
|
|
809
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
809
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
|
|
810
810
|
init_eventemitter();
|
|
811
811
|
init_featureFlagUtils();
|
|
812
812
|
init_gzip();
|
|
@@ -1220,6 +1220,8 @@ var init_posthog_core_stateless = __esm({
|
|
|
1220
1220
|
processBeforeEnqueue(message2) {
|
|
1221
1221
|
return message2;
|
|
1222
1222
|
}
|
|
1223
|
+
async flushStorage() {
|
|
1224
|
+
}
|
|
1223
1225
|
enqueue(type, _message, options) {
|
|
1224
1226
|
this.wrap(() => {
|
|
1225
1227
|
if (this.optedOut) return void this._events.emit(type, "Library is disabled. Not sending event. To re-enable, call posthog.optIn()");
|
|
@@ -1335,11 +1337,12 @@ var init_posthog_core_stateless = __esm({
|
|
|
1335
1337
|
while (queue.length > 0 && sentMessages.length < originalQueueLength) {
|
|
1336
1338
|
const batchItems = queue.slice(0, this.maxBatchSize);
|
|
1337
1339
|
const batchMessages = batchItems.map((item) => item.message);
|
|
1338
|
-
const persistQueueChange = () => {
|
|
1340
|
+
const persistQueueChange = async () => {
|
|
1339
1341
|
const refreshedQueue = this.getPersistedProperty(types_PostHogPersistedProperty.Queue) || [];
|
|
1340
1342
|
const newQueue = refreshedQueue.slice(batchItems.length);
|
|
1341
1343
|
this.setPersistedProperty(types_PostHogPersistedProperty.Queue, newQueue);
|
|
1342
1344
|
queue = newQueue;
|
|
1345
|
+
await this.flushStorage();
|
|
1343
1346
|
};
|
|
1344
1347
|
const data = {
|
|
1345
1348
|
api_key: this.apiKey,
|
|
@@ -1375,11 +1378,11 @@ var init_posthog_core_stateless = __esm({
|
|
|
1375
1378
|
this._logger.warn(`Received 413 when sending batch of size ${batchMessages.length}, reducing batch size to ${this.maxBatchSize}`);
|
|
1376
1379
|
continue;
|
|
1377
1380
|
}
|
|
1378
|
-
if (!(err instanceof PostHogFetchNetworkError)) persistQueueChange();
|
|
1381
|
+
if (!(err instanceof PostHogFetchNetworkError)) await persistQueueChange();
|
|
1379
1382
|
this._events.emit("error", err);
|
|
1380
1383
|
throw err;
|
|
1381
1384
|
}
|
|
1382
|
-
persistQueueChange();
|
|
1385
|
+
await persistQueueChange();
|
|
1383
1386
|
sentMessages.push(...batchMessages);
|
|
1384
1387
|
}
|
|
1385
1388
|
this._events.emit("flush", sentMessages);
|
|
@@ -1459,9 +1462,9 @@ var init_posthog_core_stateless = __esm({
|
|
|
1459
1462
|
}
|
|
1460
1463
|
});
|
|
1461
1464
|
|
|
1462
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1465
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/posthog-core.mjs
|
|
1463
1466
|
var init_posthog_core = __esm({
|
|
1464
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1467
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/posthog-core.mjs"() {
|
|
1465
1468
|
init_featureFlagUtils();
|
|
1466
1469
|
init_types();
|
|
1467
1470
|
init_posthog_core_stateless();
|
|
@@ -1470,7 +1473,7 @@ var init_posthog_core = __esm({
|
|
|
1470
1473
|
}
|
|
1471
1474
|
});
|
|
1472
1475
|
|
|
1473
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1476
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
|
|
1474
1477
|
function getFilenameToChunkIdMap(stackParser) {
|
|
1475
1478
|
const chunkIdMap = globalThis._posthogChunkIds;
|
|
1476
1479
|
if (!chunkIdMap) return;
|
|
@@ -1503,14 +1506,14 @@ function getFilenameToChunkIdMap(stackParser) {
|
|
|
1503
1506
|
}
|
|
1504
1507
|
var parsedStackResults, lastKeysCount, cachedFilenameChunkIds;
|
|
1505
1508
|
var init_chunk_ids = __esm({
|
|
1506
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1509
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
|
|
1507
1510
|
}
|
|
1508
1511
|
});
|
|
1509
1512
|
|
|
1510
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1513
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
|
|
1511
1514
|
var MAX_CAUSE_RECURSION, ErrorPropertiesBuilder;
|
|
1512
1515
|
var init_error_properties_builder = __esm({
|
|
1513
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1516
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
|
|
1514
1517
|
init_utils();
|
|
1515
1518
|
init_chunk_ids();
|
|
1516
1519
|
MAX_CAUSE_RECURSION = 4;
|
|
@@ -1528,7 +1531,7 @@ var init_error_properties_builder = __esm({
|
|
|
1528
1531
|
};
|
|
1529
1532
|
const coercingContext = this.buildCoercingContext(mechanism, hint, 0);
|
|
1530
1533
|
const exceptionWithCause = coercingContext.apply(input);
|
|
1531
|
-
const parsingContext = this.buildParsingContext();
|
|
1534
|
+
const parsingContext = this.buildParsingContext(hint);
|
|
1532
1535
|
const exceptionWithStack = this.parseStacktrace(exceptionWithCause, parsingContext);
|
|
1533
1536
|
const exceptionList = this.convertToExceptionList(exceptionWithStack, mechanism);
|
|
1534
1537
|
return {
|
|
@@ -1552,7 +1555,7 @@ var init_error_properties_builder = __esm({
|
|
|
1552
1555
|
let cause;
|
|
1553
1556
|
if (null != err.cause) cause = this.parseStacktrace(err.cause, ctx);
|
|
1554
1557
|
let stack;
|
|
1555
|
-
if ("" != err.stack && null != err.stack) stack = this.applyChunkIds(this.stackParser(err.stack, err.synthetic ?
|
|
1558
|
+
if ("" != err.stack && null != err.stack) stack = this.applyChunkIds(this.stackParser(err.stack, err.synthetic ? ctx.skipFirstLines : 0), ctx.chunkIdMap);
|
|
1556
1559
|
return {
|
|
1557
1560
|
...err,
|
|
1558
1561
|
cause,
|
|
@@ -1597,9 +1600,10 @@ var init_error_properties_builder = __esm({
|
|
|
1597
1600
|
}));
|
|
1598
1601
|
return exceptionList;
|
|
1599
1602
|
}
|
|
1600
|
-
buildParsingContext() {
|
|
1603
|
+
buildParsingContext(hint) {
|
|
1601
1604
|
const context = {
|
|
1602
|
-
chunkIdMap: getFilenameToChunkIdMap(this.stackParser)
|
|
1605
|
+
chunkIdMap: getFilenameToChunkIdMap(this.stackParser),
|
|
1606
|
+
skipFirstLines: hint.skipFirstLines ?? 1
|
|
1603
1607
|
};
|
|
1604
1608
|
return context;
|
|
1605
1609
|
}
|
|
@@ -1624,7 +1628,7 @@ var init_error_properties_builder = __esm({
|
|
|
1624
1628
|
}
|
|
1625
1629
|
});
|
|
1626
1630
|
|
|
1627
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1631
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
|
|
1628
1632
|
function createFrame(platform, filename, func, lineno, colno) {
|
|
1629
1633
|
const frame = {
|
|
1630
1634
|
platform,
|
|
@@ -1638,16 +1642,16 @@ function createFrame(platform, filename, func, lineno, colno) {
|
|
|
1638
1642
|
}
|
|
1639
1643
|
var UNKNOWN_FUNCTION;
|
|
1640
1644
|
var init_base = __esm({
|
|
1641
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1645
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
|
|
1642
1646
|
init_utils();
|
|
1643
1647
|
UNKNOWN_FUNCTION = "?";
|
|
1644
1648
|
}
|
|
1645
1649
|
});
|
|
1646
1650
|
|
|
1647
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1651
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
|
|
1648
1652
|
var extractSafariExtensionDetails;
|
|
1649
1653
|
var init_safari = __esm({
|
|
1650
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1654
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
|
|
1651
1655
|
init_base();
|
|
1652
1656
|
extractSafariExtensionDetails = (func, filename) => {
|
|
1653
1657
|
const isSafariExtension = -1 !== func.indexOf("safari-extension");
|
|
@@ -1663,10 +1667,10 @@ var init_safari = __esm({
|
|
|
1663
1667
|
}
|
|
1664
1668
|
});
|
|
1665
1669
|
|
|
1666
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1670
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
|
|
1667
1671
|
var chromeRegexNoFnName, chromeRegex, chromeEvalRegex, chromeStackLineParser;
|
|
1668
1672
|
var init_chrome = __esm({
|
|
1669
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1673
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
|
|
1670
1674
|
init_base();
|
|
1671
1675
|
init_safari();
|
|
1672
1676
|
chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
|
|
@@ -1696,10 +1700,10 @@ var init_chrome = __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/gecko.mjs
|
|
1700
1704
|
var geckoREgex, geckoEvalRegex, geckoStackLineParser;
|
|
1701
1705
|
var init_gecko = __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/gecko.mjs"() {
|
|
1703
1707
|
init_base();
|
|
1704
1708
|
init_safari();
|
|
1705
1709
|
geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
|
|
@@ -1726,10 +1730,10 @@ var init_gecko = __esm({
|
|
|
1726
1730
|
}
|
|
1727
1731
|
});
|
|
1728
1732
|
|
|
1729
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1733
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
|
|
1730
1734
|
var winjsRegex, winjsStackLineParser;
|
|
1731
1735
|
var init_winjs = __esm({
|
|
1732
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1736
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
|
|
1733
1737
|
init_base();
|
|
1734
1738
|
winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
|
|
1735
1739
|
winjsStackLineParser = (line, platform) => {
|
|
@@ -1739,10 +1743,10 @@ var init_winjs = __esm({
|
|
|
1739
1743
|
}
|
|
1740
1744
|
});
|
|
1741
1745
|
|
|
1742
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1746
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
|
|
1743
1747
|
var opera10Regex, opera10StackLineParser, opera11Regex, opera11StackLineParser;
|
|
1744
1748
|
var init_opera = __esm({
|
|
1745
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1749
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
|
|
1746
1750
|
init_base();
|
|
1747
1751
|
opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
|
|
1748
1752
|
opera10StackLineParser = (line, platform) => {
|
|
@@ -1757,7 +1761,7 @@ var init_opera = __esm({
|
|
|
1757
1761
|
}
|
|
1758
1762
|
});
|
|
1759
1763
|
|
|
1760
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1764
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
|
|
1761
1765
|
function filenameIsInApp(filename, isNative = false) {
|
|
1762
1766
|
const isInternal = isNative || filename && !filename.startsWith("/") && !filename.match(/^[A-Z]:/) && !filename.startsWith(".") && !filename.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//);
|
|
1763
1767
|
return !isInternal && void 0 !== filename && !filename.includes("node_modules/");
|
|
@@ -1767,7 +1771,7 @@ function _parseIntOrUndefined(input) {
|
|
|
1767
1771
|
}
|
|
1768
1772
|
var FILENAME_MATCH, FULL_MATCH, nodeStackLineParser;
|
|
1769
1773
|
var init_node = __esm({
|
|
1770
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1774
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
|
|
1771
1775
|
init_base();
|
|
1772
1776
|
FILENAME_MATCH = /^\s*[-]{4,}$/;
|
|
1773
1777
|
FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
|
|
@@ -1828,7 +1832,7 @@ var init_node = __esm({
|
|
|
1828
1832
|
}
|
|
1829
1833
|
});
|
|
1830
1834
|
|
|
1831
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1835
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
|
|
1832
1836
|
function reverseAndStripFrames(stack) {
|
|
1833
1837
|
if (!stack.length) return [];
|
|
1834
1838
|
const localStack = Array.from(stack);
|
|
@@ -1869,7 +1873,7 @@ function createStackParser(platform, ...parsers) {
|
|
|
1869
1873
|
}
|
|
1870
1874
|
var WEBPACK_ERROR_REGEXP, STACKTRACE_FRAME_LIMIT;
|
|
1871
1875
|
var init_parsers = __esm({
|
|
1872
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1876
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
|
|
1873
1877
|
init_base();
|
|
1874
1878
|
init_chrome();
|
|
1875
1879
|
init_gecko();
|
|
@@ -1881,10 +1885,10 @@ var init_parsers = __esm({
|
|
|
1881
1885
|
}
|
|
1882
1886
|
});
|
|
1883
1887
|
|
|
1884
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1888
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
|
|
1885
1889
|
var DOMExceptionCoercer;
|
|
1886
1890
|
var init_dom_exception_coercer = __esm({
|
|
1887
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1891
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
|
|
1888
1892
|
init_utils();
|
|
1889
1893
|
DOMExceptionCoercer = class {
|
|
1890
1894
|
match(err) {
|
|
@@ -1918,10 +1922,10 @@ var init_dom_exception_coercer = __esm({
|
|
|
1918
1922
|
}
|
|
1919
1923
|
});
|
|
1920
1924
|
|
|
1921
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1925
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
|
|
1922
1926
|
var ErrorCoercer;
|
|
1923
1927
|
var init_error_coercer = __esm({
|
|
1924
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1928
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
|
|
1925
1929
|
init_utils();
|
|
1926
1930
|
ErrorCoercer = class {
|
|
1927
1931
|
match(err) {
|
|
@@ -1951,10 +1955,10 @@ var init_error_coercer = __esm({
|
|
|
1951
1955
|
}
|
|
1952
1956
|
});
|
|
1953
1957
|
|
|
1954
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1958
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
|
|
1955
1959
|
var ErrorEventCoercer;
|
|
1956
1960
|
var init_error_event_coercer = __esm({
|
|
1957
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1961
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
|
|
1958
1962
|
init_utils();
|
|
1959
1963
|
ErrorEventCoercer = class {
|
|
1960
1964
|
constructor() {
|
|
@@ -1976,10 +1980,10 @@ var init_error_event_coercer = __esm({
|
|
|
1976
1980
|
}
|
|
1977
1981
|
});
|
|
1978
1982
|
|
|
1979
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
1983
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
|
|
1980
1984
|
var ERROR_TYPES_PATTERN, StringCoercer;
|
|
1981
1985
|
var init_string_coercer = __esm({
|
|
1982
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
1986
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
|
|
1983
1987
|
ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
|
|
1984
1988
|
StringCoercer = class {
|
|
1985
1989
|
match(input) {
|
|
@@ -2011,10 +2015,10 @@ var init_string_coercer = __esm({
|
|
|
2011
2015
|
}
|
|
2012
2016
|
});
|
|
2013
2017
|
|
|
2014
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2018
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/types.mjs
|
|
2015
2019
|
var severityLevels;
|
|
2016
2020
|
var init_types2 = __esm({
|
|
2017
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2021
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
|
|
2018
2022
|
severityLevels = [
|
|
2019
2023
|
"fatal",
|
|
2020
2024
|
"error",
|
|
@@ -2026,7 +2030,7 @@ var init_types2 = __esm({
|
|
|
2026
2030
|
}
|
|
2027
2031
|
});
|
|
2028
2032
|
|
|
2029
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2033
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
|
|
2030
2034
|
function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
2031
2035
|
const keys = Object.keys(err);
|
|
2032
2036
|
keys.sort();
|
|
@@ -2041,14 +2045,14 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
|
2041
2045
|
return "";
|
|
2042
2046
|
}
|
|
2043
2047
|
var init_utils2 = __esm({
|
|
2044
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2048
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
|
|
2045
2049
|
}
|
|
2046
2050
|
});
|
|
2047
2051
|
|
|
2048
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2052
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
|
|
2049
2053
|
var ObjectCoercer;
|
|
2050
2054
|
var init_object_coercer = __esm({
|
|
2051
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2055
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
|
|
2052
2056
|
init_utils();
|
|
2053
2057
|
init_types2();
|
|
2054
2058
|
init_utils2();
|
|
@@ -2102,10 +2106,10 @@ var init_object_coercer = __esm({
|
|
|
2102
2106
|
}
|
|
2103
2107
|
});
|
|
2104
2108
|
|
|
2105
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2109
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
|
|
2106
2110
|
var EventCoercer;
|
|
2107
2111
|
var init_event_coercer = __esm({
|
|
2108
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2112
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
|
|
2109
2113
|
init_utils();
|
|
2110
2114
|
init_utils2();
|
|
2111
2115
|
EventCoercer = class {
|
|
@@ -2125,10 +2129,10 @@ var init_event_coercer = __esm({
|
|
|
2125
2129
|
}
|
|
2126
2130
|
});
|
|
2127
2131
|
|
|
2128
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2132
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
|
|
2129
2133
|
var PrimitiveCoercer;
|
|
2130
2134
|
var init_primitive_coercer = __esm({
|
|
2131
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2135
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
|
|
2132
2136
|
init_utils();
|
|
2133
2137
|
PrimitiveCoercer = class {
|
|
2134
2138
|
match(candidate) {
|
|
@@ -2146,10 +2150,10 @@ var init_primitive_coercer = __esm({
|
|
|
2146
2150
|
}
|
|
2147
2151
|
});
|
|
2148
2152
|
|
|
2149
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2153
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
|
|
2150
2154
|
var PromiseRejectionEventCoercer;
|
|
2151
2155
|
var init_promise_rejection_event = __esm({
|
|
2152
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2156
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
|
|
2153
2157
|
init_utils();
|
|
2154
2158
|
PromiseRejectionEventCoercer = class {
|
|
2155
2159
|
match(err) {
|
|
@@ -2178,9 +2182,9 @@ var init_promise_rejection_event = __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/coercers/index.mjs
|
|
2182
2186
|
var init_coercers = __esm({
|
|
2183
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2187
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
|
|
2184
2188
|
init_dom_exception_coercer();
|
|
2185
2189
|
init_error_coercer();
|
|
2186
2190
|
init_error_event_coercer();
|
|
@@ -2192,10 +2196,10 @@ var init_coercers = __esm({
|
|
|
2192
2196
|
}
|
|
2193
2197
|
});
|
|
2194
2198
|
|
|
2195
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2199
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs
|
|
2196
2200
|
var ReduceableCache;
|
|
2197
2201
|
var init_utils3 = __esm({
|
|
2198
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2202
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
|
|
2199
2203
|
ReduceableCache = class {
|
|
2200
2204
|
constructor(_maxSize) {
|
|
2201
2205
|
this._maxSize = _maxSize;
|
|
@@ -2221,7 +2225,7 @@ var init_utils3 = __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/index.mjs
|
|
2225
2229
|
var error_tracking_exports = {};
|
|
2226
2230
|
__export(error_tracking_exports, {
|
|
2227
2231
|
DOMExceptionCoercer: () => DOMExceptionCoercer,
|
|
@@ -2245,7 +2249,7 @@ __export(error_tracking_exports, {
|
|
|
2245
2249
|
winjsStackLineParser: () => winjsStackLineParser
|
|
2246
2250
|
});
|
|
2247
2251
|
var init_error_tracking = __esm({
|
|
2248
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2252
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
|
|
2249
2253
|
init_error_properties_builder();
|
|
2250
2254
|
init_parsers();
|
|
2251
2255
|
init_coercers();
|
|
@@ -2253,9 +2257,9 @@ var init_error_tracking = __esm({
|
|
|
2253
2257
|
}
|
|
2254
2258
|
});
|
|
2255
2259
|
|
|
2256
|
-
// ../../node_modules/.pnpm/@posthog+core@1.
|
|
2260
|
+
// ../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/index.mjs
|
|
2257
2261
|
var init_dist = __esm({
|
|
2258
|
-
"../../node_modules/.pnpm/@posthog+core@1.
|
|
2262
|
+
"../../node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/index.mjs"() {
|
|
2259
2263
|
init_featureFlagUtils();
|
|
2260
2264
|
init_uuidv7();
|
|
2261
2265
|
init_utils();
|
|
@@ -2446,7 +2450,7 @@ function snipLine(line, colno) {
|
|
|
2446
2450
|
}
|
|
2447
2451
|
var LRU_FILE_CONTENTS_CACHE, LRU_FILE_CONTENTS_FS_READ_FAILED, DEFAULT_LINES_OF_CONTEXT, MAX_CONTEXTLINES_COLNO, MAX_CONTEXTLINES_LINENO;
|
|
2448
2452
|
var init_context_lines_node = __esm({
|
|
2449
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2453
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
|
|
2450
2454
|
init_dist();
|
|
2451
2455
|
LRU_FILE_CONTENTS_CACHE = new error_tracking_exports.ReduceableCache(25);
|
|
2452
2456
|
LRU_FILE_CONTENTS_FS_READ_FAILED = new error_tracking_exports.ReduceableCache(20);
|
|
@@ -2456,7 +2460,7 @@ var init_context_lines_node = __esm({
|
|
|
2456
2460
|
}
|
|
2457
2461
|
});
|
|
2458
2462
|
|
|
2459
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2463
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
|
|
2460
2464
|
function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
|
|
2461
2465
|
let calledFatalError = false;
|
|
2462
2466
|
return Object.assign((error) => {
|
|
@@ -2488,14 +2492,14 @@ function addUnhandledRejectionListener(captureFn) {
|
|
|
2488
2492
|
}));
|
|
2489
2493
|
}
|
|
2490
2494
|
var init_autocapture = __esm({
|
|
2491
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2495
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
|
|
2492
2496
|
}
|
|
2493
2497
|
});
|
|
2494
2498
|
|
|
2495
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2499
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
|
|
2496
2500
|
var SHUTDOWN_TIMEOUT, ErrorTracking;
|
|
2497
2501
|
var init_error_tracking2 = __esm({
|
|
2498
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2502
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
|
|
2499
2503
|
init_autocapture();
|
|
2500
2504
|
init_dist();
|
|
2501
2505
|
SHUTDOWN_TIMEOUT = 2e3;
|
|
@@ -2566,18 +2570,18 @@ var init_error_tracking2 = __esm({
|
|
|
2566
2570
|
}
|
|
2567
2571
|
});
|
|
2568
2572
|
|
|
2569
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2573
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/version.mjs
|
|
2570
2574
|
var version;
|
|
2571
2575
|
var init_version = __esm({
|
|
2572
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2573
|
-
version = "5.24.
|
|
2576
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/version.mjs"() {
|
|
2577
|
+
version = "5.24.11";
|
|
2574
2578
|
}
|
|
2575
2579
|
});
|
|
2576
2580
|
|
|
2577
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2581
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/types.mjs
|
|
2578
2582
|
var FeatureFlagError2;
|
|
2579
2583
|
var init_types3 = __esm({
|
|
2580
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2584
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/types.mjs"() {
|
|
2581
2585
|
FeatureFlagError2 = {
|
|
2582
2586
|
ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
|
|
2583
2587
|
FLAG_MISSING: "flag_missing",
|
|
@@ -2587,7 +2591,7 @@ var init_types3 = __esm({
|
|
|
2587
2591
|
}
|
|
2588
2592
|
});
|
|
2589
2593
|
|
|
2590
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2594
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
|
|
2591
2595
|
async function hashSHA1(text) {
|
|
2592
2596
|
const subtle = globalThis.crypto?.subtle;
|
|
2593
2597
|
if (!subtle) throw new Error("SubtleCrypto API not available");
|
|
@@ -2596,11 +2600,11 @@ async function hashSHA1(text) {
|
|
|
2596
2600
|
return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
2597
2601
|
}
|
|
2598
2602
|
var init_crypto = __esm({
|
|
2599
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2603
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
|
|
2600
2604
|
}
|
|
2601
2605
|
});
|
|
2602
2606
|
|
|
2603
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
2607
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
|
|
2604
2608
|
async function _hash(key, distinctId, salt = "") {
|
|
2605
2609
|
const hashString = await hashSHA1(`${key}.${distinctId}${salt}`);
|
|
2606
2610
|
return parseInt(hashString.slice(0, 15), 16) / LONG_SCALE;
|
|
@@ -2768,7 +2772,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
|
|
|
2768
2772
|
}
|
|
2769
2773
|
var SIXTY_SECONDS, LONG_SCALE, NULL_VALUES_ALLOWED_OPERATORS, ClientError, InconclusiveMatchError, RequiresServerEvaluation, FeatureFlagsPoller;
|
|
2770
2774
|
var init_feature_flags = __esm({
|
|
2771
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
2775
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
|
|
2772
2776
|
init_dist();
|
|
2773
2777
|
init_crypto();
|
|
2774
2778
|
SIXTY_SECONDS = 6e4;
|
|
@@ -3181,10 +3185,10 @@ var init_feature_flags = __esm({
|
|
|
3181
3185
|
}
|
|
3182
3186
|
});
|
|
3183
3187
|
|
|
3184
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3188
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/storage-memory.mjs
|
|
3185
3189
|
var PostHogMemoryStorage;
|
|
3186
3190
|
var init_storage_memory = __esm({
|
|
3187
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3191
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/storage-memory.mjs"() {
|
|
3188
3192
|
PostHogMemoryStorage = class {
|
|
3189
3193
|
getProperty(key) {
|
|
3190
3194
|
return this._memoryStorage[key];
|
|
@@ -3199,10 +3203,10 @@ var init_storage_memory = __esm({
|
|
|
3199
3203
|
}
|
|
3200
3204
|
});
|
|
3201
3205
|
|
|
3202
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3206
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/client.mjs
|
|
3203
3207
|
var MINIMUM_POLLING_INTERVAL, THIRTY_SECONDS, MAX_CACHE_SIZE, PostHogBackendClient;
|
|
3204
3208
|
var init_client = __esm({
|
|
3205
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3209
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/client.mjs"() {
|
|
3206
3210
|
init_version();
|
|
3207
3211
|
init_dist();
|
|
3208
3212
|
init_types3();
|
|
@@ -3810,7 +3814,7 @@ var init_client = __esm({
|
|
|
3810
3814
|
});
|
|
3811
3815
|
var PostHogContext;
|
|
3812
3816
|
var init_context = __esm({
|
|
3813
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3817
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
|
|
3814
3818
|
PostHogContext = class {
|
|
3815
3819
|
constructor() {
|
|
3816
3820
|
this.storage = new AsyncLocalStorage();
|
|
@@ -3838,7 +3842,7 @@ var init_context = __esm({
|
|
|
3838
3842
|
}
|
|
3839
3843
|
});
|
|
3840
3844
|
|
|
3841
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3845
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
|
|
3842
3846
|
function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
|
|
3843
3847
|
"error"
|
|
3844
3848
|
], sendExceptionsToPostHog = true } = {}) {
|
|
@@ -3894,7 +3898,7 @@ function sentryIntegration(_posthog, options) {
|
|
|
3894
3898
|
}
|
|
3895
3899
|
var NAME, PostHogSentryIntegration;
|
|
3896
3900
|
var init_sentry_integration = __esm({
|
|
3897
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3901
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
|
|
3898
3902
|
NAME = "posthog-node";
|
|
3899
3903
|
PostHogSentryIntegration = class {
|
|
3900
3904
|
static #_ = this.POSTHOG_ID_TAG = "posthog_distinct_id";
|
|
@@ -3916,7 +3920,7 @@ var init_sentry_integration = __esm({
|
|
|
3916
3920
|
}
|
|
3917
3921
|
});
|
|
3918
3922
|
|
|
3919
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3923
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/express.mjs
|
|
3920
3924
|
function setupExpressErrorHandler(_posthog, app) {
|
|
3921
3925
|
app.use(posthogErrorHandler(_posthog));
|
|
3922
3926
|
}
|
|
@@ -3948,14 +3952,14 @@ function posthogErrorHandler(posthog) {
|
|
|
3948
3952
|
};
|
|
3949
3953
|
}
|
|
3950
3954
|
var init_express = __esm({
|
|
3951
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3955
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/express.mjs"() {
|
|
3952
3956
|
init_error_tracking2();
|
|
3953
3957
|
}
|
|
3954
3958
|
});
|
|
3955
3959
|
|
|
3956
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3960
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/exports.mjs
|
|
3957
3961
|
var init_exports = __esm({
|
|
3958
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3962
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/exports.mjs"() {
|
|
3959
3963
|
init_dist();
|
|
3960
3964
|
init_sentry_integration();
|
|
3961
3965
|
init_express();
|
|
@@ -3963,7 +3967,7 @@ var init_exports = __esm({
|
|
|
3963
3967
|
}
|
|
3964
3968
|
});
|
|
3965
3969
|
|
|
3966
|
-
// ../../node_modules/.pnpm/posthog-node@5.24.
|
|
3970
|
+
// ../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/entrypoints/index.node.mjs
|
|
3967
3971
|
var index_node_exports = {};
|
|
3968
3972
|
__export(index_node_exports, {
|
|
3969
3973
|
FeatureFlagError: () => FeatureFlagError,
|
|
@@ -3975,7 +3979,7 @@ __export(index_node_exports, {
|
|
|
3975
3979
|
});
|
|
3976
3980
|
var PostHog;
|
|
3977
3981
|
var init_index_node = __esm({
|
|
3978
|
-
"../../node_modules/.pnpm/posthog-node@5.24.
|
|
3982
|
+
"../../node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
|
|
3979
3983
|
init_module_node();
|
|
3980
3984
|
init_context_lines_node();
|
|
3981
3985
|
init_error_tracking2();
|