@aeriajs/core 0.0.164 → 0.0.165

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.
@@ -5,7 +5,7 @@ const prepareCreate = (doc, description) => {
5
5
  const result = Object.assign({}, description.defaults || {});
6
6
  for (const propName in doc) {
7
7
  const value = doc[propName];
8
- if (value === undefined) {
8
+ if (value === null || value === undefined) {
9
9
  continue;
10
10
  }
11
11
  result[propName] = value;
@@ -19,7 +19,7 @@ const prepareUpdate = (doc) => {
19
19
  };
20
20
  for (const propName in doc) {
21
21
  const value = doc[propName];
22
- if (value === undefined) {
22
+ if (value === null || value === undefined) {
23
23
  result.$unset[propName] = value;
24
24
  continue;
25
25
  }
@@ -3,7 +3,7 @@ const prepareCreate = (doc, description) => {
3
3
  const result = Object.assign({}, description.defaults || {});
4
4
  for (const propName in doc) {
5
5
  const value = doc[propName];
6
- if (value === void 0) {
6
+ if (value === null || value === void 0) {
7
7
  continue;
8
8
  }
9
9
  result[propName] = value;
@@ -17,7 +17,7 @@ const prepareUpdate = (doc) => {
17
17
  };
18
18
  for (const propName in doc) {
19
19
  const value = doc[propName];
20
- if (value === void 0) {
20
+ if (value === null || value === void 0) {
21
21
  result.$unset[propName] = value;
22
22
  continue;
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/core",
3
- "version": "0.0.164",
3
+ "version": "0.0.165",
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.164",
46
- "@aeriajs/common": "^0.0.100",
47
- "@aeriajs/entrypoint": "^0.0.102",
48
- "@aeriajs/http": "^0.0.113",
49
- "@aeriajs/security": "^0.0.164",
45
+ "@aeriajs/builtins": "^0.0.165",
46
+ "@aeriajs/common": "^0.0.101",
47
+ "@aeriajs/entrypoint": "^0.0.103",
48
+ "@aeriajs/http": "^0.0.114",
49
+ "@aeriajs/security": "^0.0.165",
50
50
  "@aeriajs/types": "^0.0.86",
51
- "@aeriajs/validation": "^0.0.103"
51
+ "@aeriajs/validation": "^0.0.104"
52
52
  },
53
53
  "dependencies": {
54
54
  "mongodb": "^6.5.0",