Skip to content

Commit 58ab3e8

Browse files
committed
Merge branch 'master' into snyk-upgrade-5e0fcce6684aa5bee2f660563eb8c08e
2 parents 431ac8a + b398894 commit 58ab3e8

15 files changed

+297
-355
lines changed

package-lock.json

Lines changed: 78 additions & 78 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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@
4242
"intersect": "1.0.1",
4343
"jsonwebtoken": "8.5.1",
4444
"jwks-rsa": "1.11.0",
45-
"ldapjs": "2.2.0",
45+
"ldapjs": "2.2.1",
4646
"lodash": "4.17.20",
4747
"lru-cache": "5.1.1",
4848
"mime": "2.4.6",
4949
"mongodb": "3.6.3",
5050
"parse": "2.18.0",
51-
"pg-promise": "10.7.3",
51+
"pg-promise": "10.8.1",
5252
"pluralize": "8.0.0",
5353
"redis": "3.0.2",
5454
"semver": "7.3.2",
@@ -87,7 +87,7 @@
8787
"jsdoc": "3.6.3",
8888
"jsdoc-babel": "0.5.0",
8989
"lint-staged": "10.2.3",
90-
"mongodb-runner": "4.8.0",
90+
"mongodb-runner": "mongodb-js/runner",
9191
"node-fetch": "2.6.1",
9292
"nyc": "15.1.0",
9393
"prettier": "2.0.5"
@@ -113,7 +113,7 @@
113113
"node": ">= 8"
114114
},
115115
"bin": {
116-
"parse-server": "./bin/parse-server"
116+
"parse-server": "bin/parse-server"
117117
},
118118
"optionalDependencies": {
119119
"@node-rs/bcrypt": "0.4.1"

resources/buildConfigDefinitions.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,17 @@ function getCommentValue(comment) {
4040
}
4141

4242
function getENVPrefix(iface) {
43-
if (iface.id.name === 'ParseServerOptions') {
44-
return 'PARSE_SERVER_';
43+
const options = {
44+
'ParseServerOptions' : 'PARSE_SERVER_',
45+
'CustomPagesOptions' : 'PARSE_SERVER_CUSTOM_PAGES_',
46+
'LiveQueryServerOptions' : 'PARSE_LIVE_QUERY_SERVER_',
47+
'LiveQueryOptions' : 'PARSE_SERVER_LIVEQUERY_',
48+
'IdempotencyOptions' : 'PARSE_SERVER_EXPERIMENTAL_IDEMPOTENCY_',
49+
'AccountLockoutOptions' : 'PARSE_SERVER_ACCOUNT_LOCKOUT_',
50+
'PasswordPolicyOptions' : 'PARSE_SERVER_PASSWORD_POLICY_'
4551
}
46-
if (iface.id.name === 'CustomPagesOptions') {
47-
return 'PARSE_SERVER_CUSTOM_PAGES_';
48-
}
49-
if (iface.id.name === 'LiveQueryServerOptions') {
50-
return 'PARSE_LIVE_QUERY_SERVER_';
51-
}
52-
if (iface.id.name === 'LiveQueryOptions') {
53-
return 'PARSE_SERVER_LIVEQUERY_';
54-
}
55-
if (iface.id.name === 'IdempotencyOptions') {
56-
return 'PARSE_SERVER_EXPERIMENTAL_IDEMPOTENCY_';
52+
if (options[iface.id.name]) {
53+
return options[iface.id.name]
5754
}
5855
}
5956

0 commit comments

Comments
 (0)