Merge pull request #28608 from backstage/renovate/node-20.x-lockfile
chore(deps): update dependency @types/node to v20.17.23
This commit is contained in:
+5
-1
@@ -58,7 +58,11 @@ export const createCacheMiddleware = ({
|
||||
encoding?: BufferEncoding | ErrorCallback,
|
||||
callback?: ErrorCallback,
|
||||
) => {
|
||||
chunks.push(Buffer.from(data));
|
||||
// This cast is obviously weird, but it covers a type bug in @types/node
|
||||
// which does not gracefully handle union types.
|
||||
chunks.push(
|
||||
typeof data === 'string' ? Buffer.from(data) : Buffer.from(data),
|
||||
);
|
||||
if (typeof encoding === 'function') {
|
||||
return realWrite(data, encoding);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user