posthog-js 1.149.1 → 1.149.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 +1 -1
- 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 +4 -0
- package/lib/src/posthog-core.js.map +1 -1
- package/package.json +1 -1
package/lib/package.json
CHANGED
package/lib/src/posthog-core.js
CHANGED
|
@@ -331,6 +331,10 @@ var PostHog = /** @class */ (function () {
|
|
|
331
331
|
// if any instance on the page has debug = true, we set the
|
|
332
332
|
// global debug to be true
|
|
333
333
|
Config.DEBUG = Config.DEBUG || this.config.debug;
|
|
334
|
+
if (Config.DEBUG) {
|
|
335
|
+
// eslint-disable-next-line no-console
|
|
336
|
+
console.log('[PostHog.js] Starting in debug mode', this);
|
|
337
|
+
}
|
|
334
338
|
this._sync_opt_out_with_persistence();
|
|
335
339
|
// isUndefined doesn't provide typehint here so wouldn't reduce bundle as we'd need to assign
|
|
336
340
|
// eslint-disable-next-line posthog-js/no-direct-undefined-check
|