zotero-plugin 6.3.0 → 6.3.2

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.3.0";
14
+ var version = "6.3.2";
15
15
 
16
16
  // bin/crypto.ts
17
17
  import crypto from "crypto";
@@ -32,7 +32,7 @@ async function getPassphrase(service, account) {
32
32
  const response = await prompts({
33
33
  type: "password",
34
34
  name: "passphrase",
35
- message: "Enter a passphrase to decrypt your private key for ${service} ${account}:"
35
+ message: `Enter a passphrase to decrypt your private key for ${service} ${account}:`
36
36
  });
37
37
  entry.setPassword(passphrase = response.passphrase);
38
38
  }
package/debug-log.js CHANGED
@@ -3,14 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.DebugLog = exports.Bundler = void 0;
5
5
  const tslib_1 = require("tslib");
6
- var ZOTERO_CONFIG; // eslint-disable-line no-var
7
- if (Zotero.version[0] === '8') {
8
- ;
9
- ({ ZOTERO_CONFIG } = ChromeUtils.importESModule('resource://zotero/config.mjs'));
10
- }
11
- else {
12
- Components.utils.import('resource://zotero/config.js');
13
- }
14
6
  Components.utils.importGlobalProperties(['FormData']);
15
7
  const pkg = require('./package.json');
16
8
  const UZip = tslib_1.__importStar(require("uzip"));
@@ -162,9 +154,8 @@ class DebugLogSender {
162
154
  const prefs = {};
163
155
  const names = [];
164
156
  for (let pref of preferences) {
165
- pref = pref.replace(/^:/, ZOTERO_CONFIG.PREF_BRANCH);
157
+ pref = pref.replace(/^:/, 'extensions.zotero.');
166
158
  if (pref.endsWith('.')) {
167
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
168
159
  const childkeys = Services.prefs.getBranch(pref).getChildList('', {});
169
160
  for (const key of childkeys) {
170
161
  names.push(pref + key);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zotero-plugin",
3
- "version": "6.3.0",
3
+ "version": "6.3.2",
4
4
  "description": "Zotero plugin builder",
5
5
  "homepage": "https://github.com/retorquere/zotero-plugin/wiki",
6
6
  "bin": {