@aeriajs/core 0.0.135 → 0.0.136

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.
@@ -63,6 +63,9 @@ const disposeOldFiles = async (ctx, options = {}) => {
63
63
  return types_1.Result.error(types_1.TraverseError.InvalidDocumentId);
64
64
  }
65
65
  let fileIds = (0, common_1.getValueFromPath)(doc, ctx.propPath);
66
+ if (!fileIds) {
67
+ return;
68
+ }
66
69
  if (options.preserveIds) {
67
70
  fileIds = fileIds.filter((id) => !id || !options.preserveIds.some((fromId) => {
68
71
  return id.equals(fromId);
@@ -38,6 +38,9 @@ const disposeOldFiles = async (ctx, options = {}) => {
38
38
  return Result.error(TraverseError.InvalidDocumentId);
39
39
  }
40
40
  let fileIds = getValueFromPath(doc, ctx.propPath);
41
+ if (!fileIds) {
42
+ return;
43
+ }
41
44
  if (options.preserveIds) {
42
45
  fileIds = fileIds.filter((id) => !id || !options.preserveIds.some((fromId) => {
43
46
  return id.equals(fromId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/core",
3
- "version": "0.0.135",
3
+ "version": "0.0.136",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -41,11 +41,11 @@
41
41
  "mongodb-memory-server": "^9.2.0"
42
42
  },
43
43
  "peerDependencies": {
44
- "@aeriajs/builtins": "^0.0.135",
44
+ "@aeriajs/builtins": "^0.0.136",
45
45
  "@aeriajs/common": "^0.0.85",
46
46
  "@aeriajs/entrypoint": "^0.0.87",
47
47
  "@aeriajs/http": "^0.0.96",
48
- "@aeriajs/security": "^0.0.135",
48
+ "@aeriajs/security": "^0.0.136",
49
49
  "@aeriajs/types": "^0.0.73",
50
50
  "@aeriajs/validation": "^0.0.88"
51
51
  },