node-ainzfb-new 1.6.30-test → 1.6.32-stable
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/utils.js +11 -11
package/package.json
CHANGED
package/utils.js
CHANGED
@@ -22,8 +22,8 @@ function getHeaders(url, options, ctx, customHeader) {
|
|
22
22
|
Origin: "https://www.facebook.com",
|
23
23
|
"User-Agent": options.userAgent,
|
24
24
|
Connection: "keep-alive",
|
25
|
-
|
26
|
-
|
25
|
+
"sec-fetch-site": 'same-origin',
|
26
|
+
"sec-fetch-mode": 'cors'
|
27
27
|
};
|
28
28
|
if (customHeader) Object.assign(headers, customHeader);
|
29
29
|
|
@@ -1245,18 +1245,18 @@ module.exports = {
|
|
1245
1245
|
isReadableStream:isReadableStream,
|
1246
1246
|
get,
|
1247
1247
|
post,
|
1248
|
-
postFormData
|
1249
|
-
generateThreadingID
|
1250
|
-
generateOfflineThreadingID
|
1248
|
+
postFormData,
|
1249
|
+
generateThreadingID,
|
1250
|
+
generateOfflineThreadingID,
|
1251
1251
|
getGUID,
|
1252
1252
|
getFrom:getFrom,
|
1253
|
-
makeParsable
|
1254
|
-
arrToForm
|
1255
|
-
getSignatureID
|
1253
|
+
makeParsable,
|
1254
|
+
arrToForm,
|
1255
|
+
getSignatureID,
|
1256
1256
|
getJar: request.jar,
|
1257
|
-
generateTimestampRelative
|
1258
|
-
makeDefaults
|
1259
|
-
parseAndCheckLogin
|
1257
|
+
generateTimestampRelative,
|
1258
|
+
makeDefaults,
|
1259
|
+
parseAndCheckLogin,
|
1260
1260
|
saveCookies,
|
1261
1261
|
getType,
|
1262
1262
|
_formatAttachment,
|