@genesislcap/blank-app-seed 3.10.4 → 3.10.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/.genx/package.json +1 -1
- package/CHANGELOG.md +7 -0
- package/client/src/utils/fdc3.ts +18 -2
- package/package.json +1 -1
package/.genx/package.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.10.5](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.10.4...v3.10.5) (2024-05-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* Using stripping out bigints - GENC-500 (#220) a1e7d84
|
|
9
|
+
|
|
3
10
|
## [3.10.4](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.10.3...v3.10.4) (2024-05-22)
|
|
4
11
|
|
|
5
12
|
|
package/client/src/utils/fdc3.ts
CHANGED
|
@@ -52,11 +52,27 @@ export const listenForIntent = async (
|
|
|
52
52
|
addIntentListener(intent, (result) => callback(result));
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
+
export const stripOutBigInt = (object: any): any => {
|
|
56
|
+
|
|
57
|
+
object = { ...object };
|
|
58
|
+
|
|
59
|
+
Object.keys(object).forEach(key => {
|
|
60
|
+
if (typeof object[key] === 'bigint') {
|
|
61
|
+
delete object[key]
|
|
62
|
+
} else if (typeof object[key] === 'object') {
|
|
63
|
+
object[key] = stripOutBigInt(object[key]);
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
|
|
67
|
+
return object;
|
|
68
|
+
}
|
|
69
|
+
|
|
55
70
|
export const sendEventOnChannel = (channelName: string, type: string) => {
|
|
56
71
|
return async (e: any) => {
|
|
57
72
|
// check for ag-grid-specific events, fall back to standard events
|
|
58
|
-
const payload = e.data
|
|
59
|
-
|
|
73
|
+
const payload = e.data || e.detail;
|
|
74
|
+
const sanitised = stripOutBigInt(payload);
|
|
75
|
+
sendMessageOnChannel(channelName, type, sanitised);
|
|
60
76
|
};
|
|
61
77
|
};
|
|
62
78
|
{{/if}}
|