altair-koa-middleware 8.2.4 → 8.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-bootstrap.log +2 -2
- package/build/src/index.js +2 -2
- package/package.json +3 -4
- package/src/index.ts +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> altair-koa-middleware@8.2.
|
|
2
|
+
> altair-koa-middleware@8.2.7 bootstrap /home/runner/work/altair/altair/packages/altair-koa-middleware
|
|
3
3
|
> pnpm declarations
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> altair-koa-middleware@8.2.
|
|
6
|
+
> altair-koa-middleware@8.2.7 declarations /home/runner/work/altair/altair/packages/altair-koa-middleware
|
|
7
7
|
> tsc --declaration
|
|
8
8
|
|
package/build/src/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createRouteExplorer = void 0;
|
|
4
|
-
const
|
|
4
|
+
const send_1 = require("@koa/send");
|
|
5
5
|
const altair_static_1 = require("altair-static");
|
|
6
6
|
const createRouteExplorer = ({ router, url, opts, }) => {
|
|
7
7
|
router.get(url, async (ctx, next) => {
|
|
@@ -15,7 +15,7 @@ const createRouteExplorer = ({ router, url, opts, }) => {
|
|
|
15
15
|
});
|
|
16
16
|
router.get(`${url}/:path+`, async (ctx) => {
|
|
17
17
|
const path = ctx.params.path;
|
|
18
|
-
await send(ctx, path || '', { root: (0, altair_static_1.getDistDirectory)() });
|
|
18
|
+
await (0, send_1.send)(ctx, path || '', { root: (0, altair_static_1.getDistDirectory)() });
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
exports.createRouteExplorer = createRouteExplorer;
|
package/package.json
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "altair-koa-middleware",
|
|
3
3
|
"description": "Koa middleware for altair graphql client",
|
|
4
|
-
"version": "8.2.
|
|
4
|
+
"version": "8.2.7",
|
|
5
5
|
"author": "Samuel Imolorhe <altair@sirmuel.design> (https://sirmuel.design)",
|
|
6
6
|
"bugs": "https://github.com/altair-graphql/altair/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"koa
|
|
9
|
-
"altair-static": "8.2.
|
|
8
|
+
"@koa/send": "^6.0.0",
|
|
9
|
+
"altair-static": "8.2.7"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@types/jest": "^27.0.1",
|
|
13
13
|
"@types/koa": "^2.15.0",
|
|
14
|
-
"@types/koa-send": "^4.1.3",
|
|
15
14
|
"@types/koa__router": "^12.0.4",
|
|
16
15
|
"@types/node": "^22.7.4",
|
|
17
16
|
"@types/supertest": "^6.0.2",
|