
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
= 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.