@bull-board-ay/hapi
Advanced tools
Comparing version 0.0.5 to 0.0.7
@@ -37,3 +37,3 @@ "use strict"; | ||
method: methods.map((method) => method.toUpperCase()), | ||
path: toHapiPath_1.toHapiPath(path), | ||
path: (0, toHapiPath_1.toHapiPath)(path), | ||
handler: routeRaw.handler, | ||
@@ -57,3 +57,3 @@ }); | ||
pkg: require('../package.json'), | ||
register: async (server) => { | ||
register: async (server, options = {}) => { | ||
if (!this.statics) { | ||
@@ -88,2 +88,3 @@ throw new Error(`Please call 'setStaticPath' before using 'registerPlugin'`); | ||
path: `${this.statics.route}/{param*}`, | ||
options, | ||
handler: { | ||
@@ -99,3 +100,4 @@ directory: { | ||
method: method.toUpperCase(), | ||
path: toHapiPath_1.toHapiPath(path), | ||
path: (0, toHapiPath_1.toHapiPath)(path), | ||
options, | ||
handler: (_request, h) => { | ||
@@ -111,2 +113,3 @@ const { name } = handler(); | ||
path: route.path, | ||
options, | ||
handler: async (request, h) => { | ||
@@ -113,0 +116,0 @@ try { |
{ | ||
"name": "@bull-board-ay/hapi", | ||
"version": "0.0.5", | ||
"version": "0.0.7", | ||
"description": "Hapi.js server adapter for Bull-Board package", | ||
@@ -28,7 +28,8 @@ "keywords": [ | ||
"build": "tsc", | ||
"build:watch": "tsc -w", | ||
"clean": "rm -rf dist" | ||
}, | ||
"dependencies": { | ||
"@bull-board-ay/api": "^0.0.5", | ||
"@bull-board-ay/ui": "^0.0.5", | ||
"@bull-board-ay/api": "^0.0.7", | ||
"@bull-board-ay/ui": "^0.0.7", | ||
"@hapi/inert": "^6.0.3", | ||
@@ -35,0 +36,0 @@ "@hapi/vision": "^6.1.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13452
166
+ Added@bull-board-ay/api@0.0.7(transitive)
+ Added@bull-board-ay/ui@0.0.7(transitive)
- Removed@bull-board-ay/api@0.0.5(transitive)
- Removed@bull-board-ay/ui@0.0.5(transitive)
Updated@bull-board-ay/api@^0.0.7
Updated@bull-board-ay/ui@^0.0.7