trifid-plugin-graph-explorer
Advanced tools
Comparing version 2.0.2 to 2.0.3
# trifid-plugin-graph-explorer | ||
## 2.0.3 | ||
### Patch Changes | ||
- 1cafa55: Return `reply` in the `routeHandler`, in order to be compatible with the support for compression. | ||
## 2.0.2 | ||
@@ -4,0 +10,0 @@ |
@@ -27,3 +27,3 @@ // @ts-check | ||
// Serve static files for graph-explorer | ||
const distPath = await resolve('graph-explorer/dist/', import.meta.url) | ||
const distPath = resolve('graph-explorer/dist/', import.meta.url) | ||
server.register(fastifyStatic, { | ||
@@ -75,3 +75,4 @@ root: distPath.replace(/^file:\/\//, ''), | ||
if (fullUrlPathname.slice(-1) !== '/') { | ||
return reply.redirect(`${fullUrlPathname}/`) | ||
reply.redirect(`${fullUrlPathname}/`) | ||
return reply | ||
} | ||
@@ -99,3 +100,4 @@ | ||
return reply.type('text/html').send(content) | ||
reply.type('text/html').send(content) | ||
return reply | ||
} | ||
@@ -102,0 +104,0 @@ return handler |
@@ -6,3 +6,3 @@ { | ||
"main": "index.js", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"license": "MIT", | ||
@@ -20,15 +20,19 @@ "homepage": "https://github.com/zazuko/trifid", | ||
"coverage": "codecov", | ||
"test": "c8 --reporter=lcov --reporter=text mocha" | ||
"test": "c8 --all --reporter=lcovonly --reporter=text mocha" | ||
}, | ||
"dependencies": { | ||
"@fastify/static": "^7.0.1", | ||
"@fastify/static": "^7.0.4", | ||
"graph-explorer": "^1.2.0", | ||
"import-meta-resolve": "^4.0.0" | ||
"import-meta-resolve": "^4.1.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.11.20", | ||
"c8": "^9.1.0", | ||
"mocha": "^10.2.0", | ||
"trifid-core": "^4.0.0" | ||
"@types/node": "^22.4.1", | ||
"c8": "^10.1.2", | ||
"mocha": "^10.7.3", | ||
"trifid-core": "^5.0.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"provenance": true | ||
} | ||
} |
9018
155
Updated@fastify/static@^7.0.4
Updatedimport-meta-resolve@^4.1.0