zotero-plugin 2.0.4 → 2.0.6

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/debug-log.d.ts CHANGED
@@ -4,7 +4,7 @@ declare class DebugLogSender {
4
4
  menupopup: string;
5
5
  menuitem: string;
6
6
  };
7
- plugins: Record<string, string[]>;
7
+ debugEnabledAtStart: boolean;
8
8
  convertLegacy(): void;
9
9
  private element;
10
10
  register(plugin: string, preferences?: string[]): void;
package/debug-log.js CHANGED
@@ -12,7 +12,7 @@ class DebugLogSender {
12
12
  menupopup: 'debug-log-sender-menupopup',
13
13
  menuitem: 'debug-log-sender',
14
14
  };
15
- this.plugins = {};
15
+ this.debugEnabledAtStart = (Zotero.Prefs.get('debug.store') || Zotero.Debug.enabled);
16
16
  }
17
17
  convertLegacy() {
18
18
  var _a;
@@ -132,6 +132,8 @@ class DebugLogSender {
132
132
  if (addons.length) {
133
133
  info += 'Addons:\n' + addons.map((addon) => ` ${addon}\n`).join(''); // eslint-disable-line prefer-template
134
134
  }
135
+ info += `Debug logging on at Zotero start: ${this.debugEnabledAtStart}\n`;
136
+ info += `Debug logging on at log submit: ${Zotero.Prefs.get('debug.store') || Zotero.Debug.enabled}\n`;
135
137
  for (const [pref, value] of Object.entries(this.preferences(preferences))) {
136
138
  info += `${pref} = ${JSON.stringify(value)}\n`;
137
139
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zotero-plugin",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "description": "Zotero plugin builder",
5
5
  "homepage": "https://github.com/retorquere/zotero-plugin/wiki",
6
6
  "bin": {