Socket
Socket
Sign inDemoInstall

apollo-server-koa

Package Overview
Dependencies
Maintainers
5
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-server-koa - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

6

dist/koaApollo.js

@@ -12,3 +12,3 @@ "use strict";

}
return function (ctx) {
var graphqlHandler = function (ctx) {
return apollo_server_core_1.runHttpQuery([ctx], {

@@ -34,6 +34,7 @@ method: ctx.request.method,

};
return graphqlHandler;
}
exports.graphqlKoa = graphqlKoa;
function graphiqlKoa(options) {
return function (ctx) {
var graphiqlHandler = function (ctx) {
var query = ctx.request.query;

@@ -48,4 +49,5 @@ return GraphiQL.resolveGraphiQLString(query, options, ctx).then(function (graphiqlString) {

};
return graphiqlHandler;
}
exports.graphiqlKoa = graphiqlKoa;
//# sourceMappingURL=koaApollo.js.map
{
"name": "apollo-server-koa",
"version": "1.3.4",
"version": "1.3.5",
"description": "Production-ready Node.js GraphQL server for Koa",

@@ -28,3 +28,3 @@ "main": "dist/index.js",

"dependencies": {
"apollo-server-core": "^1.3.4",
"apollo-server-core": "^1.3.5",
"apollo-server-module-graphiql": "^1.3.4"

@@ -34,6 +34,6 @@ },

"@types/graphql": "0.12.7",
"@types/koa": "2.0.44",
"@types/koa": "2.0.45",
"@types/koa-bodyparser": "4.2.0",
"@types/koa-router": "7.0.27",
"apollo-server-integration-testsuite": "^1.3.4",
"apollo-server-integration-testsuite": "^1.3.5",
"koa": "2.5.0",

@@ -40,0 +40,0 @@ "koa-bodyparser": "4.2.0",

@@ -6,3 +6,3 @@ ---

[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core) [![Build Status](https://travis-ci.org/apollographql/apollo-server.svg?branch=master)](https://travis-ci.org/apollographql/apollo-server) [![Coverage Status](https://coveralls.io/repos/github/apollographql/apollo-server/badge.svg?branch=master)](https://coveralls.io/github/apollographql/apollo-server?branch=master) [![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://www.apollographql.com/#slack)
[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core) [![Build Status](https://circleci.com/gh/apollographql/apollo-cache-control-js.svg?style=svg)](https://circleci.com/gh/apollographql/apollo-cache-control-js) [![Coverage Status](https://coveralls.io/repos/github/apollographql/apollo-server/badge.svg?branch=master)](https://coveralls.io/github/apollographql/apollo-server?branch=master) [![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://www.apollographql.com/#slack)

@@ -9,0 +9,0 @@ This is the Koa integration of Apollo Server. Apollo Server is a community-maintained open-source Apollo Server that works with all Node.js HTTP server frameworks: Express, Connect, Hapi, Koa and Restify. [Read the docs](https://www.apollographql.com/docs/apollo-server/). [Read the CHANGELOG.](https://github.com/apollographql/apollo-server/blob/master/CHANGELOG.md)

@@ -30,3 +30,3 @@ import * as koa from 'koa';

return (ctx: koa.Context): Promise<void> => {
const graphqlHandler = (ctx: koa.Context): Promise<void> => {
return runHttpQuery([ctx], {

@@ -58,2 +58,4 @@ method: ctx.request.method,

};
return graphqlHandler;
}

@@ -68,3 +70,3 @@

) {
return (ctx: koa.Context) => {
const graphiqlHandler = (ctx: koa.Context) => {
const query = ctx.request.query;

@@ -82,2 +84,4 @@ return GraphiQL.resolveGraphiQLString(query, options, ctx).then(

};
return graphiqlHandler;
}

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