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

@godaddy/terminus

Package Overview
Dependencies
Maintainers
9
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@godaddy/terminus - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

2

lib/terminus.js

@@ -68,3 +68,3 @@ 'use strict'

server.on('request', async (req, res) => {
const url = caseInsensitive ? req.url : req.url.toLowerCase()
const url = caseInsensitive ? req.url.toLowerCase() : req.url
const healthCheck = healthChecks[url]

@@ -71,0 +71,0 @@ if (healthCheck) {

@@ -87,2 +87,20 @@ 'use strict'

it('case insensitive opt-in - should working with original path', async () => {
let onHealthCheckRan = false
createTerminus(server, {
healthChecks: {
'/healthCheck': () => {
onHealthCheckRan = true
return Promise.resolve()
}
},
caseInsensitive: true
})
server.listen(8000)
await fetch('http://localhost:8000/healthCheck')
expect(onHealthCheckRan).to.eql(true)
})
it('includes info on resolve', async () => {

@@ -89,0 +107,0 @@ let onHealthCheckRan = false

{
"name": "@godaddy/terminus",
"version": "4.3.0",
"version": "4.3.1",
"description": "",

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

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