posthog-node 5.55.1 → 5.55.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +1 -1
- package/dist/client.mjs +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +6 -5
- package/src/client.ts +1 -1
- package/src/version.ts +1 -1
package/dist/client.js
CHANGED
|
@@ -118,7 +118,7 @@ class PostHogBackendClient extends core_namespaceObject.PostHogCoreStateless {
|
|
|
118
118
|
if ('number' == typeof normalizedOptions.waitUntilDebounceMs) this.options.waitUntilDebounceMs = Math.max(normalizedOptions.waitUntilDebounceMs, 0);
|
|
119
119
|
if ('number' == typeof normalizedOptions.waitUntilMaxWaitMs) this.options.waitUntilMaxWaitMs = Math.max(normalizedOptions.waitUntilMaxWaitMs, 0);
|
|
120
120
|
if (!this.disabled && normalizedOptions.personalApiKey) {
|
|
121
|
-
if (normalizedOptions.personalApiKey.includes('phc_')) throw new Error('
|
|
121
|
+
if (normalizedOptions.personalApiKey.includes('phc_')) throw new Error('A project API key ("phc_...") was provided as secretKey or personalApiKey. Pass the project API key as the first constructor argument. For local evaluation, set secretKey (or the deprecated personalApiKey alias) to a server-only Project Secret API Key ("phs_...") or Personal API Key ("phx_...") with feature flag read access.');
|
|
122
122
|
const shouldEnableLocalEvaluation = false !== normalizedOptions.enableLocalEvaluation;
|
|
123
123
|
if (shouldEnableLocalEvaluation) this.featureFlagsPoller = new feature_flags_js_namespaceObject.FeatureFlagsPoller({
|
|
124
124
|
pollingInterval: this.options.featureFlagsPollingInterval,
|
package/dist/client.mjs
CHANGED
|
@@ -75,7 +75,7 @@ class PostHogBackendClient extends PostHogCoreStateless {
|
|
|
75
75
|
if ('number' == typeof normalizedOptions.waitUntilDebounceMs) this.options.waitUntilDebounceMs = Math.max(normalizedOptions.waitUntilDebounceMs, 0);
|
|
76
76
|
if ('number' == typeof normalizedOptions.waitUntilMaxWaitMs) this.options.waitUntilMaxWaitMs = Math.max(normalizedOptions.waitUntilMaxWaitMs, 0);
|
|
77
77
|
if (!this.disabled && normalizedOptions.personalApiKey) {
|
|
78
|
-
if (normalizedOptions.personalApiKey.includes('phc_')) throw new Error('
|
|
78
|
+
if (normalizedOptions.personalApiKey.includes('phc_')) throw new Error('A project API key ("phc_...") was provided as secretKey or personalApiKey. Pass the project API key as the first constructor argument. For local evaluation, set secretKey (or the deprecated personalApiKey alias) to a server-only Project Secret API Key ("phs_...") or Personal API Key ("phx_...") with feature flag read access.');
|
|
79
79
|
const shouldEnableLocalEvaluation = false !== normalizedOptions.enableLocalEvaluation;
|
|
80
80
|
if (shouldEnableLocalEvaluation) this.featureFlagsPoller = new FeatureFlagsPoller({
|
|
81
81
|
pollingInterval: this.options.featureFlagsPollingInterval,
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "5.55.
|
|
1
|
+
export declare const version = "5.55.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
package/dist/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const version = "5.55.
|
|
1
|
+
const version = "5.55.2";
|
|
2
2
|
export { version };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "posthog-node",
|
|
3
|
-
"version": "5.55.
|
|
3
|
+
"version": "5.55.2",
|
|
4
4
|
"bugs": {
|
|
5
5
|
"url": "https://github.com/PostHog/posthog-js/issues"
|
|
6
6
|
},
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"src",
|
|
18
18
|
"dist",
|
|
19
|
-
"!src/__tests__"
|
|
19
|
+
"!src/__tests__",
|
|
20
|
+
"!src/**/*.spec.md"
|
|
20
21
|
],
|
|
21
22
|
"license": "MIT",
|
|
22
23
|
"author": {
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
"module": "dist/entrypoints/index.node.mjs",
|
|
29
30
|
"types": "dist/entrypoints/index.node.d.ts",
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"@posthog/core": "^1.
|
|
32
|
+
"@posthog/core": "^1.58.0"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@edge-runtime/vm": "^5.0.0",
|
|
@@ -39,8 +40,8 @@
|
|
|
39
40
|
"@vitest/coverage-v8": "^1.6.1",
|
|
40
41
|
"vitest": "^1.6.1",
|
|
41
42
|
"typescript": "7.0.2",
|
|
42
|
-
"@posthog
|
|
43
|
-
"@posthog/
|
|
43
|
+
"@posthog/types": "^1.415.2",
|
|
44
|
+
"@posthog-tooling/tsconfig-base": "1.1.1"
|
|
44
45
|
},
|
|
45
46
|
"peerDependencies": {
|
|
46
47
|
"rxjs": "^7.0.0"
|
package/src/client.ts
CHANGED
|
@@ -262,7 +262,7 @@ export abstract class PostHogBackendClient extends PostHogCoreStateless implemen
|
|
|
262
262
|
if (!this.disabled && normalizedOptions.personalApiKey) {
|
|
263
263
|
if (normalizedOptions.personalApiKey.includes('phc_')) {
|
|
264
264
|
throw new Error(
|
|
265
|
-
'
|
|
265
|
+
'A project API key ("phc_...") was provided as secretKey or personalApiKey. Pass the project API key as the first constructor argument. For local evaluation, set secretKey (or the deprecated personalApiKey alias) to a server-only Project Secret API Key ("phs_...") or Personal API Key ("phx_...") with feature flag read access.'
|
|
266
266
|
)
|
|
267
267
|
}
|
|
268
268
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "5.55.
|
|
1
|
+
export const version = "5.55.2"
|