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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils.js +11 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-ainzfb-new",
3
- "version": "1.6.30-test",
3
+ "version": "1.6.32-stable",
4
4
  "description": "A Facebook chat API that doesn't rely on XMPP. Will NOT be deprecated after April 30th 2015.",
5
5
  "scripts": {
6
6
  "test": "mocha",
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
- //"sec-fetch-site": 'same-origin',
26
- //"sec-fetch-mode": 'cors'
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:postFormData,
1249
- generateThreadingID:generateThreadingID,
1250
- generateOfflineThreadingID:generateOfflineThreadingID,
1248
+ postFormData,
1249
+ generateThreadingID,
1250
+ generateOfflineThreadingID,
1251
1251
  getGUID,
1252
1252
  getFrom:getFrom,
1253
- makeParsable:makeParsable,
1254
- arrToForm:arrToForm,
1255
- getSignatureID:getSignatureID,
1253
+ makeParsable,
1254
+ arrToForm,
1255
+ getSignatureID,
1256
1256
  getJar: request.jar,
1257
- generateTimestampRelative:generateTimestampRelative,
1258
- makeDefaults:makeDefaults,
1259
- parseAndCheckLogin:parseAndCheckLogin,
1257
+ generateTimestampRelative,
1258
+ makeDefaults,
1259
+ parseAndCheckLogin,
1260
1260
  saveCookies,
1261
1261
  getType,
1262
1262
  _formatAttachment,