Comparing version 0.0.5-alpha-20230306141539-37bb831 to 0.0.5-alpha-20230306141834-0d7569e
@@ -13,3 +13,3 @@ 'use strict'; | ||
const LAZY_SERIALIZED_RESPONSE = Symbol("LAZY_SERIALIZED_RESPONSE"); | ||
const LAZY_SERIALIZED_RESPONSE = Symbol('LAZY_SERIALIZED_RESPONSE'); | ||
const defaultSerializer = obj => JSON.stringify(obj); | ||
@@ -21,3 +21,3 @@ function isLazySerializedResponse(response) { | ||
let resolve; | ||
const promise = new Promise((_resolve) => { | ||
const promise = new Promise(_resolve => { | ||
resolve = _resolve; | ||
@@ -41,3 +41,3 @@ }); | ||
...init === null || init === void 0 ? void 0 : init.headers, | ||
"Content-Type": "application/json" | ||
'Content-Type': 'application/json', | ||
}, | ||
@@ -44,0 +44,0 @@ })); |
{ | ||
"name": "fets", | ||
"version": "0.0.5-alpha-20230306141539-37bb831", | ||
"version": "0.0.5-alpha-20230306141834-0d7569e", | ||
"description": "TypeScript HTTP Framework focusing on e2e type-safety, easy setup, performance & great developer experience", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
import { TypedResponseCtor } from './typed-fetch'; | ||
import { JSONSerializer } from "./types"; | ||
import { JSONSerializer } from './types'; | ||
export declare const LAZY_SERIALIZED_RESPONSE: unique symbol; | ||
@@ -4,0 +4,0 @@ export declare const defaultSerializer: JSONSerializer; |
import { FromSchema as FromSchemaOriginal, JSONSchema as JSONSchemaOrBoolean } from 'json-schema-to-ts'; | ||
import { ServerAdapter, ServerAdapterOptions, ServerAdapterPlugin, ServerAdapterRequestHandler } from '@whatwg-node/server'; | ||
import { LazySerializedResponse } from './Response'; | ||
import type { HTTPMethod, TypedRequest, TypedResponse, TypedResponseWithJSONStatusMap } from './typed-fetch'; | ||
import { LazySerializedResponse } from './Response'; | ||
export { TypedRequest as RouterRequest }; | ||
@@ -6,0 +6,0 @@ export type JSONSerializer = (obj: any) => string; |
Sorry, the diff of this file is not supported yet
100258