posthog-react-native 4.43.0 → 4.43.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.
@@ -0,0 +1,26 @@
1
+ export type { LogSeverityLevel, OtlpSeverityText, OtlpSeverityEntry, LogAttributeValue, LogAttributes, CaptureLogOptions, OtlpAnyValue, OtlpKeyValue, OtlpLogRecord, OtlpLogsPayload, LogSdkContext, } from '@posthog/types';
2
+ import type { Logger as CaptureLoggerType } from '@posthog/types';
3
+ export type CaptureLogger = CaptureLoggerType;
4
+ import type { LogAttributeValue, CaptureLogOptions } from '@posthog/types';
5
+ export interface PostHogLogsConfig {
6
+ enabled?: boolean;
7
+ serviceName?: string;
8
+ serviceVersion?: string;
9
+ environment?: string;
10
+ resourceAttributes?: Record<string, LogAttributeValue>;
11
+ flushIntervalMs?: number;
12
+ rateCapWindowMs?: number;
13
+ maxBufferSize?: number;
14
+ maxLogsPerInterval?: number;
15
+ maxBatchRecordsPerPost?: number;
16
+ backgroundFlushBudgetMs?: number;
17
+ terminationFlushBudgetMs?: number;
18
+ beforeSend?: (record: CaptureLogOptions) => CaptureLogOptions | null;
19
+ }
20
+ export declare const DEFAULT_FLUSH_INTERVAL_MS = 10000;
21
+ export declare const DEFAULT_RATE_CAP_WINDOW_MS = 10000;
22
+ export declare const DEFAULT_MAX_BUFFER_SIZE = 100;
23
+ export declare const DEFAULT_MAX_LOGS_PER_INTERVAL = 500;
24
+ export declare const DEFAULT_MAX_BATCH_RECORDS_PER_POST = 50;
25
+ export declare const DEFAULT_BACKGROUND_FLUSH_BUDGET_MS = 25000;
26
+ export declare const DEFAULT_TERMINATION_FLUSH_BUDGET_MS = 2000;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.DEFAULT_TERMINATION_FLUSH_BUDGET_MS=exports.DEFAULT_RATE_CAP_WINDOW_MS=exports.DEFAULT_MAX_LOGS_PER_INTERVAL=exports.DEFAULT_MAX_BUFFER_SIZE=exports.DEFAULT_MAX_BATCH_RECORDS_PER_POST=exports.DEFAULT_FLUSH_INTERVAL_MS=exports.DEFAULT_BACKGROUND_FLUSH_BUDGET_MS=void 0;var DEFAULT_FLUSH_INTERVAL_MS=exports.DEFAULT_FLUSH_INTERVAL_MS=10000;var DEFAULT_RATE_CAP_WINDOW_MS=exports.DEFAULT_RATE_CAP_WINDOW_MS=10000;var DEFAULT_MAX_BUFFER_SIZE=exports.DEFAULT_MAX_BUFFER_SIZE=100;var DEFAULT_MAX_LOGS_PER_INTERVAL=exports.DEFAULT_MAX_LOGS_PER_INTERVAL=500;var DEFAULT_MAX_BATCH_RECORDS_PER_POST=exports.DEFAULT_MAX_BATCH_RECORDS_PER_POST=50;var DEFAULT_BACKGROUND_FLUSH_BUDGET_MS=exports.DEFAULT_BACKGROUND_FLUSH_BUDGET_MS=25000;var DEFAULT_TERMINATION_FLUSH_BUDGET_MS=exports.DEFAULT_TERMINATION_FLUSH_BUDGET_MS=2000;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/logs/types.ts"],"names":[],"mappings":"AAqDA,kBAAkB;AAClB,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAK,CAAA;AAC9C,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,CAAA;AAC/C,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAA;AAC1C,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,CAAA;AAChD,MAAM,CAAC,MAAM,kCAAkC,GAAG,EAAE,CAAA;AACpD,MAAM,CAAC,MAAM,kCAAkC,GAAG,KAAK,CAAA;AACvD,MAAM,CAAC,MAAM,mCAAmC,GAAG,IAAI,CAAA"}
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "4.43.0";
1
+ export declare const version = "4.43.2";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.version=void 0;var version=exports.version="4.43.0";
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.version=void 0;var version=exports.version="4.43.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-react-native",
3
- "version": "4.43.0",
3
+ "version": "4.43.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,7 +28,8 @@
28
28
  "directory": "packages/react-native"
29
29
  },
30
30
  "dependencies": {
31
- "@posthog/core": "1.27.0"
31
+ "@posthog/types": "1.371.3",
32
+ "@posthog/core": "1.27.2"
32
33
  },
33
34
  "devDependencies": {
34
35
  "@babel/cli": "^7.19.3",