xml2json-ltx
Advanced tools
Comparing version 0.11.3 to 0.11.4
@@ -153,3 +153,3 @@ var ltx = require('ltx/lib/parsers/ltx'); | ||
var schema = { | ||
var schema = joi.object({ | ||
object: joi.boolean().default(false), | ||
@@ -162,5 +162,5 @@ reversible: joi.boolean().default(false), | ||
alternateTextNode: [joi.boolean().default(false), joi.string().default(false)] | ||
}; | ||
var validation = joi.validate(_options, schema); | ||
hoek.assert(validation.error === null, validation.error); | ||
}); | ||
var validation = schema.validate(_options); | ||
hoek.assert(validation.error === undefined, validation.error); | ||
options = validation.value; | ||
@@ -167,0 +167,0 @@ options.forceArrays = {}; |
{ | ||
"name": "xml2json-ltx", | ||
"version": "0.11.3", | ||
"version": "0.11.4", | ||
"description": "Converts xml to json and vice-versa, using ltx XML parser.", | ||
@@ -9,7 +9,7 @@ "repository": "https://github.com/ktemelkov/node-xml2json.git", | ||
"scripts": { | ||
"test": "lab -a code -v -t 93 test/test.js" | ||
"test": "lab -a @hapi/code -v -t 93 test/test.js" | ||
}, | ||
"dependencies": { | ||
"hoek": "^4.2.1", | ||
"joi": "^13.1.2", | ||
"hoek": "^6.1.3", | ||
"joi": "^17.3.0", | ||
"ltx": "^2.10.0" | ||
@@ -21,5 +21,6 @@ }, | ||
"devDependencies": { | ||
"code": "^3.0.2", | ||
"lab": "^18.0.0" | ||
"@hapi/code": "^8.0.2", | ||
"@hapi/lab": "^24.1.0", | ||
"eslint": "^7.14.0" | ||
} | ||
} |
@@ -6,4 +6,4 @@ var fs = require('fs'); | ||
var Code = require('code'); | ||
var Lab = require('lab'); | ||
var Code = require('@hapi/code'); | ||
var Lab = require('@hapi/lab'); | ||
@@ -334,3 +334,3 @@ | ||
return fs.readFileSync(__dirname + '/fixtures/' + file, { encoding: 'utf-8' }); | ||
return fs.readFileSync(__dirname + '/fixtures/' + file, { encoding: 'utf-8' }).replace(/\r\n/g, '\n'); | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91596
3
+ Added@hapi/hoek@9.3.0(transitive)
+ Added@hapi/topo@5.1.0(transitive)
+ Added@sideway/address@4.1.5(transitive)
+ Added@sideway/formula@3.0.1(transitive)
+ Added@sideway/pinpoint@2.0.0(transitive)
+ Addedjoi@17.13.3(transitive)
- Removedhoek@4.3.15.0.4(transitive)
- Removedisemail@3.2.0(transitive)
- Removedjoi@13.7.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedtopo@3.0.3(transitive)
Updatedhoek@^6.1.3
Updatedjoi@^17.3.0