hapi-transform-table
Advanced tools
Comparing version
@@ -16,4 +16,6 @@ const jsonToTable = require('json-to-table'); | ||
if (request.path.endsWith('.html')) { | ||
const query = request.query; | ||
request.headers.accept = 'text/html'; | ||
request.setUrl(request.path.replace('.html', '')); | ||
request.query = query; | ||
} | ||
@@ -20,0 +22,0 @@ return h.continue; |
{ | ||
"name": "hapi-transform-table", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "hapi plugin for routes that need to return json as HTML tables ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
2
-33.33%3792
-73.17%5
-58.33%60
-84.21%