@agentprojectcontext/apx 1.3.0 → 1.3.1
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/package.json +1 -1
- package/src/cli/commands/update.js +2 -7
- package/src/cli/index.js +1 -1
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { getLatestVersion } from "../../core/update-check.js";
|
|
|
4
4
|
|
|
5
5
|
const PACKAGE_NAME = "@agentprojectcontext/apx";
|
|
6
6
|
|
|
7
|
-
export async function cmdUpdate(args) {
|
|
7
|
+
export async function cmdUpdate(args, currentVersion) {
|
|
8
8
|
const force = args.flags.force || args.flags.yes || args.flags.y;
|
|
9
9
|
|
|
10
10
|
console.log("Checking for updates...");
|
|
@@ -15,12 +15,7 @@ export async function cmdUpdate(args) {
|
|
|
15
15
|
process.exit(1);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
const { createRequire } = await import("node:module");
|
|
20
|
-
const { fileURLToPath } = await import("node:url");
|
|
21
|
-
const require = createRequire(import.meta.url);
|
|
22
|
-
const pkg = require("../../package.json");
|
|
23
|
-
const current = pkg.version;
|
|
18
|
+
const current = currentVersion;
|
|
24
19
|
|
|
25
20
|
function isNewer(cur, lat) {
|
|
26
21
|
const parse = (v) => v.replace(/^v/, "").split(".").map(Number);
|
package/src/cli/index.js
CHANGED