fix(core): update

This commit is contained in:
Philipp Kunz 2023-11-03 01:37:10 +01:00
parent fa93f13306
commit 18dd110d4e
2 changed files with 3 additions and 5 deletions

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/smartrequest', name: '@push.rocks/smartrequest',
version: '2.0.19', version: '2.0.20',
description: 'dropin replacement for request' description: 'dropin replacement for request'
} }

View File

@ -1,14 +1,12 @@
import * as plugins from './smartrequest.plugins.js'; import * as plugins from './smartrequest.plugins.js';
import * as interfaces from './smartrequest.interfaces.js'; import * as interfaces from './smartrequest.interfaces.js';
import { IncomingMessage } from 'http'; export interface IExtendedIncomingMessage extends plugins.http.IncomingMessage {
export interface IExtendedIncomingMessage extends IncomingMessage {
body: any; body: any;
} }
const buildUtf8Response = ( const buildUtf8Response = (
incomingMessageArg: IncomingMessage, incomingMessageArg: plugins.http.IncomingMessage,
autoJsonParse = true autoJsonParse = true
): Promise<IExtendedIncomingMessage> => { ): Promise<IExtendedIncomingMessage> => {
const done = plugins.smartpromise.defer<IExtendedIncomingMessage>(); const done = plugins.smartpromise.defer<IExtendedIncomingMessage>();