Socket
Socket
Sign inDemoInstall

posthog-node

Package Overview
Dependencies
8
Maintainers
6
Versions
63
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.0 to 2.2.1

3

CHANGELOG.md

@@ -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';

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc