hapi-transform-table
Advanced tools
Comparing version
@@ -33,4 +33,4 @@ const jsonToTable = require('json-to-table'); | ||
} | ||
request.query = query; | ||
request.setUrl(newUrl); | ||
request.query = query; | ||
} | ||
@@ -37,0 +37,0 @@ return h.continue; |
{ | ||
"name": "hapi-transform-table", | ||
"version": "1.8.1", | ||
"version": "2.0.0", | ||
"description": "hapi plugin for routes that need to return json as HTML tables ", | ||
@@ -27,6 +27,6 @@ "main": "index.js", | ||
"eslint-plugin-import": "^2.8.0", | ||
"hapi": "^17.2.0", | ||
"hapi-password": "^5.1.0", | ||
"hapi": "^18.0.0", | ||
"hapi-password": "^6.0.0", | ||
"tap": "^11.0.1" | ||
} | ||
} |
@@ -414,3 +414,2 @@ /* istanbul ignore file */ | ||
handler(request, h) { | ||
t.equal(request.url.path, '/path1?test=1'); | ||
t.equal(request.query.test, '1', 'query param forwarded'); | ||
@@ -417,0 +416,0 @@ return []; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
20668
0.9%526
-0.19%