Skip to content

Commit 74db98e

Browse files
authored
Merge branch 'alpha' into forgotPassword
2 parents 101211f + 76c7a6f commit 74db98e

File tree

14 files changed

+723
-53
lines changed

14 files changed

+723
-53
lines changed

changelogs/CHANGELOG_alpha.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# [6.0.0-alpha.21](https://github.com/parse-community/parse-server/compare/6.0.0-alpha.20...6.0.0-alpha.21) (2023-01-06)
2+
3+
4+
### Features
5+
6+
* Add request rate limiter based on IP address ([#8174](https://github.com/parse-community/parse-server/issues/8174)) ([6c79f6a](https://github.com/parse-community/parse-server/commit/6c79f6a69e25e47846e3b0685d6bdfd6b91086b1))
7+
18
# [6.0.0-alpha.20](https://github.com/parse-community/parse-server/compare/6.0.0-alpha.19...6.0.0-alpha.20) (2023-01-06)
29

310

package-lock.json

Lines changed: 21 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse-server",
3-
"version": "6.0.0-alpha.20",
3+
"version": "6.0.0-alpha.21",
44
"description": "An express module providing a Parse-compatible API server",
55
"main": "lib/index.js",
66
"repository": {
@@ -32,6 +32,7 @@
3232
"cors": "2.8.5",
3333
"deepcopy": "2.1.0",
3434
"express": "4.18.2",
35+
"express-rate-limit": "6.6.0",
3536
"follow-redirects": "1.15.2",
3637
"graphql": "16.6.0",
3738
"graphql-list-fields": "2.0.2",
@@ -48,6 +49,7 @@
4849
"mongodb": "4.10.0",
4950
"mustache": "4.2.0",
5051
"parse": "3.4.2",
52+
"path-to-regexp": "0.1.7",
5153
"pg-monitor": "1.5.0",
5254
"pg-promise": "10.12.1",
5355
"pluralize": "8.0.0",
@@ -97,8 +99,8 @@
9799
"mock-mail-adapter": "file:spec/dependencies/mock-mail-adapter",
98100
"mongodb-runner": "4.8.1",
99101
"mongodb-version-list": "1.0.0",
100-
"node-fetch": "3.2.10",
101102
"node-abort-controller": "3.0.1",
103+
"node-fetch": "3.2.10",
102104
"nyc": "15.1.0",
103105
"prettier": "2.0.5",
104106
"semantic-release": "17.4.6",

resources/buildConfigDefinitions.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const nestedOptionEnvPrefix = {
4444
SecurityOptions: 'PARSE_SERVER_SECURITY_',
4545
SchemaOptions: 'PARSE_SERVER_SCHEMA_',
4646
LogLevels: 'PARSE_SERVER_LOG_LEVELS_',
47+
RateLimitOptions: 'PARSE_SERVER_RATE_LIMIT_',
4748
};
4849

4950
function last(array) {
@@ -111,7 +112,9 @@ function processProperty(property, iface) {
111112
}
112113
let defaultValue;
113114
if (defaultLine) {
114-
defaultValue = defaultLine.split(' ')[1];
115+
const defaultArray = defaultLine.split(' ');
116+
defaultArray.shift();
117+
defaultValue = defaultArray.join(' ');
115118
}
116119
let type = property.value.type;
117120
let isRequired = true;

0 commit comments

Comments
 (0)