https://github.com/googleapis/nodejs-storage/issues/390 points out that OOM happens when replaceProjectIdToken() is passed { 'Content-Type': 'image/jpeg', body: [DestroyableTransform] } where the function tries to iterate through the stream's properties.
The stream doesn't contain strings that needs replacing, so let's skip this.
https://github.com/googleapis/nodejs-storage/issues/390 points out that OOM happens when
replaceProjectIdToken()
is passed{ 'Content-Type': 'image/jpeg', body: [DestroyableTransform] }
where the function tries to iterate through the stream's properties.The stream doesn't contain strings that needs replacing, so let's skip this.