@meltwater/conversations-api-services 1.0.49 → 1.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # conversations-api-services
2
2
 
3
- Repository to contain all conversations api services shared across our services
3
+ Repository to contain all conversations api services shared across our services.
4
4
 
5
5
  ## Maintainers
6
6
 
@@ -25,7 +25,7 @@ async function shareCount(token, externalId, logger) {
25
25
  try {
26
26
  const response = await getApi(`${FACEBOOK_URL}/${(0, _externalIdHelpers.removePrefix)(externalId)}/?fields=shares`, token);
27
27
  return response.body.shares && response.body.shares.count;
28
- } catch (err) {
28
+ } catch (error) {
29
29
  (0, _loggerHelpers.loggerError)(logger, `Facebook shareCount error recieved - ${error.code}`, error);
30
30
  }
31
31
  }
@@ -6,7 +6,7 @@ export async function shareCount(token, externalId, logger) {
6
6
  try {
7
7
  const response = await getApi(`${FACEBOOK_URL}/${removePrefix(externalId)}/?fields=shares`, token);
8
8
  return response.body.shares && response.body.shares.count;
9
- } catch (err) {
9
+ } catch (error) {
10
10
  loggerError(logger, `Facebook shareCount error recieved - ${error.code}`, error);
11
11
  }
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltwater/conversations-api-services",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "Repository to contain all conversations api services shared across our services",
5
5
  "main": "dist/cjs/data-access/index.js",
6
6
  "module": "dist/esm/data-access/index.js",
@@ -15,7 +15,7 @@ export async function shareCount(token, externalId, logger) {
15
15
  token
16
16
  );
17
17
  return response.body.shares && response.body.shares.count;
18
- } catch (err) {
18
+ } catch (error) {
19
19
  loggerError(
20
20
  logger,
21
21
  `Facebook shareCount error recieved - ${error.code}`,