Socket
Socket
Sign inDemoInstall

hafas-rest-api

Package Overview
Dependencies
139
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.0-alpha.1 to 6.0.0-alpha.2

2

license.md

@@ -1,2 +0,2 @@

Copyright (c) 2023, Jannis R
Copyright (c) 2024, Jannis R

@@ -3,0 +3,0 @@ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

{
"name": "hafas-rest-api",
"description": "Expose a HAFAS client via an HTTP REST API.",
"version": "6.0.0-alpha.1",
"version": "6.0.0-alpha.2",
"main": "index.js",

@@ -43,7 +43,7 @@ "type": "module",

"luxon": "^3.1.1",
"markdown-it": "^13.0.1",
"markdown-it": "^14.0.0",
"on-headers": "^1.0.2",
"parse-human-relative-time": "^3.0.0",
"pino": "^8.8.0",
"pino-http": "^8.2.1",
"pino-http": "^9.0.0",
"shorthash": "0.0.2",

@@ -60,3 +60,3 @@ "stringify-entities": "^4.0.3"

"pino-pretty": "^10.0.1",
"tap-min": "^2.0.0",
"tap-min": "^3.0.0",
"tape": "^5.1.1",

@@ -63,0 +63,0 @@ "tape-promise": "^4.0.0"

@@ -45,3 +45,3 @@ # hafas-rest-api

----|-------------|------------|--------------
`hostname` | The public hostname of the API. | ✔︎ | –
`hostname` | The public hostname of the API. | ✔︎ | [`os.hostname()`](https://nodejs.org/docs/latest-v18.x/api/os.html#oshostname)
`name` | The name of the API. Used for the `X-Powered-By` header and the about page. | ✔︎ | –

@@ -52,2 +52,3 @@ `description` | Used for the about page. | ✔︎ (with `aboutPage: true`) | –

`etags` | [Express config](https://expressjs.com/en/4x/api.html#etag.options.table) for [`ETag` headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag) | ✗ | `weak`
`csp` | The [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) sent as an HTTP header | ✗ | `default-src 'none'`
`handleErrors` | Handle errors by sending `5**` codes and JSON. | ✗ | `true`

@@ -54,0 +55,0 @@ `logging` | Log requests using [`pino`](https://npmjs.com/package/pino)? | ✗ | `false`

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc