posthog-node 4.11.3 → 4.11.5
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/CHANGELOG.md +17 -1
- package/lib/index.cjs.js +10 -5
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +10 -10
- package/lib/index.esm.js +10 -5
- package/lib/index.esm.js.map +1 -1
- package/lib/posthog-core/src/utils.d.ts +1 -0
- package/lib/posthog-node/src/extensions/error-tracking/error-conversion.d.ts +0 -3
- package/package.json +1 -1
- package/src/extensions/error-tracking/autocapture.ts +3 -0
- package/src/extensions/error-tracking/context-lines.ts +3 -0
- package/src/extensions/error-tracking/error-conversion.ts +3 -4
- package/src/extensions/error-tracking/reduceable-cache.ts +3 -0
- package/src/extensions/error-tracking/stack-trace.ts +2 -2
- package/src/extensions/error-tracking/type-checking.ts +3 -0
- package/src/extensions/error-tracking/types.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
|
+
# 4.11.5 - 2025-04-14
|
|
2
|
+
|
|
3
|
+
## Fixed
|
|
4
|
+
|
|
5
|
+
1. export and declare top-level declarations for surveys
|
|
6
|
+
|
|
7
|
+
# 4.11.4 - 2025-04-14
|
|
8
|
+
|
|
9
|
+
## Fixed
|
|
10
|
+
|
|
11
|
+
1. export top-level declarations for surveys
|
|
12
|
+
|
|
1
13
|
# 4.11.3 - 2025-04-08
|
|
2
14
|
|
|
3
|
-
|
|
15
|
+
## Fixed
|
|
16
|
+
|
|
17
|
+
1. do not access `fs` or `readline` in when not available e.g. edge environments
|
|
4
18
|
|
|
5
19
|
# 4.11.2 - 2025-04-07
|
|
6
20
|
|
|
21
|
+
## Fixed
|
|
22
|
+
|
|
7
23
|
1. chore: bump axios to 1.8.2 (fixes [CVE-2025-27152](https://github.com/advisories/GHSA-jr5f-v2jv-69x6))
|
|
8
24
|
|
|
9
25
|
# 4.11.1 - 2025-03-28
|
package/lib/index.cjs.js
CHANGED
|
@@ -22,7 +22,7 @@ function _interopNamespace(e) {
|
|
|
22
22
|
return Object.freeze(n);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
var version = "4.11.
|
|
25
|
+
var version = "4.11.5";
|
|
26
26
|
|
|
27
27
|
var PostHogPersistedProperty;
|
|
28
28
|
(function (PostHogPersistedProperty) {
|
|
@@ -2424,6 +2424,8 @@ function relativeDateParseForFeatureFlagMatching(value) {
|
|
|
2424
2424
|
}
|
|
2425
2425
|
}
|
|
2426
2426
|
|
|
2427
|
+
// Portions of this file are derived from getsentry/sentry-javascript by Software, Inc. dba Sentry
|
|
2428
|
+
// Licensed under the MIT License
|
|
2427
2429
|
function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
|
|
2428
2430
|
let calledFatalError = false;
|
|
2429
2431
|
return Object.assign(error => {
|
|
@@ -2470,6 +2472,8 @@ function addUnhandledRejectionListener(captureFn) {
|
|
|
2470
2472
|
});
|
|
2471
2473
|
}
|
|
2472
2474
|
|
|
2475
|
+
// Portions of this file are derived from getsentry/sentry-javascript by Software, Inc. dba Sentry
|
|
2476
|
+
// Licensed under the MIT License
|
|
2473
2477
|
function isEvent(candidate) {
|
|
2474
2478
|
return typeof Event !== 'undefined' && isInstanceOf(candidate, Event);
|
|
2475
2479
|
}
|
|
@@ -2501,6 +2505,8 @@ function isBuiltin(candidate, className) {
|
|
|
2501
2505
|
return Object.prototype.toString.call(candidate) === `[object ${className}]`;
|
|
2502
2506
|
}
|
|
2503
2507
|
|
|
2508
|
+
// Portions of this file are derived from getsentry/sentry-javascript by Software, Inc. dba Sentry
|
|
2509
|
+
// Licensed under the MIT License
|
|
2504
2510
|
/** A simple Least Recently Used map */
|
|
2505
2511
|
class ReduceableCache {
|
|
2506
2512
|
constructor(_maxSize) {
|
|
@@ -2534,6 +2540,7 @@ class ReduceableCache {
|
|
|
2534
2540
|
}
|
|
2535
2541
|
}
|
|
2536
2542
|
|
|
2543
|
+
// Portions of this file are derived from getsentry/sentry-javascript by Software, Inc. dba Sentry
|
|
2537
2544
|
const nodeFs = new Lazy(async () => {
|
|
2538
2545
|
try {
|
|
2539
2546
|
return await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('node:fs')); });
|
|
@@ -2884,9 +2891,7 @@ function snipLine(line, colno) {
|
|
|
2884
2891
|
return newLine;
|
|
2885
2892
|
}
|
|
2886
2893
|
|
|
2887
|
-
|
|
2888
|
-
* based on the very wonderful MIT licensed Sentry SDK
|
|
2889
|
-
*/
|
|
2894
|
+
// Portions of this file are derived from getsentry/sentry-javascript by Software, Inc. dba Sentry
|
|
2890
2895
|
async function propertiesFromUnknownInput(stackParser, input, hint) {
|
|
2891
2896
|
const providedMechanism = hint && hint.mechanism;
|
|
2892
2897
|
const mechanism = providedMechanism || {
|
|
@@ -3074,7 +3079,7 @@ function parseStackFrames(stackParser, error) {
|
|
|
3074
3079
|
return stackParser(error.stack || '', 1);
|
|
3075
3080
|
}
|
|
3076
3081
|
|
|
3077
|
-
//
|
|
3082
|
+
// Portions of this file are derived from getsentry/sentry-javascript by Software, Inc. dba Sentry
|
|
3078
3083
|
// This was originally forked from https://github.com/csnover/TraceKit, and was largely
|
|
3079
3084
|
// re-written as part of raven - js.
|
|
3080
3085
|
//
|