zotero-plugin-scaffold 0.2.1 → 0.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/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
2
|
import { Command } from '@commander-js/extra-typings';
|
|
3
|
-
import { E as ExitSignals, l as logger, C as Config, B as Build, S as Serve, T as Test, R as Release } from './shared/zotero-plugin-scaffold.
|
|
3
|
+
import { E as ExitSignals, l as logger, C as Config, B as Build, S as Serve, T as Test, R as Release } from './shared/zotero-plugin-scaffold.V3TH4au2.mjs';
|
|
4
4
|
import { readFile, writeFile } from 'node:fs/promises';
|
|
5
5
|
import { pathExists, ensureFile } from 'fs-extra';
|
|
6
6
|
import tinyUpdateNotifier from 'tiny-update-notifier';
|
|
@@ -32,7 +32,7 @@ import 'xvfb-ts';
|
|
|
32
32
|
|
|
33
33
|
const name = "zotero-plugin-scaffold";
|
|
34
34
|
const type = "module";
|
|
35
|
-
const version = "0.2.
|
|
35
|
+
const version = "0.2.2";
|
|
36
36
|
const packageManager = "pnpm@9.15.4";
|
|
37
37
|
const description = "A scaffold for Zotero plugin development.";
|
|
38
38
|
const author = "northword";
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Build, C as Config, R as Release, S as Serve, T as Test, d as defineConfig } from './shared/zotero-plugin-scaffold.
|
|
1
|
+
export { B as Build, C as Config, R as Release, S as Serve, T as Test, d as defineConfig } from './shared/zotero-plugin-scaffold.V3TH4au2.mjs';
|
|
2
2
|
import 'c12';
|
|
3
3
|
import 'es-toolkit';
|
|
4
4
|
import 'fs-extra/esm';
|
package/dist/shared/{zotero-plugin-scaffold.DiPAIBFh.mjs → zotero-plugin-scaffold.V3TH4au2.mjs}
RENAMED
|
@@ -770,14 +770,14 @@ class Bump extends Base {
|
|
|
770
770
|
}
|
|
771
771
|
|
|
772
772
|
const mimeTypes = {
|
|
773
|
-
|
|
774
|
-
"application/x-xpinstall"
|
|
773
|
+
json: "application/json",
|
|
774
|
+
xpi: "application/x-xpinstall"
|
|
775
775
|
};
|
|
776
776
|
function getMimeTypeByFileName(filename) {
|
|
777
777
|
const ext = extname(filename);
|
|
778
778
|
for (const type in mimeTypes) {
|
|
779
|
-
if (
|
|
780
|
-
return type;
|
|
779
|
+
if (ext === `.${type}`)
|
|
780
|
+
return mimeTypes[type];
|
|
781
781
|
}
|
|
782
782
|
return undefined;
|
|
783
783
|
}
|