@magicfeedback/popup-sdk 1.8.3 → 1.8.4

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.
@@ -153,7 +153,8 @@ interface DeepdotsInitParams {
153
153
  device?: DeviceInfo;
154
154
  /**
155
155
  * Analytics channel keys (`POST /sdk/feedback`). If provided, analytics is SENT
156
- * to the configured integration; if missing, it stays in dry-run mode (console.log only).
156
+ * to the configured integration; if missing, it stays in dry-run mode: nothing is sent, and the payload is only
157
+ * logged when `debug` is true.
157
158
  */
158
159
  analytics?: AnalyticsKeys;
159
160
  /**
@@ -153,7 +153,8 @@ interface DeepdotsInitParams {
153
153
  device?: DeviceInfo;
154
154
  /**
155
155
  * Analytics channel keys (`POST /sdk/feedback`). If provided, analytics is SENT
156
- * to the configured integration; if missing, it stays in dry-run mode (console.log only).
156
+ * to the configured integration; if missing, it stays in dry-run mode: nothing is sent, and the payload is only
157
+ * logged when `debug` is true.
157
158
  */
158
159
  analytics?: AnalyticsKeys;
159
160
  /**
@@ -5171,7 +5171,9 @@ var DeepdotsPopups = class {
5171
5171
  onSessionReset: () => {
5172
5172
  this.analyticsFeedbackSessionId = void 0;
5173
5173
  }
5174
- }) : createDryRunSink((...a) => this.logger.log(...a));
5174
+ }) : createDryRunSink((...a) => {
5175
+ if (this.config?.debug) this.logger.log(...a);
5176
+ });
5175
5177
  const device = config.device ?? collectDeviceInfo(config.appVersion);
5176
5178
  this.language = resolveLanguage({
5177
5179
  explicit: config.language,