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.
= xml_data_builder
XmlDataBuilder renders Ruby data structures as XML using Builder. It is designed to use the lowest common denominator between JSON and XML. When using arrays as input XmlDataBuilder uses the key of the outer hash as a grouping tag and wraps the values in singularized tags. Symbols and Strings are equivalent.
Usage is simple: You initialize XmlDataBuilder with ruby data structure and call #document:
puts XmlDataBuilder.new({}).document
puts XmlDataBuilder.new({:data => 1}).document
1
dataputs XmlDataBuilder.new({:outer => {:inner => 'data'}}).document
dataputs XmlDataBuilder.new({:outer => {:inner => 'data'}}, :indent => 0).document
1 2 3puts XmlDataBuilder.new({:numbers => [1, 2, 3]}).document
odd 1 even 2puts XmlDataBuilder.new({:numbers => [{:value => 1, :type => 'odd'}, {:value => 2, :type => 'even'}]}).document
puts XmlDataBuilder.new({:verbatim => XmlDataBuilder::CDATA.new('eßcape thïs!')}).document
== Caveat
The root element has to be a Hash and at least every second level has to be a Hash. XML attributes are not supported.
== Installation
(sudo) gem install xml_data_builder
== Authors
Dr. Florian Odronitz (odo@mac.com)
== Contact
For questions, contact the authors or developer@traveliq.net
== Copyright
Copyright (c) 2011 www.travel-iq.com. See LICENSE.txt for further details.
FAQs
Unknown package
We found that xml_data_builder 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
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.