
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
TreeDecorator has been designed to make it easier to decorate trees or nested sets of data. The tools provided, walk through a hash or nested object and apply code to containers and elements based on user defined rules.
For an example of how TreeDecorator can be used in Rails:
class Thing < ActiveRecord::Base
acts_as_nested_set
def name
@name
end
end
hanger = TreeDecorator::ObjectHanger.new(Thing.roots)
hanger.outer {|content| content_tag('ul', content.html_safe)}
hanger.inner {|content| content_tag('li', content.html_safe)}
hanger.element {|thing| link_to(thing.name, thing_path(thing))}
hanger.tree #----> outputs a nested HTML unordered list with each thing's name
# linking to it's default path.
See lib/example and tests for examples of usage
FAQs
Unknown package
We found that tree_decorator 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
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.