New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.1-1 to 0.3.1-2

2

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

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

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

baucis v0.3.1-1
baucis v0.3.1-2
===============

@@ -125,4 +125,2 @@

Requests to the collection (not its members) take standard MongoDB query parameters to filter the documents based on custom criteria.
Examples with jQuery:

@@ -139,4 +137,20 @@

data: {
name: 'carrot',
color: 'orange'
}
}).done(function (vegetable) {
// The new document that was just created
console.dir(vegetable);
});
Requests to the collection (not its members) take standard MongoDB query parameters to filter the documents based on custom criteria.
$.ajax({
type: 'GET',
dataType: 'json',
url: '/api/v1/vegetables',
data: {
conditions: JSON.stringify({
name: 'Potato'
color: 'red',
'nutrition.sodium': { $lte: 10 }
})

@@ -152,3 +166,3 @@ }

url: '/vegetables',
// This method JSONifies baucis' options into fetch's `data` option,
// This method stringifies baucis' options into fetch's `data` option,
// while leaving regular fetch options as they are.

@@ -176,6 +190,7 @@ baucis: function (baucisOptions, fetchOptions) {

// Besides, the `conditions` option, `populate` is also currently
// supported, to allow population of references to other documents.
Besides, the `conditions` option, `populate` is also currently
supported, to allow population of references to other documents.
var promise = vegetables.baucis({
conditions: { color: red, 'nutirition.soudium': { $lte: 10 } },
conditions: { color: red },
populate: 'child'

@@ -199,6 +214,4 @@ }});

See the Mongoose [population documentation](http://mongoosejs.com/docs/populate.html) for more information!
See the Mongoose [population documentation](http://mongoosejs.com/docs/populate.html) for more information.
Contact Info

@@ -205,0 +218,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