zotero-plugin 2.0.28 → 2.0.30
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/branches.js +1 -1
- package/bin/release.js +12 -1
- package/bin/zipup.js +8 -0
- package/debug-log.js +6 -1
- package/package.json +9 -9
package/bin/branches.js
CHANGED
|
@@ -3551,7 +3551,7 @@
|
|
|
3551
3551
|
legacyRestEndpointMethods.VERSION = VERSION7;
|
|
3552
3552
|
|
|
3553
3553
|
// node_modules/@octokit/rest/dist-src/version.js
|
|
3554
|
-
var VERSION8 = "21.0.
|
|
3554
|
+
var VERSION8 = "21.0.2";
|
|
3555
3555
|
|
|
3556
3556
|
// node_modules/@octokit/rest/dist-src/index.js
|
|
3557
3557
|
var Octokit2 = Octokit.plugin(requestLog, legacyRestEndpointMethods, paginateRest).defaults(
|
package/bin/release.js
CHANGED
|
@@ -1113,8 +1113,13 @@
|
|
|
1113
1113
|
return void (isUTC ? d.setUTCHours(value) : d.setHours(value));
|
|
1114
1114
|
case "Date":
|
|
1115
1115
|
return void (isUTC ? d.setUTCDate(value) : d.setDate(value));
|
|
1116
|
+
// case 'Day': // Not real
|
|
1117
|
+
// return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
|
|
1118
|
+
// case 'Month': // Not used because we need to pass two variables
|
|
1119
|
+
// return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
|
|
1116
1120
|
case "FullYear":
|
|
1117
1121
|
break;
|
|
1122
|
+
// See below ...
|
|
1118
1123
|
default:
|
|
1119
1124
|
return;
|
|
1120
1125
|
}
|
|
@@ -3141,18 +3146,23 @@
|
|
|
3141
3146
|
case "second":
|
|
3142
3147
|
output = (this - that) / 1e3;
|
|
3143
3148
|
break;
|
|
3149
|
+
// 1000
|
|
3144
3150
|
case "minute":
|
|
3145
3151
|
output = (this - that) / 6e4;
|
|
3146
3152
|
break;
|
|
3153
|
+
// 1000 * 60
|
|
3147
3154
|
case "hour":
|
|
3148
3155
|
output = (this - that) / 36e5;
|
|
3149
3156
|
break;
|
|
3157
|
+
// 1000 * 60 * 60
|
|
3150
3158
|
case "day":
|
|
3151
3159
|
output = (this - that - zoneDelta) / 864e5;
|
|
3152
3160
|
break;
|
|
3161
|
+
// 1000 * 60 * 60 * 24, negate dst
|
|
3153
3162
|
case "week":
|
|
3154
3163
|
output = (this - that - zoneDelta) / 6048e5;
|
|
3155
3164
|
break;
|
|
3165
|
+
// 1000 * 60 * 60 * 24 * 7, negate dst
|
|
3156
3166
|
default:
|
|
3157
3167
|
output = this - that;
|
|
3158
3168
|
}
|
|
@@ -4164,6 +4174,7 @@
|
|
|
4164
4174
|
return days2 * 1440 + milliseconds2 / 6e4;
|
|
4165
4175
|
case "second":
|
|
4166
4176
|
return days2 * 86400 + milliseconds2 / 1e3;
|
|
4177
|
+
// Math.floor prevents floating point math errors here
|
|
4167
4178
|
case "millisecond":
|
|
4168
4179
|
return Math.floor(days2 * 864e5) + milliseconds2;
|
|
4169
4180
|
default:
|
|
@@ -9684,7 +9695,7 @@ ${stderr}${stdout}`;
|
|
|
9684
9695
|
legacyRestEndpointMethods.VERSION = VERSION7;
|
|
9685
9696
|
|
|
9686
9697
|
// node_modules/@octokit/rest/dist-src/version.js
|
|
9687
|
-
var VERSION8 = "21.0.
|
|
9698
|
+
var VERSION8 = "21.0.2";
|
|
9688
9699
|
|
|
9689
9700
|
// node_modules/@octokit/rest/dist-src/index.js
|
|
9690
9701
|
var Octokit2 = Octokit.plugin(requestLog, legacyRestEndpointMethods, paginateRest).defaults(
|
package/bin/zipup.js
CHANGED
|
@@ -525,6 +525,7 @@
|
|
|
525
525
|
continue;
|
|
526
526
|
}
|
|
527
527
|
switch (c) {
|
|
528
|
+
/* istanbul ignore next */
|
|
528
529
|
case "/": {
|
|
529
530
|
return false;
|
|
530
531
|
}
|
|
@@ -536,6 +537,8 @@
|
|
|
536
537
|
clearStateChar();
|
|
537
538
|
escaping = true;
|
|
538
539
|
continue;
|
|
540
|
+
// the various stateChar values
|
|
541
|
+
// for the "extglob" stuff.
|
|
539
542
|
case "?":
|
|
540
543
|
case "*":
|
|
541
544
|
case "+":
|
|
@@ -610,6 +613,7 @@
|
|
|
610
613
|
}
|
|
611
614
|
continue;
|
|
612
615
|
}
|
|
616
|
+
// these are mostly the same in regexp and glob
|
|
613
617
|
case "[":
|
|
614
618
|
clearStateChar();
|
|
615
619
|
if (inClass) {
|
|
@@ -821,12 +825,16 @@
|
|
|
821
825
|
}
|
|
822
826
|
break;
|
|
823
827
|
case "ENOTSUP":
|
|
828
|
+
// Operation not supported
|
|
824
829
|
case "ENOENT":
|
|
830
|
+
// No such file or directory
|
|
825
831
|
case "ENAMETOOLONG":
|
|
832
|
+
// Filename too long
|
|
826
833
|
case "UNKNOWN":
|
|
827
834
|
resolve2([]);
|
|
828
835
|
break;
|
|
829
836
|
case "ELOOP":
|
|
837
|
+
// Too many levels of symbolic links
|
|
830
838
|
default:
|
|
831
839
|
reject(err);
|
|
832
840
|
break;
|
package/debug-log.js
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.DebugLog = void 0;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
|
|
7
|
+
if (Zotero.platformMajorVersion >= 102)
|
|
8
|
+
Components.utils.importGlobalProperties(['FormData']);
|
|
6
9
|
const UZip = tslib_1.__importStar(require("uzip"));
|
|
7
10
|
class DebugLogSender {
|
|
8
11
|
constructor() {
|
|
@@ -137,7 +140,9 @@ class DebugLogSender {
|
|
|
137
140
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment
|
|
138
141
|
const appInfo = Components.classes['@mozilla.org/xre/app-info;1'].getService(Components.interfaces.nsIXULAppInfo);
|
|
139
142
|
info += `Application: ${appInfo.name} ${appInfo.version} ${Zotero.locale}\n`;
|
|
140
|
-
|
|
143
|
+
const platform = ['Win', 'Mac', 'Linux'].find(p => Zotero[`is${p}`]) || 'Unknown';
|
|
144
|
+
const arch = Zotero.oscpu || Zotero.arch;
|
|
145
|
+
info += `Platform: ${platform} ${arch}\n`;
|
|
141
146
|
const addons = await Zotero.getInstalledExtensions();
|
|
142
147
|
if (addons.length) {
|
|
143
148
|
info += 'Addons:\n' + addons.map((addon) => ` ${addon}\n`).join(''); // eslint-disable-line prefer-template
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zotero-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.30",
|
|
4
4
|
"description": "Zotero plugin builder",
|
|
5
5
|
"homepage": "https://github.com/retorquere/zotero-plugin/wiki",
|
|
6
6
|
"bin": {
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"test": "test"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@octokit/rest": "^21.0.
|
|
30
|
+
"@octokit/rest": "^21.0.2",
|
|
31
31
|
"@rgrove/parse-xml": "^4.1.0",
|
|
32
|
-
"@stylistic/eslint-plugin": "^2.
|
|
33
|
-
"@types/node": "^22.1
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
35
|
-
"@typescript-eslint/parser": "^8.
|
|
36
|
-
"@xmldom/xmldom": "^0.
|
|
32
|
+
"@stylistic/eslint-plugin": "^2.7.1",
|
|
33
|
+
"@types/node": "^22.5.1",
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^8.3.0",
|
|
35
|
+
"@typescript-eslint/parser": "^8.3.0",
|
|
36
|
+
"@xmldom/xmldom": "^0.9.0",
|
|
37
37
|
"ajv": "^8.17.1",
|
|
38
38
|
"ajv-keywords": "^5.1.0",
|
|
39
39
|
"archiver": "^7.0.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"shelljs": "^0.8.5",
|
|
58
58
|
"string-to-arraybuffer": "^1.0.2",
|
|
59
59
|
"ts-node": "^10.9.2",
|
|
60
|
-
"tslib": "^2.
|
|
60
|
+
"tslib": "^2.7.0",
|
|
61
61
|
"typescript": "^5.5.4",
|
|
62
62
|
"uri-templates": "^0.2.0",
|
|
63
63
|
"uzip": "^0.20201231.0",
|
|
@@ -111,6 +111,6 @@
|
|
|
111
111
|
"url": "https://github.com/retorquere/zotero-plugin/issues"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
|
-
"esbuild": "^0.23.
|
|
114
|
+
"esbuild": "^0.23.1"
|
|
115
115
|
}
|
|
116
116
|
}
|