Skip to content

Commit

Permalink
fix: native stuff (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
manas-vessel authored Aug 10, 2023
1 parent f56ba77 commit b0553b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vesselapi/integrations",
"version": "1.0.64",
"version": "1.0.65",
"description": "Vessel integrations",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
2 changes: 2 additions & 0 deletions src/sdk/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export const formatUpsertInputWithNative = <
>(
input: T,
): Omit<T, '$native'> => {
if (!input.$native) return input;

// Take keys from $native that overlap with the input and assign them to the input, recursively
const assigned = assign(omit(input, ['$native']), input.$native ?? {});

Expand Down

0 comments on commit b0553b9

Please sign in to comment.