You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

hapi-transform-table

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-transform-table - npm Package Compare versions

Comparing version

to
1.5.1

2

index.js

@@ -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;

2

package.json
{
"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",