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

@elysiajs/apollo

Package Overview
Dependencies
Maintainers
0
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elysiajs/apollo - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0-rc.0

32

dist/cjs/index.d.ts

@@ -11,3 +11,3 @@ import { Elysia } from 'elysia';

export declare class ElysiaApolloServer<Context extends BaseContext = BaseContext> extends ApolloServer<Context> {
createHandler<Path extends string = '/graphql'>({ path, enablePlayground, context: apolloContext }: ServerRegistration<Path, Context>): Promise<Elysia<"", false, {
createHandler<Path extends string = '/graphql'>({ path, enablePlayground, context: apolloContext }: ServerRegistration<Path, Context>): Promise<Elysia<"", {
decorator: {};

@@ -18,3 +18,3 @@ store: {};

}, {
type: {};
typebox: import("@sinclair/typebox").TModule<{}>;
error: {};

@@ -25,2 +25,3 @@ }, {

macroFn: {};
parser: {};
}, {} & import("elysia").CreateEden<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`, {

@@ -33,3 +34,3 @@ post: {

};
params: { [Param in import("elysia/dist/types").GetPathParameter<Path> as Param extends `${string}?` ? never : Param]: string; } & { [Param_1 in import("elysia/dist/types").GetPathParameter<Path> as Param_1 extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; } extends infer T ? { [K in keyof T]: ({ [Param in import("elysia/dist/types").GetPathParameter<Path> as Param extends `${string}?` ? never : Param]: string; } & { [Param_1 in import("elysia/dist/types").GetPathParameter<Path> as Param_1 extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; })[K]; } : never;
params: undefined extends (import("elysia/dist/types").IsNever<(import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> extends infer T ? T extends import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> ? T extends `${string}?` ? never : T : never : never) | keyof { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; }> extends true ? {} : { [Param_1 in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param_1 extends `${string}?` ? never : Param_1]: string; } & { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; } extends infer T_1 ? { [K in keyof T_1]: ({ [Param_1 in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param_1 extends `${string}?` ? never : Param_1]: string; } & { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; })[K]; } : never) ? { [Param_2 in import("elysia/dist/types").GetPathParameter<Path> as Param_2 extends `${string}?` ? never : Param_2]: string; } & { [Param_3 in import("elysia/dist/types").GetPathParameter<Path> as Param_3 extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; } extends infer T_2 ? { [K_1 in keyof T_2]: ({ [Param_2 in import("elysia/dist/types").GetPathParameter<Path> as Param_2 extends `${string}?` ? never : Param_2]: string; } & { [Param_3 in import("elysia/dist/types").GetPathParameter<Path> as Param_3 extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; })[K_1]; } : never : import("elysia/dist/types").IsNever<(import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> extends infer T_3 ? T_3 extends import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> ? T_3 extends `${string}?` ? never : T_3 : never : never) | keyof { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; }> extends true ? {} : { [Param_1 in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param_1 extends `${string}?` ? never : Param_1]: string; } & { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; } extends infer T_4 ? { [K in keyof T_4]: ({ [Param_1 in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param_1 extends `${string}?` ? never : Param_1]: string; } & { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; })[K]; } : never;
query: unknown;

@@ -39,2 +40,11 @@ headers: unknown;

200: "" | import("undici-types").Response;
422: {
type: "validation";
on: string;
summary?: string;
message?: string;
found?: unknown;
property?: string;
expected?: string;
};
};

@@ -52,3 +62,3 @@ };

}
export declare const apollo: <Path extends string = "/graphql", TContext extends BaseContext = BaseContext>({ path, enablePlayground, context, ...config }: ElysiaApolloConfig<Path, TContext>) => Promise<Elysia<"", false, {
export declare const apollo: <Path extends string = "/graphql", TContext extends BaseContext = BaseContext>({ path, enablePlayground, context, ...config }: ElysiaApolloConfig<Path, TContext>) => Promise<Elysia<"", {
decorator: {};

@@ -59,3 +69,3 @@ store: {};

}, {
type: {};
typebox: import("@sinclair/typebox").TModule<{}>;
error: {};

@@ -66,2 +76,3 @@ }, {

macroFn: {};
parser: {};
}, {} & import("elysia").CreateEden<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`, {

@@ -74,3 +85,3 @@ post: {

};
params: { [Param in import("elysia/dist/types").GetPathParameter<Path> as Param extends `${string}?` ? never : Param]: string; } & { [Param_1 in import("elysia/dist/types").GetPathParameter<Path> as Param_1 extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; } extends infer T ? { [K in keyof T]: ({ [Param in import("elysia/dist/types").GetPathParameter<Path> as Param extends `${string}?` ? never : Param]: string; } & { [Param_1 in import("elysia/dist/types").GetPathParameter<Path> as Param_1 extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; })[K]; } : never;
params: undefined extends (import("elysia/dist/types").IsNever<(import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> extends infer T ? T extends import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> ? T extends `${string}?` ? never : T : never : never) | keyof { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; }> extends true ? {} : { [Param_1 in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param_1 extends `${string}?` ? never : Param_1]: string; } & { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; } extends infer T_1 ? { [K in keyof T_1]: ({ [Param_1 in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param_1 extends `${string}?` ? never : Param_1]: string; } & { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; })[K]; } : never) ? { [Param_2 in import("elysia/dist/types").GetPathParameter<Path> as Param_2 extends `${string}?` ? never : Param_2]: string; } & { [Param_3 in import("elysia/dist/types").GetPathParameter<Path> as Param_3 extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; } extends infer T_2 ? { [K_1 in keyof T_2]: ({ [Param_2 in import("elysia/dist/types").GetPathParameter<Path> as Param_2 extends `${string}?` ? never : Param_2]: string; } & { [Param_3 in import("elysia/dist/types").GetPathParameter<Path> as Param_3 extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; })[K_1]; } : never : import("elysia/dist/types").IsNever<(import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> extends infer T_3 ? T_3 extends import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> ? T_3 extends `${string}?` ? never : T_3 : never : never) | keyof { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; }> extends true ? {} : { [Param_1 in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param_1 extends `${string}?` ? never : Param_1]: string; } & { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; } extends infer T_4 ? { [K in keyof T_4]: ({ [Param_1 in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param_1 extends `${string}?` ? never : Param_1]: string; } & { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; })[K]; } : never;
query: unknown;

@@ -80,2 +91,11 @@ headers: unknown;

200: "" | import("undici-types").Response;
422: {
type: "validation";
on: string;
summary?: string;
message?: string;
found?: unknown;
property?: string;
expected?: string;
};
};

@@ -82,0 +102,0 @@ };

10

dist/cjs/index.js

@@ -21,10 +21,10 @@ "use strict";

// src/index.ts
var src_exports = {};
__export(src_exports, {
var index_exports = {};
__export(index_exports, {
ElysiaApolloServer: () => ElysiaApolloServer,
apollo: () => apollo,
default: () => src_default,
default: () => index_default,
gql: () => import_graphql_tag.gql
});
module.exports = __toCommonJS(src_exports);
module.exports = __toCommonJS(index_exports);
var import_elysia = require("elysia");

@@ -126,3 +126,3 @@ var import_server = require("@apollo/server");

});
var src_default = apollo;
var index_default = apollo;
// Annotate the CommonJS export names for ESM import in node:

@@ -129,0 +129,0 @@ 0 && (module.exports = {

@@ -11,3 +11,3 @@ import { Elysia } from 'elysia';

export declare class ElysiaApolloServer<Context extends BaseContext = BaseContext> extends ApolloServer<Context> {
createHandler<Path extends string = '/graphql'>({ path, enablePlayground, context: apolloContext }: ServerRegistration<Path, Context>): Promise<Elysia<"", false, {
createHandler<Path extends string = '/graphql'>({ path, enablePlayground, context: apolloContext }: ServerRegistration<Path, Context>): Promise<Elysia<"", {
decorator: {};

@@ -18,3 +18,3 @@ store: {};

}, {
type: {};
typebox: import("@sinclair/typebox").TModule<{}>;
error: {};

@@ -25,2 +25,3 @@ }, {

macroFn: {};
parser: {};
}, {} & import("elysia").CreateEden<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`, {

@@ -33,3 +34,3 @@ post: {

};
params: { [Param in import("elysia/dist/types").GetPathParameter<Path> as Param extends `${string}?` ? never : Param]: string; } & { [Param_1 in import("elysia/dist/types").GetPathParameter<Path> as Param_1 extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; } extends infer T ? { [K in keyof T]: ({ [Param in import("elysia/dist/types").GetPathParameter<Path> as Param extends `${string}?` ? never : Param]: string; } & { [Param_1 in import("elysia/dist/types").GetPathParameter<Path> as Param_1 extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; })[K]; } : never;
params: undefined extends (import("elysia/dist/types").IsNever<(import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> extends infer T ? T extends import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> ? T extends `${string}?` ? never : T : never : never) | keyof { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; }> extends true ? {} : { [Param_1 in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param_1 extends `${string}?` ? never : Param_1]: string; } & { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; } extends infer T_1 ? { [K in keyof T_1]: ({ [Param_1 in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param_1 extends `${string}?` ? never : Param_1]: string; } & { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; })[K]; } : never) ? { [Param_2 in import("elysia/dist/types").GetPathParameter<Path> as Param_2 extends `${string}?` ? never : Param_2]: string; } & { [Param_3 in import("elysia/dist/types").GetPathParameter<Path> as Param_3 extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; } extends infer T_2 ? { [K_1 in keyof T_2]: ({ [Param_2 in import("elysia/dist/types").GetPathParameter<Path> as Param_2 extends `${string}?` ? never : Param_2]: string; } & { [Param_3 in import("elysia/dist/types").GetPathParameter<Path> as Param_3 extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; })[K_1]; } : never : import("elysia/dist/types").IsNever<(import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> extends infer T_3 ? T_3 extends import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> ? T_3 extends `${string}?` ? never : T_3 : never : never) | keyof { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; }> extends true ? {} : { [Param_1 in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param_1 extends `${string}?` ? never : Param_1]: string; } & { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; } extends infer T_4 ? { [K in keyof T_4]: ({ [Param_1 in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param_1 extends `${string}?` ? never : Param_1]: string; } & { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; })[K]; } : never;
query: unknown;

@@ -39,2 +40,11 @@ headers: unknown;

200: "" | import("undici-types").Response;
422: {
type: "validation";
on: string;
summary?: string;
message?: string;
found?: unknown;
property?: string;
expected?: string;
};
};

@@ -52,3 +62,3 @@ };

}
export declare const apollo: <Path extends string = "/graphql", TContext extends BaseContext = BaseContext>({ path, enablePlayground, context, ...config }: ElysiaApolloConfig<Path, TContext>) => Promise<Elysia<"", false, {
export declare const apollo: <Path extends string = "/graphql", TContext extends BaseContext = BaseContext>({ path, enablePlayground, context, ...config }: ElysiaApolloConfig<Path, TContext>) => Promise<Elysia<"", {
decorator: {};

@@ -59,3 +69,3 @@ store: {};

}, {
type: {};
typebox: import("@sinclair/typebox").TModule<{}>;
error: {};

@@ -66,2 +76,3 @@ }, {

macroFn: {};
parser: {};
}, {} & import("elysia").CreateEden<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`, {

@@ -74,3 +85,3 @@ post: {

};
params: { [Param in import("elysia/dist/types").GetPathParameter<Path> as Param extends `${string}?` ? never : Param]: string; } & { [Param_1 in import("elysia/dist/types").GetPathParameter<Path> as Param_1 extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; } extends infer T ? { [K in keyof T]: ({ [Param in import("elysia/dist/types").GetPathParameter<Path> as Param extends `${string}?` ? never : Param]: string; } & { [Param_1 in import("elysia/dist/types").GetPathParameter<Path> as Param_1 extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; })[K]; } : never;
params: undefined extends (import("elysia/dist/types").IsNever<(import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> extends infer T ? T extends import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> ? T extends `${string}?` ? never : T : never : never) | keyof { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; }> extends true ? {} : { [Param_1 in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param_1 extends `${string}?` ? never : Param_1]: string; } & { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; } extends infer T_1 ? { [K in keyof T_1]: ({ [Param_1 in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param_1 extends `${string}?` ? never : Param_1]: string; } & { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; })[K]; } : never) ? { [Param_2 in import("elysia/dist/types").GetPathParameter<Path> as Param_2 extends `${string}?` ? never : Param_2]: string; } & { [Param_3 in import("elysia/dist/types").GetPathParameter<Path> as Param_3 extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; } extends infer T_2 ? { [K_1 in keyof T_2]: ({ [Param_2 in import("elysia/dist/types").GetPathParameter<Path> as Param_2 extends `${string}?` ? never : Param_2]: string; } & { [Param_3 in import("elysia/dist/types").GetPathParameter<Path> as Param_3 extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; })[K_1]; } : never : import("elysia/dist/types").IsNever<(import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> extends infer T_3 ? T_3 extends import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> ? T_3 extends `${string}?` ? never : T_3 : never : never) | keyof { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; }> extends true ? {} : { [Param_1 in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param_1 extends `${string}?` ? never : Param_1]: string; } & { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; } extends infer T_4 ? { [K in keyof T_4]: ({ [Param_1 in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param_1 extends `${string}?` ? never : Param_1]: string; } & { [Param in import("elysia/dist/types").GetPathParameter<`${Path extends "/" ? "/index" : Path extends "" ? Path : Path extends `/${string}` ? Path : Path}`> as Param extends `${infer OptionalParam}?` ? OptionalParam : never]?: string | undefined; })[K]; } : never;
query: unknown;

@@ -80,2 +91,11 @@ headers: unknown;

200: "" | import("undici-types").Response;
422: {
type: "validation";
on: string;
summary?: string;
message?: string;
found?: unknown;
property?: string;
expected?: string;
};
};

@@ -82,0 +102,0 @@ };

{
"name": "@elysiajs/apollo",
"description": "Plugin for Elysia for using GraphQL Apollo",
"version": "1.1.1",
"version": "1.2.0-rc.0",
"author": {

@@ -47,4 +47,4 @@ "name": "saltyAom",

"devDependencies": {
"@types/bun": "1.1.6",
"elysia": ">= 1.1.0-rc.2",
"@types/bun": "1.1.14",
"elysia": ">= 1.2.0-rc.0",
"eslint": "9.6.0",

@@ -55,3 +55,3 @@ "tsup": "^8.1.0",

"peerDependencies": {
"elysia": ">= 1.1.0"
"elysia": ">= 1.2.0-rc.0"
},

@@ -75,2 +75,2 @@ "peerDependenciesMeta": {

}
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc