posthog-node
Advanced tools
Comparing version 2.0.0-alpha2 to 2.0.0-alpha3
@@ -142,3 +142,3 @@ 'use strict'; | ||
var version = "2.0.0-alpha2"; | ||
var version = "2.0.0-alpha3"; | ||
@@ -172,3 +172,3 @@ var PostHogPersistedProperty; | ||
case 0: | ||
_a = props.retryCount, retryCount = _a === void 0 ? 3 : _a, _b = props.retryDelay, retryDelay = _b === void 0 ? 1000 : _b, _c = props.retryCheck, retryCheck = _c === void 0 ? function () { return true; } : _c; | ||
_a = props.retryCount, retryCount = _a === void 0 ? 3 : _a, _b = props.retryDelay, retryDelay = _b === void 0 ? 5000 : _b, _c = props.retryCheck, retryCheck = _c === void 0 ? function () { return true; } : _c; | ||
lastError = null; | ||
@@ -1203,2 +1203,10 @@ i = 0; | ||
PostHogGlobal.prototype.enable = function () { | ||
return this._sharedClient.optIn(); | ||
}; | ||
PostHogGlobal.prototype.disable = function () { | ||
return this._sharedClient.optOut(); | ||
}; | ||
PostHogGlobal.prototype.capture = function (_a) { | ||
@@ -1205,0 +1213,0 @@ var distinctId = _a.distinctId, |
@@ -104,2 +104,4 @@ declare type PosthogCoreOptions = { | ||
private reInit; | ||
enable(): void; | ||
disable(): void; | ||
capture({ distinctId, event, properties, groups }: EventMessageV1): void; | ||
@@ -106,0 +108,0 @@ identify({ distinctId, properties }: IdentifyMessageV1): void; |
@@ -134,3 +134,3 @@ import undici from 'undici'; | ||
var version = "2.0.0-alpha2"; | ||
var version = "2.0.0-alpha3"; | ||
@@ -164,3 +164,3 @@ var PostHogPersistedProperty; | ||
case 0: | ||
_a = props.retryCount, retryCount = _a === void 0 ? 3 : _a, _b = props.retryDelay, retryDelay = _b === void 0 ? 1000 : _b, _c = props.retryCheck, retryCheck = _c === void 0 ? function () { return true; } : _c; | ||
_a = props.retryCount, retryCount = _a === void 0 ? 3 : _a, _b = props.retryDelay, retryDelay = _b === void 0 ? 5000 : _b, _c = props.retryCheck, retryCheck = _c === void 0 ? function () { return true; } : _c; | ||
lastError = null; | ||
@@ -1195,2 +1195,10 @@ i = 0; | ||
PostHogGlobal.prototype.enable = function () { | ||
return this._sharedClient.optIn(); | ||
}; | ||
PostHogGlobal.prototype.disable = function () { | ||
return this._sharedClient.optOut(); | ||
}; | ||
PostHogGlobal.prototype.capture = function (_a) { | ||
@@ -1197,0 +1205,0 @@ var distinctId = _a.distinctId, |
@@ -8,2 +8,4 @@ import { PosthogCoreOptions } from '../../posthog-core/src'; | ||
private reInit; | ||
enable(): void; | ||
disable(): void; | ||
capture({ distinctId, event, properties, groups }: EventMessageV1): void; | ||
@@ -10,0 +12,0 @@ identify({ distinctId, properties }: IdentifyMessageV1): void; |
{ | ||
"name": "posthog-node", | ||
"version": "2.0.0-alpha2", | ||
"version": "2.0.0-alpha3", | ||
"description": "PostHog Node.js integration", | ||
@@ -5,0 +5,0 @@ "repository": "PostHog/posthog-node", |
@@ -69,2 +69,10 @@ import { version } from '../package.json' | ||
enable(): void { | ||
return this._sharedClient.optIn() | ||
} | ||
disable(): void { | ||
return this._sharedClient.optOut() | ||
} | ||
capture({ distinctId, event, properties, groups }: EventMessageV1): void { | ||
@@ -71,0 +79,0 @@ this.reInit(distinctId) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
341474
3213
0