@thirdfy/agent-cli 0.1.0 → 0.1.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/bin/thirdfy-agent.mjs +2 -1
- package/package.json +1 -1
package/bin/thirdfy-agent.mjs
CHANGED
|
@@ -42,7 +42,8 @@ const context = {
|
|
|
42
42
|
const isEntrypoint = (() => {
|
|
43
43
|
try {
|
|
44
44
|
if (!process.argv[1]) return false;
|
|
45
|
-
|
|
45
|
+
const resolvedArgvPath = fs.realpathSync(process.argv[1]);
|
|
46
|
+
return import.meta.url === pathToFileURL(resolvedArgvPath).href;
|
|
46
47
|
} catch {
|
|
47
48
|
return false;
|
|
48
49
|
}
|