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/dist/array.full.js +2 -2
- package/dist/array.full.js.map +1 -1
- package/dist/array.js +1 -1
- package/dist/array.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/src/posthog-core.js +9 -2
- package/lib/src/posthog-core.js.map +1 -1
- package/lib/src/posthog-persistence.js +3 -0
- package/lib/src/posthog-persistence.js.map +1 -1
- package/package.json +1 -1
package/lib/package.json
CHANGED
package/lib/src/posthog-core.js
CHANGED
|
@@ -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
|
-
|
|
336
|
-
|
|
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();
|