Skip to content

Commit 1bd0c78

Browse files
authored
Merge branch 'main' into main
2 parents 64cd50d + 4235430 commit 1bd0c78

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "salesforce-pubsub-api-client",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"type": "module",
55
"description": "A node client for the Salesforce Pub/Sub API",
66
"author": "pozil",
@@ -22,7 +22,7 @@
2222
"prepublishOnly": "npm run build"
2323
},
2424
"dependencies": {
25-
"@grpc/grpc-js": "^1.8.0",
25+
"@grpc/grpc-js": "^1.8.4",
2626
"@grpc/proto-loader": "^0.7.4",
2727
"avro-js": "^1.11.1",
2828
"certifi": "^14.5.15",

src/eventParser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export function parseEvent(schema, event) {
44
const allFields = schema.type.getFields();
55
const replayId = decodeReplayId(event.replayId);
66
const payload = schema.type.fromBuffer(event.event.payload); // This schema is the same which we retreived earlier in the GetSchema rpc.
7-
// Perform only if its a CDC Event
7+
// Parse CDC header if available
88
if (payload.ChangeEventHeader) {
99
try {
1010
payload.ChangeEventHeader.nulledFields = parseFieldBitmaps(

0 commit comments

Comments
 (0)