Comparing version 1.1.0 to 1.2.0
@@ -16,4 +16,18 @@ (function () { | ||
}; | ||
this.knox.putBuffer(data, path, headers, function(err){ | ||
cb(err); | ||
this.knox.putBuffer(data, path, headers, function(err, resp){ | ||
if (err) { | ||
cb(err); | ||
return | ||
} | ||
resp.pipe(concat(function (data) { | ||
data = data.toString(); | ||
if (data.indexOf('<Error>') > -1) { | ||
cb(data); | ||
} | ||
else { | ||
cb(null); | ||
} | ||
})); | ||
}); | ||
@@ -20,0 +34,0 @@ }; |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"repository": { | ||
@@ -22,3 +22,3 @@ "type": "git", | ||
"jsftp": "0.6.x", | ||
"knox": "0.8.x", | ||
"knox": "0.9.x", | ||
"mime": "1.2.x", | ||
@@ -25,0 +25,0 @@ "underscore": "1.4.x", |
87277
1556
+ Addeddebug@1.0.5(transitive)
+ Addedknox@0.9.2(transitive)
+ Addedms@2.0.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedsax@1.4.1(transitive)
+ Addedstream-counter@1.0.0(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedxml2js@0.4.23(transitive)
+ Addedxmlbuilder@11.0.1(transitive)
- Removeddebug@0.7.4(transitive)
- Removedisarray@0.0.1(transitive)
- Removedknox@0.8.10(transitive)
- Removedreadable-stream@1.0.34(transitive)
- Removedsax@0.5.8(transitive)
- Removedstream-counter@0.1.0(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedxml2js@0.2.8(transitive)
Updatedknox@0.9.x