New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More β†’
Socket
Sign inDemoInstall
Socket

cruftless

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cruftless - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

2

lib/model/builder.js

@@ -35,3 +35,3 @@ // Generated by CoffeeScript 2.5.1

if (node.namespaceURI === xincludeNS && node.localName === 'include' && (resolve != null)) {
href = node.getAttributeNS(xincludeNS, 'href');
href = node.getAttribute('href');
if (href != null) {

@@ -38,0 +38,0 @@ [xml, next] = resolve(href);

{
"name": "cruftless",
"version": "0.5.2",
"version": "0.5.3",
"description": "Yet another simple way to parse and generate XML",

@@ -5,0 +5,0 @@ "main": "lib/cruftless.js",

@@ -458,3 +458,13 @@ <!--

Note that the resolve function is expected to resolve the href within a context
and then return both the XML _and_ a new resolve function that is capable fo
resolving hrefs from within the context of the resolved file. In this case,
we're not really doing that. In fact, this resolver will **always** return the
same snippet of XML, but it doesn't require a lot of imagination to figure out
how to turn this resolver into something sensible.
If you are not passing the resolve function, then it will simply leave the
xinclude unharmed.
----
Markdown generated from [./README.js.md](./README.js.md) by [![RunMD Logo](http://i.imgur.com/h0FVyzU.png)](https://github.com/broofa/runmd)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc