@restorecommerce/facade 0.3.7 → 0.3.8
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 +11 -0
- package/dist/gql/protos/utils.d.ts +1 -1
- package/dist/gql/protos/utils.js +1 -1
- package/package.json +2 -2
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.8](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@0.3.7...@restorecommerce/facade@0.3.8) (2022-03-14)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* **facade:** check if buffer field is actually a buffer ([d0930dc](https://github.com/restorecommerce/libs/commit/d0930dcd979d0a2acc101890517e43c7f7d6e2df))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
6
17
|
## [0.3.7](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@0.3.6...@restorecommerce/facade@0.3.7) (2022-03-14)
|
7
18
|
|
8
19
|
|
@@ -2,7 +2,7 @@ import { TypingData } from './registry';
|
|
2
2
|
export declare const capitalizeProtoName: (name: string) => string;
|
3
3
|
export declare const convertyCamelToSnakeCase: (entity: string) => string;
|
4
4
|
export declare const getKeys: (obj: any) => string[];
|
5
|
-
export declare const decodeBufferFields: (items: any, bufferFields: string[]) => any;
|
5
|
+
export declare const decodeBufferFields: (items: any[], bufferFields: string[]) => any;
|
6
6
|
/**
|
7
7
|
* converts enum string values to integers reading from the inputTyping
|
8
8
|
* @param TypingData input typing
|
package/dist/gql/protos/utils.js
CHANGED
@@ -36,7 +36,7 @@ const decodeBufferFields = (items, bufferFields) => {
|
|
36
36
|
if (item && item.payload) {
|
37
37
|
const existingBufferFields = _.intersection(Object.keys(item.payload), bufferFields);
|
38
38
|
for (let bufferField of existingBufferFields) {
|
39
|
-
if (item.payload[bufferField] && item.payload[bufferField].value) {
|
39
|
+
if (item.payload[bufferField] && item.payload[bufferField].value && item.payload[bufferField].value instanceof Buffer) {
|
40
40
|
item.payload[bufferField].value = JSON.parse(item.payload[bufferField].value.toString());
|
41
41
|
}
|
42
42
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@restorecommerce/facade",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.8",
|
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": "
|
111
|
+
"gitHead": "eb949ff49d05ba48aa832cdea91e584c4dbe4c98"
|
112
112
|
}
|