Skip to content

Commit

Permalink
Merge pull request #1626 from balena-io/update-tar
Browse files Browse the repository at this point in the history
Update `tar` to 7.1.0 and remove todo type casting workaround
  • Loading branch information
thgreasi committed May 4, 2024
2 parents 16b419a + 4f9f350 commit 066833f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 51 deletions.
58 changes: 13 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"statuses": "^2.0.1",
"strict-event-emitter-types": "^2.0.0",
"supervisor": "^0.12.0",
"tar": "^7.0.0",
"tar": "^7.1.0",
"thirty-two": "^1.0.2",
"ts-node": "^10.9.2",
"typed-error": "^3.2.2",
Expand Down
6 changes: 1 addition & 5 deletions src/features/contracts/contracts-directory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,7 @@ export const fetchContractsLocally = async (repos: RepositoryInfo[]) => {
}
}) as unknown as NodeJS.ReadableStream;

await stream.promises.pipeline(
get,
// TODO: Drop the cast once https://github.com/isaacs/node-tar/issues/409 gets fixed
untar as ReturnType<typeof tar.extract> & NodeJS.WritableStream,
);
await stream.promises.pipeline(get, untar);
}),
);
};
Expand Down

0 comments on commit 066833f

Please sign in to comment.