@posthog/core 1.29.8 → 1.29.9

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { getFeatureFlagValue } from './featureFlagUtils';
2
- export { gzipCompress, isGzipData, isGzipRequest, isNativeAsyncGzipError, isNativeAsyncGzipReadError } from './gzip';
2
+ export { gzipCompress, isGzipData, isGzipRequest, isGzipSupported, isNativeAsyncGzipError, isNativeAsyncGzipReadError, } from './gzip';
3
3
  export * from './utils';
4
4
  export * as ErrorTracking from './error-tracking';
5
5
  export { buildOtlpLogRecord, buildOtlpLogsPayload, getOtlpSeverityNumber, getOtlpSeverityText, toOtlpAnyValue, toOtlpKeyValueList, } from './logs/logs-utils';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,QAAQ,CAAA;AACpH,cAAc,SAAS,CAAA;AACvB,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAA;AACjD,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,kBAAkB,GACnB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,cAAc,CAAA;AAIrB,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACzG,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EACL,YAAY,EACZ,UAAU,EACV,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,QAAQ,CAAA;AACf,cAAc,SAAS,CAAA;AACvB,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAA;AACjD,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,kBAAkB,GACnB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,cAAc,CAAA;AAIrB,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACzG,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA"}
package/dist/index.js CHANGED
@@ -97,6 +97,7 @@ var __webpack_exports__ = {};
97
97
  gzipCompress: ()=>_gzip__WEBPACK_IMPORTED_MODULE_1__.gzipCompress,
98
98
  isGzipData: ()=>_gzip__WEBPACK_IMPORTED_MODULE_1__.isGzipData,
99
99
  isGzipRequest: ()=>_gzip__WEBPACK_IMPORTED_MODULE_1__.isGzipRequest,
100
+ isGzipSupported: ()=>_gzip__WEBPACK_IMPORTED_MODULE_1__.isGzipSupported,
100
101
  isNativeAsyncGzipError: ()=>_gzip__WEBPACK_IMPORTED_MODULE_1__.isNativeAsyncGzipError,
101
102
  isNativeAsyncGzipReadError: ()=>_gzip__WEBPACK_IMPORTED_MODULE_1__.isNativeAsyncGzipReadError,
102
103
  toOtlpAnyValue: ()=>_logs_logs_utils__WEBPACK_IMPORTED_MODULE_4__.toOtlpAnyValue,
@@ -124,6 +125,7 @@ var __webpack_exports__ = {};
124
125
  "isGzipData",
125
126
  "getOtlpSeverityNumber",
126
127
  "getLengthFromRules",
128
+ "isGzipSupported",
127
129
  "buildOtlpLogsPayload",
128
130
  "buildOtlpLogRecord",
129
131
  "toOtlpAnyValue"
@@ -154,6 +156,7 @@ var __webpack_exports__ = {};
154
156
  "isGzipData",
155
157
  "getOtlpSeverityNumber",
156
158
  "getLengthFromRules",
159
+ "isGzipSupported",
157
160
  "buildOtlpLogsPayload",
158
161
  "buildOtlpLogRecord",
159
162
  "toOtlpAnyValue"
@@ -180,6 +183,7 @@ var __webpack_exports__ = {};
180
183
  "isGzipData",
181
184
  "getOtlpSeverityNumber",
182
185
  "getLengthFromRules",
186
+ "isGzipSupported",
183
187
  "buildOtlpLogsPayload",
184
188
  "buildOtlpLogRecord",
185
189
  "toOtlpAnyValue"
@@ -206,6 +210,7 @@ var __webpack_exports__ = {};
206
210
  "isGzipData",
207
211
  "getOtlpSeverityNumber",
208
212
  "getLengthFromRules",
213
+ "isGzipSupported",
209
214
  "buildOtlpLogsPayload",
210
215
  "buildOtlpLogRecord",
211
216
  "toOtlpAnyValue"
@@ -232,6 +237,7 @@ var __webpack_exports__ = {};
232
237
  "isGzipData",
233
238
  "getOtlpSeverityNumber",
234
239
  "getLengthFromRules",
240
+ "isGzipSupported",
235
241
  "buildOtlpLogsPayload",
236
242
  "buildOtlpLogRecord",
237
243
  "toOtlpAnyValue"
@@ -258,6 +264,7 @@ var __webpack_exports__ = {};
258
264
  "isGzipData",
259
265
  "getOtlpSeverityNumber",
260
266
  "getLengthFromRules",
267
+ "isGzipSupported",
261
268
  "buildOtlpLogsPayload",
262
269
  "buildOtlpLogRecord",
263
270
  "toOtlpAnyValue"
@@ -280,6 +287,7 @@ exports.getValidationError = __webpack_exports__.getValidationError;
280
287
  exports.gzipCompress = __webpack_exports__.gzipCompress;
281
288
  exports.isGzipData = __webpack_exports__.isGzipData;
282
289
  exports.isGzipRequest = __webpack_exports__.isGzipRequest;
290
+ exports.isGzipSupported = __webpack_exports__.isGzipSupported;
283
291
  exports.isNativeAsyncGzipError = __webpack_exports__.isNativeAsyncGzipError;
284
292
  exports.isNativeAsyncGzipReadError = __webpack_exports__.isNativeAsyncGzipReadError;
285
293
  exports.toOtlpAnyValue = __webpack_exports__.toOtlpAnyValue;
@@ -299,6 +307,7 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
299
307
  "gzipCompress",
300
308
  "isGzipData",
301
309
  "isGzipRequest",
310
+ "isGzipSupported",
302
311
  "isNativeAsyncGzipError",
303
312
  "isNativeAsyncGzipReadError",
304
313
  "toOtlpAnyValue",
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { getFeatureFlagValue } from "./featureFlagUtils.mjs";
2
- import { gzipCompress, isGzipData, isGzipRequest, isNativeAsyncGzipError, isNativeAsyncGzipReadError } from "./gzip.mjs";
2
+ import { gzipCompress, isGzipData, isGzipRequest, isGzipSupported, isNativeAsyncGzipError, isNativeAsyncGzipReadError } from "./gzip.mjs";
3
3
  import { buildOtlpLogRecord, buildOtlpLogsPayload, getOtlpSeverityNumber, getOtlpSeverityText, toOtlpAnyValue, toOtlpKeyValueList } from "./logs/logs-utils.mjs";
4
4
  import { PostHogLogs } from "./logs/index.mjs";
5
5
  import { uuidv7 } from "./vendor/uuidv7.mjs";
@@ -11,4 +11,4 @@ export * from "./posthog-core-stateless.mjs";
11
11
  export * from "./tracing-headers.mjs";
12
12
  export * from "./types.mjs";
13
13
  import * as __WEBPACK_EXTERNAL_MODULE__error_tracking_index_mjs_b3406d6f__ from "./error-tracking/index.mjs";
14
- export { __WEBPACK_EXTERNAL_MODULE__error_tracking_index_mjs_b3406d6f__ as ErrorTracking, PostHogLogs, buildOtlpLogRecord, buildOtlpLogsPayload, getFeatureFlagValue, getLengthFromRules, getOtlpSeverityNumber, getOtlpSeverityText, getRequirementsHint, getValidationError, gzipCompress, isGzipData, isGzipRequest, isNativeAsyncGzipError, isNativeAsyncGzipReadError, toOtlpAnyValue, toOtlpKeyValueList, uuidv7 };
14
+ export { __WEBPACK_EXTERNAL_MODULE__error_tracking_index_mjs_b3406d6f__ as ErrorTracking, PostHogLogs, buildOtlpLogRecord, buildOtlpLogsPayload, getFeatureFlagValue, getLengthFromRules, getOtlpSeverityNumber, getOtlpSeverityText, getRequirementsHint, getValidationError, gzipCompress, isGzipData, isGzipRequest, isGzipSupported, isNativeAsyncGzipError, isNativeAsyncGzipReadError, toOtlpAnyValue, toOtlpKeyValueList, uuidv7 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posthog/core",
3
- "version": "1.29.8",
3
+ "version": "1.29.9",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -67,7 +67,7 @@
67
67
  }
68
68
  },
69
69
  "dependencies": {
70
- "@posthog/types": "1.375.0"
70
+ "@posthog/types": "1.376.0"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@rslib/core": "0.10.6",
package/src/index.ts CHANGED
@@ -1,5 +1,12 @@
1
1
  export { getFeatureFlagValue } from './featureFlagUtils'
2
- export { gzipCompress, isGzipData, isGzipRequest, isNativeAsyncGzipError, isNativeAsyncGzipReadError } from './gzip'
2
+ export {
3
+ gzipCompress,
4
+ isGzipData,
5
+ isGzipRequest,
6
+ isGzipSupported,
7
+ isNativeAsyncGzipError,
8
+ isNativeAsyncGzipReadError,
9
+ } from './gzip'
3
10
  export * from './utils'
4
11
  export * as ErrorTracking from './error-tracking'
5
12
  export {