shiqiyue-linkedin-private-api
Advanced tools
Comparing version 1.1.17 to 1.1.18
@@ -14,10 +14,20 @@ "use strict"; | ||
async function remoteDecorationIds(agent) { | ||
const url = "https://raw.githubusercontent.com/shiqiyue/linkedin-private-api/master/src/core/latest_decorationId.json"; | ||
const response = await axios_1.default.get(url, { | ||
httpsAgent: agent, | ||
httpAgent: agent | ||
}); | ||
return response.data; | ||
let url = "https://raw.githubusercontent.com/shiqiyue/linkedin-private-api/master/src/core/latest_decorationId.json"; | ||
try { | ||
const response = await axios_1.default.get(url, { | ||
httpsAgent: agent, | ||
httpAgent: agent | ||
}); | ||
return response.data; | ||
} | ||
catch (e) { | ||
url = "https://ghproxy.com" + url; | ||
const response = await axios_1.default.get(url, { | ||
httpsAgent: agent, | ||
httpAgent: agent | ||
}); | ||
return response.data; | ||
} | ||
} | ||
exports.remoteDecorationIds = remoteDecorationIds; | ||
//# sourceMappingURL=decorationIds.js.map |
{ | ||
"name": "shiqiyue-linkedin-private-api", | ||
"version": "1.1.17", | ||
"version": "1.1.18", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
275114
3943