zotero-plugin 2.0.15 → 2.0.16
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.js +6 -2
- package/package.json +2 -2
package/debug-log.js
CHANGED
|
@@ -61,8 +61,12 @@ class DebugLogSender {
|
|
|
61
61
|
(_b = doc.querySelector('#debug-log-sender-menu')) === null || _b === void 0 ? void 0 : _b.remove();
|
|
62
62
|
}
|
|
63
63
|
alert(title, body) {
|
|
64
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
65
|
-
const ps =
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
65
|
+
const ps = Zotero.platformMajorVersion >= 102
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
67
|
+
? Services.prompt
|
|
68
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
|
|
69
|
+
: Components.classes['@mozilla.org/embedcomp/prompt-service;1'].getService(Components.interfaces.nsIPromptService);
|
|
66
70
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
|
|
67
71
|
ps.alert(null, title, body);
|
|
68
72
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zotero-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.16",
|
|
4
4
|
"description": "Zotero plugin builder",
|
|
5
5
|
"homepage": "https://github.com/retorquere/zotero-plugin/wiki",
|
|
6
6
|
"bin": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"build": "tsc && chmod +x bin/*.js",
|
|
22
22
|
"pack": "npm test && npm pack",
|
|
23
23
|
"prepublishOnly": "npm install && npm run build",
|
|
24
|
-
"ncu": "ncu -u && npm i && git add package.json package-lock.json && git commit -m ncu"
|
|
24
|
+
"ncu": "ncu -u -x '*eslint*' && npm i && git add package.json package-lock.json && git commit -m ncu"
|
|
25
25
|
},
|
|
26
26
|
"directories": {
|
|
27
27
|
"test": "test"
|