zotero-plugin 5.0.13 → 5.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/README.md +2 -2
- package/bin/branches.js +6 -5
- package/bin/release.js +14 -13
- package/debug-log.js +11 -8
- package/package.json +7 -7
- package/rdf.js +1 -1
package/README.md
CHANGED
|
@@ -82,9 +82,9 @@ DebugLog.register('your plugin name', ['extensions.zotero.<your plugin extension
|
|
|
82
82
|
|
|
83
83
|
the array is a list of either full names of preferences you want to know about, or a name ending in `.` which means "all keys directly under this".
|
|
84
84
|
|
|
85
|
-
The Help menu will now have an entry "send debug log to
|
|
85
|
+
The Help menu will now have an entry "send debug log to bashupload.com"; when your user selects that, the error log and the selected settings will be sent to bashupload.com; if any items are selected, when that is clicked, a copy of those items will be included in RDF format.
|
|
86
86
|
|
|
87
|
-
The user will get an ID that looks like `C3WvhYgA8RDM-
|
|
87
|
+
The user will get an ID that looks like `C3WvhYgA8RDM-buc-2XZGa`; the last part is the bashupload ID, so you would go to `https://bashupload.com/2XZGa/C3WvhYgA8RDM.zip` to retrieve the download; the zipfile you get there will be `C3WvhYgA8RDM.zip`.
|
|
88
88
|
|
|
89
89
|
# Starting Zotero with your plugin loaded
|
|
90
90
|
|
package/bin/branches.js
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"node_modules/dotenv/package.json"(exports, module) {
|
|
38
38
|
module.exports = {
|
|
39
39
|
name: "dotenv",
|
|
40
|
-
version: "16.
|
|
40
|
+
version: "16.5.0",
|
|
41
41
|
description: "Loads environment variables from .env file",
|
|
42
42
|
main: "lib/main.js",
|
|
43
43
|
types: "lib/main.d.ts",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
type: "git",
|
|
69
69
|
url: "git://github.com/motdotla/dotenv.git"
|
|
70
70
|
},
|
|
71
|
+
homepage: "https://github.com/motdotla/dotenv#readme",
|
|
71
72
|
funding: "https://dotenvx.com",
|
|
72
73
|
keywords: [
|
|
73
74
|
"dotenv",
|
|
@@ -153,9 +154,6 @@
|
|
|
153
154
|
}
|
|
154
155
|
return DotenvModule.parse(decrypted);
|
|
155
156
|
}
|
|
156
|
-
function _log(message) {
|
|
157
|
-
console.log(`[dotenv@${version}][INFO] ${message}`);
|
|
158
|
-
}
|
|
159
157
|
function _warn(message) {
|
|
160
158
|
console.log(`[dotenv@${version}][WARN] ${message}`);
|
|
161
159
|
}
|
|
@@ -228,7 +226,10 @@
|
|
|
228
226
|
return envPath[0] === "~" ? path2.join(os.homedir(), envPath.slice(1)) : envPath;
|
|
229
227
|
}
|
|
230
228
|
function _configVault(options) {
|
|
231
|
-
|
|
229
|
+
const debug = Boolean(options && options.debug);
|
|
230
|
+
if (debug) {
|
|
231
|
+
_debug("Loading env from encrypted .env.vault");
|
|
232
|
+
}
|
|
232
233
|
const parsed = DotenvModule._parseVault(options);
|
|
233
234
|
let processEnv = process.env;
|
|
234
235
|
if (options && options.processEnv != null) {
|
package/bin/release.js
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"node_modules/dotenv/package.json"(exports, module) {
|
|
38
38
|
module.exports = {
|
|
39
39
|
name: "dotenv",
|
|
40
|
-
version: "16.
|
|
40
|
+
version: "16.5.0",
|
|
41
41
|
description: "Loads environment variables from .env file",
|
|
42
42
|
main: "lib/main.js",
|
|
43
43
|
types: "lib/main.d.ts",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
type: "git",
|
|
69
69
|
url: "git://github.com/motdotla/dotenv.git"
|
|
70
70
|
},
|
|
71
|
+
homepage: "https://github.com/motdotla/dotenv#readme",
|
|
71
72
|
funding: "https://dotenvx.com",
|
|
72
73
|
keywords: [
|
|
73
74
|
"dotenv",
|
|
@@ -153,9 +154,6 @@
|
|
|
153
154
|
}
|
|
154
155
|
return DotenvModule.parse(decrypted);
|
|
155
156
|
}
|
|
156
|
-
function _log(message) {
|
|
157
|
-
console.log(`[dotenv@${version2}][INFO] ${message}`);
|
|
158
|
-
}
|
|
159
157
|
function _warn(message) {
|
|
160
158
|
console.log(`[dotenv@${version2}][WARN] ${message}`);
|
|
161
159
|
}
|
|
@@ -228,7 +226,10 @@
|
|
|
228
226
|
return envPath[0] === "~" ? path3.join(os2.homedir(), envPath.slice(1)) : envPath;
|
|
229
227
|
}
|
|
230
228
|
function _configVault(options2) {
|
|
231
|
-
|
|
229
|
+
const debug = Boolean(options2 && options2.debug);
|
|
230
|
+
if (debug) {
|
|
231
|
+
_debug("Loading env from encrypted .env.vault");
|
|
232
|
+
}
|
|
232
233
|
const parsed = DotenvModule._parseVault(options2);
|
|
233
234
|
let processEnv = process.env;
|
|
234
235
|
if (options2 && options2.processEnv != null) {
|
|
@@ -8248,7 +8249,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
8248
8249
|
"package.json"(exports, module) {
|
|
8249
8250
|
module.exports = {
|
|
8250
8251
|
name: "zotero-plugin",
|
|
8251
|
-
version: "5.0.
|
|
8252
|
+
version: "5.0.16",
|
|
8252
8253
|
description: "Zotero plugin builder",
|
|
8253
8254
|
homepage: "https://github.com/retorquere/zotero-plugin/wiki",
|
|
8254
8255
|
bin: {
|
|
@@ -8278,14 +8279,14 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
8278
8279
|
dependencies: {
|
|
8279
8280
|
"@octokit/rest": "^21.1.1",
|
|
8280
8281
|
"@rgrove/parse-xml": "^4.2.0",
|
|
8281
|
-
"@types/node": "^22.
|
|
8282
|
+
"@types/node": "^22.14.1",
|
|
8282
8283
|
"@xmldom/xmldom": "^0.9.8",
|
|
8283
8284
|
ajv: "^8.17.1",
|
|
8284
8285
|
"ajv-keywords": "^5.1.0",
|
|
8285
8286
|
archiver: "^7.0.1",
|
|
8286
8287
|
clp: "^4.0.13",
|
|
8287
8288
|
commander: "^13.1.0",
|
|
8288
|
-
dotenv: "^16.
|
|
8289
|
+
dotenv: "^16.5.0",
|
|
8289
8290
|
ejs: "^3.1.10",
|
|
8290
8291
|
"fs-extra": "^11.3.0",
|
|
8291
8292
|
glob: "^11.0.1",
|
|
@@ -8297,11 +8298,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
8297
8298
|
pug: "^3.0.3",
|
|
8298
8299
|
rimraf: "^6.0.1",
|
|
8299
8300
|
"shell-quote": "^1.8.2",
|
|
8300
|
-
shelljs: "^0.
|
|
8301
|
+
shelljs: "^0.9.2",
|
|
8301
8302
|
"string-to-arraybuffer": "^1.0.2",
|
|
8302
8303
|
"ts-node": "^10.9.2",
|
|
8303
8304
|
tslib: "^2.8.1",
|
|
8304
|
-
typescript: "^5.8.
|
|
8305
|
+
typescript: "^5.8.3",
|
|
8305
8306
|
"uri-templates": "^0.2.0",
|
|
8306
8307
|
uzip: "^0.20201231.0",
|
|
8307
8308
|
"xml-parser": "^1.2.1",
|
|
@@ -8357,8 +8358,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
8357
8358
|
url: "https://github.com/retorquere/zotero-plugin/issues"
|
|
8358
8359
|
},
|
|
8359
8360
|
devDependencies: {
|
|
8360
|
-
dprint: "^0.49.
|
|
8361
|
-
esbuild: "^0.25.
|
|
8361
|
+
dprint: "^0.49.1",
|
|
8362
|
+
esbuild: "^0.25.2"
|
|
8362
8363
|
}
|
|
8363
8364
|
};
|
|
8364
8365
|
}
|
|
@@ -11815,7 +11816,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
11815
11816
|
reason = ` (${JSON.stringify(ContinuousIntegration.commit_message)})`;
|
|
11816
11817
|
reason += `
|
|
11817
11818
|
|
|
11818
|
-
|
|
11819
|
+
Please test this build. Install in Zotero by downloading ${link}, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".`;
|
|
11819
11820
|
}
|
|
11820
11821
|
const body = `:robot: this is your friendly neighborhood build bot announcing ${link}${reason}`;
|
|
11821
11822
|
report(body);
|
package/debug-log.js
CHANGED
|
@@ -58,12 +58,16 @@ class DebugLogSender {
|
|
|
58
58
|
register(plugin, preferences = []) {
|
|
59
59
|
var _a, _b;
|
|
60
60
|
this.convertLegacy();
|
|
61
|
+
const label = 'Send debug log to bashupload.com';
|
|
61
62
|
const doc = (_a = this.zotero.getMainWindow()) === null || _a === void 0 ? void 0 : _a.document;
|
|
62
63
|
if (doc) {
|
|
63
64
|
let menupopup = doc.querySelector(`#${this.id.menupopup}`);
|
|
64
|
-
if (
|
|
65
|
+
if (menupopup) {
|
|
66
|
+
menupopup.setAttribute('label', label);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
65
69
|
menupopup = doc.querySelector('menupopup#menu_HelpPopup')
|
|
66
|
-
.appendChild(this.element('menu', { id: this.id.menu, label
|
|
70
|
+
.appendChild(this.element('menu', { id: this.id.menu, label }))
|
|
67
71
|
.appendChild(this.element('menupopup', { id: this.id.menupopup }));
|
|
68
72
|
}
|
|
69
73
|
(_b = doc.querySelector(`.${this.id.menuitem}[label=${JSON.stringify(plugin)}]`)) === null || _b === void 0 ? void 0 : _b.remove();
|
|
@@ -127,20 +131,19 @@ class DebugLogSender {
|
|
|
127
131
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
|
|
128
132
|
const formData = new FormData();
|
|
129
133
|
formData.append('file', blob, `${key}.zip`);
|
|
130
|
-
let url = 'https://0x0.st';
|
|
131
134
|
try {
|
|
132
|
-
const response = await fetch(
|
|
135
|
+
const response = await fetch(`https://bashupload.com/${key}.zip`, {
|
|
133
136
|
method: 'POST',
|
|
134
137
|
body: formData,
|
|
135
138
|
headers: {
|
|
136
139
|
'User-Agent': 'curl/8.7.1',
|
|
137
140
|
},
|
|
138
141
|
});
|
|
139
|
-
const body =
|
|
140
|
-
|
|
141
|
-
if (!
|
|
142
|
+
const body = await response.text();
|
|
143
|
+
const id = body.match(/https:[/][/]bashupload.com[/]([A-Z0-9]+)[/][A-Z0-9]+[.]zip/i);
|
|
144
|
+
if (!id)
|
|
142
145
|
throw new Error(body);
|
|
143
|
-
this.alert(`Debug log ID for ${plugin}`, `${key}-
|
|
146
|
+
this.alert(`Debug log ID for ${plugin}`, `${key}-buc-${id[1]}. If you sent this log in error, visit ${id[0]} and it will be automatically removed.`);
|
|
144
147
|
}
|
|
145
148
|
catch (err) {
|
|
146
149
|
this.alert(`Could not post debug log for ${plugin}`, err.message);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zotero-plugin",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.16",
|
|
4
4
|
"description": "Zotero plugin builder",
|
|
5
5
|
"homepage": "https://github.com/retorquere/zotero-plugin/wiki",
|
|
6
6
|
"bin": {
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@octokit/rest": "^21.1.1",
|
|
32
32
|
"@rgrove/parse-xml": "^4.2.0",
|
|
33
|
-
"@types/node": "^22.
|
|
33
|
+
"@types/node": "^22.14.1",
|
|
34
34
|
"@xmldom/xmldom": "^0.9.8",
|
|
35
35
|
"ajv": "^8.17.1",
|
|
36
36
|
"ajv-keywords": "^5.1.0",
|
|
37
37
|
"archiver": "^7.0.1",
|
|
38
38
|
"clp": "^4.0.13",
|
|
39
39
|
"commander": "^13.1.0",
|
|
40
|
-
"dotenv": "^16.
|
|
40
|
+
"dotenv": "^16.5.0",
|
|
41
41
|
"ejs": "^3.1.10",
|
|
42
42
|
"fs-extra": "^11.3.0",
|
|
43
43
|
"glob": "^11.0.1",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"pug": "^3.0.3",
|
|
50
50
|
"rimraf": "^6.0.1",
|
|
51
51
|
"shell-quote": "^1.8.2",
|
|
52
|
-
"shelljs": "^0.
|
|
52
|
+
"shelljs": "^0.9.2",
|
|
53
53
|
"string-to-arraybuffer": "^1.0.2",
|
|
54
54
|
"ts-node": "^10.9.2",
|
|
55
55
|
"tslib": "^2.8.1",
|
|
56
|
-
"typescript": "^5.8.
|
|
56
|
+
"typescript": "^5.8.3",
|
|
57
57
|
"uri-templates": "^0.2.0",
|
|
58
58
|
"uzip": "^0.20201231.0",
|
|
59
59
|
"xml-parser": "^1.2.1",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"url": "https://github.com/retorquere/zotero-plugin/issues"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
|
-
"dprint": "^0.49.
|
|
113
|
-
"esbuild": "^0.25.
|
|
112
|
+
"dprint": "^0.49.1",
|
|
113
|
+
"esbuild": "^0.25.2"
|
|
114
114
|
}
|
|
115
115
|
}
|
package/rdf.js
CHANGED
|
@@ -64,7 +64,7 @@ if (options_and_vars.maxVersion.match(/^7/)) {
|
|
|
64
64
|
update_link: options_and_vars.updateLink,
|
|
65
65
|
applications: {
|
|
66
66
|
zotero: {
|
|
67
|
-
strict_min_version: '6.999',
|
|
67
|
+
strict_min_version: options_and_vars.minVersion.match(/^7/) ? options_and_vars.minVersion : '6.999',
|
|
68
68
|
},
|
|
69
69
|
},
|
|
70
70
|
},
|