zotero-plugin 2.0.29 → 2.0.30

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.
Files changed (2) hide show
  1. package/debug-log.js +3 -1
  2. package/package.json +1 -1
package/debug-log.js CHANGED
@@ -140,7 +140,9 @@ class DebugLogSender {
140
140
  // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment
141
141
  const appInfo = Components.classes['@mozilla.org/xre/app-info;1'].getService(Components.interfaces.nsIXULAppInfo);
142
142
  info += `Application: ${appInfo.name} ${appInfo.version} ${Zotero.locale}\n`;
143
- info += `Platform: ${Zotero.platform} ${Zotero.oscpu}\n`;
143
+ const platform = ['Win', 'Mac', 'Linux'].find(p => Zotero[`is${p}`]) || 'Unknown';
144
+ const arch = Zotero.oscpu || Zotero.arch;
145
+ info += `Platform: ${platform} ${arch}\n`;
144
146
  const addons = await Zotero.getInstalledExtensions();
145
147
  if (addons.length) {
146
148
  info += 'Addons:\n' + addons.map((addon) => ` ${addon}\n`).join(''); // eslint-disable-line prefer-template
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zotero-plugin",
3
- "version": "2.0.29",
3
+ "version": "2.0.30",
4
4
  "description": "Zotero plugin builder",
5
5
  "homepage": "https://github.com/retorquere/zotero-plugin/wiki",
6
6
  "bin": {