
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
sails-hook-mongoat2
Advanced tools
Provides advanced mongo indexing options for sails models that use the sails-mongo adapter.
Provides advanced mongo indexing options for sails.js models that use the sails-mongo adapter.
npm i sails-hook-mongoat
Then simply add an 'indexes' array property to your sails model(s) that you want to add custom indexers on. This contains all your indexes.
Index properties:
Creating a 'expires after' index
// MY MODEL WITH A DATE FIELD
module.exports = {
attributes: {
myDate: {
type: 'date',
required: true
}
},
indexes: [
{
attributes: {
myDate: 1
},
options: {
expireAfterSeconds: 60 // expire 60s after myDate
}
}
]
};
Creating a composite unique index
// MY EVENTS MODEL
module.exports = {
attributes: {
event_id: {
type: 'integer',
required: true
},
match_id: {
type: 'integer',
required: true
}
},
indexes: [
//event & match composite index
{
attributes: {
event_id: -1, // desc
match: 1 // asc
},
options: {
unique: true
}
}
]
};
FAQs
Provides advanced mongo indexing options for sails models that use the sails-mongo adapter.
The npm package sails-hook-mongoat2 receives a total of 0 weekly downloads. As such, sails-hook-mongoat2 popularity was classified as not popular.
We found that sails-hook-mongoat2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.