Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arecibo

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arecibo - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

.babelrc

114

build/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const READINESS_URL = '/arecibo/readiness';
const LIVENESS_URL = '/arecibo/liveness';
const defaultMessage = `
00000010101010000000000
00101000001010000000100
10001000100010010110010
10101010101010100100100
00000000000000000000000
00000000000011000000000
00000000001101000000000
00000000001101000000000
00000000010101000000000
00000000011111000000000
00000000000000000000000
11000011100011000011000
10000000000000110010000
11010001100011000011010
11111011111011111011111
00000000000000000000000
00010000000000000000010
00000000000000000000000
00001000000000000000001
11111000000000000011111
00000000000000000000000
11000011000011100011000
10000000100000000010000
11010000110001110011010
11111011111011111011111
00000000000000000000000
00010000001100000000010
00000000001100000000000
00001000001100000000001
11111000001100000011111
00000000001100000000000
00100000000100000000100
00010000001100000001000
00001100001100000010000
00000011000100001100000
00000000001100110000000
00000011000100001100000
00001100001100000010000
00010000001000000001000
00100000001100000000100
01000000001100000000100
01000000000100000001000
00100000001000000010000
00010000000000001100000
00001100000000110000000
00100011101011000000000
00100000001000000000000
00100000111110000000000
00100001011101001011011
00000010011100100111111
10111000011100000110111
00000000010100000111011
00100000010100000111111
00100000010100000110000
00100000110110000000000
00000000000000000000000
00111000001000000000000
00111010100010101010101
00111000000000101010100
00000000000000101000000
00000000111110000000000
00000011111111100000000
00001110000000111000000
00011000000000001100000
00110100000000010110000
01100110000000110011000
01000101000001010001000
01000100100010010001000
00000100010100010000000
00000100001000010000000
00000100000000010000000
00000001001010000000000
01111001111101001111000
`;
const defaultResponse = (message) => (_, reply) => {
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = arecibo;
var READINESS_URL = '/arecibo/readiness';
var LIVENESS_URL = '/arecibo/liveness';
var defaultMessage = "\n00000010101010000000000\n00101000001010000000100\n10001000100010010110010\n10101010101010100100100\n00000000000000000000000\n00000000000011000000000\n00000000001101000000000\n00000000001101000000000\n00000000010101000000000\n00000000011111000000000\n00000000000000000000000\n11000011100011000011000\n10000000000000110010000\n11010001100011000011010\n11111011111011111011111\n00000000000000000000000\n00010000000000000000010\n00000000000000000000000\n00001000000000000000001\n11111000000000000011111\n00000000000000000000000\n11000011000011100011000\n10000000100000000010000\n11010000110001110011010\n11111011111011111011111\n00000000000000000000000\n00010000001100000000010\n00000000001100000000000\n00001000001100000000001\n11111000001100000011111\n00000000001100000000000\n00100000000100000000100\n00010000001100000001000\n00001100001100000010000\n00000011000100001100000\n00000000001100110000000\n00000011000100001100000\n00001100001100000010000\n00010000001000000001000\n00100000001100000000100\n01000000001100000000100\n01000000000100000001000\n00100000001000000010000\n00010000000000001100000\n00001100000000110000000\n00100011101011000000000\n00100000001000000000000\n00100000111110000000000\n00100001011101001011011\n00000010011100100111111\n10111000011100000110111\n00000000010100000111011\n00100000010100000111111\n00100000010100000110000\n00100000110110000000000\n00000000000000000000000\n00111000001000000000000\n00111010100010101010101\n00111000000000101010100\n00000000000000101000000\n00000000111110000000000\n00000011111111100000000\n00001110000000111000000\n00011000000000001100000\n00110100000000010110000\n01100110000000110011000\n01000101000001010001000\n01000100100010010001000\n00000100010100010000000\n00000100001000010000000\n00000100000000010000000\n00000001001010000000000\n01111001111101001111000\n";
var defaultResponse = function defaultResponse(message) {
return function (_, reply) {
reply.type('text/html').send(message);
};
};
function arecibo(fastify, opts, next) {
const { message = defaultMessage, readinessURL = READINESS_URL, livenessURL = LIVENESS_URL, } = opts;
const readinessCallback = opts.readinessCallback || defaultResponse(message);
const livenessCallback = opts.livenessCallback || defaultResponse(message);
fastify.get(readinessURL, readinessCallback);
fastify.get(livenessURL, livenessCallback);
next();
var _opts$message = opts.message,
message = _opts$message === void 0 ? defaultMessage : _opts$message,
_opts$readinessURL = opts.readinessURL,
readinessURL = _opts$readinessURL === void 0 ? READINESS_URL : _opts$readinessURL,
_opts$livenessURL = opts.livenessURL,
livenessURL = _opts$livenessURL === void 0 ? LIVENESS_URL : _opts$livenessURL;
var readinessCallback = opts.readinessCallback || defaultResponse(message);
var livenessCallback = opts.livenessCallback || defaultResponse(message);
fastify.get(readinessURL, readinessCallback);
fastify.get(livenessURL, livenessCallback);
next();
}
exports.default = arecibo;
//# sourceMappingURL=index.js.map
module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6WyJSRUFESU5FU1NfVVJMIiwiTElWRU5FU1NfVVJMIiwiZGVmYXVsdE1lc3NhZ2UiLCJkZWZhdWx0UmVzcG9uc2UiLCJtZXNzYWdlIiwiXyIsInJlcGx5IiwidHlwZSIsInNlbmQiLCJhcmVjaWJvIiwiZmFzdGlmeSIsIm9wdHMiLCJuZXh0IiwicmVhZGluZXNzVVJMIiwibGl2ZW5lc3NVUkwiLCJyZWFkaW5lc3NDYWxsYmFjayIsImxpdmVuZXNzQ2FsbGJhY2siLCJnZXQiXSwibWFwcGluZ3MiOiI7Ozs7OztBQUdBLElBQU1BLGFBQWEsR0FBRyxvQkFBdEI7QUFDQSxJQUFNQyxZQUFZLEdBQUcsbUJBQXJCO0FBRUEsSUFBTUMsY0FBYyx3eURBQXBCOztBQTRFQSxJQUFNQyxlQUFlLEdBQUcsU0FBbEJBLGVBQWtCLENBQUNDLE9BQUQ7QUFBQSxTQUFzRSxVQUM1RkMsQ0FENEYsRUFFNUZDLEtBRjRGLEVBR3pGO0FBQ0hBLElBQUFBLEtBQUssQ0FBQ0MsSUFBTixDQUFXLFdBQVgsRUFBd0JDLElBQXhCLENBQTZCSixPQUE3QjtBQUNELEdBTHVCO0FBQUEsQ0FBeEI7O0FBZ0JlLFNBQVNLLE9BQVQsQ0FBaUJDLE9BQWpCLEVBQTBCQyxJQU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VJMLFxuICB9ID0gb3B0c1xuXG4gIGNvbnN0IHJlYWRpbmVzc0NhbGxiYWNrID0gb3B0cy5yZWFkaW5lc3NDYWxsYmFjayB8fCBkZWZhdWx0UmVzcG9uc2UobWVzc2FnZSlcbiAgY29uc3QgbGl2ZW5lc3NDYWxsYmFjayA9IG9wdHMubGl2ZW5lc3NDYWxsYmFjayB8fCBkZWZhdWx0UmVzcG9uc2UobWVzc2FnZSlcblxuICBmYXN0aWZ5LmdldChyZWFkaW5lc3NVUkwsIHJlYWRpbmVzc0NhbGxiYWNrKVxuICBmYXN0aWZ5LmdldChsaXZlbmVzc1VSTCwgbGl2ZW5lc3NDYWxsYmFjaylcblxuICBuZXh0KClcbn1cbiJdfQ==
{
"name": "arecibo",
"version": "0.5.0",
"version": "0.6.0",
"description": "Fastify plugin that respondes to kubernetes readiness and liveness probes.",

@@ -8,5 +8,8 @@ "main": "./build/index.js",

"scripts": {
"prebuild": "npm-run-all clean-build lint",
"build": "tsc -p ./tsconfig.json",
"type-check": "tsc -p ./tsconfig.json --noEmit",
"clean-build": "rimraf ./build && mkdir build",
"prebuild": "npm-run-all clean-build lint type-check",
"build": "npm run build-types && npm run build-js",
"build-types": "tsc --emitDeclarationOnly",
"build-js": "babel ./src --out-dir build --extensions \".ts,.tsx\" --source-maps inline",
"prettier": "prettier --loglevel warn --write \"src/**/*.{ts,tsx}\"",

@@ -38,3 +41,11 @@ "prelint": "npm run prettier",

"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-transform-modules-commonjs": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-typescript": "^7.0.0",
"@types/node": "^10.9.3",
"babel-plugin-add-module-exports": "^0.2.1",
"fastify": "^1.11.1",

@@ -41,0 +52,0 @@ "npm-run-all": "^4.1.3",

@@ -12,2 +12,3 @@ <div align="center">

[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

@@ -25,3 +26,3 @@ </div>

```javascript
const arecibo = require('arecibo') // or import arecibo from 'arecibo'
const arecibo = require('arecibo') // or import * as arecibo from 'arecibo'

@@ -28,0 +29,0 @@ fastify.register(arecibo, {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc