node-ainzfb-new 1.6.2819-test → 1.6.2902-test

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-ainzfb-new",
3
- "version": "1.6.2819-test",
3
+ "version": "1.6.2902-test",
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",
@@ -28,11 +28,11 @@
28
28
  "better-sqlite3": "latest",
29
29
  "bluebird": "^2.11.0",
30
30
  "chalk": "^4.1.2",
31
- "cheerio": "latest",
31
+ "cheerio": "^0.22.0",
32
32
  "crypto": "latest",
33
33
  "gettext.js": "^1.1.1",
34
34
  "got": "^11.8.3",
35
- "https-proxy-agent": "latest",
35
+ "https-proxy-agent": "^4.0.0",
36
36
  "is-hexcolor": "^1.0.0",
37
37
  "lodash": "",
38
38
  "mqtt": "^4.3.7",
@@ -40,10 +40,10 @@
40
40
  "npmlog": "^1.2.0",
41
41
  "path": "latest",
42
42
  "pretty-ms": "latest",
43
- "request": "^2.88.2",
43
+ "request": "^2.53.0",
44
44
  "semver": "latest",
45
45
  "sus-support": "git+https://github.com/amogusdevlol/sus-support.git",
46
- "websocket-stream": "latest"
46
+ "websocket-stream": "^5.5.0"
47
47
  },
48
48
  "engines": {
49
49
  "node": ">=10.x"
package/src/getUserID.js CHANGED
@@ -43,7 +43,7 @@ module.exports = function (defaultFuncs, api, ctx) {
43
43
  };
44
44
 
45
45
  defaultFuncs
46
- .getv2("https://www.facebook.com/ajax/typeahead/search.php", ctx.jar, form)
46
+ .get("https://www.facebook.com/ajax/typeahead/search.php", ctx.jar, form)
47
47
  .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
48
48
  .then(function (resData) {
49
49
  if (resData.error) throw resData;
package/utils.js CHANGED
@@ -61,7 +61,7 @@ function get(url, jar, qs, options, ctx) {
61
61
  });
62
62
  }
63
63
 
64
- function getv2(url, jar, qs, options, ctx) {
64
+ /*function getv2(url, jar, qs, options, ctx) {
65
65
  // I'm still confused about this
66
66
  if (getType(qs) === "Object")
67
67
  for (var prop in qs)
@@ -79,7 +79,7 @@ function getv2(url, jar, qs, options, ctx) {
79
79
  return request(op).then(function(res) {
80
80
  return res;
81
81
  });
82
- }
82
+ }*/
83
83
 
84
84
  function post(url, jar, form, options, ctx, customHeader) {
85
85
  let headers = getHeaders(url, options);
@@ -99,7 +99,7 @@ function post(url, jar, form, options, ctx, customHeader) {
99
99
  });
100
100
  }
101
101
 
102
- function postv2(url, jar, form, options, ctx, customHeader) {
102
+ /*function postv2(url, jar, form, options, ctx, customHeader) {
103
103
  let headers = getHeaders(url, options);
104
104
  headers['sec-fetch-site'] = 'same-origin';
105
105
  var op = {
@@ -115,7 +115,7 @@ function postv2(url, jar, form, options, ctx, customHeader) {
115
115
  return request(op).then(function(res) {
116
116
  return res;
117
117
  });
118
- }
118
+ }*/
119
119
 
120
120
  function postFormData(url, jar, form, qs, options, ctx) {
121
121
  var headers = getHeaders(url, options, ctx);
@@ -1245,8 +1245,6 @@ module.exports = {
1245
1245
  isReadableStream:isReadableStream,
1246
1246
  get,
1247
1247
  post,
1248
- getv2,
1249
- postv2,
1250
1248
  postFormData:postFormData,
1251
1249
  generateThreadingID:generateThreadingID,
1252
1250
  generateOfflineThreadingID:generateOfflineThreadingID,