@lih-x-x/kmr 1.0.25 → 1.0.26

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.
Files changed (2) hide show
  1. package/dist/cli.js +5 -11
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -4,15 +4,12 @@
4
4
  import { argv } from "process";
5
5
  async function checkUpdate() {
6
6
  try {
7
- const { createRequire } = await import("module");
8
- const require2 = createRequire(import.meta.url);
9
- const pkg = require2("../package.json");
10
- const res = await fetch(`https://registry.npmjs.org/${pkg.name}/latest`, { signal: AbortSignal.timeout(3e3) });
7
+ const res = await fetch(`https://registry.npmjs.org/${"@lih-x-x/kmr"}/latest`, { signal: AbortSignal.timeout(3e3) });
11
8
  const data = await res.json();
12
- if (data.version && data.version !== pkg.version) {
9
+ if (data.version && data.version !== "1.0.26") {
13
10
  console.log(`
14
- \u2B06\uFE0F \u65B0\u7248\u672C\u53EF\u7528: ${pkg.version} \u2192 ${data.version}`);
15
- console.log(` \u8FD0\u884C npm install -g ${pkg.name} \u66F4\u65B0
11
+ \u2B06\uFE0F \u65B0\u7248\u672C\u53EF\u7528: ${"1.0.26"} \u2192 ${data.version}`);
12
+ console.log(` \u8FD0\u884C npm install -g ${"@lih-x-x/kmr"} \u66F4\u65B0
16
13
  `);
17
14
  }
18
15
  } catch {
@@ -57,10 +54,7 @@ KMR\uFF08Key Meetings Record\uFF09\u2014 \u4F1A\u8BAE\u6316\u6398\u673A
57
54
  kmr --help \u663E\u793A\u5E2E\u52A9
58
55
  `);
59
56
  } else if (command === "--version" || command === "-v") {
60
- const { createRequire } = await import("module");
61
- const require2 = createRequire(import.meta.url);
62
- const pkg = require2("../package.json");
63
- console.log(pkg.version);
57
+ console.log("1.0.26");
64
58
  } else if (command === "list") {
65
59
  const { loadConfig } = await import("./config-L2SVVMAR.js");
66
60
  const { JsonStore } = await import("./jsonStore-AL73KEUG.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lih-x-x/kmr",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {