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.5.0 to 0.5.1

Controller.js

2

package.json
{
"name": "baucis",
"version": "0.5.0",
"version": "0.5.1",
"main": "index.js",

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

@@ -1,3 +0,3 @@

baucis v0.5.0
===============
baucis v0.5.1
=============

@@ -128,3 +128,3 @@ Baucis is Express middleware that creates configurable REST APIs using Mongoose schemata.

| request | This stage of middleware will be called after baucis applies defaults based on the request, but before the Mongoose query is generated |
| query | This stage of middleware will be called after baucis applies defaults to the Mongoose query object, but before the documents or count is retrieved from the databased. The query can be accessed in your custom middleware via `request.baucis.query`. |
| query | This stage of middleware will be called after baucis applies defaults to the Mongoose query object, but before the documents or count is retrieved from the database. The query can be accessed in your custom middleware via `request.baucis.query`. |
| documents | This stage of middleware will be called after baucis executes the query, but before the documents or count are sent in the response. The documents/count can be accessed in your custom middleware via `request.baucis.documents`. |

@@ -166,10 +166,2 @@

To disable verbs completely:
baucis.rest({
singular: 'vegetable',
del: false,
put: false
});
Controller Options

@@ -187,2 +179,3 @@ ------------------

| lastModified | Set the `Last-Modified` HTTP header useing the given field. Currently this field must be a `Date`. |
| head, get, post, put, del | May be set to false to disable those HTTP verbs completely for the controller |

@@ -189,0 +182,0 @@ An example of embedding a controller within another controller

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