@meltwater/conversations-api-services 1.0.48 → 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
|
@@ -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 (
|
|
28
|
+
} catch (error) {
|
|
29
29
|
(0, _loggerHelpers.loggerError)(logger, `Facebook shareCount error recieved - ${error.code}`, error);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -107,7 +107,8 @@ async function privateMessage(token, _ref2, logger) {
|
|
|
107
107
|
contentType,
|
|
108
108
|
filename: `${imgName || 'image'}.${contentType.split('/')[1]}`
|
|
109
109
|
}
|
|
110
|
-
}
|
|
110
|
+
},
|
|
111
|
+
tag: 'HUMAN_AGENT'
|
|
111
112
|
};
|
|
112
113
|
isMultiPart = true;
|
|
113
114
|
} else {
|
|
@@ -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 (
|
|
9
|
+
} catch (error) {
|
|
10
10
|
loggerError(logger, `Facebook shareCount error recieved - ${error.code}`, error);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -88,7 +88,8 @@ export async function privateMessage(token, _ref2, logger) {
|
|
|
88
88
|
contentType,
|
|
89
89
|
filename: `${imgName || 'image'}.${contentType.split('/')[1]}`
|
|
90
90
|
}
|
|
91
|
-
}
|
|
91
|
+
},
|
|
92
|
+
tag: 'HUMAN_AGENT'
|
|
92
93
|
};
|
|
93
94
|
isMultiPart = true;
|
|
94
95
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meltwater/conversations-api-services",
|
|
3
|
-
"version": "1.0.
|
|
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 (
|
|
18
|
+
} catch (error) {
|
|
19
19
|
loggerError(
|
|
20
20
|
logger,
|
|
21
21
|
`Facebook shareCount error recieved - ${error.code}`,
|
|
@@ -132,6 +132,7 @@ export async function privateMessage(
|
|
|
132
132
|
}`,
|
|
133
133
|
},
|
|
134
134
|
},
|
|
135
|
+
tag: 'HUMAN_AGENT',
|
|
135
136
|
};
|
|
136
137
|
isMultiPart = true;
|
|
137
138
|
} else {
|