Comparing version 0.7.5 to 0.8.0
@@ -0,1 +1,2 @@ | ||
import { readinessSchema, livenessSchema } from './schema'; | ||
const READINESS_URL = '/arecibo/readiness'; | ||
@@ -85,6 +86,6 @@ const LIVENESS_URL = '/arecibo/liveness'; | ||
const livenessCallback = opts.livenessCallback || defaultResponse(message); | ||
fastify.get(readinessURL, readinessCallback); | ||
fastify.get(livenessURL, livenessCallback); | ||
fastify.get(readinessURL, { schema: readinessSchema }, readinessCallback); | ||
fastify.get(livenessURL, { schema: livenessSchema }, livenessCallback); | ||
next(); | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -7,2 +7,5 @@ "use strict"; | ||
exports.default = arecibo; | ||
var _schema = require("./schema"); | ||
const READINESS_URL = '/arecibo/readiness'; | ||
@@ -99,4 +102,8 @@ const LIVENESS_URL = '/arecibo/liveness'; | ||
const livenessCallback = opts.livenessCallback || defaultResponse(message); | ||
fastify.get(readinessURL, readinessCallback); | ||
fastify.get(livenessURL, livenessCallback); | ||
fastify.get(readinessURL, { | ||
schema: _schema.readinessSchema | ||
}, readinessCallback); | ||
fastify.get(livenessURL, { | ||
schema: _schema.livenessSchema | ||
}, livenessCallback); | ||
next(); | ||
@@ -103,0 +110,0 @@ } |
{ | ||
"name": "arecibo", | ||
"version": "0.7.5", | ||
"version": "0.8.0", | ||
"description": "Fastify plugin that respondes to kubernetes readiness and liveness probes.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -10,5 +10,5 @@ <div align="center"> | ||
[![NPM version](https://img.shields.io/npm/v/arecibo.svg?style=flat)](https://www.npmjs.com/package/arecibo) | ||
[![Build Status](https://travis-ci.org/nucleode/arecibo.svg?branch=master)](https://travis-ci.org/nucleode/arecibo) | ||
[![NPM downloads](https://img.shields.io/npm/dm/arecibo.svg?style=flat)](https://www.npmjs.com/package/arecibo) | ||
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![Greenkeeper badge](https://badges.greenkeeper.io/nucleode/arecibo.svg)](https://greenkeeper.io/) | ||
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/nucleode/arecibo/badge.svg?targetFile=package.json)](https://snyk.io/test/github/nucleode/arecibo?targetFile=package.json) | ||
@@ -15,0 +15,0 @@ </div> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21221
14
279
0