@restorecommerce/facade 0.3.10 → 0.3.13

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,36 @@
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.13](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@0.3.12...@restorecommerce/facade@0.3.13) (2022-03-29)
7
+
8
+ **Note:** Version bump only for package @restorecommerce/facade
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.3.12](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@0.3.11...@restorecommerce/facade@0.3.12) (2022-03-23)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **facade:** include scope for traversal operation as well ([cf57b73](https://github.com/restorecommerce/libs/commit/cf57b733f1788fd07d8a63ca0c9614c954b577d9))
20
+
21
+
22
+
23
+
24
+
25
+ ## [0.3.11](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@0.3.10...@restorecommerce/facade@0.3.11) (2022-03-15)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * decode only if data exists (prevent undefined error) ([3137108](https://github.com/restorecommerce/libs/commit/3137108e2524596628663ea2a81cdb24b46c1ee3))
31
+
32
+
33
+
34
+
35
+
6
36
  ## [0.3.10](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@0.3.9...@restorecommerce/facade@0.3.10) (2022-03-15)
7
37
 
8
38
 
@@ -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 {
@@ -35,7 +35,7 @@ exports.IGoogleProtobufAny = new definition_1.GraphQLInputObjectType({
35
35
  });
36
36
  const googleProtobufAnyName = '.google.protobuf.Any';
37
37
  const Mutate = ['Create', 'Update', 'Upsert'];
38
- const CRUD_OPERATION_NAMES = ['Cretae', 'Update', 'Upsert', 'Delete', 'Read'];
38
+ const CRUD_TRAVERSAL_OP_NAMES = ['Cretae', 'Update', 'Upsert', 'Delete', 'Read', 'Traversal'];
39
39
  const TodoScalar = new definition_1.GraphQLScalarType({
40
40
  name: 'TodoScalar',
41
41
  serialize: () => {
@@ -150,7 +150,7 @@ const registerTyping = (protoPackage, message, methodDef, opts, inputOpts) => {
150
150
  insertMode = true;
151
151
  }
152
152
  // add scope
153
- if ((CRUD_OPERATION_NAMES.indexOf(method.name) > -1) && type === method.inputType) {
153
+ if ((CRUD_TRAVERSAL_OP_NAMES.indexOf(method.name) > -1) && type === method.inputType) {
154
154
  crudOperation = true;
155
155
  }
156
156
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/facade",
3
- "version": "0.3.10",
3
+ "version": "0.3.13",
4
4
  "description": "Facade for Restorecommerce microservices",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "@restorecommerce/grpc-client": "^0.3.1",
28
28
  "@restorecommerce/kafka-client": "^0.3.1",
29
29
  "@restorecommerce/logger": "^0.12.1",
30
- "@restorecommerce/rc-grpc-clients": "^0.4.3",
30
+ "@restorecommerce/rc-grpc-clients": "^0.4.4",
31
31
  "@restorecommerce/service-config": "^0.4.25",
32
32
  "apollo-server-core": "^3.6.3",
33
33
  "apollo-server-koa": "^3.6.3",
@@ -108,5 +108,5 @@
108
108
  "publishConfig": {
109
109
  "access": "public"
110
110
  },
111
- "gitHead": "8bffdc70c928f7a76b006e952a16c9b3f79dcd9a"
111
+ "gitHead": "971b655c0ca23f4d0a2ad9d4d8a697df575d4bf2"
112
112
  }