fix(core): update

This commit is contained in:
Philipp Kunz 2024-02-29 22:51:44 +01:00
parent 2274afcd38
commit 924bc2c5a7
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@api.global/typedrequest', name: '@api.global/typedrequest',
version: '3.0.10', version: '3.0.11',
description: 'make typed requests towards apis' description: 'make typed requests towards apis'
} }

View File

@ -23,6 +23,9 @@ export class VirtualStream<T = ArrayBufferLike> implements plugins.typedRequestI
originalPayload?: any, originalPayload?: any,
path = [] path = []
): any { ): any {
if (!objectPayload) {
return objectPayload;
}
if (plugins.smartbuffer.isBufferLike(objectPayload)) { if (plugins.smartbuffer.isBufferLike(objectPayload)) {
return objectPayload; return objectPayload;
} }