Comparing version 0.2.5 to 0.2.6
@@ -28,3 +28,2 @@ /** | ||
var rest = require("restler"); | ||
var xml2js = require("xml2js-expat"); | ||
@@ -31,0 +30,0 @@ exports.load = function(url, appId, password, retryInterval, retryLimit) { |
@@ -28,3 +28,3 @@ /** | ||
var rest = require("restler"); | ||
var xml2js = require("xml2js-expat"); | ||
var ltx = require("ltx"); | ||
@@ -107,3 +107,2 @@ exports.load = function(url, appId, password, retryInterval, retryLimit) { | ||
console.error("Something wrong with the appzone host:" + url); | ||
console.error(err2); | ||
if(callback) callback(); | ||
@@ -114,12 +113,11 @@ }); | ||
var parseXML = function(data, callback) { | ||
var p = new xml2js.Parser(); | ||
p.addListener("end", function(obj) { | ||
var status = {}; | ||
status.statusCode = obj.status_code; | ||
status.statusDescription = obj.status_message; | ||
status.correlationId = obj.correlator; | ||
callback(status); | ||
}); | ||
p.parseString(data); | ||
var parsed = new ltx.parse(data); | ||
var status = {}; | ||
status.statusCode = parsed.getChildText('status_code'); | ||
status.statusDescription = parsed.getChildText('status_message'); | ||
status.correlationId = parsed.getChildText('correlator'); | ||
callback(status); | ||
}; | ||
@@ -126,0 +124,0 @@ |
{ | ||
"name": "appzone", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"directories": { | ||
@@ -20,3 +20,3 @@ "lib": "./lib" | ||
"restler": ">= 0.2.1", | ||
"xml2js-expat": ">= 0.2.0", | ||
"ltx": ">= 0.1.2", | ||
"qbox": ">= 0.1.3" | ||
@@ -23,0 +23,0 @@ }, |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
132216
28
1731
+ Addedltx@>= 0.1.2
+ Addedltx@3.1.2(transitive)
- Removedxml2js-expat@>= 0.2.0
- Removedbindings@1.5.0(transitive)
- Removedfile-uri-to-path@1.0.0(transitive)
- Removednan@2.22.0(transitive)
- Removednode-expat@2.4.1(transitive)
- Removedxml2js-expat@0.3.0(transitive)