fix(core): update
This commit is contained in:
parent
fa93f13306
commit
18dd110d4e
@ -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'
|
||||||
}
|
}
|
||||||
|
@ -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>();
|
||||||
|
Loading…
Reference in New Issue
Block a user