@aeriajs/core 0.0.186 → 0.0.188
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.
|
@@ -312,7 +312,7 @@ const recurse = async (target, ctx) => {
|
|
|
312
312
|
if (!ctx.options.allowOperators) {
|
|
313
313
|
return types_1.Result.error(types_1.ACError.InsecureOperator);
|
|
314
314
|
}
|
|
315
|
-
if (security_1.INSECURE_OPERATORS.includes(key)) {
|
|
315
|
+
if (!ctx.options.context?.config.security.allowInsecureOperators && security_1.INSECURE_OPERATORS.includes(key)) {
|
|
316
316
|
return types_1.Result.error(types_1.ACError.InsecureOperator);
|
|
317
317
|
}
|
|
318
318
|
}
|
|
@@ -276,7 +276,7 @@ const recurse = async (target, ctx) => {
|
|
|
276
276
|
if (!ctx.options.allowOperators) {
|
|
277
277
|
return Result.error(ACError.InsecureOperator);
|
|
278
278
|
}
|
|
279
|
-
if (INSECURE_OPERATORS.includes(key)) {
|
|
279
|
+
if (!ctx.options.context?.config.security.allowInsecureOperators && INSECURE_OPERATORS.includes(key)) {
|
|
280
280
|
return Result.error(ACError.InsecureOperator);
|
|
281
281
|
}
|
|
282
282
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.188",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"aeriaMain": "tests/fixtures/aeriaMain.js",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"mongodb-memory-server": "^9.2.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@aeriajs/builtins": "^0.0.
|
|
46
|
-
"@aeriajs/common": "^0.0.
|
|
47
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
48
|
-
"@aeriajs/http": "^0.0.
|
|
49
|
-
"@aeriajs/security": "^0.0.
|
|
50
|
-
"@aeriajs/types": "^0.0.
|
|
51
|
-
"@aeriajs/validation": "^0.0.
|
|
45
|
+
"@aeriajs/builtins": "^0.0.188",
|
|
46
|
+
"@aeriajs/common": "^0.0.115",
|
|
47
|
+
"@aeriajs/entrypoint": "^0.0.118",
|
|
48
|
+
"@aeriajs/http": "^0.0.129",
|
|
49
|
+
"@aeriajs/security": "^0.0.188",
|
|
50
|
+
"@aeriajs/types": "^0.0.98",
|
|
51
|
+
"@aeriajs/validation": "^0.0.118"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"mongodb": "^6.5.0",
|