mirror of
https://github.com/ION606/linkedin-api.git
synced 2026-05-14 22:06:54 +00:00
exposed number conversion functions
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ export async function parseResponse(data, APIRef, excludeGeneric) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function findRangeIndex(number) {
|
export function findRangeIndex(number) {
|
||||||
const rangeMap = ["B", "C", "D", "E", "F", "G", "H", "I"];
|
const rangeMap = ["B", "C", "D", "E", "F", "G", "H", "I"];
|
||||||
const companySizeRanges = [
|
const companySizeRanges = [
|
||||||
[1, 10],
|
[1, 10],
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import linkedInAPIClass from "./classes/API.js";
|
import linkedInAPIClass, { findRangeIndex, numsToSizes } from "./classes/API.js";
|
||||||
import { LinkedInProfile } from "./classes/Profile.js";
|
import { LinkedInProfile } from "./classes/Profile.js";
|
||||||
import { Company } from "./classes/Company.js";
|
import { Company } from "./classes/Company.js";
|
||||||
import { GenericEntity, Group, ReactionTypeCount, SocialActivityCounts } from './classes/misc.js'
|
import { GenericEntity, Group, ReactionTypeCount, SocialActivityCounts } from './classes/misc.js'
|
||||||
|
|
||||||
|
|
||||||
export default linkedInAPIClass;
|
export default linkedInAPIClass;
|
||||||
export { LinkedInProfile, Company, GenericEntity, Group, ReactionTypeCount, SocialActivityCounts };
|
export { LinkedInProfile, Company, GenericEntity, Group, ReactionTypeCount, SocialActivityCounts, numsToSizes, findRangeIndex };
|
||||||
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"name": "linkedin-api-js",
|
"name": "linkedin-api-js",
|
||||||
"version": "1.0.0-18",
|
"version": "1.0.0-19",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
|||||||
Reference in New Issue
Block a user