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

enketo-transformer

Package Overview
Dependencies
Maintainers
1
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enketo-transformer - npm Package Compare versions

Comparing version 1.6.2 to 1.6.3

5

CHANGELOG.md

@@ -5,2 +5,7 @@ ## Change Log

[1.6.3] - 2015-10-24
-----------------------
##### Fixed
- String containing just a \<span\> without other markdown, is not converted.
[1.6.2] - 2015-10-23

@@ -7,0 +12,0 @@ -----------------------

2

package.json
{
"name": "enketo-transformer",
"version": "1.6.2",
"version": "1.6.3",
"description": "Library/app that transforms ODK-compliant XForms into a format that enketo-core consumes",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

@@ -263,3 +263,4 @@ 'use strict';

var key;
var original = textNode.text();
// text() will convert &gt; to >
var original = textNode.text().replace( '<', '&lt;' ).replace( '>', '&gt;' );
var rendered = markdown.toHtml( original );

@@ -266,0 +267,0 @@ if ( original !== rendered ) {

@@ -100,2 +100,18 @@ /* global describe, require, it*/

describe( 'renders markdown', function() {
it( 'takes into account that libxmljs Element.text() converts htmlentities', function() {
var xform = fs.readFileSync( './test/forms/external.xml', 'utf8' );
var result = transformer.transform( {
xform: xform
} );
return Promise.all( [
expect( result ).to.eventually.have.property( 'form' )
.and.to.not.contain( '&lt;span style="color:pink;"&gt;Intro&lt;/span&gt;' ),
expect( result ).to.eventually.have.property( 'form' )
.and.to.contain( '<span style="color:pink;">Intro</span>' )
] );
} );
} );
describe( 'manipulates media sources', function() {

@@ -102,0 +118,0 @@

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