Skip to content

Commit

Permalink
bump support for libreview 4.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bewest committed Jun 19, 2023
1 parent 6acab82 commit 8f2ab37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/sources/librelinkup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

var qs = require('qs');
var url = require('url');

const _LluApiEndpoints = {
AE: "api-ae.libreview.io",
AP: "api-ap.libreview.io",
Expand All @@ -19,10 +20,12 @@ var Defaults = {
Connections: '/llu/connections',
Graph: '/llu/connections/',
mime: 'application/json',
Version: '4.2.2',
Version: '4.7.0',
Product: 'llu.ios',

};
var software = require('../../package.json');
var user_agent_string = [software.name, `${software.name}@${software.version}`, `LibreView@${Defaults.Version}`, software.homepage].join(', ');

function mapArrowTrend (trend) {
return mapArrowTrend.map[trend] || mapArrowTrend.map.default;
Expand All @@ -49,6 +52,7 @@ function linkUpSource (opts, axios) {
'Accept': Defaults.mime,
'Accept-Encoding': "gzip, deflate, br",
'version': opts.linkUpVersion,
'User-Agent': user_agent_string,
'product': opts.linkUpProduct
};
var baseURL = opts.baseURL;
Expand Down

0 comments on commit 8f2ab37

Please sign in to comment.