
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
= mongo_mapper_tree
This is an maintained version of mongo_mapper_acts_as_tree (https://github.com/ramdiv/mongo_mapper_acts_as_tree) (ie. most of the code is written by Jacob Vidmar) In it's essence it's an implementation of a tree structure for MongoMapper, think acts as tree but for mongodb.
== Installation
Install as gem
gem install mongo_mapper_tree
== Usage
Enable the tree functionality by declaring acts_as_tree on your model
class Category include MongoMapper::Document plugin MongoMapper::Plugins::Tree
key :name, String
end
This adds class_attributes called parent_id_field, path_field, depth_field, tree_order and tree_search_class.
parent_id_field, path_field and depth_field overrides the default field names tree_order controls the order (format :field_name.[asc|desc]) tree_search_class expects a Class that is a MongoMapper::Document to be used for search
Check test_tree.rb and test_search_class.rb for examples.
For best performance add a index on the field called path_field.
== Note on Patches/Pull Requests
== Copyright
Original code written by Jakob Vidmar https://github.com/ramdiv/mongo_mapper_acts_as_tree Copyright (c) 2011 Joel Junström. See LICENSE for details.
FAQs
Unknown package
We found that mongo_mapper_tree 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.