@marenfei/message-logger-plugin 0.1.2 → 0.1.3-beta.0
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/index.ts +9 -9
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -489,15 +489,15 @@ export default function register(api: OpenClawPluginApi) {
|
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
// 2. openclaw/package.json via createRequire
|
|
492
|
-
try {
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
} catch {
|
|
499
|
-
|
|
500
|
-
}
|
|
492
|
+
// try {
|
|
493
|
+
// const pkgPath = requireResolver.resolve("openclaw/package.json");
|
|
494
|
+
// const pkg = readJsonSync(pkgPath);
|
|
495
|
+
// if (typeof pkg?.version === "string" && (pkg.version as string).trim()) {
|
|
496
|
+
// return (pkg.version as string).trim();
|
|
497
|
+
// }
|
|
498
|
+
// } catch {
|
|
499
|
+
// // module not resolvable, fall through
|
|
500
|
+
// }
|
|
501
501
|
|
|
502
502
|
// 3. npm global node_modules: `npm root -g` + /openclaw/package.json
|
|
503
503
|
try {
|