Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Small library to add DataMapper style resources for MongoDB.
class ExampleResource
include Mordor::Resource
attribute :first, :index => true
attribute :second
attribute :third, :finder_method => :find_by_third_attribute
attribute :at, :timestamp => true
end
This adds attr_accessors to the ExampleResource for each attribute, plus adds finder methods of the form
find_by_{attribute}
. The naming convention can be overridden by using the optional :finder_method
option,
as can be seen with the third attribute.
When the :index => true
option is set, indices are ensured before each query on
the collection. Indices are descending by default, but this can be changed by also supplying a :index_type => Mongo::ASCENDING
option.
At most one attribute per Resource can have the option :timestamp => true
set. This means that the attribute will be saved as one of the two first
attributes (the other one being the _id
attribute. When no value is given for the timestamped attribute, a timestamp with value 0 will be inserted,
which results in a timestamp being assigned to it by the MongoDB.
An exception is raised when more than one attribute is given the timestamp option
FAQs
Unknown package
We found that mordor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.