@restorecommerce/facade 0.3.10 → 0.3.11

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.11](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@0.3.10...@restorecommerce/facade@0.3.11) (2022-03-15)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * decode only if data exists (prevent undefined error) ([3137108](https://github.com/restorecommerce/libs/commit/3137108e2524596628663ea2a81cdb24b46c1ee3))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.3.10](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@0.3.9...@restorecommerce/facade@0.3.10) (2022-03-15)
7
18
 
8
19
 
@@ -117,7 +117,7 @@ const recursiveBufferToValue = (data, model) => {
117
117
  return data;
118
118
  }
119
119
  if (model instanceof graphql_1.GraphQLObjectType) {
120
- if (model.name === 'GoogleProtobufAny') {
120
+ if (model.name === 'GoogleProtobufAny' && (data === null || data === void 0 ? void 0 : data.value)) {
121
121
  // TODO Use encoded once resource base supports it
122
122
  const decoded = JSON.parse(data.value.toString());
123
123
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/facade",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
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": "8bffdc70c928f7a76b006e952a16c9b3f79dcd9a"
111
+ "gitHead": "ff981ea7aa6e49d8437468a26611395f8447d5ab"
112
112
  }