Socket
Socket
Sign inDemoInstall

swagger-stats

Package Overview
Dependencies
88
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.95.8 to 0.95.9

2

examples/authtest/authtest.js

@@ -67,3 +67,3 @@ 'use strict';

name: 'swagger-stats-authtest',
version: '0.95.8',
version: '0.95.9',
hostname: "hostname",

@@ -70,0 +70,0 @@ ip: "127.0.0.1",

@@ -5,4 +5,4 @@ 'use strict';

const swStats = require('../../lib'); // require('swagger-stats');
const Inert = require('@hapi/inert');
const swaggerSpec = require('./petstore.json');

@@ -59,7 +59,5 @@

await server.register(Inert);
let swsOptions = {
name: 'swagger-stats-hapitest',
version: '0.95.8',
version: '0.95.9',
hostname: "hostname",

@@ -66,0 +64,0 @@ ip: "127.0.0.1",

@@ -79,3 +79,3 @@ 'use strict';

name: 'swagger-stats-spectest',
version: '0.95.8',
version: '0.95.9',
hostname: "hostname",

@@ -82,0 +82,0 @@ ip: "127.0.0.1",

@@ -112,3 +112,3 @@ 'use strict';

name: 'swagger-stats-testapp',
version: '0.95.8',
version: '0.95.9',
timelineBucketDuration: tlBucket,

@@ -115,0 +115,0 @@ uriPath: '/swagger-stats',

@@ -7,5 +7,6 @@ /* swagger-stats Hapi plugin */

const debug = require('debug')('sws:hapi');
const Inert = require('@hapi/inert');
//const Inert = require('@hapi/inert');
const url = require('url');
const qs = require('qs');
const send = require('send');

@@ -107,6 +108,12 @@ /* HAPI Plugin */

path: this.pathDist+'/{file*}',
handler: {
directory: {
path: path.join(__dirname,'..','dist')
}
handler: function (request, h) {
let fileName = request.params.file;
var options = {
root: path.join(__dirname,'..','dist'),
dotfiles: 'deny'
// TODO Caching
};
request.raw.res.setHeader('Content-Type', send.mime.lookup(path.basename(fileName)));
send(request.raw.req, fileName, options).pipe(request.raw.res);
return h.abandon;
}

@@ -113,0 +120,0 @@ })

{
"name": "swagger-stats",
"version": "0.95.8",
"version": "0.95.9",
"description": "API Telemetry and APM. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices, based on express routes and Swagger (Open API) specification",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -242,2 +242,7 @@ <p align="center">

#### v0.95.9
* [bug] Removed dependency on Inert when using with Hapi [#79](https://github.com/slanatech/swagger-stats/issues/79)
#### v0.95.8

@@ -244,0 +249,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc