zotero-plugin 6.1.2 → 6.2.0

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/bin/fetch-log.mjs CHANGED
@@ -11,7 +11,7 @@ import { Entry as KeyRingEntry } from "@napi-rs/keyring";
11
11
  import prompts from "prompts";
12
12
 
13
13
  // package.json
14
- var version = "6.1.2";
14
+ var version = "6.2.0";
15
15
 
16
16
  // bin/crypto.ts
17
17
  import crypto from "crypto";
package/debug-log.js CHANGED
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.DebugLog = exports.Bundler = void 0;
5
5
  const tslib_1 = require("tslib");
6
6
  Components.utils.importGlobalProperties(['FormData']);
7
+ const { ZOTERO_CONFIG } = ChromeUtils.importESModule('resource://zotero/config.mjs');
7
8
  const pkg = require('./package.json');
8
9
  const UZip = tslib_1.__importStar(require("uzip"));
9
10
  class Bundler {
@@ -153,7 +154,8 @@ class DebugLogSender {
153
154
  preferences(preferences) {
154
155
  const prefs = {};
155
156
  const names = [];
156
- for (const pref of preferences) {
157
+ for (let pref of preferences) {
158
+ pref = pref.replace(/^:/, ZOTERO_CONFIG.PREF_BRANCH);
157
159
  if (pref.endsWith('.')) {
158
160
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
159
161
  const childkeys = Services.prefs.getBranch(pref).getChildList('', {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zotero-plugin",
3
- "version": "6.1.2",
3
+ "version": "6.2.0",
4
4
  "description": "Zotero plugin builder",
5
5
  "homepage": "https://github.com/retorquere/zotero-plugin/wiki",
6
6
  "bin": {