From 000ac402529d3ea569b2ab853733238e94155377 Mon Sep 17 00:00:00 2001 From: "wenyao.wu" <835802084@qq.com> Date: Tue, 14 Jun 2022 21:38:35 +0800 Subject: [PATCH] update --- package.json | 2 +- src/core/client.ts | 2 ++ src/core/login.ts | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a567aa8b..a463c0b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "shiqiyue-linkedin-private-api", - "version": "1.1.21", + "version": "1.1.22", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/core/client.ts b/src/core/client.ts index eb9ff2b9..94edeb5b 100644 --- a/src/core/client.ts +++ b/src/core/client.ts @@ -24,6 +24,8 @@ export class Client { myProfile?: Profile; + li_at?: string; + constructor({ proxy,httpAgent, httpsAgent,decorationIds }: ClientOpts = {}) { this.request = new LinkedInRequest({ proxy,httpAgent, httpsAgent,decorationIds }); } diff --git a/src/core/login.ts b/src/core/login.ts index 28bb222b..a835af87 100644 --- a/src/core/login.ts +++ b/src/core/login.ts @@ -124,6 +124,7 @@ export class Login { } this.setRequestHeaders({ cookies }); + this.client.li_at = cookies.li_at if (username) { //fs.writeFile(SESSIONS_PATH, JSON.stringify({ ...cachedSessions, [username]: cookies }));