altair-koa-middleware
Advanced tools
Comparing version 4.0.9 to 4.0.10
@@ -53,3 +53,3 @@ 'use strict'; | ||
var altair_static_1 = require("altair-static"); | ||
exports.createRouteExplorer = function (_a) { | ||
var createRouteExplorer = function (_a) { | ||
var router = _a.router, url = _a.url, opts = _a.opts; | ||
@@ -60,3 +60,3 @@ router.get(url, function (ctx, next) { return __awaiter(void 0, void 0, void 0, function () { | ||
case 0: | ||
ctx.body = altair_static_1.renderAltair(__assign({ baseURL: ctx.url.replace(/\/?$/, '/') }, opts)); | ||
ctx.body = (0, altair_static_1.renderAltair)(__assign({ baseURL: ctx.url.replace(/\/?$/, '/') }, opts)); | ||
return [4 /*yield*/, next()]; | ||
@@ -77,3 +77,3 @@ case 1: | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, send(ctx, ctx.params.path, { root: altair_static_1.getDistDirectory() })]; | ||
case 0: return [4 /*yield*/, send(ctx, ctx.params.path, { root: (0, altair_static_1.getDistDirectory)() })]; | ||
case 1: | ||
@@ -86,1 +86,2 @@ _a.sent(); | ||
}; | ||
exports.createRouteExplorer = createRouteExplorer; |
{ | ||
"name": "altair-koa-middleware", | ||
"version": "4.0.9", | ||
"version": "4.0.10", | ||
"description": "Koa middleware for altair graphql client", | ||
@@ -23,3 +23,3 @@ "main": "./build/src/index.js", | ||
"graphql", | ||
"express", | ||
"koa", | ||
"middleware" | ||
@@ -34,19 +34,19 @@ ], | ||
"dependencies": { | ||
"@koa/router": "^9.0.1", | ||
"altair-static": "^4.0.9", | ||
"koa-send": "^5.0.0" | ||
"@koa/router": "^10.1.1", | ||
"altair-static": "^4.0.10", | ||
"koa-send": "^5.0.1" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^25.2.3", | ||
"@types/koa": "^2.11.0", | ||
"@types/koa-send": "^4.1.2", | ||
"@types/koa__router": "^8.0.2", | ||
"@types/supertest": "^2.0.9", | ||
"jest": "^26.0.1", | ||
"koa": "^2.11.0", | ||
"nodemon": "^2.0.2", | ||
"supertest": "^4.0.2", | ||
"ts-jest": "^26.1.0", | ||
"ts-node": "^8.5.4", | ||
"typescript": "4.0.7" | ||
"@types/jest": "^27.0.1", | ||
"@types/koa": "^2.13.4", | ||
"@types/koa-send": "^4.1.3", | ||
"@types/koa__router": "^8.0.8", | ||
"@types/supertest": "^2.0.11", | ||
"jest": "^27.1.1", | ||
"koa": "^2.13.1", | ||
"nodemon": "^2.0.12", | ||
"supertest": "^6.1.6", | ||
"ts-jest": "^27.0.5", | ||
"ts-node": "^10.2.1", | ||
"typescript": "4.4.3" | ||
}, | ||
@@ -58,3 +58,3 @@ "funding": { | ||
}, | ||
"gitHead": "f00e60f0790e89a21e91a3fa037f11921c783e3d" | ||
"gitHead": "fd40c59140744404f3f1088666e97a7fcbb0f949" | ||
} |
10119
151
+ Added@koa/router@10.1.1(transitive)
- Removed@koa/router@9.4.0(transitive)
Updated@koa/router@^10.1.1
Updatedaltair-static@^4.0.10
Updatedkoa-send@^5.0.1