Huge News!Announcing our $40M Series B led by Abstract Ventures.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.16.0 to 1.17.1

5

CHANGELOG.md

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

[1.17.1] - 2017-05-15
---------------------
##### Added
- Copy image-customization form control attribute (KoBo client-specific customization).
[1.16.0] - 2017-04-12

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

4

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

@@ -35,3 +35,3 @@ "license": "Apache-2.0",

"body-parser": "1.17.x",
"enketo-xslt": "1.10.0",
"enketo-xslt": "1.11.1",
"express": "5.0.0-alpha.2",

@@ -38,0 +38,0 @@ "language-tags": "1.0.5",

@@ -25,3 +25,3 @@ Enketo Transformer

transformer.transform( {
// required string of XForm
// required string of XForm
xform: xform,

@@ -32,9 +32,9 @@ // optional string, to add theme if no theme is defined in the XForm

media: {
'myfile.png' : '/path/to/somefile.png',
'myfile.mp3' : '/another/path/to/2.mp3'
},
'myfile.png' : '/path/to/somefile.png',
'myfile.mp3' : '/another/path/to/2.mp3'
},
// optional ability to disable markdown rendering (default is true)
markdown: false,
// optional preprocess function that transforms the XForm (as libXMLJs object) to
// e.g. correct incompatible XForm syntax before Enketo's tranformation takes place
// e.g. correct incompatible XForm syntax before Enketo's transformation takes place
preprocess: function(doc){ return doc; },

@@ -70,8 +70,8 @@ } ).then(function( result ){

{
"form" : "<form>.....</form>",
"model": "<model>...</model>",
"form" : "<form>.....</form>",
"model": "<model>...</model>",
"transformerVersion": "1.13.0",
"languageMap": { "Français": "fr", "English": "en" }
}
```

@@ -78,0 +78,0 @@

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