linkedin-api-voyager 1.3.3 → 1.3.4

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/README.md CHANGED
@@ -12,11 +12,13 @@ yarn add linkedin-api-voyager
12
12
 
13
13
  ## Configuração (Obrigatório)
14
14
 
15
- A biblioteca funciona tanto no **backend (Node.js)** quanto no **frontend**. Você precisa inicializar o cliente com seus cookies uma única vez antes de fazer qualquer requisição.
15
+ **Atenção:** Esta biblioteca deve ser executada **exclusivamente no lado do servidor (Node.js)**. O uso direto no navegador (client-side) resultará em erros de CORS e restrições de segurança.
16
+
17
+ Se você estiver usando em uma aplicação web (React, Vue, etc.), você deve criar uma API ou função intermediária no seu backend para chamar esta biblioteca.
16
18
 
17
19
  ### 1. Inicialize o Client
18
20
 
19
- No ponto de entrada da sua aplicação (ex: `index.ts`, `app.tsx`, `server.ts`):
21
+ No ponto de entrada da sua aplicação backend (ex: `index.ts`, `server.ts`):
20
22
 
21
23
  ```ts
22
24
  import { Client } from "linkedin-api-voyager";
package/lib/teste.js CHANGED
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const config_1 = require("./config");
3
4
  const user_1 = require("./user");
5
+ (0, config_1.Client)({
6
+ JSESSIONID: "2687703175806319775",
7
+ li_at: "AQEDARgQ7uMA1d5dAAABmm_VFQcAAAGcT-gumU0Agr-WPhYEN-QPXcfx84Ct0mtL2WQqj9YrWiAR2onQlCPyIa9RWXygwj3JKVSY1elRE6DjH4y6nEE5I3NhxBpswfzbRBCIgKUYmKWeEblF1t9VeGDl",
8
+ });
4
9
  (0, user_1.getUserMiniProfile)("wesbush")
5
10
  .then((profile) => {
6
11
  console.log("profile: ", profile);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkedin-api-voyager",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "Uma biblioteca TypeScript para interagir com a API interna do LinkedIn (Voyager)",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",