Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xml2json-ltx

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml2json-ltx - npm Package Compare versions

Comparing version 0.11.3 to 0.11.4

8

lib/xml2json.js

@@ -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');
};
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