posthog-node
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -0,1 +1,4 @@ | ||
# 2.2.1 - 2022-11-24 | ||
1. Add standard 10 second timeout | ||
# 2.2.0 - 2022-11-18 | ||
@@ -2,0 +5,0 @@ |
@@ -16,2 +16,3 @@ /// <reference types="node" /> | ||
fetchRetryDelay?: number; | ||
requestTimeout?: number; | ||
sessionExpirationTimeSeconds?: number; | ||
@@ -18,0 +19,0 @@ captureMode?: 'json' | 'form'; |
@@ -11,2 +11,3 @@ import { PostHogFetchOptions, PostHogFetchResponse, PostHogAutocaptureElement, PostHogDecideResponse, PosthogCoreOptions, PostHogEventProperties, PostHogPersistedProperty } from './types'; | ||
private flushInterval; | ||
private requestTimeout; | ||
private captureMode; | ||
@@ -13,0 +14,0 @@ private sendFeatureFlagEvent; |
@@ -16,2 +16,3 @@ /// <reference types="node" /> | ||
fetchRetryDelay?: number; | ||
requestTimeout?: number; | ||
sessionExpirationTimeSeconds?: number; | ||
@@ -18,0 +19,0 @@ captureMode?: 'json' | 'form'; |
{ | ||
"name": "posthog-node", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "PostHog Node.js integration", | ||
@@ -5,0 +5,0 @@ "repository": "PostHog/posthog-node", |
@@ -20,3 +20,3 @@ import { version } from '../package.json' | ||
featureFlagsPollingInterval?: number | ||
// Timeout in milliseconds for feature flag definitions calls. Defaults to 30 seconds. | ||
// Timeout in milliseconds for any calls. Defaults to 10 seconds. | ||
requestTimeout?: number | ||
@@ -88,3 +88,3 @@ // Maximum size of cache that deduplicates $feature_flag_called calls per user. | ||
projectApiKey: apiKey, | ||
timeout: options.requestTimeout, | ||
timeout: options.requestTimeout ?? 10, | ||
host: this._sharedClient.host, | ||
@@ -91,0 +91,0 @@ fetch: options.fetch, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
656816
9436
1