This repository was archived by the owner on Jan 7, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +28
-3
lines changed Expand file tree Collapse file tree 4 files changed +28
-3
lines changed Original file line number Diff line number Diff line change
1
+ sudo : required
2
+ language : node_js
3
+ env :
4
+ - CXX="g++-4.8"
5
+
6
+ node_js :
7
+ - " 0.8"
8
+ - " 0.10"
9
+ - " 0.12"
10
+ - " iojs"
11
+ - " iojs-v2"
12
+ - " iojs-v1"
13
+
14
+ addons :
15
+ apt :
16
+ sources :
17
+ - ubuntu-toolchain-r-test
18
+ packages :
19
+ - g++-4.8
20
+ - gcc-4.8
21
+
22
+ before_install :
23
+ # npm shipped with Node.js 0.8 doesn't support carret so let's update it
24
+ - if [ "$TRAVIS_NODE_VERSION" == "0.8" ]; then npm install -g npm; fi
Original file line number Diff line number Diff line change 1
1
# Simple XML2JSON Parser
2
2
[ ![ Gitter] (https://badges.gitter.im/Join Chat.svg)] ( https://gitter.im/buglabs/node-xml2json?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge )
3
+ [ ![ Build Status] ( https://travis-ci.org/buglabs/node-xml2json.svg?branch=master )] ( https://travis-ci.org/buglabs/node-xml2json )
3
4
4
5
It does not parse the following elements:
5
6
@@ -41,7 +42,7 @@ Default values:
41
42
var options = {
42
43
object: false ,
43
44
reversible: false ,
44
- coerce: true ,
45
+ coerce: false ,
45
46
sanitize: true ,
46
47
trim: true ,
47
48
arrayNotation: false
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ module.exports = function(xml, _options) {
144
144
var schema = {
145
145
object : joi . boolean ( ) . default ( false ) ,
146
146
reversible : joi . boolean ( ) . default ( false ) ,
147
- coerce : joi . alternatives ( [ joi . boolean ( ) , joi . object ( ) ] ) . default ( true ) ,
147
+ coerce : joi . alternatives ( [ joi . boolean ( ) , joi . object ( ) ] ) . default ( false ) ,
148
148
sanitize : joi . boolean ( ) . default ( true ) ,
149
149
trim : joi . boolean ( ) . default ( true ) ,
150
150
arrayNotation : joi . boolean ( ) . default ( false )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " xml2json" ,
3
- "version" : " 0.8.1 " ,
3
+ "version" : " 0.9.0 " ,
4
4
"description" : " Converts xml to json and vice-versa, using node-expat." ,
5
5
"repository" : " git://github.com/buglabs/node-xml2json.git" ,
6
6
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments