posthog-js 1.27.0-alpha1 → 1.27.0-alpha2

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/es.js CHANGED
@@ -881,7 +881,7 @@ var LZString = {
881
881
  }
882
882
  };
883
883
 
884
- var version = "1.27.0-alpha1";
884
+ var version = "1.27.0-alpha2";
885
885
 
886
886
  // e.g. Config.DEBUG = Config.DEBUG || instance.get_config('debug')
887
887
 
@@ -5959,7 +5959,7 @@ var defaultConfig = function defaultConfig() {
5959
5959
 
5960
5960
  var create_mplib = function create_mplib(token, config, name) {
5961
5961
  var instance;
5962
- var target = name === PRIMARY_INSTANCE_NAME || !posthog_master ? posthog_master : posthog_master[name];
5962
+ var target = name === PRIMARY_INSTANCE_NAME || !posthog_master ? posthog_master : name ? posthog_master[name] : undefined;
5963
5963
 
5964
5964
  if (target && init_type === InitType.INIT_MODULE) {
5965
5965
  instance = target;
@@ -6092,7 +6092,9 @@ var PostHog = /*#__PURE__*/function () {
6092
6092
 
6093
6093
  }, {
6094
6094
  key: "_init",
6095
- value: function _init(token, config, name) {
6095
+ value: function _init(token) {
6096
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
6097
+ var name = arguments.length > 2 ? arguments[2] : undefined;
6096
6098
  this.__loaded = true;
6097
6099
  this.config = {}; // will be set right below
6098
6100
 
@@ -7441,7 +7443,7 @@ var PostHog = /*#__PURE__*/function () {
7441
7443
  }, {
7442
7444
  key: "debug",
7443
7445
  value: function debug(_debug) {
7444
- if (!_debug) {
7446
+ if (_debug === false) {
7445
7447
  win.console.log("You've disabled debug mode.");
7446
7448
  localStorage && localStorage.removeItem('ph_debug');
7447
7449
  this.set_config({