zotero-plugin 6.2.0 → 6.2.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.2.0";
14
+ var version = "6.2.2";
15
15
 
16
16
  // bin/crypto.ts
17
17
  import crypto from "crypto";
package/debug-log.js CHANGED
@@ -3,8 +3,15 @@
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
+ }
6
14
  Components.utils.importGlobalProperties(['FormData']);
7
- const { ZOTERO_CONFIG } = ChromeUtils.importESModule('resource://zotero/config.mjs');
8
15
  const pkg = require('./package.json');
9
16
  const UZip = tslib_1.__importStar(require("uzip"));
10
17
  class Bundler {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zotero-plugin",
3
- "version": "6.2.0",
3
+ "version": "6.2.2",
4
4
  "description": "Zotero plugin builder",
5
5
  "homepage": "https://github.com/retorquere/zotero-plugin/wiki",
6
6
  "bin": {