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.3.3-1 to 0.3.3-2

2

package.json
{
"name": "baucis",
"version": "0.3.3-1",
"version": "0.3.3-2",
"main": "index.js",

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

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

baucis v0.3.3-1
baucis v0.3.3-2
===============

@@ -25,5 +25,4 @@

An example of creating a REST API from a Mongoose schema:
An example of creating a REST API from a couple Mongoose schemata:
// Define a couple Mongoose schemata
var Vegetable = new mongoose.Schema({

@@ -37,9 +36,10 @@ name: String

// Also note that Mongoose middleware will be executed as usual.
// Note that Mongoose middleware will be executed as usual
Vegetable.pre('save', function () { ... });
// Register the schema
// Register the schemata
mongoose.model('vegetable', Vegetable);
mongoose.model('fruit', Fruit);
// Create routes for the schemata
// Create the API routes
baucis.rest({

@@ -46,0 +46,0 @@ singular: 'vegetable',

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