
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
katalyst-html-attributes
Advanced tools
This is a small library intended to make it easier to deal with HTML attributes in View Components. It is based on https://github.com/x-govuk/html-attributes-utils
It uses refinements for Hash that allow:
class MyViewComponent < ViewComponent::Base
include Katalyst::HtmlAttributes
def initialize(**html_attributes)
super
end
def call
tag.div(**html_attributes)
end
def default_html_attributes
{
class: "my-class"
}
end
end
You can also define your own named attributes:
class MyViewComponent < ViewComponent::Base
include Katalyst::HtmlAttributes
define_html_attributes :link_attributes, :button_attributes
def initialize(link:, button:, **html_attributes)
super(**html_attributes)
update_link_attributes(**link) if link
update_button_attributes(**button) if button
end
def call
tag.div(**html_attributes) do
tag.a(**link_attributes) do
"Link"
end +
tag.button(**button_attributes) do
"Button"
end
end
end
def default_html_attributes
{
class: "my-class"
}
end
def default_link_attributes
{
class: "my-link"
}
end
def default_button_attributes
{
class: "my-button"
}
end
end
FAQs
Unknown package
We found that katalyst-html-attributes demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.