larkmate 0.1.29 → 0.1.30

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "larkmate",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "A small, user-identity Feishu CLI with a modular gateway client",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -6,6 +6,7 @@ import { homedir, tmpdir } from 'node:os';
6
6
  import { join } from 'node:path';
7
7
  import { chmod, lstat, mkdir, mkdtemp, readFile, rename, rm, writeFile } from 'node:fs/promises';
8
8
  import { fileURLToPath } from 'node:url';
9
+ import { realpathSync } from 'node:fs';
9
10
 
10
11
  export function decryptChromeCookie(row, key, version) {
11
12
  if (row.value) return row.value;
@@ -77,4 +78,4 @@ async function main() {
77
78
  console.log(JSON.stringify({ok:true,status:options.apply?'updated':'verified',user:{id:user.id,name:user.name||null}}));
78
79
  } finally {await rm(dir,{recursive:true,force:true})}
79
80
  }
80
- if(process.argv[1]&&fileURLToPath(import.meta.url)===process.argv[1])main().catch(error=>{console.error(JSON.stringify({ok:false,error:error.message}));process.exitCode=1});
81
+ if(process.argv[1]&&fileURLToPath(import.meta.url)===realpathSync(process.argv[1]))main().catch(error=>{console.error(JSON.stringify({ok:false,error:error.message}));process.exitCode=1});