posthog-node 5.45.1 → 5.45.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.
@@ -83,7 +83,7 @@ class ErrorTracking {
83
83
  async onFatalError(exception) {
84
84
  console.error(exception);
85
85
  await this.client.shutdown(SHUTDOWN_TIMEOUT);
86
- process.exit(1);
86
+ globalThis.process.exit(1);
87
87
  }
88
88
  isEnabled() {
89
89
  return !this.client.isDisabled && this._exceptionAutocaptureEnabled;
@@ -55,7 +55,7 @@ class ErrorTracking {
55
55
  async onFatalError(exception) {
56
56
  console.error(exception);
57
57
  await this.client.shutdown(SHUTDOWN_TIMEOUT);
58
- process.exit(1);
58
+ globalThis.process.exit(1);
59
59
  }
60
60
  isEnabled() {
61
61
  return !this.client.isDisabled && this._exceptionAutocaptureEnabled;
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "5.45.1";
1
+ export declare const version = "5.45.2";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -26,7 +26,7 @@ __webpack_require__.r(__webpack_exports__);
26
26
  __webpack_require__.d(__webpack_exports__, {
27
27
  version: ()=>version
28
28
  });
29
- const version = '5.45.1';
29
+ const version = '5.45.2';
30
30
  exports.version = __webpack_exports__.version;
31
31
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
32
32
  "version"
package/dist/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- const version = '5.45.1';
1
+ const version = '5.45.2';
2
2
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-node",
3
- "version": "5.45.1",
3
+ "version": "5.45.2",
4
4
  "bugs": {
5
5
  "url": "https://github.com/PostHog/posthog-js/issues"
6
6
  },
@@ -28,7 +28,7 @@
28
28
  "module": "dist/entrypoints/index.node.mjs",
29
29
  "types": "dist/entrypoints/index.node.d.ts",
30
30
  "dependencies": {
31
- "@posthog/core": "^1.43.0"
31
+ "@posthog/core": "^1.43.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@edge-runtime/jest-environment": "^4.0.0",
@@ -101,7 +101,7 @@ export default class ErrorTracking {
101
101
  private async onFatalError(exception: Error): Promise<void> {
102
102
  console.error(exception)
103
103
  await this.client.shutdown(SHUTDOWN_TIMEOUT)
104
- process.exit(1)
104
+ globalThis.process.exit(1)
105
105
  }
106
106
 
107
107
  isEnabled(): boolean {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '5.45.1'
1
+ export const version = '5.45.2'