@zaks-io/agent-paste 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/dist/index.js +12 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18394,7 +18394,7 @@ var require_external = __commonJS({
|
|
|
18394
18394
|
});
|
|
18395
18395
|
|
|
18396
18396
|
// src/index.ts
|
|
18397
|
-
import { promises as fs5 } from "node:fs";
|
|
18397
|
+
import { promises as fs5, realpathSync } from "node:fs";
|
|
18398
18398
|
import path4 from "node:path";
|
|
18399
18399
|
import { fileURLToPath } from "node:url";
|
|
18400
18400
|
|
|
@@ -21434,7 +21434,7 @@ function emailFromIdToken(idToken) {
|
|
|
21434
21434
|
import { promises as fs3 } from "node:fs";
|
|
21435
21435
|
|
|
21436
21436
|
// src/version.ts
|
|
21437
|
-
var CLI_VERSION = true ? "0.1.
|
|
21437
|
+
var CLI_VERSION = true ? "0.1.1" : "0.0.0-dev";
|
|
21438
21438
|
|
|
21439
21439
|
// src/update-check.ts
|
|
21440
21440
|
var FETCH_TIMEOUT_MS = 3e3;
|
|
@@ -22097,13 +22097,21 @@ function isMainEntrypoint(metaUrl, argv1, platform = process.platform) {
|
|
|
22097
22097
|
if (!argv1) {
|
|
22098
22098
|
return false;
|
|
22099
22099
|
}
|
|
22100
|
-
const modulePath =
|
|
22101
|
-
const entryPath =
|
|
22100
|
+
const modulePath = executablePath(fileURLToPath(metaUrl));
|
|
22101
|
+
const entryPath = executablePath(argv1);
|
|
22102
22102
|
if (platform === "win32") {
|
|
22103
22103
|
return modulePath.toLowerCase() === entryPath.toLowerCase();
|
|
22104
22104
|
}
|
|
22105
22105
|
return modulePath === entryPath;
|
|
22106
22106
|
}
|
|
22107
|
+
function executablePath(value) {
|
|
22108
|
+
const resolved = path4.resolve(value);
|
|
22109
|
+
try {
|
|
22110
|
+
return realpathSync(resolved);
|
|
22111
|
+
} catch {
|
|
22112
|
+
return resolved;
|
|
22113
|
+
}
|
|
22114
|
+
}
|
|
22107
22115
|
if (isMainEntrypoint(import.meta.url, process.argv[1])) {
|
|
22108
22116
|
main().catch((error) => {
|
|
22109
22117
|
const asError = error instanceof Error ? error : new Error(String(error));
|
package/package.json
CHANGED