@aeriajs/core 0.0.119 → 0.0.121
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.
|
@@ -399,7 +399,9 @@ const traverseDocument = async (what, description, _options) => {
|
|
|
399
399
|
const mutateTarget = (fn) => {
|
|
400
400
|
return async (value, ctx) => {
|
|
401
401
|
const result = await fn(value, ctx);
|
|
402
|
-
ctx.target
|
|
402
|
+
if (ctx.target && typeof ctx.target === 'object') {
|
|
403
|
+
ctx.target[ctx.propName] = result;
|
|
404
|
+
}
|
|
403
405
|
return result;
|
|
404
406
|
};
|
|
405
407
|
};
|
|
@@ -357,7 +357,9 @@ export const traverseDocument = async (what, description, _options) => {
|
|
|
357
357
|
const mutateTarget = (fn) => {
|
|
358
358
|
return async (value, ctx) => {
|
|
359
359
|
const result2 = await fn(value, ctx);
|
|
360
|
-
ctx.target
|
|
360
|
+
if (ctx.target && typeof ctx.target === "object") {
|
|
361
|
+
ctx.target[ctx.propName] = result2;
|
|
362
|
+
}
|
|
361
363
|
return result2;
|
|
362
364
|
};
|
|
363
365
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.121",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"mongodb-memory-server": "^9.2.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@aeriajs/builtins": "^0.0.
|
|
45
|
-
"@aeriajs/common": "^0.0.
|
|
46
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
47
|
-
"@aeriajs/http": "^0.0.
|
|
48
|
-
"@aeriajs/security": "^0.0.
|
|
49
|
-
"@aeriajs/types": "^0.0.
|
|
50
|
-
"@aeriajs/validation": "^0.0.
|
|
44
|
+
"@aeriajs/builtins": "^0.0.121",
|
|
45
|
+
"@aeriajs/common": "^0.0.77",
|
|
46
|
+
"@aeriajs/entrypoint": "^0.0.79",
|
|
47
|
+
"@aeriajs/http": "^0.0.88",
|
|
48
|
+
"@aeriajs/security": "^0.0.121",
|
|
49
|
+
"@aeriajs/types": "^0.0.67",
|
|
50
|
+
"@aeriajs/validation": "^0.0.80"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"mongodb": "^6.5.0",
|