diff --git a/classes/API.js b/classes/API.js index 821aa42..a1676cf 100644 --- a/classes/API.js +++ b/classes/API.js @@ -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 companySizeRanges = [ [1, 10], diff --git a/index.js b/index.js index 7c19206..461cc33 100644 --- a/index.js +++ b/index.js @@ -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 { Company } from "./classes/Company.js"; import { GenericEntity, Group, ReactionTypeCount, SocialActivityCounts } from './classes/misc.js' export default linkedInAPIClass; -export { LinkedInProfile, Company, GenericEntity, Group, ReactionTypeCount, SocialActivityCounts }; \ No newline at end of file +export { LinkedInProfile, Company, GenericEntity, Group, ReactionTypeCount, SocialActivityCounts, numsToSizes, findRangeIndex }; \ No newline at end of file diff --git a/package.json b/package.json index d3e6a35..8d60eaf 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "type": "module", "name": "linkedin-api-js", - "version": "1.0.0-18", + "version": "1.0.0-19", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1"