hapi-swagger-static
Advanced tools
Comparing version
{ | ||
"name": "hapi-swagger-static", | ||
"version": "2.0.15", | ||
"version": "2.0.16", | ||
"description": "A small companion plugin for `hapi-swagger` or `hapi-swaggered` providing a static html documentation page as hapi route", | ||
"main": "src/index.js", | ||
"types": "src/index.d.ts", | ||
"author": "Frank Thelen", | ||
@@ -34,2 +35,10 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@hapi/hapi": "^19.2.0", | ||
"@hapi/inert": "^6.0.4", | ||
"@hapi/vision": "^6.1.0", | ||
"@types/hapi": "^18.0.6", | ||
"@types/hapi__hapi": "^20.0.9", | ||
"@types/hapi__inert": "^5.2.3", | ||
"@types/hapi__vision": "^5.5.3", | ||
"ansi-regex": ">=5.0.1", | ||
"babel-eslint": "^10.1.0", | ||
@@ -44,12 +53,5 @@ "coveralls": "^3.1.1", | ||
"eslint-plugin-should-promised": "^2.0.0", | ||
"hapi18": "npm:@hapi/hapi@^18.4.0", | ||
"hapi19": "npm:@hapi/hapi@^19.0.5", | ||
"hapiSwagger11": "npm:hapi-swagger@^11.1.0", | ||
"hapiSwagger12": "npm:hapi-swagger@^12.0.0", | ||
"inert5": "npm:@hapi/inert@^5.2.2", | ||
"inert6": "npm:@hapi/inert@^6.0.1", | ||
"hapi-swagger": "^12.1.3", | ||
"jest": "^27.1.0", | ||
"semver": "^7.3.5", | ||
"vision5": "npm:@hapi/vision@^5.5.4", | ||
"vision6": "npm:@hapi/vision@^6.0.0" | ||
"tmpl": ">=1.0.5" | ||
}, | ||
@@ -56,0 +58,0 @@ "dependencies": { |
@@ -11,3 +11,3 @@ # hapi-swagger-static | ||
[](https://coveralls.io/github/funny-bytes/hapi-swagger-static?branch=master) | ||
[](https://david-dm.org/frankthelen/hapi-swagger-static) | ||
[](https://david-dm.org/funny-bytes/hapi-swagger-static) | ||
[](https://codeclimate.com/github/funny-bytes/hapi-swagger-static/maintainability) | ||
@@ -14,0 +14,0 @@ []() |
const fs = require('fs'); | ||
const semver = require('semver'); | ||
const Hapi = require('@hapi/hapi'); | ||
const HapiSwagger = require('hapi-swagger'); | ||
const Inert = require('@hapi/inert'); | ||
const Vision = require('@hapi/vision'); | ||
const HapiSwaggerStatic = require('..'); // eslint-disable-line import/order | ||
const nodeVersion = process.version; | ||
const node12 = semver.satisfies(nodeVersion, '>=12.x.x'); | ||
const Hapi = node12 ? require('hapi19') : require('hapi18'); | ||
const HapiSwagger = node12 ? require('hapiSwagger12') : require('hapiSwagger11'); | ||
const Inert = node12 ? require('inert6') : require('inert5'); | ||
const Vision = node12 ? require('vision6') : require('vision5'); | ||
// jest.mock('fs'); | ||
// eslint-disable-next-line no-console | ||
console.log(`Testing Node ${nodeVersion}, Hapi ${node12 ? '19' : '18'}`); | ||
async function setup({ pluginOptions = {} }) { | ||
@@ -18,0 +11,0 @@ const server = new Hapi.Server({ |
const fs = require('fs'); | ||
const path = require('path'); | ||
const util = require('util'); | ||
const semver = require('semver'); | ||
const Hapi = require('@hapi/hapi'); | ||
const HapiSwaggerStatic = require('..'); // eslint-disable-line import/order | ||
@@ -9,9 +9,2 @@ | ||
const nodeVersion = process.version; | ||
const node12 = semver.satisfies(nodeVersion, '>=12.x.x'); | ||
const Hapi = node12 ? require('hapi19') : require('hapi18'); | ||
// eslint-disable-next-line no-console | ||
console.log(`Testing Node ${nodeVersion}, Hapi ${node12 ? '19' : '18'}`); | ||
async function setup({ pluginOptions = {} }) { | ||
@@ -18,0 +11,0 @@ const server = new Hapi.Server({ |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
12
9.09%1269
0.48%0
-100%43321
-0.06%20
5.26%