node-ainzfb-new 1.6.2823-test → 1.6.2902-test
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +5 -5
- package/utils.js +2 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "node-ainzfb-new",
|
3
|
-
"version": "1.6.
|
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": "
|
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": "
|
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.
|
43
|
+
"request": "^2.53.0",
|
44
44
|
"semver": "latest",
|
45
45
|
"sus-support": "git+https://github.com/amogusdevlol/sus-support.git",
|
46
|
-
"websocket-stream": "
|
46
|
+
"websocket-stream": "^5.5.0"
|
47
47
|
},
|
48
48
|
"engines": {
|
49
49
|
"node": ">=10.x"
|
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
|
|