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

sails-disk

Package Overview
Dependencies
Maintainers
3
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sails-disk - npm Package Compare versions

Comparing version 0.10.2 to 0.10.3

70

lib/adapter.js

@@ -101,46 +101,34 @@ /**

// Fetch parent results
db.select(parentIdentity, {
where: criteria.where,
limit: criteria.limit,
skip: criteria.skip,
sort: criteria.sort
}, function (err, parentResults){
if (err) return cb(err);
// Populate associated records for each parent result
// (or do them all at once as an optimization, if possible)
_runJoins({
// Populate associated records for each parent result
// (or do them all at once as an optimization, if possible)
_runJoins({
instructions: criteria,
parentCollection: parentIdentity,
parentResults: parentResults,
/**
* Find some records directly (using only this adapter)
* from the specified collection.
*
* @param {String} collectionIdentity
* @param {Object} criteria
* @param {Function} cb
*/
$find: function (collectionIdentity, criteria, cb) {
return db.select(collectionIdentity, criteria, cb);
},
instructions: criteria.joins,
/**
* Look up the name of the primary key field
* for the collection with the specified identity.
*
* @param {String} collectionIdentity
* @return {String}
*/
$getPK: function (collectionIdentity) {
if (!collectionIdentity) return;
return db.getPKField(collectionIdentity);
}
}, cb);
/**
* Find some records directly (using only this adapter)
* from the specified collection.
*
* @param {String} collectionIdentity
* @param {Object} criteria
* @param {Function} cb
*/
$find: function (collectionIdentity, criteria, cb) {
return db.select(collectionIdentity, criteria, cb);
},
/**
* Look up the name of the primary key field
* for the collection with the specified identity.
*
* @param {String} collectionIdentity
* @return {String}
*/
$getPK: function (collectionIdentity) {
if (!collectionIdentity) return;
return db.getPKField(collectionIdentity);
}
}, cb);
});// <find parent results>
},

@@ -195,2 +183,2 @@

};
}
}
{
"name": "sails-disk",
"version": "0.10.2",
"version": "0.10.3",
"description": "Persistent local-disk adapter for Sails.js / Waterline",

@@ -36,3 +36,3 @@ "main": "lib/adapter.js",

"async": "~0.2.9",
"waterline-cursor": "~0.0.0"
"waterline-cursor": "~0.0.3"
},

@@ -39,0 +39,0 @@ "devDependencies": {

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