@aeriajs/core 0.0.183 → 0.0.185
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.
|
@@ -46,7 +46,7 @@ export declare const traverseDocument: <TWhat>(what: TWhat, description: Descrip
|
|
|
46
46
|
readonly result: TWhat;
|
|
47
47
|
} | {
|
|
48
48
|
readonly _tag: "Error";
|
|
49
|
-
readonly error: ACError.InsecureOperator |
|
|
49
|
+
readonly error: ACError.InsecureOperator | TraverseError | ValidationError;
|
|
50
50
|
readonly result: undefined;
|
|
51
51
|
}>;
|
|
52
52
|
export {};
|
|
@@ -80,6 +80,11 @@ const cleanupReferences = async (value, ctx) => {
|
|
|
80
80
|
}
|
|
81
81
|
referenceIds = referenceIds.filter((oldId) => !value.some((valueId) => valueId.equals(oldId)));
|
|
82
82
|
}
|
|
83
|
+
else {
|
|
84
|
+
if (referenceIds.equals(value)) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
83
88
|
const refMap = await (0, reference_js_1.getReferences)(ctx.options.description.properties);
|
|
84
89
|
const reference = (0, common_1.getValueFromPath)(refMap, ctx.propPath);
|
|
85
90
|
await (0, cascadingRemove_js_1.preferredRemove)(referenceIds, reference, await (0, context_js_1.createContext)({
|
|
@@ -54,6 +54,10 @@ const cleanupReferences = async (value, ctx) => {
|
|
|
54
54
|
throw new Error();
|
|
55
55
|
}
|
|
56
56
|
referenceIds = referenceIds.filter((oldId) => !value.some((valueId) => valueId.equals(oldId)));
|
|
57
|
+
} else {
|
|
58
|
+
if (referenceIds.equals(value)) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
57
61
|
}
|
|
58
62
|
const refMap = await getReferences(ctx.options.description.properties);
|
|
59
63
|
const reference = getValueFromPath(refMap, ctx.propPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.185",
|
|
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.185",
|
|
46
|
+
"@aeriajs/common": "^0.0.113",
|
|
47
|
+
"@aeriajs/entrypoint": "^0.0.116",
|
|
48
|
+
"@aeriajs/http": "^0.0.127",
|
|
49
|
+
"@aeriajs/security": "^0.0.185",
|
|
50
|
+
"@aeriajs/types": "^0.0.96",
|
|
51
|
+
"@aeriajs/validation": "^0.0.116"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"mongodb": "^6.5.0",
|