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
1
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 0.6.0 to 0.7.0-beta.0

144

dist/cjs/index.d.ts

@@ -12,80 +12,10 @@ /// <reference types="bun-types" />

export declare class ElysiaApolloServer<Context extends BaseContext = BaseContext> extends ApolloServer<Context> {
createHandler<Path extends string = '/graphql'>({ path, enablePlayground, context }: ServerRegistration<Path>): Promise<(app: Elysia) => Elysia<{
path: "";
createHandler<Path extends string = '/graphql'>({ path, enablePlayground, context }: ServerRegistration<Path>): Promise<(app: Elysia) => Elysia<"", {
request: {};
store: {};
schema: {};
}, {
type: {};
error: {};
meta: Record<"defs", {}> & Record<"exposed", {}> & Record<"schema", { [path in `${Path}`]: {
post: {
handler?: ((c: import("elysia").Context<{
body: {
operationName?: string | null | undefined;
variables?: {} | undefined;
query: string;
};
params: Record<import("elysia").ExtractPath<`${Path}`>, string>;
query: undefined;
headers: undefined;
response: unknown;
}, {}>) => Promise<Response>) | undefined;
body: {
operationName?: string | null | undefined;
variables?: {} | undefined;
query: string;
};
headers: undefined;
query: undefined;
params: undefined;
response: {
'200': Promise<Response>;
};
};
}; } extends infer T ? { [K in keyof T]: { [path in `${Path}`]: {
post: {
handler?: ((c: import("elysia").Context<{
body: {
operationName?: string | null | undefined;
variables?: {} | undefined;
query: string;
};
params: Record<import("elysia").ExtractPath<`${Path}`>, string>;
query: undefined;
headers: undefined;
response: unknown;
}, {}>) => Promise<Response>) | undefined;
body: {
operationName?: string | null | undefined;
variables?: {} | undefined;
query: string;
};
headers: undefined;
query: undefined;
params: undefined;
response: {
'200': Promise<Response>;
};
};
}; }[K]; } : never>;
}>>;
}
export declare const apollo: <Path extends string = "/graphql">({ path, enablePlayground, context, ...config }: ElysiaApolloConfig<Path, BaseContext>) => Promise<(app: Elysia) => Elysia<{
path: "";
request: {};
store: {};
schema: {};
error: {};
meta: Record<"defs", {}> & Record<"exposed", {}> & Record<"schema", { [path in `${Path}`]: {
}, {}, { [path in `${Path}`]: {
post: {
handler?: ((c: Context<{
body: {
operationName?: string | null | undefined;
variables?: {} | undefined;
query: string;
};
params: Record<import("elysia").ExtractPath<`${Path}`>, string>;
query: undefined;
headers: undefined;
response: unknown;
}, {}>) => Promise<Response>) | undefined;
body: {

@@ -96,7 +26,7 @@ operationName?: string | null | undefined;

};
headers: undefined;
query: undefined;
params: undefined;
params: unknown;
query: unknown;
headers: unknown;
response: {
'200': Promise<Response>;
200: Promise<Response>;
};

@@ -106,13 +36,2 @@ };

post: {
handler?: ((c: Context<{
body: {
operationName?: string | null | undefined;
variables?: {} | undefined;
query: string;
};
params: Record<import("elysia").ExtractPath<`${Path}`>, string>;
query: undefined;
headers: undefined;
response: unknown;
}, {}>) => Promise<Response>) | undefined;
body: {

@@ -123,12 +42,47 @@ operationName?: string | null | undefined;

};
headers: undefined;
query: undefined;
params: undefined;
params: unknown;
query: unknown;
headers: unknown;
response: {
'200': Promise<Response>;
200: Promise<Response>;
};
};
}; }[K]; } : never>;
}>>;
}; }[K]; } : never, false>>;
}
export declare const apollo: <Path extends string = "/graphql">({ path, enablePlayground, context, ...config }: ElysiaApolloConfig<Path, BaseContext>) => Promise<(app: Elysia) => Elysia<"", {
request: {};
store: {};
}, {
type: {};
error: {};
}, {}, { [path in `${Path}`]: {
post: {
body: {
operationName?: string | null | undefined;
variables?: {} | undefined;
query: string;
};
params: unknown;
query: unknown;
headers: unknown;
response: {
200: Promise<Response>;
};
};
}; } extends infer T ? { [K in keyof T]: { [path in `${Path}`]: {
post: {
body: {
operationName?: string | null | undefined;
variables?: {} | undefined;
query: string;
};
params: unknown;
query: unknown;
headers: unknown;
response: {
200: Promise<Response>;
};
};
}; }[K]; } : never, false>>;
export { gql } from 'graphql-tag';
export default apollo;

@@ -12,80 +12,10 @@ /// <reference types="bun-types" />

export declare class ElysiaApolloServer<Context extends BaseContext = BaseContext> extends ApolloServer<Context> {
createHandler<Path extends string = '/graphql'>({ path, enablePlayground, context }: ServerRegistration<Path>): Promise<(app: Elysia) => Elysia<{
path: "";
createHandler<Path extends string = '/graphql'>({ path, enablePlayground, context }: ServerRegistration<Path>): Promise<(app: Elysia) => Elysia<"", {
request: {};
store: {};
schema: {};
}, {
type: {};
error: {};
meta: Record<"defs", {}> & Record<"exposed", {}> & Record<"schema", { [path in `${Path}`]: {
post: {
handler?: ((c: import("elysia").Context<{
body: {
operationName?: string | null | undefined;
variables?: {} | undefined;
query: string;
};
params: Record<import("elysia").ExtractPath<`${Path}`>, string>;
query: undefined;
headers: undefined;
response: unknown;
}, {}>) => Promise<Response>) | undefined;
body: {
operationName?: string | null | undefined;
variables?: {} | undefined;
query: string;
};
headers: undefined;
query: undefined;
params: undefined;
response: {
'200': Promise<Response>;
};
};
}; } extends infer T ? { [K in keyof T]: { [path in `${Path}`]: {
post: {
handler?: ((c: import("elysia").Context<{
body: {
operationName?: string | null | undefined;
variables?: {} | undefined;
query: string;
};
params: Record<import("elysia").ExtractPath<`${Path}`>, string>;
query: undefined;
headers: undefined;
response: unknown;
}, {}>) => Promise<Response>) | undefined;
body: {
operationName?: string | null | undefined;
variables?: {} | undefined;
query: string;
};
headers: undefined;
query: undefined;
params: undefined;
response: {
'200': Promise<Response>;
};
};
}; }[K]; } : never>;
}>>;
}
export declare const apollo: <Path extends string = "/graphql">({ path, enablePlayground, context, ...config }: ElysiaApolloConfig<Path, BaseContext>) => Promise<(app: Elysia) => Elysia<{
path: "";
request: {};
store: {};
schema: {};
error: {};
meta: Record<"defs", {}> & Record<"exposed", {}> & Record<"schema", { [path in `${Path}`]: {
}, {}, { [path in `${Path}`]: {
post: {
handler?: ((c: Context<{
body: {
operationName?: string | null | undefined;
variables?: {} | undefined;
query: string;
};
params: Record<import("elysia").ExtractPath<`${Path}`>, string>;
query: undefined;
headers: undefined;
response: unknown;
}, {}>) => Promise<Response>) | undefined;
body: {

@@ -96,7 +26,7 @@ operationName?: string | null | undefined;

};
headers: undefined;
query: undefined;
params: undefined;
params: unknown;
query: unknown;
headers: unknown;
response: {
'200': Promise<Response>;
200: Promise<Response>;
};

@@ -106,13 +36,2 @@ };

post: {
handler?: ((c: Context<{
body: {
operationName?: string | null | undefined;
variables?: {} | undefined;
query: string;
};
params: Record<import("elysia").ExtractPath<`${Path}`>, string>;
query: undefined;
headers: undefined;
response: unknown;
}, {}>) => Promise<Response>) | undefined;
body: {

@@ -123,12 +42,47 @@ operationName?: string | null | undefined;

};
headers: undefined;
query: undefined;
params: undefined;
params: unknown;
query: unknown;
headers: unknown;
response: {
'200': Promise<Response>;
200: Promise<Response>;
};
};
}; }[K]; } : never>;
}>>;
}; }[K]; } : never, false>>;
}
export declare const apollo: <Path extends string = "/graphql">({ path, enablePlayground, context, ...config }: ElysiaApolloConfig<Path, BaseContext>) => Promise<(app: Elysia) => Elysia<"", {
request: {};
store: {};
}, {
type: {};
error: {};
}, {}, { [path in `${Path}`]: {
post: {
body: {
operationName?: string | null | undefined;
variables?: {} | undefined;
query: string;
};
params: unknown;
query: unknown;
headers: unknown;
response: {
200: Promise<Response>;
};
};
}; } extends infer T ? { [K in keyof T]: { [path in `${Path}`]: {
post: {
body: {
operationName?: string | null | undefined;
variables?: {} | undefined;
query: string;
};
params: unknown;
query: unknown;
headers: unknown;
response: {
200: Promise<Response>;
};
};
}; }[K]; } : never, false>>;
export { gql } from 'graphql-tag';
export default apollo;
{
"name": "@elysiajs/apollo",
"description": "Plugin for Elysia for using GraphQL Apollo",
"version": "0.6.0",
"version": "0.7.0-beta.0",
"author": {

@@ -33,3 +33,3 @@ "name": "saltyAom",

"dev": "bun run --hot example/index.ts",
"test": "bun wiptest && npm run test:node",
"test": "bun test && npm run test:node",
"test:node": "npm install --prefix ./test/node/cjs/ && npm install --prefix ./test/node/esm/ && node ./test/node/cjs/index.js && node ./test/node/esm/index.js",

@@ -51,3 +51,3 @@ "build": "rimraf dist && tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json",

"bun-types": "^0.5.8",
"elysia": "0.6.0-alpha.4",
"elysia": "0.7.0-beta.0",
"eslint": "^8.40.0",

@@ -58,8 +58,3 @@ "rimraf": "4.3.1",

"peerDependencies": {
"@apollo/server": ">= 4.0.0",
"@apollo/server-plugin-landing-page-graphql-playground": ">= 4.0.0",
"@elysiajs/cors": "?= 0.5.0-rc.0",
"elysia": ">= 0.5.12",
"graphql": ">= 16.6.0",
"graphql-tag": ">= 2.12.6"
"elysia": ">= 0.7.0-beta.0"
},

@@ -66,0 +61,0 @@ "peerDependenciesMeta": {

import { t } from 'elysia'
import type { Context, Elysia, Handler, TypedRoute } from 'elysia'
import type { Context, Elysia, Handler } from 'elysia'

@@ -4,0 +4,0 @@ import {

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