Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
... 'cause all the clever names are taken, probably.
Problem: I've got a basic sitemap.xml. It looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url><loc>http://someplace.org/</loc><changefreq>always</changefreq><priority>0.5</priority></url>
<url><loc>http://someplace.org/about-someplace/</loc><changefreq>always</changefreq><priority>0.5</priority></url>
<url><loc>http://someplace.org/about-someplace/board-of-directors/</loc><changefreq>always</changefreq><priority>0.5</priority></url>
</urlset>
I need to build a tree out of all of these clearly hierarchal links. So, I do this:
sitemap_tree = SitemapTreemaker.new('http://someplace.org/sitemap.xml')
sitemap_tree.tree
tree
returns a Tree::TreeNode
from the library RubyTree. I can now take that tree and do something useful with it, maybe. Or, I could just print a pretty diagram:
sitemap_tree = SitemapTreemaker.new('http://someplace.org/sitemap.xml')
sitemap_tree.print_tree_diagram
#=>
* root
|---+ about-someplace
| |---> board-of-directors
## TODO
_???_
I'm sure there are other things that will need to happen in this gem. As I use it more, I'm sure it'll get fleshed out. If you've got ideas, send them to me by writing them with a thick black marker on the label on a Dogfish Head 90 Minute IPA and mailing it to me or something. If you're also from Indiana, or one of the other states that Dogfish Head no longer serves... I don't know. Email me, or whatever.
Also, pull requests are welcomed. Prepare for poor response times, though.
FAQs
Unknown package
We found that sitemap_treemaker 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.