@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[ctx.propName] = result;
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[ctx.propName] = result2;
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.119",
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.119",
45
- "@aeriajs/common": "^0.0.76",
46
- "@aeriajs/entrypoint": "^0.0.78",
47
- "@aeriajs/http": "^0.0.87",
48
- "@aeriajs/security": "^0.0.119",
49
- "@aeriajs/types": "^0.0.66",
50
- "@aeriajs/validation": "^0.0.79"
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",