catto.js 0.4.2 → 0.4.3

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/Server.js CHANGED
@@ -4,8 +4,13 @@ var expressWs = require("express-ws");
4
4
  var http = require("http");
5
5
  var https = require("https");
6
6
  var bodyParser = require("body-parser");
7
- var urlencodedParser = bodyParser.urlencoded({"extended":!0});
8
- var jsonParser = bodyParser.json();
7
+ var urlencodedParser = bodyParser.urlencoded({
8
+ "limit": "50mb",
9
+ "extended": !0
10
+ });
11
+ var jsonParser = bodyParser.json({
12
+ "limit": "50mb"
13
+ });
9
14
  var fs = require("fs");
10
15
  var path = require("path");
11
16
  var session = require("express-session");
package/User.js CHANGED
@@ -11,7 +11,9 @@ module.exports = class {
11
11
  "flags": 0,
12
12
  "banner": "",
13
13
  "banner_color": "",
14
+ "bannerColor": "",
14
15
  "accent_color": 0,
16
+ "accentColor": 0,
15
17
  "locale": "",
16
18
  "mfa_enabled": !1,
17
19
  "premium_type": 0,
@@ -99,7 +101,7 @@ module.exports = class {
99
101
  return this.options.banner;
100
102
  }
101
103
  get bannerColor() {
102
- return this.options.banner_color;
104
+ return this.options.banner_color || this.options.bannerColor;
103
105
  }
104
106
  get banner() {
105
107
  var banneru = this.bannerHash;
@@ -113,7 +115,7 @@ module.exports = class {
113
115
  return banneru;
114
116
  }
115
117
  get accentColor() {
116
- return this.options.accent_color;
118
+ return this.options.accent_color || this.options.accentColor;
117
119
  }
118
120
  get lang() {
119
121
  return this.options.locale;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catto.js",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Universal module for everything.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -40,10 +40,10 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "body-parser": "^1.20.2",
43
- "discord.js": "^14.8.0",
43
+ "discord.js": "^14.14.1",
44
44
  "ejs": "^3.1.9",
45
45
  "express": "^4.18.2",
46
- "express-session": "^1.17.3",
46
+ "express-session": "^1.18.0",
47
47
  "express-ws": "^5.0.2",
48
48
  "request": "^2.88.2",
49
49
  "session-file-store": "^1.5.0",
package/request.js CHANGED
@@ -36,6 +36,15 @@ function post(options) {
36
36
  return wrap("post", options);
37
37
  }
38
38
 
39
+ /**
40
+ * PATCH request.
41
+ * @param {object} options
42
+ * @return {promise}
43
+ */
44
+ function patch(options) {
45
+ return wrap("patch", options);
46
+ }
47
+
39
48
  /**
40
49
  * PUT request.
41
50
  * @param {object} options
@@ -46,5 +55,5 @@ function put(options) {
46
55
  }
47
56
 
48
57
  module.exports = {
49
- get, post, put
50
- };
58
+ get, post, patch, put
59
+ };