blofin-cli 0.2.0 → 0.2.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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
// src/index.ts
|
|
7
7
|
import { fileURLToPath } from "url";
|
|
8
8
|
import { resolve } from "path";
|
|
9
|
-
import { readFileSync } from "fs";
|
|
9
|
+
import { readFileSync, realpathSync } from "fs";
|
|
10
10
|
import { parseArgs } from "util";
|
|
11
11
|
import {
|
|
12
12
|
ALL_MODULES,
|
|
@@ -347,7 +347,7 @@ function isMainModule() {
|
|
|
347
347
|
return false;
|
|
348
348
|
}
|
|
349
349
|
const self = fileURLToPath(import.meta.url);
|
|
350
|
-
const invoked = resolve(process.argv[1]);
|
|
350
|
+
const invoked = realpathSync(resolve(process.argv[1]));
|
|
351
351
|
return self === invoked;
|
|
352
352
|
}
|
|
353
353
|
if (isMainModule()) {
|