New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

elysia

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elysia - npm Package Compare versions

Comparing version

to
1.3.0-exp.9

@@ -734,8 +734,12 @@ "use strict";

validator.body.schema,
validator.body.schema.type === "object" ? {} : void 0
validator.body.schema.type === "object" || validator.body.schema[import_typebox.Kind] === "Import" && validator.body.schema.$defs[validator.body.schema.$ref][import_typebox.Kind] === "Object" ? {} : void 0
);
const parsed = typeof value === "object" ? JSON.stringify(value) : typeof value === "string" ? `'${value}'` : value;
fnLiteral += `if(typeof c.body==='object')c.body=Object.assign(${parsed},c.body)
else c.body=${parsed}
if (value !== void 0 && value !== null) {
if (typeof value === "object")
fnLiteral += `c.body=Object.assign(${parsed},c.body)
`;
else fnLiteral += `c.body=${parsed}
`;
}
fnLiteral += composeCleaner({

@@ -742,0 +746,0 @@ name: "c.body",

@@ -700,5 +700,7 @@ import type { Elysia, AnyElysia } from '.';

};
type _ComposeElysiaResponse<Schema extends RouteSchema, Handle> = Prettify<Prettify<{
type _ComposeElysiaResponse<Schema extends RouteSchema, Handle> = Prettify<Prettify<(Schema['response'] extends {
200: any;
} ? {} : {
200: Exclude<Handle, ElysiaCustomStatusResponse<any, any, any>>;
} & ExtractErrorFromHandle<Handle> & ({} extends Schema['response'] ? {} : Omit<Schema['response'], 200>) & (EmptyRouteSchema extends Schema ? {} : {
}) & ExtractErrorFromHandle<Handle> & ({} extends Schema['response'] ? {} : Schema['response']) & (EmptyRouteSchema extends Schema ? {} : {
422: {

@@ -705,0 +707,0 @@ type: 'validation';

@@ -700,5 +700,7 @@ import type { Elysia, AnyElysia } from '.';

};
type _ComposeElysiaResponse<Schema extends RouteSchema, Handle> = Prettify<Prettify<{
type _ComposeElysiaResponse<Schema extends RouteSchema, Handle> = Prettify<Prettify<(Schema['response'] extends {
200: any;
} ? {} : {
200: Exclude<Handle, ElysiaCustomStatusResponse<any, any, any>>;
} & ExtractErrorFromHandle<Handle> & ({} extends Schema['response'] ? {} : Omit<Schema['response'], 200>) & (EmptyRouteSchema extends Schema ? {} : {
}) & ExtractErrorFromHandle<Handle> & ({} extends Schema['response'] ? {} : Schema['response']) & (EmptyRouteSchema extends Schema ? {} : {
422: {

@@ -705,0 +707,0 @@ type: 'validation';

{
"name": "elysia",
"description": "Ergonomic Framework for Human",
"version": "1.3.0-exp.8",
"version": "1.3.0-exp.9",
"author": {

@@ -6,0 +6,0 @@ "name": "saltyAom",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet