Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
waterline-criteria
Advanced tools
Utility library for use in Sails adapters where you need to filter a list of output using a criteria object
Helper module designed for adapters which communicate with key/value stores such as Sails-Disk, Sails-Memory, and sails-redis (i.e. they already implement the semantic
interface, but need to implement the queryable
interface)
========================================
Jump to... | |
---|---|
I | Browser |
II | Node.js |
III | Version Notes |
IV | License |
========================================
$ bower install waterline-criteria
<!-- .... -->
</body>
<script type="text/javascript" src="./path/to/bower_components/waterline-criteria/index.js"></script>
<script type="text/javascript">
var someData = [{
id: 1,
name: 'Lyra'
}, {
id: 2,
name 'larry'
}];
var x = wlFilter(someData, {
where: {
name: { contains: 'lyr' }
}
}).results;
// x ==> [{name: 'Lyra', id: 1}]
</script>
</html>
========================================
$ npm install waterline-criteria
var wlFilter = require('waterline-criteria');
var someData = [{
id: 1,
name: 'Lyra'
}, {
id: 2,
name 'larry'
}];
var x = wlFilter(someData, {
where: {
name: { contains: 'lyr' }
}
}).results;
// x ==> [{name: 'Lyra', id: 1}]
========================================
The master branch of this repository holds waterline-criteria for Sails versions 0.10.0 and up. If you're looking for the version for the v0.9.x releases of Sails, the source is located here.
========================================
MIT © 2014 Mike McNeil, Balderdash & contributors
This module is part of the Sails framework, and is free and open-source under the MIT License.
FAQs
Utility library for working with Waterline criterias. Especially useful when building Sails adapters for key/value databases.
We found that waterline-criteria demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.