@restorecommerce/facade 0.3.4 → 0.3.5

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.3.5](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@0.3.4...@restorecommerce/facade@0.3.5) (2022-03-04)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **facade:** added null check ([2ff25fe](https://github.com/restorecommerce/libs/commit/2ff25febd04ffa624d2ba4a7b50179726abfe8da))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.3.4](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@0.3.3...@restorecommerce/facade@0.3.4) (2022-03-04)
7
18
 
8
19
 
@@ -64,7 +64,7 @@ const recursiveUploadToBuffer = async (data, model) => {
64
64
  if (model instanceof definition_1.GraphQLInputObjectType) {
65
65
  const fields = model.getFields();
66
66
  for (let key of Object.keys(fields)) {
67
- if (key in data) {
67
+ if (data && key in data) {
68
68
  data[key] = await (0, exports.recursiveUploadToBuffer)(data[key], fields[key].type);
69
69
  }
70
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/facade",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Facade for Restorecommerce microservices",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -108,5 +108,5 @@
108
108
  "publishConfig": {
109
109
  "access": "public"
110
110
  },
111
- "gitHead": "37c47aa3f9570ca31f7ec9e340ebbef8c4f3d7e3"
111
+ "gitHead": "113f249f83cd1ba3e6f60ed4f16329c71cb644ce"
112
112
  }