Socket
Socket
Sign inDemoInstall

posthog-node

Package Overview
Dependencies
Maintainers
6
Versions
66
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.6.1 to 3.6.2

6

CHANGELOG.md

@@ -1,3 +0,7 @@

## 3.6.1 - 2024-01-26
# 3.6.2 - 2024-02-06
1. Swapped to `uuidv7` for unique ID generation
# 3.6.1 - 2024-01-26
1. Remove new relative date operators, combine into regular date operators

@@ -4,0 +8,0 @@

1

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

@@ -9,5 +9,4 @@ export declare function assert(truthyValue: any, message: string): void;

export declare function retriable<T>(fn: () => Promise<T>, props?: RetriableOptions): Promise<T>;
export declare function generateUUID(globalThis?: any): string;
export declare function currentTimestamp(): number;
export declare function currentISOTime(): string;
export declare function safeSetTimeout(fn: () => void, timeout: number): any;
{
"name": "posthog-node",
"version": "3.6.1",
"version": "3.6.2",
"description": "PostHog Node.js integration",

@@ -5,0 +5,0 @@ "repository": {

@@ -9,2 +9,2 @@ # PostHog Node.js

### [Join our Slack community.](https://join.slack.com/t/posthogusers/shared_invite/enQtOTY0MzU5NjAwMDY3LTc2MWQ0OTZlNjhkODk3ZDI3NDVjMDE1YjgxY2I4ZjI4MzJhZmVmNjJkN2NmMGJmMzc2N2U3Yjc3ZjI5NGFlZDQ)
### [Check out our community page.](https://posthog.com/posts)

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

import { waitForPromises, wait } from '../../posthog-core/test/test-utils/test-utils'
import { generateUUID } from 'posthog-core/src/utils'
import { randomUUID } from 'crypto'

@@ -198,3 +198,3 @@ jest.mock('../package.json', () => ({ version: '1.2.3' }))

expect(mockedFetch).toHaveBeenCalledTimes(0)
const uuid = generateUUID()
const uuid = randomUUID()
posthog.capture({ event: 'custom-time', distinctId: '123', uuid })

@@ -201,0 +201,0 @@ await waitForPromises()

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