posthog-js 1.151.1 → 1.151.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/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-js",
3
- "version": "1.151.1",
3
+ "version": "1.151.2",
4
4
  "description": "Posthog-js allows you to automatically capture usage and send events to PostHog.",
5
5
  "repository": "https://github.com/PostHog/posthog-js",
6
6
  "author": "hey@posthog.com",
@@ -332,8 +332,10 @@ var PostHog = /** @class */ (function () {
332
332
  // global debug to be true
333
333
  Config.DEBUG = Config.DEBUG || this.config.debug;
334
334
  if (Config.DEBUG) {
335
- // eslint-disable-next-line no-console
336
- console.log('[PostHog.js] Starting in debug mode', this);
335
+ logger.info('Starting in debug mode', {
336
+ this: this,
337
+ config: __assign({}, this.config),
338
+ });
337
339
  }
338
340
  this._sync_opt_out_with_persistence();
339
341
  // isUndefined doesn't provide typehint here so wouldn't reduce bundle as we'd need to assign
@@ -1495,6 +1497,11 @@ var PostHog = /** @class */ (function () {
1495
1497
  }
1496
1498
  if (this.config.debug) {
1497
1499
  Config.DEBUG = true;
1500
+ logger.info('set_config', {
1501
+ config: config,
1502
+ oldConfig: oldConfig,
1503
+ newConfig: __assign({}, this.config),
1504
+ });
1498
1505
  }
1499
1506
  (_b = this.sessionRecording) === null || _b === void 0 ? void 0 : _b.startIfEnabledOrStop();
1500
1507
  (_c = this.autocapture) === null || _c === void 0 ? void 0 : _c.startIfEnabled();