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

baucis

Package Overview
Dependencies
Maintainers
1
Versions
202
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baucis - npm Package Compare versions

Comparing version 0.4.6-3 to 0.4.6-4

2

package.json
{
"name": "baucis",
"version": "0.4.6-3",
"version": "0.4.6-4",
"main": "index.js",

@@ -5,0 +5,0 @@ "scripts": {

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

baucis v0.4.6-3
baucis v0.4.6-4
===============

@@ -68,12 +68,14 @@

* `ETag` is supported out-of-the-box by Express
* `Last-Modified` can be set by passing `lastModified: 'foo'` to `baucis.rest` in order to set the header field to the value of that path on all requests.
GET requests to the collection set the field to the latest date out of all documents returned by the query.
* `Accept: application/json` is set for all responses.
* The `Allow` header is set automatically, correctly removing HTTP verbs when
those verbs have been disabled with e.g. `put: false`.
* The `Location` HTTP header is set for PUT and POST responses.
* If `relations: true` is passed to `baucis.rest`, the HTTP `Link` header will be set with various links for all responses.
| Header Field | |
| ------------ | --- |
| ETag | Supported out-of-the-box by Express. |
| Last-Modified | Can be set automatically by Baucis. Pass `lastModified: 'foo'` to `baucis.rest` in order to set the path to be used (currently it must be a `Date`). GET requests to the collection set this to the latest date out of all documents returned by the query.
| Accept | Set to `application/json` for all responses. |
| Allow | Set automatically, correctly removing HTTP verbs when those verbs have been disabled by e.g. passing `put: false` to `baucis.rest`. |
| Location | Set for PUT and POST responses. |
| Link | If `relations: true` is passed to `baucis.rest`, this header will be set with various related links for all responses. |
Examples

@@ -80,0 +82,0 @@ --------

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