Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

shiqiyue-linkedin-private-api

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shiqiyue-linkedin-private-api - npm Package Compare versions

Comparing version 1.1.22 to 1.1.23

1

dist/src/repositories/search.repository.d.ts

@@ -47,2 +47,3 @@ import { Client } from '../core/client';

private fetchPeople;
private fetchPeople3;
fetchPeople2({ start, keywords, query, }?: {

@@ -49,0 +50,0 @@ start?: number;

@@ -42,3 +42,3 @@ "use strict";

filters: { ...filters, network: network_enum_1.LinkedInNetworkType.F },
fetchPeople: this.fetchPeople.bind(this),
fetchPeople: this.fetchPeople3.bind(this),
});

@@ -90,2 +90,18 @@ }

}
async fetchPeople3({ skip = 0, limit = 10, filters = {}, keywords, } = {}) {
var _a, _b;
const response = await this.client.request.search.searchBlended({
keywords,
skip,
limit,
filters: { ...filters, resultType: search_type_enum_1.LinkedInSearchType.PEOPLE },
origin: "SWITCH_SEARCH_VERTICAL"
});
const profiles = lodash_1.keyBy(profile_repository_1.getProfilesFromResponse(response), 'entityUrn');
const searchHits = lodash_1.flatten((_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.elements) === null || _b === void 0 ? void 0 : _b.filter(e => e.type === search_result_type_enum_1.SearchResultType.SEARCH_HITS && e.elements).map(e => e.elements));
return searchHits.map(searchHit => ({
...searchHit,
profile: profiles[searchHit.targetUrn],
}));
}
async fetchPeople2({ start = 0, keywords = "", query = {}, } = {}) {

@@ -92,0 +108,0 @@ var _a;

@@ -27,2 +27,3 @@ "use strict";

};
console.log(utils_1.paramsSerializer(queryParams));
return this.request.get('search/blended', {

@@ -29,0 +30,0 @@ params: queryParams,

2

package.json
{
"name": "shiqiyue-linkedin-private-api",
"version": "1.1.22",
"version": "1.1.23",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc