Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

posthog-node

Package Overview
Dependencies
Maintainers
6
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posthog-node - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 3.1.2 - 2023-08-17
1. Returns the current flag property with $feature_flag_called events, to make it easier to use in experiments
# 3.1.1 - 2023-04-26

@@ -2,0 +6,0 @@

9

lib/posthog-core/src/index.d.ts

@@ -77,2 +77,3 @@ import { PostHogFetchOptions, PostHogFetchResponse, PostHogAutocaptureElement, PostHogDecideResponse, PosthogCoreOptions, PostHogEventProperties, PostHogPersistedProperty, PosthogCaptureOptions, JsonType } from './types';

protected _sessionExpirationTimeSeconds: number;
protected sessionProps: PostHogEventProperties;
constructor(apiKey: string, options?: PosthogCoreOptions);

@@ -87,3 +88,3 @@ protected setupBootstrap(options?: Partial<PosthogCoreOptions>): void;

protected getCommonEventProperties(): any;
private enrichProperties;
enrichProperties(properties?: PostHogEventProperties): any;
getSessionId(): string | undefined;

@@ -93,6 +94,10 @@ resetSessionId(): void;

getDistinctId(): string;
unregister(property: string): void;
register(properties: {
[key: string]: any;
}): void;
unregister(property: string): void;
registerForSession(properties: {
[key: string]: any;
}): void;
unregisterForSession(property: string): void;
/***

@@ -99,0 +104,0 @@ *** TRACKING

{
"name": "posthog-node",
"version": "3.1.1",
"version": "3.1.2",
"description": "PostHog Node.js integration",

@@ -5,0 +5,0 @@ "repository": "PostHog/posthog-node",

@@ -210,2 +210,3 @@ import { version } from '../package.json'

locally_evaluated: flagWasLocallyEvaluated,
[`$feature/${key}`]: response,
},

@@ -212,0 +213,0 @@ groups,

@@ -558,2 +558,3 @@ // import { PostHog } from '../'

locally_evaluated: true,
'$feature/beta-feature': true,
}),

@@ -614,2 +615,3 @@ },

$feature_flag_response: true,
'$feature/beta-feature': true,
$lib: 'posthog-node',

@@ -657,2 +659,3 @@ $lib_version: '1.2.3',

locally_evaluated: true,
'$feature/beta-feature': true,
$groups: { x: 'y' },

@@ -694,2 +697,3 @@ })

locally_evaluated: false,
'$feature/decide-flag': 'decide-value',
$groups: { organization: 'org1' },

@@ -696,0 +700,0 @@ }),

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc