zotero-plugin 2.0.5 → 2.0.7
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 +3 -3
- package/package.json +11 -11
package/debug-log.js
CHANGED
|
@@ -12,7 +12,7 @@ class DebugLogSender {
|
|
|
12
12
|
menupopup: 'debug-log-sender-menupopup',
|
|
13
13
|
menuitem: 'debug-log-sender',
|
|
14
14
|
};
|
|
15
|
-
this.debugEnabledAtStart = Zotero.Prefs.get('debug.store');
|
|
15
|
+
this.debugEnabledAtStart = (Zotero.Prefs.get('debug.store') || Zotero.Debug.enabled);
|
|
16
16
|
}
|
|
17
17
|
convertLegacy() {
|
|
18
18
|
var _a;
|
|
@@ -95,7 +95,7 @@ class DebugLogSender {
|
|
|
95
95
|
const formData = new FormData();
|
|
96
96
|
formData.append('file', blob, `${key}.tgz`);
|
|
97
97
|
const response = await this.post('https://file.io', formData);
|
|
98
|
-
this.alert(`Debug log ID for ${plugin}`, `${
|
|
98
|
+
this.alert(`Debug log ID for ${plugin}`, `${key}-${response.key}`);
|
|
99
99
|
}
|
|
100
100
|
preferences(preferences) {
|
|
101
101
|
const prefs = {};
|
|
@@ -133,7 +133,7 @@ class DebugLogSender {
|
|
|
133
133
|
info += 'Addons:\n' + addons.map((addon) => ` ${addon}\n`).join(''); // eslint-disable-line prefer-template
|
|
134
134
|
}
|
|
135
135
|
info += `Debug logging on at Zotero start: ${this.debugEnabledAtStart}\n`;
|
|
136
|
-
info += `Debug logging on at log submit: ${Zotero.Prefs.get('debug.store')}\n`;
|
|
136
|
+
info += `Debug logging on at log submit: ${Zotero.Prefs.get('debug.store') || Zotero.Debug.enabled}\n`;
|
|
137
137
|
for (const [pref, value] of Object.entries(this.preferences(preferences))) {
|
|
138
138
|
info += `${pref} = ${JSON.stringify(value)}\n`;
|
|
139
139
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zotero-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "Zotero plugin builder",
|
|
5
5
|
"homepage": "https://github.com/retorquere/zotero-plugin/wiki",
|
|
6
6
|
"bin": {
|
|
@@ -29,30 +29,30 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@octokit/rest": "^20.0.1",
|
|
31
31
|
"@rgrove/parse-xml": "^4.1.0",
|
|
32
|
-
"@types/node": "^20.
|
|
32
|
+
"@types/node": "^20.6.0",
|
|
33
33
|
"@types/pako": "^2.0.0",
|
|
34
34
|
"@types/tar-js": "^0.3.2",
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
36
|
-
"@typescript-eslint/parser": "^6.
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
|
36
|
+
"@typescript-eslint/parser": "^6.7.0",
|
|
37
37
|
"@xmldom/xmldom": "^0.8.10",
|
|
38
38
|
"ajv": "^8.12.0",
|
|
39
39
|
"ajv-keywords": "^5.1.0",
|
|
40
|
-
"archiver": "^
|
|
40
|
+
"archiver": "^6.0.1",
|
|
41
41
|
"clp": "^4.0.12",
|
|
42
42
|
"current-git-branch": "^1.1.0",
|
|
43
43
|
"dotenv": "^16.3.1",
|
|
44
44
|
"ejs": "^3.1.9",
|
|
45
|
-
"eslint": "^8.
|
|
46
|
-
"eslint-plugin-import": "^2.28.
|
|
45
|
+
"eslint": "^8.49.0",
|
|
46
|
+
"eslint-plugin-import": "^2.28.1",
|
|
47
47
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
48
48
|
"fs-extra": "^11.1.1",
|
|
49
|
-
"glob": "^10.3.
|
|
49
|
+
"glob": "^10.3.4",
|
|
50
50
|
"jsesc": "^3.0.2",
|
|
51
51
|
"lodash": "^4.17.21",
|
|
52
52
|
"moment": "^2.29.4",
|
|
53
53
|
"pako": "^2.1.0",
|
|
54
54
|
"peggy": "^3.0.2",
|
|
55
|
-
"properties-reader": "^2.
|
|
55
|
+
"properties-reader": "^2.3.0",
|
|
56
56
|
"pug": "^3.0.2",
|
|
57
57
|
"rimraf": "^5.0.1",
|
|
58
58
|
"shell-quote": "^1.8.1",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"string-to-arraybuffer": "^1.0.2",
|
|
61
61
|
"tar-js": "^0.3.0",
|
|
62
62
|
"ts-node": "^10.9.1",
|
|
63
|
-
"tslib": "^2.6.
|
|
64
|
-
"typescript": "^5.
|
|
63
|
+
"tslib": "^2.6.2",
|
|
64
|
+
"typescript": "^5.2.2",
|
|
65
65
|
"uri-templates": "^0.2.0",
|
|
66
66
|
"xml-parser": "^1.2.1",
|
|
67
67
|
"xpath": "^0.0.33"
|