Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

altair-koa-middleware

Package Overview
Dependencies
Maintainers
1
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

altair-koa-middleware - npm Package Compare versions

Comparing version 2.3.8 to 2.4.0

build/example/index.d.ts

3

build/index.d.ts

@@ -0,6 +1,7 @@

import * as KoaRouter from 'koa-router';
import { RenderOptions } from 'altair-static';
export declare const createRouteExplorer: ({ router, url, opts }: {
router: any;
router: KoaRouter<any, {}>;
url: string;
opts: RenderOptions;
}) => void;
'use strict';
import * as send from 'koa-send';
import * as KoaRouter from 'koa-router';
import { getDistDirectory, renderAltair, RenderOptions } from 'altair-static';
export const createRouteExplorer = ({ router, url, opts }: { router, url: string, opts: RenderOptions }) => {
export const createRouteExplorer = ({ router, url, opts }: { router: KoaRouter, url: string, opts: RenderOptions }) => {
router.get(url, async (ctx, next) => {

@@ -8,0 +9,0 @@

{
"name": "altair-koa-middleware",
"version": "2.3.8",
"version": "2.4.0",
"description": "Koa middleware for altair graphql client",

@@ -11,3 +11,4 @@ "main": "./build/index.js",

"declarations": "tsc --declaration",
"prepare": "npm run declarations"
"prepare": "npm run declarations",
"example": "nodemon example/index.ts"
},

@@ -34,3 +35,3 @@ "engines": {

"dependencies": {
"altair-static": "^2.3.8",
"altair-static": "^2.4.0",
"koa-router": "^7.4.0",

@@ -40,2 +41,8 @@ "koa-send": "^5.0.0"

"devDependencies": {
"@types/koa": "^2.11.0",
"@types/koa-router": "^7.0.42",
"@types/koa-send": "^4.1.2",
"koa": "^2.11.0",
"nodemon": "^2.0.2",
"ts-node": "^8.5.4",
"typescript": "^2.8.1"

@@ -48,3 +55,3 @@ },

},
"gitHead": "2d35b44b1cdf3ceaa7caebbec6f0008e71522ced"
"gitHead": "abb9cadb89ff47df9ca75b0720d65e975023eace"
}

@@ -33,3 +33,3 @@ # altair-koa-middleware

opts: {
endpoint: '/graphql',
endpointURL: '/graphql',
subscriptionsEndpoint: `ws://localhost:4000/subscriptions`,

@@ -36,0 +36,0 @@ initialQuery: `{ getData { id name surname } }`,

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