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

libxslt

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libxslt - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

test/resources/disable-output-escaping.xsl

2

index.js

@@ -38,3 +38,3 @@ /**

try {
source = libxmljs.parseXml(source);
source = libxmljs.parseXml(source, { nocdata: true });
} catch (err) {

@@ -41,0 +41,0 @@ if (callback) return callback(err);

{
"name": "libxslt",
"version": "0.2.1",
"version": "0.2.2",
"description": "Node.js bindings for libxslt compatible with libxmljs",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -19,3 +19,3 @@ node-libxslt

```js
var lixslt = require('libxslt');
var libxslt = require('libxslt');

@@ -46,3 +46,3 @@ libxslt.parse(stylesheetString, function(err, stylesheet){

var stylesheetObj = libxmljs.parseXml(stylesheetString);
var stylesheetObj = libxmljs.parseXml(stylesheetString, { nocdata: true });
var stylesheet = libxslt.parse(stylesheetObj);

@@ -203,2 +203,2 @@

*documented by [jsdoc-to-markdown](https://github.com/75lb/jsdoc-to-markdown)*.
*documented by [jsdoc-to-markdown](https://github.com/75lb/jsdoc-to-markdown)*.

@@ -67,3 +67,2 @@ var fs = require('fs');

libxslt.parseFile('./test/resources/cd.xsl', function(err, stylesheet) {
console.log(err);
stylesheet.should.be.type('object');

@@ -159,2 +158,12 @@ callback(err);

});
describe('disable-output-escaping attribute', function() {
it('should be interpreted by a stylesheet', function() {
var stylesheetStr = fs.readFileSync('test/resources/disable-output-escaping.xsl', 'utf8');
var stylesheetEsc = libxslt.parse(stylesheetStr);
var result = stylesheetEsc.apply('<root/>');
result.should.match(/<foo\/>/);
result.should.match(/&lt;bar\/&gt;/);
});
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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